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
5000b9f0
Commit
5000b9f0
authored
Mar 07, 2014
by
Davis King
Browse files
Added more comments about how to pack multiple detectors into a single
object_detector.
parent
b0795c96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
examples/fhog_object_detector_ex.cpp
examples/fhog_object_detector_ex.cpp
+9
-1
No files found.
examples/fhog_object_detector_ex.cpp
View file @
5000b9f0
...
...
@@ -239,7 +239,15 @@ int main(int argc, char** argv)
// into a single object_detector must have been trained with the same settings for
// the sliding window size and the scanner padding option (see the scan_fhog_pyramid
// documentation for a discussion of padding). This is because they all share the
// same scanner object inside the object_detector.
// same scanner object inside the object_detector.
//
// To pack multiple detectors into a single object_detector you use code like this:
std
::
vector
<
object_detector
<
image_scanner_type
>
>
my_detectors
;
// Add your component detectors into my_detectors.
my_detectors
.
push_back
(
detector
);
// Then just construct an object_detector from the set of detectors.
object_detector
<
image_scanner_type
>
this_object_has_multiple_detectors
(
my_detectors
);
//
//
// Finally, you can add a nuclear norm regularizer to the SVM trainer. Doing has
// two benefits. First, it can cause the learned HOG detector to be composed of
...
...
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