Ask Your Question
0

OpenCV 3.4.1 with OpenNI2

asked 2018-11-22 06:17:51 -0500

jay18395729 gravatar image

updated 2018-11-22 06:18:24 -0500

Hey,

i try to build OpenCV 3.4.1 with OpenNI2 and the Kinect 1.X sdk. Iam using the Kinect model 1517. And my Operating System is Windows 10 Professional. The NIViewer is working fine with my Kinect, but after Building OpenCV with OpenNI i cant get it running with VideoCapture. I get the following Error:

cap_openni2.cpp:237: error: (-2) OpenCVKinect: Device open failed see:     DeviceOpen using default: no devices found  in function CvCapture_OpenNI2::CvCapture_OpenNI2
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-11-22 15:00:39 -0500

sjhalayka gravatar image

updated 2018-11-22 15:02:18 -0500

I recommend that you use the Kinect SDK for capturing images from the cameras, and totally bypass OpenNI. Here is code to get the depth image and convert it to a floating-point Mat:

https://github.com/sjhalayka/kinect_o...

Works good!

edit flag offensive delete link more

Comments

Thank you for your answere. I will try it with your example and integrate the sdk directly.

jay18395729 gravatar imagejay18395729 ( 2018-11-26 04:17:41 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-11-22 06:17:51 -0500

Seen: 21 times

Last updated: Nov 22