Danyon
Posts: 2
Joined: Wed Apr 03, 2019 6:10 pm

Problem on Pixel format is unsupported by OpenCV

Wed Apr 03, 2019 6:14 pm

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:

User avatar
topguy
Posts: 5685
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Problem on Pixel format is unsupported by OpenCV

Thu Apr 04, 2019 9:27 am

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.

Danyon
Posts: 2
Joined: Wed Apr 03, 2019 6:10 pm

Re: Problem on Pixel format is unsupported by OpenCV

Thu Apr 04, 2019 6:00 pm

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!!!

projectdrone2
Posts: 3
Joined: Thu May 02, 2019 4:35 pm

Re: Problem on Pixel format is unsupported by OpenCV

Thu May 02, 2019 4:41 pm

@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)

Return to “Graphics programming”