Browse Source

Set default device number to 0

Hugo Cachitas 8 năm trước cách đây
mục cha
commit
60b6dd9ca0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()