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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,723件の閲覧回数
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?

ラベル(2)
0 件の賞賛
3 返答(返信)

1,058件の閲覧回数
SYakubson
Contributor II

@jpkong how you run your opencv code on nxp?

0 件の賞賛

1,529件の閲覧回数
gaobo
Contributor I

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

0 件の賞賛

1,529件の閲覧回数
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 件の賞賛