/** * @return the underlying Haar cascade. */ public StageTreeClassifier getCascade() { return detector.getClassifier(); }
@Override public String toString() { return "HaarCascadeDetector[cascade=" + detector.getClassifier().getName() + "]"; }
@Override public int hashCode() { int hashCode = HashCodeUtil.SEED; hashCode = HashCodeUtil.hash(hashCode, this.detector.getMinimumDetectionSize()); hashCode = HashCodeUtil.hash(hashCode, this.detector.getScaleFactor()); hashCode = HashCodeUtil.hash(hashCode, this.detector.getClassifier().getName()); hashCode = HashCodeUtil.hash(hashCode, this.groupingFilter); hashCode = HashCodeUtil.hash(hashCode, this.histogramEqualize); return hashCode; }