/** * Construct with the given cascade resource. See * {@link #setCascade(String)} to understand how the cascade is loaded. * * @param cas * The cascade resource. * @see #setCascade(String) */ public HaarCascadeDetector(String cas) { try { setCascade(cas); } catch (final Exception e) { throw new RuntimeException(e); } groupingFilter = new OpenCVGrouping(); }