mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:03:52 +08:00
Resolves issue #28 - Add output when no plate is found
This commit is contained in:
@@ -222,7 +222,10 @@ int main( int argc, const char** argv )
|
||||
{
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user