DetectedFace.create Method

Module: DetectedFace

Definition

Creates a detected face.

@staticmethod
create(bounds: Rectangle, detection_score: int, id: int, landmarks: PointList) -> DetectedFace

Parameters

bounds Rectangle
in Bounds of the detected face.

detection_score int
in Confidence score of the detected face.

id int
in ID of the detected face.

landmarks PointList
in Landmarks (eyes, nose and mouth corners) of the detected face.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
static DetectedFace create(Rectangle bounds, int detectionScore, int id, PointList landmarks)

Parameters

bounds Rectangle
in Bounds of the detected face.

detectionScore int
in Confidence score of the detected face.

id int
in ID of the detected face.

landmarks PointList
in Landmarks (eyes, nose and mouth corners) of the detected face.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
public static DetectedFace Create(Rectangle bounds, int detectionScore, int id, PointList landmarks)

Parameters

bounds Rectangle
in Bounds of the detected face.

detectionScore int
in Confidence score of the detected face.

id int
in ID of the detected face.

landmarks PointList
in Landmarks (eyes, nose and mouth corners) of the detected face.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
public static DetectedFace create(Rectangle bounds, int detectionScore, int id, PointList landmarks) throws FaceException

Parameters

bounds Rectangle
in Bounds of the detected face.

detectionScore int
in Confidence score of the detected face.

id int
in ID of the detected face.

landmarks PointList
in Landmarks (eyes, nose and mouth corners) of the detected face.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
public static func create(bounds: Rectangle, detectionScore: Int32, id: Int32, landmarks: PointList) throws -> DetectedFace

Parameters

bounds Rectangle
in Bounds of the detected face.

detectionScore Int32
in Confidence score of the detected face.

id Int32
in ID of the detected face.

landmarks PointList
in Landmarks (eyes, nose and mouth corners) of the detected face.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
int id3DetectedFace_Create (
    ID3_DETECTED_FACE hDetectedFace,
    const id3FaceRectangle * sBounds,
    int detectionScore,
    int id,
    ID3_FACE_POINT_LIST hLandmarks)

Parameters

hDetectedFace ID3_DETECTED_FACE
in Handle to the DetectedFace object.

in Bounds of the detected face.

detectionScore int
in Confidence score of the detected face.

id int
in ID of the detected face.

in Landmarks (eyes, nose and mouth corners) of the detected face.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.