Further simplified these examples.

pull/2/head
Davis King 13 years ago
parent 7b5cedcd7b
commit 3a4f1c0e4d

@ -278,11 +278,7 @@ int main()
// Put the image and detections into the window.
win.clear_overlay();
win.set_image(images[i]);
for (unsigned long j = 0; j < rects.size(); ++j)
{
// Add each detection as a red box.
win.add_overlay(rects[j], rgb_pixel(255,0,0));
}
win.add_overlay(rects, rgb_pixel(255,0,0));
cout << "Hit enter to see the next image.";
cin.get();

@ -213,11 +213,7 @@ int main()
// Put the image and detections into the window.
win.clear_overlay();
win.set_image(images[i]);
for (unsigned long j = 0; j < rects.size(); ++j)
{
// Add each detection as a red box.
win.add_overlay(rects[j], rgb_pixel(255,0,0));
}
win.add_overlay(rects, rgb_pixel(255,0,0));
cout << "Hit enter to see the next image.";
cin.get();

Loading…
Cancel
Save