林试图复制垫到其它基质的一部分,这是我的代码:断言失败
Mat OCRprocess;
OCRImage(Rect(plates[i].x, plates[i].y, plates[i].width, plates[i].height)).copyTo(OCRprocess);
ROI:X:1200 Y:608瓦特:356个H: 89(从级联检测数据)
这是回报:
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in cv::Mat::Mat, file C:\builds\master_PackSlave-win64-vc12-shared\opencv\modules\ core\src\matrix.cpp, line 495
我想你只需要熟悉你的调试器... –