Bugfix: Stackoverflow.

This commit is contained in:
Peter Rekdal Sunde
2015-08-07 14:33:39 +02:00
parent 1729f48ba8
commit 3ff3e31bf8

View File

@@ -349,7 +349,10 @@ namespace alpr
{
cv::Mat img = cv::imdecode(cv::Mat(imageBytes), 1);
return this->recognize(img, regionsOfInterest);
std::vector<cv::Rect> rois = convertRects(regionsOfInterest);
AlprFullDetails fullDetails = recognizeFullDetails(img, rois);
return fullDetails.results;
}
AlprResults AlprImpl::recognize( unsigned char* pixelData, int bytesPerPixel, int imgWidth, int imgHeight, std::vector<AlprRegionOfInterest> regionsOfInterest)