Skip to main content
. 2022 Feb 27;22(5):1875. doi: 10.3390/s22051875
Algorithm 1. Fragment of the Python code: function cv2.VideoCapture(1).
def start_cam(self):
self.capture = cv2.VideoCapture(1)
   # 0 for webcam, 1 for extern