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
fe1c2873
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "0f770ac9387e755050805df4ecac6c78218e033c"
Commit
fe1c2873
authored
Mar 31, 2018
by
Arian Giles García
Committed by
Davis E. King
Mar 31, 2018
Browse files
Remove unnecessary semicolon (#1223)
parent
0db8713a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python_examples/train_object_detector.py
python_examples/train_object_detector.py
+1
-1
No files found.
python_examples/train_object_detector.py
View file @
fe1c2873
...
...
@@ -140,7 +140,7 @@ detector2 = dlib.fhog_object_detector("detector.svm")
# make a list of all the detectors you wan to run. Here we have 2, but you
# could have any number.
detectors
=
[
detector1
,
detector2
]
image
=
io
.
imread
(
faces_folder
+
'/2008_002506.jpg'
)
;
image
=
io
.
imread
(
faces_folder
+
'/2008_002506.jpg'
)
[
boxes
,
confidences
,
detector_idxs
]
=
dlib
.
fhog_object_detector
.
run_multiple
(
detectors
,
image
,
upsample_num_times
=
1
,
adjust_threshold
=
0.0
)
for
i
in
range
(
len
(
boxes
)):
print
(
"detector {} found box {} with confidence {}."
.
format
(
detector_idxs
[
i
],
boxes
[
i
],
confidences
[
i
]))
...
...
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