Automatically skip images with no detections

This commit is contained in:
Juha Reunanen 2019-10-28 17:34:08 +02:00
parent 773d3dd81d
commit 5ce0522869
1 changed files with 5 additions and 2 deletions

View File

@ -127,8 +127,11 @@ int main(int argc, char** argv) try
// Show the input image on the left, and the predicted RGB labels on the right.
win.set_image(join_rows(input_image, rgb_label_image));
cout << file.name() << " - hit enter to process the next image";
cin.get();
if (!instances.empty())
{
cout << file.name() << " - hit enter to process the next image";
cin.get();
}
}
}
catch(std::exception& e)