解决opencv错误导致的无法取图问题

This commit is contained in:
luoliangyi 2023-08-17 12:07:33 +08:00
parent 5f47f3d7c4
commit b742e073fe
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ namespace hg_imgproc
}
cv::Mat mat;
if (true)
mat(cv::imdecode(*buf, rmc));
mat = cv::imdecode(*buf, rmc);
else
mat = cv::Mat(512 * 5, 15552 / 3, CV_8UC1, buf->data(), cv::Mat::AUTO_STEP).clone();
//cv::imwrite("C:\\Users\\modehua\\Desktop\\image\\imdecode.jpg",mat);