mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:26:53 +08:00
Moved public variable to private
This commit is contained in:
@@ -34,7 +34,6 @@ class CharacterRegion
|
||||
CharacterRegion(PipelineData* pipeline_data);
|
||||
virtual ~CharacterRegion();
|
||||
|
||||
CharacterAnalysis *charAnalysis;
|
||||
|
||||
int confidence;
|
||||
|
||||
@@ -52,6 +51,7 @@ class CharacterRegion
|
||||
Config* config;
|
||||
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);
|
||||
|
||||
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
|
||||
vector<vector<Point> > polygons;
|
||||
polygons.push_back(charRegion->charAnalysis->charArea);
|
||||
polygons.push_back(charRegion->getCharArea());
|
||||
|
||||
Mat mask = Mat::zeros(inputImage.size(), CV_8U);
|
||||
fillPoly(mask, polygons, Scalar(255,255,255));
|
||||
|
Reference in New Issue
Block a user