Resolves issue #28 - Add output when no plate is found

This commit is contained in:
Matt Hill
2014-08-01 18:23:54 -04:00
parent 634c74f10d
commit eb7dba41a3

View File

@@ -222,7 +222,10 @@ int main( int argc, const char** argv )
{ {
frame = cv::imread( filename ); frame = cv::imread( filename );
detectandshow( &alpr, frame, "", outputJson); bool plate_found = detectandshow( &alpr, frame, "", outputJson);
if (!plate_found)
std::cout << "No license plates found." << std::endl;
} }
else else
{ {