Skip to content

Commit 0ba0af0

Browse files
committed
C-API cleanup: videoio and highgui interfaces
1 parent 328b1b1 commit 0ba0af0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/dpm/samples/cascade_detect_camera.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include <opencv2/imgproc.hpp>
4646
#include <opencv2/highgui.hpp>
4747
#include <opencv2/videoio.hpp>
48-
#include <opencv2/videoio/videoio_c.h>
4948

5049
#include <stdio.h>
5150
#include <iostream>
@@ -88,8 +87,8 @@ int main( int argc, char** argv )
8887

8988
// use web camera
9089
VideoCapture capture(0);
91-
capture.set(CV_CAP_PROP_FRAME_WIDTH, 320);
92-
capture.set(CV_CAP_PROP_FRAME_HEIGHT, 240);
90+
capture.set(CAP_PROP_FRAME_WIDTH, 320);
91+
capture.set(CAP_PROP_FRAME_HEIGHT, 240);
9392

9493
if ( !capture.isOpened() )
9594
{

0 commit comments

Comments
 (0)