mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 04:26:52 +08:00
Handle inverted plates in classifychars utility
This commit is contained in:
@@ -144,7 +144,10 @@ int main( int argc, const char** argv )
|
|||||||
string statecodestr(statecode);
|
string statecodestr(statecode);
|
||||||
|
|
||||||
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