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
cf0d5a4c
Commit
cf0d5a4c
authored
Mar 12, 2015
by
Jack Culpepper
Browse files
simplify
parent
a12e1e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
tools/python/src/simple_object_detector_py.h
tools/python/src/simple_object_detector_py.h
+2
-10
No files found.
tools/python/src/simple_object_detector_py.h
View file @
cf0d5a4c
...
...
@@ -155,20 +155,12 @@ namespace dlib
std
::
vector
<
dlib
::
rectangle
>
run_detector1
(
boost
::
python
::
object
img
,
const
unsigned
int
upsampling_amount_
)
{
std
::
vector
<
double
>
detection_confidences
;
std
::
vector
<
double
>
weight_indices
;
return
run_detector_with_upscale1
(
detector
,
img
,
upsampling_amount_
,
detection_confidences
,
weight_indices
);
return
run_detector_with_upscale2
(
detector
,
img
,
upsampling_amount_
);
}
std
::
vector
<
dlib
::
rectangle
>
run_detector2
(
boost
::
python
::
object
img
)
{
std
::
vector
<
double
>
detection_confidences
;
std
::
vector
<
double
>
weight_indices
;
return
run_detector_with_upscale1
(
detector
,
img
,
upsampling_amount
,
detection_confidences
,
weight_indices
);
return
run_detector_with_upscale2
(
detector
,
img
,
upsampling_amount
);
}
...
...
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