Ask Your Question

lidong04's profile - activity

2014-11-18 18:51:55 -0600 received badge  Necromancer (source)
2013-09-27 03:16:21 -0600 answered a question How to use CascadeClassifier with a mask

Actually there is an abstract class MaskGenerator inside CascadeClassifier, which had implemented the classification with mask. It is necessary to realize the virtual function generateMask() in your derived class. Also note that masked CascadeClassifier is only working with new format cascade classifiers. OpenCV source code opencv/modules/objdetect/src/cascadedetect.cpp could help in detail.