BlendArMocap icon indicating copy to clipboard operation
BlendArMocap copied to clipboard

OSError: Cannot open webcam

Open xiaowen214 opened this issue 3 years ago • 2 comments

Hello, thanks for your work, the app installed but can't open the cam

Python: DEL STREAM Exception ignored in: <function RealtimeDetector.del at 0x000001DC101CDC60> Traceback (most recent call last): File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\cgt_detection\detector_interface.py", line 121, in del self.listener.detach(self.observer) AttributeError: 'NoneType' object has no attribute 'detach' [ERROR] mpfb.init ..............................: Unhandled crash File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\cgt_blender\interface\ui_operators.py", line 120, in execute self.detection_handler.init_detector(camera_index, dimensions, backend, frame_start, key_step, 0) File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\main.py", line 115, in init_detector self.detector.stream = stream.Webcam( File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\cgt_utils\stream.py", line 48, in init raise IOError("Cannot open webcam")

Cannot open webcam

Traceback (most recent call last): File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\cgt_blender\interface\ui_operators.py", line 120, in execute self.detection_handler.init_detector(camera_index, dimensions, backend, frame_start, key_step, 0) File "C:\Users*\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\main.py", line 115, in init_detector self.detector.stream = stream.Webcam( File "C:\Users********\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\BlendArMocap-main\src\cgt_utils\stream.py", line 48, in init raise IOError("Cannot open webcam") OSError: Cannot open webcam

xiaowen214 avatar Jul 28 '22 09:07 xiaowen214

Is you webcam properly connected? Set the webcam slot to 0 and make sure to have one webcam connected.

cgtinker avatar Jul 28 '22 11:07 cgtinker

Hi, thanks for the instant relpy.

I try the slot 0, still the same error.

I am using the laptop‘s camera, so the webcam should be the default setting?

xiaowen214 avatar Jul 28 '22 11:07 xiaowen214

Hi, thanks for the instant relpy.

I try the slot 0, still the same error.

I am using the laptop‘s camera, so the webcam should be the default setting?

image you should try switching back and forth between these 2 modes

Tung-Vinh-Long avatar Dec 05 '22 12:12 Tung-Vinh-Long