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

asked 2013-05-08 07:05:10 -0500

neerat.sharma gravatar image

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.

edit retag flag offensive close merge delete

Comments

PLS COMMENT THAT ANY PARAMETER ON WHICH I WILL NOT ABLE TO CONSIDER

neerat.sharma gravatar imageneerat.sharma ( 2013-05-11 01:55:21 -0500 )edit

Could you attach one of your positive images?

vinayverma gravatar imagevinayverma ( 2013-06-17 03:07:48 -0500 )edit