mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 07:20:50 +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 );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user