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
62f4f823
Commit
62f4f823
authored
Mar 20, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made this example use the verbose version of setup_grid_detection_templates().
parent
ae00161f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
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