mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Further simplified these examples.
This commit is contained in:
parent
7b5cedcd7b
commit
3a4f1c0e4d
@ -278,11 +278,7 @@ int main()
|
|||||||
// Put the image and detections into the window.
|
// Put the image and detections into the window.
|
||||||
win.clear_overlay();
|
win.clear_overlay();
|
||||||
win.set_image(images[i]);
|
win.set_image(images[i]);
|
||||||
for (unsigned long j = 0; j < rects.size(); ++j)
|
win.add_overlay(rects, rgb_pixel(255,0,0));
|
||||||
{
|
|
||||||
// Add each detection as a red box.
|
|
||||||
win.add_overlay(rects[j], rgb_pixel(255,0,0));
|
|
||||||
}
|
|
||||||
|
|
||||||
cout << "Hit enter to see the next image.";
|
cout << "Hit enter to see the next image.";
|
||||||
cin.get();
|
cin.get();
|
||||||
|
@ -213,11 +213,7 @@ int main()
|
|||||||
// Put the image and detections into the window.
|
// Put the image and detections into the window.
|
||||||
win.clear_overlay();
|
win.clear_overlay();
|
||||||
win.set_image(images[i]);
|
win.set_image(images[i]);
|
||||||
for (unsigned long j = 0; j < rects.size(); ++j)
|
win.add_overlay(rects, rgb_pixel(255,0,0));
|
||||||
{
|
|
||||||
// Add each detection as a red box.
|
|
||||||
win.add_overlay(rects[j], rgb_pixel(255,0,0));
|
|
||||||
}
|
|
||||||
|
|
||||||
cout << "Hit enter to see the next image.";
|
cout << "Hit enter to see the next image.";
|
||||||
cin.get();
|
cin.get();
|
||||||
|
Loading…
Reference in New Issue
Block a user