-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update train_HOG.cpp #9541
update train_HOG.cpp #9541
Conversation
samples/cpp/train_HOG.cpp
Outdated
vector< Mat >::const_iterator img = img_lst.begin(); | ||
vector< Mat >::const_iterator end = img_lst.end(); | ||
for( ; img != end ; ++img ) | ||
if (detector_width*detector_height) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use detector_width && detector_height
to avoid warnings from the latest gcc.
samples/cpp/train_HOG.cpp
Outdated
int test_trained_detector( String obj_det_filename, String test_dir, String videofilename ) | ||
{ | ||
cout << "Testing trained detector..." << endl; | ||
vector< Rect > locations; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable seems to be unused.
samples/cpp/train_HOG.cpp
Outdated
clog << "Testing trained detector on negative images.this may take a few minutes..."; | ||
HOGDescriptor my_hog; | ||
my_hog.winSize = pos_image_size; | ||
vector< Rect > locations; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable seems to be unused.
514e513
to
18d1d88
Compare
18d1d88
to
f6daacc
Compare
👍 |
This pullrequest changes
updates train_HOG.cpp
it is almost ready for reviewing
trying to test it on different cases
to test trained detector use command line like below:
cpp-example-train_HOG -t -fn=my_detector.yml -tv=../data/vtest.avi
you can use my_detector.yml which
created using cmd line below
cpp-example-train_HOG -d -dw=64 -dh=128 -pd=/INRIAPerson/96X160H96/Train/pos -nd=/INRIAPerson/neg -tv=../data/vtest.avi