Commit 0438ae5d authored by Davis King's avatar Davis King

Added an overload of render_face_detections() that takes just a single

full_object_detection.
parent 7b2839a9
......@@ -58,6 +58,20 @@ namespace dlib
return lines;
}
// ----------------------------------------------------------------------------------------
inline std::vector<image_window::overlay_line> render_face_detections (
const full_object_detection& det,
const rgb_pixel color = rgb_pixel(0,255,0)
)
{
std::vector<full_object_detection> dets;
dets.push_back(det);
return render_face_detections(dets);
}
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_RENDER_FACE_DeTECTIONS_H_
......
......@@ -9,6 +9,8 @@
namespace dlib
{
// ----------------------------------------------------------------------------------------
inline std::vector<image_window::overlay_line> render_face_detections (
const std::vector<full_object_detection>& dets,
const rgb_pixel color = rgb_pixel(0,255,0)
......@@ -26,6 +28,23 @@ namespace dlib
necessary to render a face detection from dets.
!*/
// ----------------------------------------------------------------------------------------
inline std::vector<image_window::overlay_line> render_face_detections (
const full_object_detection& det,
const rgb_pixel color = rgb_pixel(0,255,0)
);
/*!
requires
- det.num_parts() == 68
ensures
- This function is identical to the above render_face_detections() routine
except that it takes just a single full_object_detection instead of a
std::vector of them.
!*/
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_RENDER_FACE_DeTECTIONS_ABSTRACT_H_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment