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
fe1c2873
Commit
fe1c2873
authored
7 years ago
by
Arian Giles García
Committed by
Davis E. King
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary semicolon (#1223)
parent
0db8713a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
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
]))
...
...
This diff is collapsed.
Click to expand it.
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