From 266b989d149dbe611974074342d0e4c20b02ad4a Mon Sep 17 00:00:00 2001 From: James Hamilton McRoberts IV Date: Wed, 21 Jun 2023 01:59:45 -0700 Subject: [PATCH 1/2] Update streamer.cpp References the newer OpenCV constants now --- tools/streamer_recorder/streamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/streamer_recorder/streamer.cpp b/tools/streamer_recorder/streamer.cpp index 9cd03333b..a81b5235b 100644 --- a/tools/streamer_recorder/streamer.cpp +++ b/tools/streamer_recorder/streamer.cpp @@ -36,7 +36,7 @@ void Streamer::initialize() servAddress = SERVER_ADDRESS; servPort = Socket::resolveService(SERVER_PORT, "udp"); // Server port - compression_params.push_back(CV_IMWRITE_JPEG_QUALITY); + compression_params.push_back(cv::IMWRITE_JPEG_QUALITY); compression_params.push_back(jpegqual); } From c9e6967576cd45c82f91944a5bd6e9a3b130432d Mon Sep 17 00:00:00 2001 From: James Hamilton McRoberts IV Date: Wed, 21 Jun 2023 02:00:34 -0700 Subject: [PATCH 2/2] Update recorder.cpp Updated to the newer version of OpenCV's constant naming scheme --- tools/streamer_recorder/recorder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/streamer_recorder/recorder.cpp b/tools/streamer_recorder/recorder.cpp index 89afc3972..d080f30d1 100644 --- a/tools/streamer_recorder/recorder.cpp +++ b/tools/streamer_recorder/recorder.cpp @@ -78,7 +78,7 @@ void Recorder::initialize() ///////////////////////////////////////////////////////////////// // record image: define compression parameters and frame counter - img_comp_param.push_back(CV_IMWRITE_JPEG_QUALITY); //specify the compression technique + img_comp_param.push_back(cv::IMWRITE_JPEG_QUALITY); //specify the compression technique img_comp_param.push_back(100); //specify the compression quality frameID = 0;