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

# TrackedFaceList.set Method

Module: TrackedFaceList

## Definition

Sets an item of the TrackedFaceList object.

Python

    set(self, index: int, tracked_face_item: TrackedFace) -> None

Parameters

> `index` int
> in Index of the TrackedFace item to set.
> `tracked_face_item` TrackedFace
> in TrackedFace item to set.

Exceptions

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

Dart

    void set(int index, TrackedFace trackedFaceItem)

Parameters

> `index` int
> in Index of the TrackedFace item to set.
> `trackedFaceItem` TrackedFace
> in TrackedFace item to set.

Exceptions

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

C#

    public void Set(int index, TrackedFace trackedFaceItem)

Parameters

> `index` int
> in Index of the TrackedFace item to set.
> `trackedFaceItem` TrackedFace
> in TrackedFace item to set.

Exceptions

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

Java

    public void set(int index, TrackedFace trackedFaceItem) throws FaceException

Parameters

> `index` int
> in Index of the TrackedFace item to set.
> `trackedFaceItem` TrackedFace
> in TrackedFace item to set.

Exceptions

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

Swift

    public func set(index: Int32, trackedFaceItem: TrackedFace) throws

Parameters

> `index` Int32
> in Index of the TrackedFace item to set.
> `trackedFaceItem` TrackedFace
> in TrackedFace item to set.

Exceptions

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

C

    int id3TrackedFaceList_Set (
        ID3_TRACKED_FACE_LIST hTrackedFaceList,
        int index,
        ID3_TRACKED_FACE hTrackedFaceItem)

Parameters

> `hTrackedFaceList` ID3_TRACKED_FACE_LIST
> in Handle to the TrackedFaceList object.
> `index` int
> in Index of the TrackedFace item to set.
> `hTrackedFaceItem` ID3_TRACKED_FACE
> in TrackedFace item to set.

Returns

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