mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 19:52:50 +08:00
Fixes issue #48 Invalid json output
This commit is contained in:
@@ -226,7 +226,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
bool plate_found = detectandshow( &alpr, frame, "", outputJson);
|
||||
|
||||
if (!plate_found)
|
||||
if (!plate_found && !outputJson)
|
||||
std::cout << "No license plates found." << std::endl;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user