doesnt work on windows
Opened this issue · 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:0@0.307] 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 , verify if any issue with your camera driver. It works for me in Windows 10.