haarcascade finger-tip detection and image prep [closed]
I am trying to create a haarcascade to detect finger tips. I have recorded two hands in HD videos each 20 seconds in length. Then extracted the BMP images in a set of positive images. The images are from the top of the hand with the finger nails showing and the bounding boxes created around each finger tip with the nail - 4 per hand. After running a bounding box .cpp app to use createsamples then ran a training session for 10 hours where it completed 4 stages out of designated 10 and terminated.
I am baffled as to why it terminated when I have a set of over 1500 pos images and nearly 2000 negative images of random pictures.
Testing detection of the finger tip was a failure - no detection of the objects bounded.
Advice? Thank you!
1)The number of negative images must be greater than twice the number of positive images. 2)Try to set numPos = 0.9 * number_of_positive_samples and 0.99 as a minHitRate. 3)vec-file has to contain >= (numPose + (numStages-1) * (1 - minHitRate) * numPose) + S, where S is a count of samples from vec-file.S is a count of samples from vec-file that can be recognized as background right away. 4)Allocate enough nonsysm memory space of atleast 512mb 5)The haarcascade process sometimes takes a week to get completed if kept totally unaltered.So,be patient,u may try using less number of stages for trials
Thanks for the info/advice - will try this. In meantime, what is your thoughts about using two videos of hands i.e. two sets of positive images? Do you think I should film more hands? Will this make a difference in this case?
Diversity in positive images helps to train in a better way.But again the time required for a good decent training has always been a mystery to me.Sometimes it takes a day,sometimes a week,sometimes it just hangs up with no further progress.
Thanks I understand that. The question is though - what limit should one impose in the image collection process - should you have only 10 or 1000 images of the same hand?
I would prefer less number of images (between 50 to 100) of same hand.
cool - I'll collect as many hands as possible, and let you know how I get on.
Hi again - it has been a few weeks. I have collected many hands and extracted the images. Attempted several training sessions - and failed. I need to ask: