Fixes issue #48 Invalid json output

This commit is contained in:
Matt Hill
2014-08-30 11:36:18 -04:00
parent c4e09cc0f8
commit 3b2cd74306

View File

@@ -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