Skip to content
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

Merged
merged 1 commit into from
Sep 13, 2017
Merged

update train_HOG.cpp #9541

merged 1 commit into from
Sep 13, 2017

Conversation

sturkmen72
Copy link
Contributor

@sturkmen72 sturkmen72 commented Sep 2, 2017

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

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)
Copy link
Contributor

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.

int test_trained_detector( String obj_det_filename, String test_dir, String videofilename )
{
cout << "Testing trained detector..." << endl;
vector< Rect > locations;
Copy link
Contributor

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.

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;
Copy link
Contributor

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.

@sturkmen72 sturkmen72 force-pushed the patch-15 branch 2 times, most recently from 514e513 to 18d1d88 Compare September 12, 2017 17:03
@sovrasov
Copy link
Contributor

👍

@vpisarev vpisarev assigned vpisarev and sovrasov and unassigned vpisarev Sep 13, 2017
@opencv-pushbot opencv-pushbot merged commit f6daacc into opencv:master Sep 13, 2017
@sturkmen72 sturkmen72 deleted the patch-15 branch September 13, 2017 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants