thank you for your answer worked for me. I want to ask another think. It works with python2 but when i try for python3, i get an error. Do you have any idea what could be the reason for this ?
error message:
{WARN:0] global /tmp/pip-req-build-8gn937y7/opencv/modules/videoio/src/cap_v4l.cpp (1004) tryIoctl VIDEOIO(V4L2:/dev/video0): select() timeout.
It works for my logitec usb camera in python3, but not for the kurokesu c1 usb webcam model.