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
36d5677a
Commit
36d5677a
authored
Aug 06, 2013
by
Davis King
Browse files
Updated example program to work best with the new code
parent
4b29dec6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
examples/object_detector_ex.cpp
examples/object_detector_ex.cpp
+6
-1
No files found.
examples/object_detector_ex.cpp
View file @
36d5677a
...
...
@@ -173,9 +173,14 @@ int main()
// The hashed_feature_image in the scanner needs to be supplied with a hash function capable
// of hashing the outputs of the hog_image. Calling this function will set it up for us. The
// 10 here indicates that it will hash
hog
vectors into the range [0, pow(2,10)). Therefore,
// 10 here indicates that it will hash
HOG
vectors into the range [0, pow(2,10)). Therefore,
// the feature vectors output by the hashed_feature_image will have dimension pow(2,10).
setup_hashed_features
(
scanner
,
images
,
10
);
// We should also tell the scanner to use the uniform feature weighting scheme
// since it works best on the data in this example. If you don't call this
// function then it will use a slightly different weighting scheme which can give
// improved results on many normal image types.
use_uniform_feature_weights
(
scanner
);
// We also need to setup the detection templates the scanner will use. It is important that
// we add detection templates which are capable of matching all the output boxes we want to learn.
...
...
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