mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 05:00:54 +08:00
Moved public variable to private
This commit is contained in:
@@ -34,7 +34,6 @@ class CharacterRegion
|
|||||||
CharacterRegion(PipelineData* pipeline_data);
|
CharacterRegion(PipelineData* pipeline_data);
|
||||||
virtual ~CharacterRegion();
|
virtual ~CharacterRegion();
|
||||||
|
|
||||||
CharacterAnalysis *charAnalysis;
|
|
||||||
|
|
||||||
int confidence;
|
int confidence;
|
||||||
|
|
||||||
@@ -52,6 +51,7 @@ class CharacterRegion
|
|||||||
Config* config;
|
Config* config;
|
||||||
bool debug;
|
bool debug;
|
||||||
|
|
||||||
|
CharacterAnalysis *charAnalysis;
|
||||||
cv::Mat findOuterBoxMask(std::vector<cv::Mat> thresholds, std::vector<std::vector<std::vector<cv::Point> > > allContours, std::vector<std::vector<cv::Vec4i> > allHierarchy);
|
cv::Mat findOuterBoxMask(std::vector<cv::Mat> thresholds, std::vector<std::vector<std::vector<cv::Point> > > allContours, std::vector<std::vector<cv::Vec4i> > allHierarchy);
|
||||||
|
|
||||||
std::vector<bool> filter(cv::Mat img, std::vector<std::vector<cv::Point> > contours, std::vector<cv::Vec4i> hierarchy);
|
std::vector<bool> filter(cv::Mat img, std::vector<std::vector<cv::Point> > contours, std::vector<cv::Vec4i> hierarchy);
|
||||||
|
@@ -67,7 +67,7 @@ void PlateLines::processImage(Mat inputImage, CharacterRegion* charRegion, float
|
|||||||
|
|
||||||
// Create a mask that is dilated based on the detected characters
|
// Create a mask that is dilated based on the detected characters
|
||||||
vector<vector<Point> > polygons;
|
vector<vector<Point> > polygons;
|
||||||
polygons.push_back(charRegion->charAnalysis->charArea);
|
polygons.push_back(charRegion->getCharArea());
|
||||||
|
|
||||||
Mat mask = Mat::zeros(inputImage.size(), CV_8U);
|
Mat mask = Mat::zeros(inputImage.size(), CV_8U);
|
||||||
fillPoly(mask, polygons, Scalar(255,255,255));
|
fillPoly(mask, polygons, Scalar(255,255,255));
|
||||||
|
Reference in New Issue
Block a user