mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 04:36:50 +08:00
Added warning if pattern is invalid
This commit is contained in:
@@ -156,7 +156,11 @@ namespace alpr
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (ocr->postProcessor.regionIsValid(plateResult.region) == false)
|
||||
{
|
||||
std::cerr << "Invalid pattern provided: " << plateResult.region << std::endl;
|
||||
std::cerr << "Valid patterns are located in the " << config->country << ".patterns file" << std::endl;
|
||||
}
|
||||
|
||||
ocr->performOCR(&pipeline_data);
|
||||
ocr->postProcessor.analyze(plateResult.region, topN);
|
||||
|
Reference in New Issue
Block a user