// Copyright (C) 2014 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_RENDER_FACE_DeTECTIONS_H_ #define DLIB_RENDER_FACE_DeTECTIONS_H_ #include "full_object_detection.h" #include "../gui_widgets.h" #include "render_face_detections_abstract.h" #include namespace dlib { inline std::vector render_face_detections ( const std::vector& dets, const rgb_pixel color = rgb_pixel(0,255,0) ) { std::vector lines; for (unsigned long i = 0; i < dets.size(); ++i) { DLIB_CASSERT(dets[i].num_parts() == 68 || dets[i].num_parts() == 5, "\t std::vector render_face_detections()" << "\n\t You have to give either a 5 point or 68 point face landmarking output to this function. " << "\n\t dets["< render_face_detections ( const full_object_detection& det, const rgb_pixel color = rgb_pixel(0,255,0) ) { std::vector dets; dets.push_back(det); return render_face_detections(dets, color); } // ---------------------------------------------------------------------------------------- } #endif // DLIB_RENDER_FACE_DeTECTIONS_H_