bool EnsembleClassifier::filter(int i)  {
	if(!enabled) return true;

	classifyWindow(i);
	if(detectionResult->posteriors[i] < 0.5) return false;
	return true;
}
Exemple #2
0
bool NNClassifier::filter(const Mat& img, int windowIdx) {
	if(!enabled) return true;

	float conf = classifyWindow(img, windowIdx);

	if(conf < thetaTP) {
		return false;
	}

	return true;
}