Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Haar Training not going smoothly. Please suggest what to Do?

MY positive samples are 50 with 33X40 i.e face image passport size.All positive image is my ROI. so my Descriptive file looks like {pos\1.png 1 0 0 33 40 } & all 50 are same. Negative samples are 500.

My first step simple i create vec file from positive descriptive file. First command :- { opencv_createsamples.exe -info pos.dat -vec samples.vec -w 33 -h 40 } And my output is Samples.vec is Vector file of positive samples.

Then my Second step to run haartraining is {opencv_haartraining.exe -data haarcascade -vec samples.vec -bg negatives.dat -nstages 20 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -npos 5/50 -nneg 50/500 -w 33 -h 40 -nonsym -mem 4000 -mode ALL} --Note -npos i use one time 5 and one time 50 same in case of -nneg 50 and 500 also. for running but with this command it runs upto 3 satges then hang for many days even weeks.

kindly help me where i am wrong?I am working on training from jan but same problems i change machine now using i7,12gb ram, i siwtch on ubantu xp all but same problems kindally tell me where i am wrong. My all work stops only of this? I also go by this tuto :- http://note.sonots.com/SciSoftware/haartraining.html But same problems. i change open cv all types, os nd myy my best done know.