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
cf66f6b1
Commit
cf66f6b1
authored
Mar 01, 2017
by
Davis King
Browse files
clarified documentation
parent
5ea4d11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
tools/python/src/object_detection.cpp
tools/python/src/object_detection.cpp
+3
-9
No files found.
tools/python/src/object_detection.cpp
View file @
cf66f6b1
...
...
@@ -325,9 +325,7 @@ ensures \n\
- This function runs the object detector on the input image and returns
\n
\
a list of detections.
\n
\
- Upsamples the image upsample_num_times before running the basic
\n
\
detector. If you don't know how many times you want to upsample then
\n
\
don't provide a value for upsample_num_times and an appropriate
\n
\
default will be used."
)
detector."
)
.
def
(
"run"
,
run_rect_detector
,
(
arg
(
"image"
),
arg
(
"upsample_num_times"
)
=
0
,
arg
(
"adjust_threshold"
)
=
0.0
),
"requires
\n
\
- image is a numpy ndarray containing either an 8bit grayscale or RGB
\n
\
...
...
@@ -337,9 +335,7 @@ ensures \n\
- This function runs the object detector on the input image and returns
\n
\
a tuple of (list of detections, list of scores, list of weight_indices).
\n
\
- Upsamples the image upsample_num_times before running the basic
\n
\
detector. If you don't know how many times you want to upsample then
\n
\
don't provide a value for upsample_num_times and an appropriate
\n
\
default will be used."
)
detector."
)
.
def
(
"run_multiple"
,
run_multiple_rect_detectors
,(
arg
(
"detectors"
),
arg
(
"image"
),
arg
(
"upsample_num_times"
)
=
0
,
arg
(
"adjust_threshold"
)
=
0.0
),
"requires
\n
\
- detectors is a list of detectors.
\n
\
...
...
@@ -350,9 +346,7 @@ ensures \n\
- This function runs the list of object detectors at once on the input image and returns
\n
\
a tuple of (list of detections, list of scores, list of weight_indices).
\n
\
- Upsamples the image upsample_num_times before running the basic
\n
\
detector. If you don't know how many times you want to upsample then
\n
\
don't provide a value for upsample_num_times and an appropriate
\n
\
default will be used."
)
detector."
)
.
staticmethod
(
"run_multiple"
)
.
def
(
"save"
,
save_simple_object_detector
,
(
arg
(
"detector_output_filename"
)),
"Save a simple_object_detector to the provided path."
)
.
def_pickle
(
serialize_pickle
<
type
>
());
...
...
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