OpenCV OpenNI calibrate kinect

前端 未结 1 523
误落风尘
误落风尘 2021-01-22 18:30

I use home to capture by kinect:

capture.retrieve( depthMap, CV_CAP_OPENNI_DEPTH_MAP )
capture.retrieve( bgrImage, CV_CAP_OPENNI_BGR_IMAGE )

No

1条回答
  •  后悔当初
    2021-01-22 19:29

    You can check if registration is on like so:

    cout << "REGISTRATION     " << capture.get( CV_CAP_PROP_OPENNI_REGISTRATION ) << endl;
    

    and if it's not, set it like so:

    capture.set(CV_CAP_PROP_OPENNI_REGISTRATION,1);
    

    or:

    if(capture.get( CV_CAP_PROP_OPENNI_REGISTRATION ) == 0) capture.set(CV_CAP_PROP_OPENNI_REGISTRATION,1);
    

    0 讨论(0)
提交回复
热议问题