diff --git a/src/main.cpp b/src/main.cpp index 15862cb..096d9c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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