Haar Cascade Classifier
Hi, I would like to train my own Haar Cascade and I have the gist of what I need to do but I'm not sure about one thing. So what I'm trying to do is create one for the human body, full body and upper body. If I was to obtain, let's say, 50 images of different humans at different angles and train it, is it going to detect ANY human? Or would it be able to only detect the humans of the images I obtained?
to train a decent cascade classifier, you would need like a few 1000 images, and any variation in pose is harmful. and yes, it will detect any human.
in the end, -- IF you have good data, you should probably train a cnn instead, if you don't, -- it's all a waste of time only.
Can you define "good data"? Also you said any pose would be harmful, does this mean I can't detect a human crawling, crouching and walking with the same Haar Cascade I trained? Can you elaborate on pose variation being harmful.
exactly.
e.g. the INRIA person dataset. or CBCL
try to understand the image from the tutorial:
(the bars won't be in the same place, if you allow pose variation)
see https://github.com/samylee/Amazing_Pe... unfortunately it has no source code. but you can try and see possible results
here you can find a ready LBP cascade for people detection
I do not want to use a created cascade, I want to create my own, the last thing I'd like to know is, if I train my Haar Cascade with images of persons facing front, would it be harmful to train the same cascade with people facing sideways and facing back? Also if these images are taken directly in front the person, if I angle the camera upwards e.g (cameras on ceilings for surveillance), would it detect the person still? Or do I need to train it at this particular angle? I hope what I'm saying is clear.