mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 01:16:50 +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);
|
||||
|
||||
CharacterAnalysis regionizer(&pipeline_data);
|
||||
|
||||
|
||||
if (pipeline_data.plate_inverted)
|
||||
bitwise_not(pipeline_data.crop_gray, pipeline_data.crop_gray);
|
||||
|
||||
CharacterSegmenter charSegmenter(&pipeline_data);
|
||||
|
||||
//ocr.cleanCharRegions(charSegmenter.thresholds, charSegmenter.characters);
|
||||
|
Reference in New Issue
Block a user