mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
Merge pull request #3451 from vovka643:4.x_deprecated_backends
changed CAP_OPENNI flag to CAP_OPENNI2 in linemod sample
This commit is contained in:
@@ -191,7 +191,7 @@ int main(int argc, char * argv[])
|
||||
int num_modalities = (int)detector->getModalities().size();
|
||||
|
||||
// Open Kinect sensor
|
||||
cv::VideoCapture capture( cv::CAP_OPENNI );
|
||||
cv::VideoCapture capture( cv::CAP_OPENNI2 );
|
||||
if (!capture.isOpened())
|
||||
{
|
||||
printf("Could not open OpenNI-capable sensor\n");
|
||||
|
Reference in New Issue
Block a user