Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8f6b76e7
Commit
8f6b76e7
authored
Feb 23, 2014
by
Davis King
Browse files
Gave the image_window the ability to display fhog object detectors.
parent
ddc44067
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
tools/python/src/object_detection.cpp
tools/python/src/object_detection.cpp
+20
-0
No files found.
tools/python/src/object_detection.cpp
View file @
8f6b76e7
...
...
@@ -155,6 +155,22 @@ void deserialize (simple_object_detector_py& item, std::istream& in)
// ----------------------------------------------------------------------------------------
void
image_window_set_image_fhog_detector
(
image_window
&
win
,
const
frontal_face_detector
&
det
)
{
win
.
set_image
(
draw_fhog
(
det
));
}
void
image_window_set_image_simple_detector
(
image_window
&
win
,
const
simple_object_detector_py
&
det
)
{
win
.
set_image
(
draw_fhog
(
det
.
detector
));
}
void
image_window_set_image
(
image_window
&
win
,
object
img
...
...
@@ -358,6 +374,10 @@ ensures \n\
"Create an image window that displays the given numpy image and also has the given title."
)
.
def
(
"set_image"
,
image_window_set_image
,
arg
(
"image"
),
"Make the image_window display the given image."
)
.
def
(
"set_image"
,
image_window_set_image_fhog_detector
,
arg
(
"detector"
),
"Make the image_window display the given HOG detector's filters."
)
.
def
(
"set_image"
,
image_window_set_image_simple_detector
,
arg
(
"detector"
),
"Make the image_window display the given HOG detector's filters."
)
.
def
(
"set_title"
,
(
set_title_funct
)
&
type
::
set_title
,
arg
(
"title"
),
"Set the title of the window to the given value."
)
.
def
(
"clear_overlay"
,
&
type
::
clear_overlay
,
"Remove all overlays from the image_window."
)
...
...
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