i tried to run the tutorial code for object detection. i have logitech c170 webcam with me. i am not able to run any tutorial codes with this cam connected.
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP --(!) No captured frame -- Break!
but the same program runs effectively with my built in webcam. since i am a newbie to openCV i am not able to understand the mistakes.
when i took the details of the both cams(built in and logitech c170) using
v4l2-ctl --device=/dev/video0 --all
i got the difference that the pixel formats of both are different. the built in cam is YUYV while logitech is MJPG. more over i am completely unaware of MJPG format..i tried to change the formate to YUYV using
v4l2-ctl --device=/dev/video1 --set-fmt-video=width=640,height=480,pixelformat=0
i could change the format.but when i run the program again the error repeats the format is again changed to MJPG by the system.
consider me as smallest guy in OpenCV...