| 62 | } |
| 63 | |
| 64 | void add_overlay_parts ( |
| 65 | image_window& win, |
| 66 | const full_object_detection& detection, |
| 67 | const rgb_pixel& color |
| 68 | ) |
| 69 | { |
| 70 | if (detection.num_parts() == 5 || detection.num_parts() == 68) |
| 71 | { |
| 72 | win.add_overlay(render_face_detections(detection, color)); |
| 73 | } |
| 74 | else |
| 75 | { |
| 76 | std::vector<image_display::overlay_circle> tmp; |
| 77 | for (unsigned long i = 0; i < detection.num_parts(); ++i) |
| 78 | tmp.emplace_back(detection.part(i), 0.5, color, std::to_string(i)); |
| 79 | win.add_overlay(tmp); |
| 80 | win.add_overlay(detection.get_rect()); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | void add_overlay_line ( |
| 85 | image_window& win, |
no test coverage detected