Package com.libremobileos.yifan.face
Class FaceRecognizer.Face
- java.lang.Object
-
- com.libremobileos.yifan.face.FaceScanner.Face
-
- com.libremobileos.yifan.face.FaceRecognizer.Face
-
- Enclosing class:
- FaceRecognizer
public static class FaceRecognizer.Face extends FaceScanner.Face
Stores a combination ofFaceScanner.Face
andFaceDetector.Face
, for face recognition workloads
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getDetectionConfidence()
A score for how good the detection (NOT recognition, that'sFaceScanner.Face.getDistance()
) is relative to others.int
getModelCount()
How many models detected the face.float
getModelRatio()
How many models detected the face, ratio.-
Methods inherited from class com.libremobileos.yifan.face.FaceScanner.Face
addRecognitionData, compare, compare, compare, getBrightnessHint, getCrop, getDistance, getExtra, getLocation, getTitle, isRecognized, toString
-
-
-
-
Method Detail
-
getDetectionConfidence
public float getDetectionConfidence()
A score for how good the detection (NOT recognition, that'sFaceScanner.Face.getDistance()
) is relative to others.- Returns:
- Sortable score, higher is better. Min: 0f Max: 1.0f
-
getModelCount
public int getModelCount()
How many models detected the face.- Returns:
- Model count
-
getModelRatio
public float getModelRatio()
How many models detected the face, ratio. Min: 0f Max: 1f- Returns:
getModelCount()
divided through number of available models
-
-