Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# TrackedFace.create Method

Module: TrackedFace

## Definition

Creates a detected face.

Python

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

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

> TrackedFace
> The newly created tracked face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    static TrackedFace 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

> TrackedFace
> The newly created tracked face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public static TrackedFace 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

> TrackedFace
> The newly created tracked face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public static TrackedFace 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

> TrackedFace
> The newly created tracked face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public static func create(bounds: Rectangle, detectionScore: Int32, id: Int32, landmarks: PointList) throws -> TrackedFace

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

> TrackedFace
> The newly created tracked face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3TrackedFace_Create (
        ID3_TRACKED_FACE hTrackedFace,
        const id3FaceRectangle * sBounds,
        int detectionScore,
        int id,
        ID3_FACE_POINT_LIST hLandmarks)

Parameters

> `hTrackedFace` ID3_TRACKED_FACE
> in Handle to the TrackedFace object.
> `sBounds` const id3FaceRectangle *
> in Bounds of the detected face.
> `detectionScore` int
> in Confidence score of the detected face.
> `id` int
> in ID of the detected face.
> `hLandmarks` ID3_FACE_POINT_LIST
> 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.