How to get camera frames in OpenCV-Python on i.MX8M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get camera frames in OpenCV-Python on i.MX8M

1,665 Views
jpkong
Contributor I

Hi Support,

We tried using v4l2 installed by pip in OpenCV-Python on i.MX8M.
However, it returns an error below when I give cv2.VideoCapture(0).

VIDIOC_QUERYCTRL: Inappropriate ioctl for device

PIP may install a standard version of arm v4l2, and I have heard the v4l2 driver is modified for i.MX platform.
So, there should be some information to do for what I mentioned in the title.

Could anyone help me?

0 Kudos
3 Replies

1,000 Views
SYakubson
Contributor II

@jpkong how you run your opencv code on nxp?

0 Kudos

1,471 Views
gaobo
Contributor I

Please,have you solved the problem ? I have the same question.

0 Kudos

1,471 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Jeonpyo,

Please try to run: cmake -DWITH_LIBV4L=ON . in the build directory or try to check if you video0 is connected ls -al /dev/video*

Regards

0 Kudos