Fixes issue #183

This commit is contained in:
Matt Hill
2015-08-15 11:37:03 -04:00
parent 9c56167d06
commit 1ea207ddea

View File

@@ -328,7 +328,7 @@ bool detectandshow( Alpr* alpr, cv::Mat frame, std::string region, bool writeJso
for (int k = 0; k < results.plates[i].topNPlates.size(); k++)
{
std::cout << " - " << results.plates[i].topNPlates[k].characters << "\t confidence: " << results.plates[i].topNPlates[k].overall_confidence;
if (results.plates[i].regionConfidence > 0)
if (templatePattern.size() > 0 || results.plates[i].regionConfidence > 0)
std::cout << "\t pattern_match: " << results.plates[i].topNPlates[k].matches_template;
std::cout << std::endl;