diff --git a/main.py b/main.py index 9d2bd2e..1fe122c 100644 --- a/main.py +++ b/main.py @@ -50,12 +50,6 @@ def main(): # Захват кадра с камеры camera = create_camera(camera_type=cfg.CAMERA_TYPE, camera_id=cfg.CAMERA_ID, mirror=cfg.MIRROR_CAMERA) - ''' - cap = cv2.VideoCapture(cfg.CAMERA_ID) - if not cap.isOpened(): - print("Ошибка: не удалось открыть камеру") - sys.exit(1) - ''' enabled = False # включение управления жестами @@ -66,13 +60,6 @@ def main(): dome_processed = False while True: - ''' - ret, frame = cap.read() - if not ret: - break - if cfg.MIRROR_CAMERA: - frame = cv2.flip(frame, 1) - ''' frame = camera.get_frame() if frame is None: continue @@ -145,7 +132,6 @@ def main(): if cv2.waitKey(1) & 0xFF == ord('q'): break - #cap.release() camera.release() cv2.destroyAllWindows() robot.quit() diff --git a/requirements.txt b/requirements.txt index 0cdf457..13f1a9a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,8 @@ -opencv-python -mediapipe -numpy -pygame -scikit-learn -pandas -joblib +opencv-python==4.12.0 +mediapipe==0.10.11 +numpy==1.24.3 +pygame==2.6.1 +scikit-learn==1.3.2 +pandas==2.0.3 +joblib==1.4.2 +depthai==2.28.0