Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0438ae5d
Commit
0438ae5d
authored
Sep 03, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an overload of render_face_detections() that takes just a single
full_object_detection.
parent
7b2839a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
render_face_detections.h
dlib/image_processing/render_face_detections.h
+14
-0
render_face_detections_abstract.h
dlib/image_processing/render_face_detections_abstract.h
+19
-0
No files found.
dlib/image_processing/render_face_detections.h
View file @
0438ae5d
...
...
@@ -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_
...
...
dlib/image_processing/render_face_detections_abstract.h
View file @
0438ae5d
...
...
@@ -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_
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment