6 #include <dlib/image_processing/full_object_detection.h> 7 #include <dlib/gui_widgets.h> 19 dlib::full_object_detection
const &
face,
20 dlib::rgb_pixel
const &
color 23 typedef dlib::image_window::overlay_line overlay_line;
24 std::vector< overlay_line > lines;
28 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
32 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
38 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
42 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
46 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
51 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
56 lines.push_back( overlay_line( face.part(
i ), face.part(
i + 1 ),
color ) );
std::vector< dlib::image_window::overlay_line > render_face(dlib::full_object_detection const &face, dlib::rgb_pixel const &color)
std::array< float, 3 > color
GLenum GLuint GLint GLenum face