MCPcopy Create free account
hub / github.com/davisking/dlib / add_overlay_parts

Function add_overlay_parts

tools/python/src/gui.cpp:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void 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
84void add_overlay_line (
85 image_window& win,

Callers 1

add_overlay_pylistFunction · 0.85

Calls 5

render_face_detectionsFunction · 0.85
emplace_backMethod · 0.80
num_partsMethod · 0.45
add_overlayMethod · 0.45
get_rectMethod · 0.45

Tested by

no test coverage detected