-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Changed the lines as suggested by 3 other people on the forum to
def start_webcam(self):
if not self.camera_is_running:
self.capture = cv2.VideoCapture(0) # VideoCapture(0) sometimes drops error #-1072875772
if self.capture is None:
self.capture = cv2.VideoCapture(0)
But still this error :--
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream: Device or resource busy
VIDEOIO ERROR: V4L: can't open camera by index 0
Traceback (most recent call last):
File "main.py", line 45, in update_frame
self.display_image(base_image)
File "main.py", line 100, in display_image
if len(img.shape) == 3:
AttributeError: 'NoneType' object has no attribute 'shape'
Aborted (core dumped)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels