카메라가 돌기 때문에
카메라의 현재 위치
사람이 이동했을 경우 카메라의 중앙 현재위치와 사람과의 오차를 계산해서 그만큼 움직여야 한다
import 구문 맨 밑에 추가
import time
max_width = 640 # 해상도 변경
max_height = 480 # 원활한 작업 위해서
kit.servo[0].angle = 90 # 초기 위치
카메라 초기 위치 저장
cur_pos = 90
print(f"first_cur_pos = {cur_pos}")
motor_pos = int(map(object_mid_width, max_width, 0, 140, 40))