Added warning if pattern is invalid

This commit is contained in:
Matt Hill
2015-03-17 23:11:56 -04:00
parent c1243e8dc1
commit 147470cf50

View File

@@ -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);