1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

C-API cleanup: videoio and highgui interfaces

This commit is contained in:
Maksim Shabunin
2024-08-16 17:05:37 +03:00
parent 328b1b1309
commit 0ba0af02e1

View File

@@ -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>
@@ -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() )
{