From eb7dba41a3273f12ba9cd7eafc63858b9587684d Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 1 Aug 2014 18:23:54 -0400 Subject: [PATCH] Resolves issue #28 - Add output when no plate is found --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 5541d5b..8384b8d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 {