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
11ae48d0
Commit
11ae48d0
authored
Feb 23, 2014
by
Davis King
Browse files
fixed grammar
parent
6d286b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python_examples/train_object_detector.py
python_examples/train_object_detector.py
+2
-2
No files found.
python_examples/train_object_detector.py
View file @
11ae48d0
...
@@ -32,7 +32,7 @@ if (len(sys.argv) != 2):
...
@@ -32,7 +32,7 @@ if (len(sys.argv) != 2):
faces_folder
=
sys
.
argv
[
1
]
faces_folder
=
sys
.
argv
[
1
]
# Now lets do the training. The train_simple_object_detector() function has a
# Now let
'
s do the training. The train_simple_object_detector() function has a
# bunch of options, all of which come with reasonable default values. The next
# bunch of options, all of which come with reasonable default values. The next
# few lines goes over some of these options.
# few lines goes over some of these options.
options
=
dlib
.
simple_object_detector_training_options
()
options
=
dlib
.
simple_object_detector_training_options
()
...
@@ -82,7 +82,7 @@ detector = dlib.simple_object_detector("detector.svm")
...
@@ -82,7 +82,7 @@ detector = dlib.simple_object_detector("detector.svm")
win_det
=
dlib
.
image_window
()
win_det
=
dlib
.
image_window
()
win_det
.
set_image
(
detector
)
win_det
.
set_image
(
detector
)
# Now lets run the detector over the images in the faces folder and display the
# Now let
'
s run the detector over the images in the faces folder and display the
# results.
# results.
print
"
\n
Showing detections on the images in the faces folder..."
print
"
\n
Showing detections on the images in the faces folder..."
win
=
dlib
.
image_window
()
win
=
dlib
.
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