From 3ff3e31bf87247a85f511ec042c765ec026bce66 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Sunde Date: Fri, 7 Aug 2015 14:33:39 +0200 Subject: [PATCH] Bugfix: Stackoverflow. --- src/openalpr/alpr_impl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openalpr/alpr_impl.cpp b/src/openalpr/alpr_impl.cpp index aa10796..02975c2 100644 --- a/src/openalpr/alpr_impl.cpp +++ b/src/openalpr/alpr_impl.cpp @@ -349,7 +349,10 @@ namespace alpr { cv::Mat img = cv::imdecode(cv::Mat(imageBytes), 1); - return this->recognize(img, regionsOfInterest); + std::vector 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 regionsOfInterest)