Kinect depth image duplication problem

asked 2013-10-30 08:40:23 -0600

foben gravatar image

I have built opencv with OpenNI support to grab (rgb and depth) images directly from the kinect. I am using the Kinect for windows version with the near mode feature.

I use the PrimeSense driver for the kinect.

Unfortunately, the depth images shows some errors: Some objects are duplicated in the depth image. The rgb image is fine.

I suspect that it may have to do with the near mode feature not being enabled. Is there a way to do this using opencv?

I use the following code to grab and display both the rgb and the depth image:

    Mat depthImage;
    Mat bgrImage;

    capture.retrieve(depthImage, CV_CAP_OPENNI_DEPTH_MAP );
    capture.retrieve(bgrImage, CV_CAP_OPENNI_BGR_IMAGE );

    namedWindow("depth", 1);
    namedWindow("bgr", 1);

    imshow("depth", depthImage);
    imshow("bgr", bgrImage);

    if (waitKey(30) >= 0) break;

Any hints are greatly appreciated :)

edit retag flag offensive close merge delete


Can you post an example of the depth you have ? Because this code seems to be really good and me I don't have any trouble with near mode.

Alexandre Bizeau gravatar imageAlexandre Bizeau ( 2013-10-31 07:28:00 -0600 )edit

I have uploaded a sample image here:

As you can see, the cable is recorded multiple times in the depth image. What is maybe not so obvious is the fact that the duplication occurs only horizontally, not vertically.

foben gravatar imagefoben ( 2013-11-04 07:49:39 -0600 )edit

Really strange... Try to update the firmware/hardware, sometime they release patch. The camera just look to have a problem.

Alexandre Bizeau gravatar imageAlexandre Bizeau ( 2013-11-07 07:24:36 -0600 )edit