From 84b3c8194eddff39bb7373ab9534ce0bd6182b82 Mon Sep 17 00:00:00 2001 From: Simon Wezstein Date: Fri, 5 Oct 2018 15:00:44 +0200 Subject: [PATCH] changed some old openCv constants --- opencv-cli/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opencv-cli/src/main.cpp b/opencv-cli/src/main.cpp index 63b6fd3..5900c4f 100644 --- a/opencv-cli/src/main.cpp +++ b/opencv-cli/src/main.cpp @@ -135,14 +135,14 @@ int main(int argc, char** argv) { } - if (!videoCapture.set(CV_CAP_PROP_FRAME_WIDTH, captureWidth)) { + if (!videoCapture.set(cv::CAP_PROP_FRAME_WIDTH, captureWidth)) { // Log cerr << "Failed to set frame width: " << captureWidth << " (ignoring)" << endl; } - if (!videoCapture.set(CV_CAP_PROP_FRAME_HEIGHT, captureHeight)) { + if (!videoCapture.set(cv::CAP_PROP_FRAME_HEIGHT, captureHeight)) { // Log cerr << "Failed to set frame height: " << captureHeight << " (ignoring)" << endl; @@ -166,7 +166,7 @@ int main(int argc, char** argv) { if (result) { // Convert to grayscale - cvtColor(image, grey, CV_BGR2GRAY); + cvtColor(image, grey, cv::COLOR_BGR2GRAY); try {