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
8f6b76e7
Commit
8f6b76e7
authored
Feb 23, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gave the image_window the ability to display fhog object detectors.
parent
ddc44067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
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)
...
@@ -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
(
void
image_window_set_image
(
image_window
&
win
,
image_window
&
win
,
object
img
object
img
...
@@ -358,6 +374,10 @@ ensures \n\
...
@@ -358,6 +374,10 @@ ensures \n\
"Create an image window that displays the given numpy image and also has the given title."
)
"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"
),
.
def
(
"set_image"
,
image_window_set_image
,
arg
(
"image"
),
"Make the image_window display the given 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"
),
.
def
(
"set_title"
,
(
set_title_funct
)
&
type
::
set_title
,
arg
(
"title"
),
"Set the title of the window to the given value."
)
"Set the title of the window to the given value."
)
.
def
(
"clear_overlay"
,
&
type
::
clear_overlay
,
"Remove all overlays from the image_window."
)
.
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