I try to do my own Haar classifier to use it on a M7 Openmv camera.
What i understood is :
- to use image.HaarCascade(“haar_file_on_sdcard”) to load the cascade.xml specific for openmv.
- then i use find_features to get the rectangle of my object in the image
To get this cascade.xml specific for openmv
- i use cascade_convert.py with an cascade.xml got with opencv haar trainer
The detection is not very good, and i think i missed the understanding of some paramaters and i hope you could help me.
Why when i use stages=20 in opencv, i have got only 4 stages when i print the image.HaarCascade(“haar_file_on_sdcard”) ?
Can I use any of Haar, Lbp or Hog feature types to train my classifier ?
Can i use any of Basic, Core or All Haar feature type to train my classifier ?
can i use any of Gab, Dab, Rab or LB boost type to train my classifier ?
I tried first the default options, and i would like to know if all of them are compatible before using them to go further ?