Ask Your Question

Revision history [back]

Is it possible to instantiate cascadeclassifier with two different xmls ?

I want to detect an object within another object. Its not make sense to do all the pre processing (integral image, feature extraction etc...) again if I know that the second object is within the first one. The trivial way to do it is to find the first object and then set ROI for the other classifier. But then, we doing some of the job we have already done. So I wander if there is a way to do
mJavaDetector = new CascadeClassifier(mCascadeFile.getAbsolutePath());

but with more that one XML.

Thanks!