解决opencv错误导致的无法取图问题
This commit is contained in:
parent
5f47f3d7c4
commit
b742e073fe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue