Add overload for regionsOfInterest.

This commit is contained in:
Peter Rekdal Sunde
2015-08-07 11:21:22 +02:00
parent a1e2a92ec5
commit 2fc60ae0be
4 changed files with 18 additions and 2 deletions

View File

@@ -345,6 +345,13 @@ namespace alpr
return this->recognize(img);
}
AlprResults AlprImpl::recognize(std::vector<char> imageBytes, std::vector<AlprRegionOfInterest> regionsOfInterest)
{
cv::Mat img = cv::imdecode(cv::Mat(imageBytes), 1);
return this->recognize(img, regionsOfInterest);
}
AlprResults AlprImpl::recognize( unsigned char* pixelData, int bytesPerPixel, int imgWidth, int imgHeight, std::vector<AlprRegionOfInterest> regionsOfInterest)
{