web_video_server
web_video_server copied to clipboard
Issue Compiling with OpenCV4

I was having an issue compiling web_video_server 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?