RobotWebTools / web_video_server

HTTP Streaming of ROS Image Topics in Multiple Formats
http://ros.org/wiki/web_video_server
Other
269 stars 187 forks source link

Issue Compiling with OpenCV4 #113

Open OfficialOwlElder opened 3 years ago

OfficialOwlElder commented 3 years ago

image

I was having an issue compiling web_videoserver with OpenCV4 on an Nvidia Jetson TX2 running JetPack 4.4.1 (Ubuntu 18.04). Resolved the issue by replacing all of constant prefixes "CV" with "cv::".

from encode_params.push_back(CV_IMWRITE_JPEG_QUALITY); to encode_params.push_back(cv::IMWRITE_JPEG_QUALITY);

from encode_params.push_back(CV_IMWRITE_PNG_COMPRESSION); to encode_params.push_back(cv::IMWRITE_PNG_COMPRESSION);

Any thoughts on why this might be happening?