/** * Get a list of unique confidences associated with the given list of faces. * * @param faces * the faces * @return the unique confidences, sorted in ascending order. */ private double[] getUniqueConfidences(List<? extends DetectedFace> faces) { final TDoubleHashSet set = new TDoubleHashSet(); for (final DetectedFace f : faces) { set.add(f.getConfidence()); } final double[] ret = set.toArray(); Arrays.sort(ret); return ret; }
if (rd.getConfidence() >= scoreThreshold) filteredDet.add(rd);
final KEDetectedFace kedf = new KEDetectedFace(r, image.extractROI(r), kpts, df.getConfidence()); descriptors.add(kedf);