Skip to content Skip to sidebar Skip to footer

Creating Haar Cascade From Images Shows Error

I want to create my own haarcascade for license plates. I have found a GUI called Cascade-Trainer-GUI that does this. I'm using Windows 10. You can download gui from here: http://a

Solution 1:

I believe that you problem is due to the size of the image patches used for training. In the original Violaj-Jones paper they used patches of 20x20 pixels, which resulted in more than 180,000 features. To find the best set of features in each stage of the cascade, the boosting algorithm must find the best feature/threshold combination (the weak classifier is a perceptron) in each iteration. This involves to calcule the entropy for N features with M possible thresholds, where M coincides whit the number of training images. Then it is required MxN memory spaces in each boosting iteration. Assuming that internally this program uses floating precision, then you need MxNx4 bytes of memory approximately for each boosting iteration. In you case, for 20x20 image patches this is only 180000x(119+114)x4=167,760,000 bytes, that is, approximately 0.16 GB, but this number may be much larger if the size of the training patches is larger or if the set of base features that you use is larger than the original Violaj-Jones paper (in this paper the set of base features is 4, but there is another set called haar-like) . Then, I believe that you need to configure the size of the image patches of training.


Post a Comment for "Creating Haar Cascade From Images Shows Error"