create static method
Creates a detected face.
param bounds Bounds of the detected face. param detectionScore Confidence score of the detected face. param id ID of the detected face. param landmarks Landmarks (eyes, nose and mouth corners) of the detected face. return The newly created detected face. throws FaceException An error has occurred during Face Library execution.
Implementation
static DetectedFace create(Rectangle bounds, int detectionScore, int id, PointList landmarks) {
DetectedFace detectedFace = DetectedFace();
var err = faceSDK.id3DetectedFace_Create(detectedFace.handle, bounds.handle, detectionScore, id, landmarks.handle);
if (err != FaceError.success.value) {
detectedFace.dispose();
throw FaceException(err);
}
return detectedFace;
}