/** * Construct with the {@link BuiltInCascade#frontalface_default} cascade and * the given minimum search window size. * * @param minSize * minimum search window size */ public HaarCascadeDetector(int minSize) { this(); this.detector.setMinimumDetectionSize(minSize); }
/** * Set the minimum detection window size * * @param size * the window size */ public void setMinSize(int size) { this.detector.setMinimumDetectionSize(size); }
/** * Construct with the given cascade resource and the given minimum search * window size. See {@link #setCascade(String)} to understand how the * cascade is loaded. * * @param cas * The cascade resource. * @param minSize * minimum search window size. * * @see #setCascade(String) */ public HaarCascadeDetector(String cas, int minSize) { this(cas); this.detector.setMinimumDetectionSize(minSize); }
private void setupDetector() { this.detector = new Detector(this._cascade, this._scale_factor); this.grouping = new OpenCVGrouping(this._min_neighbours); this.detector.setMinimumDetectionSize(this._min_size); }
private void setupDetector() { this.detector = new Detector(this._cascade, this._scale_factor); this.grouping = new OpenCVGrouping(this._min_neighbours); this.detector.setMinimumDetectionSize(this._min_size); }