mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 06:30:58 +08:00
Removing prewarp for detection scan area. Already handled by calculating the area on every resize
This commit is contained in:
@@ -58,20 +58,8 @@ namespace alpr
|
||||
// Provided a region of interest, truncate it if the mask cuts off a portion of it.
|
||||
// No reason to analyze extra content
|
||||
cv::Rect DetectorMask::getRoiInsideMask(cv::Rect roi) {
|
||||
|
||||
if (prewarp->valid)
|
||||
{
|
||||
cv::Rect warped_scan_area = prewarp->projectRect(scan_area, resized_mask.cols, resized_mask.rows, false);
|
||||
|
||||
Rect roi_intersection = roi & warped_scan_area;
|
||||
return roi_intersection;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Rect roi_intersection = roi & scan_area;
|
||||
return roi_intersection;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user