Skip to content

Commit

Permalink
Merge pull request #3780 from mshabunin:cpp-videoio-highgui
Browse files Browse the repository at this point in the history
C-API cleanup: highgui, videoio
  • Loading branch information
asmorkalov authored Sep 9, 2024
2 parents e09802b + 0ba0af0 commit cda2184
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/dpm/samples/cascade_detect_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/videoio/videoio_c.h>

#include <stdio.h>
#include <iostream>
Expand Down Expand Up @@ -88,8 +87,8 @@ int main( int argc, char** argv )

// use web camera
VideoCapture capture(0);
capture.set(CV_CAP_PROP_FRAME_WIDTH, 320);
capture.set(CV_CAP_PROP_FRAME_HEIGHT, 240);
capture.set(CAP_PROP_FRAME_WIDTH, 320);
capture.set(CAP_PROP_FRAME_HEIGHT, 240);

if ( !capture.isOpened() )
{
Expand Down

0 comments on commit cda2184

Please sign in to comment.