mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed http_stream.cpp
This commit is contained in:
@ -196,8 +196,9 @@ public:
|
|||||||
std::vector<int> params;
|
std::vector<int> params;
|
||||||
params.push_back(IMWRITE_JPEG_QUALITY);
|
params.push_back(IMWRITE_JPEG_QUALITY);
|
||||||
params.push_back(quality);
|
params.push_back(quality);
|
||||||
//cv::imencode(".jpg", frame, outbuf, params); //REMOVED FOR COMPATIBILITY
|
cv::imencode(".jpg", frame, outbuf, params); //REMOVED FOR COMPATIBILITY
|
||||||
std::cerr << "cv::imencode call disabled!" << std::endl;
|
// https://docs.opencv.org/3.4/d4/da8/group__imgcodecs.html#ga292d81be8d76901bff7988d18d2b42ac
|
||||||
|
//std::cerr << "cv::imencode call disabled!" << std::endl;
|
||||||
size_t outlen = outbuf.size();
|
size_t outlen = outbuf.size();
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
Reference in New Issue
Block a user