mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 07:16:56 +08:00
Handle inverted plates in classifychars utility
This commit is contained in:
@@ -145,6 +145,9 @@ int main( int argc, const char** argv )
|
|||||||
|
|
||||||
CharacterAnalysis regionizer(&pipeline_data);
|
CharacterAnalysis regionizer(&pipeline_data);
|
||||||
|
|
||||||
|
if (pipeline_data.plate_inverted)
|
||||||
|
bitwise_not(pipeline_data.crop_gray, pipeline_data.crop_gray);
|
||||||
|
|
||||||
CharacterSegmenter charSegmenter(&pipeline_data);
|
CharacterSegmenter charSegmenter(&pipeline_data);
|
||||||
|
|
||||||
//ocr.cleanCharRegions(charSegmenter.thresholds, charSegmenter.characters);
|
//ocr.cleanCharRegions(charSegmenter.thresholds, charSegmenter.characters);
|
||||||
|
Reference in New Issue
Block a user