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
62f4f823
Commit
62f4f823
authored
Mar 20, 2012
by
Davis King
Browse files
Made this example use the verbose version of setup_grid_detection_templates().
parent
ae00161f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
examples/object_detector_ex.cpp
examples/object_detector_ex.cpp
+5
-5
No files found.
examples/object_detector_ex.cpp
View file @
62f4f823
...
...
@@ -165,11 +165,11 @@ int main()
// we add detection templates which are capable of matching all the output boxes we want to learn.
// For example, if object_locations contained a rectangle with a height to width ratio of 10 but
// we only added square detection templates then it would be impossible to detect this non-square
// rectangle. The setup_grid_detection_templates() routine will take care of this for us by
looking
// at the contents of object_locations and automatically picking an appropriate set. Also,
the final
// arguments indicate that we want our detection templates to have 4 enveloping rectangles
laid out
// in a 2x2 regular grid inside each sliding window.
setup_grid_detection_templates
(
scanner
,
object_locations
,
2
,
2
);
// rectangle. The setup_grid_detection_templates
_verbose
() routine will take care of this for us by
//
looking
at the contents of object_locations and automatically picking an appropriate set. Also,
//
the final
arguments indicate that we want our detection templates to have 4 enveloping rectangles
//
laid out
in a 2x2 regular grid inside each sliding window.
setup_grid_detection_templates
_verbose
(
scanner
,
object_locations
,
2
,
2
);
// Now that we have defined the kind of sliding window classifier system we want and stored
...
...
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