mirror of https://github.com/davisking/dlib.git
Added an overload of render_face_detections() that takes just a single
full_object_detection.
This commit is contained in:
parent
7b2839a9d9
commit
0438ae5d03
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue