diff --git a/tools/streamer_recorder/CMakeLists.txt b/tools/streamer_recorder/CMakeLists.txt index 77f203f5e..9b9a265ac 100644 --- a/tools/streamer_recorder/CMakeLists.txt +++ b/tools/streamer_recorder/CMakeLists.txt @@ -94,6 +94,10 @@ ADD_EXECUTABLE(ProtonectSR ${ProtonectSR_src} ) +SET_TARGET_PROPERTIES(ProtonectSR PROPERTIES + CXX_STANDARD 14 +) + TARGET_LINK_LIBRARIES(ProtonectSR ${ProtonectSR_LIBRARIES} ) 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; 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); }