Skip to content

Commit b46dc31

Browse files
authored
Merge pull request #3446 from vovka643:5.x_depricated_backends
changed CAP_OPENNI to CAP_OPENNI2 flag
2 parents 55b585a + 5ca3feb commit b46dc31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rgbd/samples/linemod.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int main(int argc, char * argv[])
194194
int num_modalities = (int)detector->getModalities().size();
195195

196196
// Open Kinect sensor
197-
cv::VideoCapture capture( cv::CAP_OPENNI );
197+
cv::VideoCapture capture( cv::CAP_OPENNI2 );
198198
if (!capture.isOpened())
199199
{
200200
printf("Could not open OpenNI-capable sensor\n");

0 commit comments

Comments
 (0)