capturing-images-from-webcam-using-opencv-python icon indicating copy to clipboard operation
capturing-images-from-webcam-using-opencv-python copied to clipboard

doesnt work on windows

Open SNEHASISHROY-125 opened this issue 1 year ago • 1 comments

Describe the bug when I run python3 webcam-capture-v1.01.py .

ERROR:

PS C:\Users\Snehasish> & C:/Python311/python.exe c:/Users/Snehasish/Documents/capt/for-windows-users/webcam-capture-v1.0.1-windows.py [ERROR:[email protected]] global obsensor_uvc_stream_channel.cpp:159 cv::obsensor::getStreamChannelGroup Camera index out of range False None Traceback (most recent call last): File "c:\Users\Snehasish\Documents\capt\for-windows-users\webcam-capture-v1.0.1-windows.py", line 12, in cv2.imshow("Capturing", frame) cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:971: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'

SNEHASISHROY-125 avatar Jan 24 '24 10:01 SNEHASISHROY-125

@SNEHASISHROY-125 , verify if any issue with your camera driver. It works for me in Windows 10.

naveenk93 avatar May 30 '24 11:05 naveenk93