xxorde / librekinect

Depth data from a kinect sensor! Small and fast kernel driver. Also for embedded devices like the raspberry pi!
407 stars 68 forks source link

OpenCV - Inappropriate ioctrl for device #18

Open ghost opened 9 years ago

ghost commented 9 years ago

Hello,

I recently the driver set up on my pi, and it is working perfectly fine with camorama (however the large video is very glitchy). I'm trying to use OpenCV to access the camera and am getting hit with an error. In my OpenCV code, I have tried opening the camera with VideoCapture cap(0) and with CvCapture *input_camera = cvCaptureFromCAM(0). However, it seems to be hitting a problem establishing the camera, as the terminal becomes flooded with the following error message

VIDEOC_QUERYCTRL: Inappropriate ioctl for device

If this driver allows kinect to be used as a standard webcam, this should be no problem. I know it must be something I am doing wrong because camorama is able to take control of the camera without issue. Any help for this issue would greatly appreciated.

silvio-didonna commented 9 years ago

Same issue.