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
2668d1ba
Commit
2668d1ba
authored
Mar 21, 2012
by
Davis King
Browse files
updated due to name change
parent
f477c842
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/train_object_detector.cpp
examples/train_object_detector.cpp
+3
-3
No files found.
examples/train_object_detector.cpp
View file @
2668d1ba
...
...
@@ -46,11 +46,11 @@
and observing that the boxes are present.
Returning to the present example program, we can now issue the command
./object_detector
_ex_2
-tv mydataset.xml
./
train_
object_detector -tv mydataset.xml
which will train an object detection model based on our labeled data. The model
will be saved to the file object_detector.svm. Once this has finished we can use
the object detector to locate objects in new images with a command like
./object_detector
_ex_2
some_image.png
./
train_
object_detector some_image.png
This command will display some_image.png in a window and any detected objects will
be indicated by a red box.
...
...
@@ -126,7 +126,7 @@ int main(int argc, char** argv)
if
(
parser
.
option
(
"h"
))
{
cout
<<
"Usage: object_detector
_ex_2
[options] <image dataset file|image file>
\n
"
;
cout
<<
"Usage:
train_
object_detector [options] <image dataset file|image file>
\n
"
;
parser
.
print_options
(
cout
);
cout
<<
endl
;
...
...
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