Added line adjustment for text lines. Lines would be cut short when the plate crop got transformed

This commit is contained in:
Matt Hill
2015-05-30 10:09:59 -04:00
parent a93b5153d1
commit c18d76bbdc
2 changed files with 35 additions and 10 deletions

View File

@@ -29,8 +29,8 @@ namespace alpr
class TextLine {
public:
TextLine(std::vector<cv::Point> textArea, std::vector<cv::Point> linePolygon);
TextLine(std::vector<cv::Point2f> textArea, std::vector<cv::Point2f> linePolygon);
TextLine(std::vector<cv::Point> textArea, std::vector<cv::Point> linePolygon, cv::Size imgSize);
TextLine(std::vector<cv::Point2f> textArea, std::vector<cv::Point2f> linePolygon, cv::Size imgSize);
virtual ~TextLine();
@@ -50,7 +50,7 @@ namespace alpr
cv::Mat drawDebugImage(cv::Mat baseImage);
private:
void initialize(std::vector<cv::Point> textArea, std::vector<cv::Point> linePolygon);
void initialize(std::vector<cv::Point> textArea, std::vector<cv::Point> linePolygon, cv::Size imgSize);
};
}