mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 04:26:52 +08:00
Fixed pattern error message when no pattern provided
This commit is contained in:
@@ -156,7 +156,7 @@ namespace alpr
|
||||
}
|
||||
}
|
||||
|
||||
if (ocr->postProcessor.regionIsValid(plateResult.region) == false)
|
||||
if (plateResult.region.length() > 0 && 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;
|
||||
|
Reference in New Issue
Block a user