Page 1 of 1

Problem on Pixel format is unsupported by OpenCV

Posted: Wed Apr 03, 2019 6:14 pm
by Danyon
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream: Device or resource busy

How to Solve these?
Please Help me!!! :cry:

Re: Problem on Pixel format is unsupported by OpenCV

Posted: Thu Apr 04, 2019 9:27 am
by topguy
There are some v4l2 tools that lets you see what formats your camera supports, maybe there is a way to change it too.

Probably useful to know what camera you are using too.

Re: Problem on Pixel format is unsupported by OpenCV

Posted: Thu Apr 04, 2019 6:00 pm
by Danyon
Thank You for replying :D

$ v4l2-ctl -d /dev/video0 --list-formats
output:
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2

And i m using the camera QHMPL PC CAMERA.

Please help me!!!

Re: Problem on Pixel format is unsupported by OpenCV

Posted: Thu May 02, 2019 4:41 pm
by projectdrone2
@Danyon , I have the exact same problem :-(

Have you been able to find a solution in the last 2 weeks?
I'm trying to find a solution to configure the USB camera before invoqing

Code: Select all

cam = cv2.VideoCapture(0)