Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Streamer/Recorder build errors #1158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/streamer_recorder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ ADD_EXECUTABLE(ProtonectSR
${ProtonectSR_src}
)

SET_TARGET_PROPERTIES(ProtonectSR PROPERTIES
CXX_STANDARD 14
)

TARGET_LINK_LIBRARIES(ProtonectSR
${ProtonectSR_LIBRARIES}
)
Expand Down
2 changes: 1 addition & 1 deletion tools/streamer_recorder/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tools/streamer_recorder/streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down