Power & Source of Big Ideas

OPENCV does not see cam(0 )How we can see internal cam?

Moderators: chensy, FATechsupport

When I try to open internal /dev/video0 . camera from open cv with VideoCapture cap(0) I have below error :

VIDIOC_QUERYCTRL: Inappropriate ioctl for device

How can I use onboard cameras with the OpenCV ?
No body ?

This is the one of the most importan feature that edge developer needs ?

How we can use ov13850 onboard camera from opencv ??

please help
Opening by cam id doesn't work : VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Code: Select all


Opening by /dev/video0 won't work : VIDIOC_QUERYCTRL: Inappropriate ioctl for device

Code: Select all

cap=cv2.VideoCapture("/dev/video0", cv2.CAP_V4L)

The only work around is to go through gstreamer:

Code: Select all

cap=cv2.VideoCapture("rkisp device=/dev/video0 sensor-id=1 io-mode=4 path-iqf=/etc/cam_iq/rk-ov13850.xml ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! videoconvert ! appsink",cv2.CAP_GSTREAMER)

source from https://www.friendlyarm.com/Forum/viewtopic.php?f=62&t=2104
Not sure if this is optimal but for now it works. Hope FriendlyElec can support a more compatible v4l2 driver in the near future (hint hint).

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 7 guests