Przeglądaj źródła

Set default device number to 0

Hugo Cachitas 8 lat temu
rodzic
commit
60b6dd9ca0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      examples/pyqt5_opencv/app/camera.py

+ 1 - 1
examples/pyqt5_opencv/app/camera.py

@@ -9,7 +9,7 @@ class CameraDevice(QObject):
 
     frame_ready = pyqtSignal(QImage)
 
-    def __init__(self, device_id=-1):
+    def __init__(self, device_id=0):
         super().__init__()
         self.capture = cv2.VideoCapture(device_id)
         self.timer = QTimer()