Using a perspective transformation on CharAnalysis instead of redoing the whole process during segmentation. Much faster and seems slightly more accurate -- will need to benchmark.

This commit is contained in:
Matt Hill
2014-10-19 19:07:00 -04:00
parent d2bfebe443
commit a691d8a6fe
4 changed files with 102 additions and 22 deletions

View File

@@ -27,8 +27,10 @@
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);
virtual ~TextLine();
std::vector<cv::Point> linePolygon;
std::vector<cv::Point> textArea;
LineSegment topLine;
@@ -45,6 +47,7 @@ public:
cv::Mat drawDebugImage(cv::Mat baseImage);
private:
void initialize(std::vector<cv::Point> textArea, std::vector<cv::Point> linePolygon);
};
#endif /* OPENALPR_TEXTLINE_H */