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

# DetectedFaceList.findDetectedFace Method

Module: DetectedFaceList

## Definition

Finds a detected face by ID.

Python

    find_detected_face(self, id: int) -> DetectedFace

Parameters

> `id` int
> in ID of the detected face to find in the list.

Returns

> DetectedFace
> The found detected face.

Exceptions

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

Dart

    DetectedFace findDetectedFace(int id)

Parameters

> `id` int
> in ID of the detected face to find in the list.

Returns

> DetectedFace
> The found detected face.

Exceptions

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

C#

    public DetectedFace FindDetectedFace(int id)

Parameters

> `id` int
> in ID of the detected face to find in the list.

Returns

> DetectedFace
> The found detected face.

Exceptions

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

Java

    public DetectedFace findDetectedFace(int id) throws FaceException

Parameters

> `id` int
> in ID of the detected face to find in the list.

Returns

> DetectedFace
> The found detected face.

Exceptions

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

Swift

    public func findDetectedFace(id: Int32) throws -> DetectedFace

Parameters

> `id` Int32
> in ID of the detected face to find in the list.

Returns

> DetectedFace
> The found detected face.

Exceptions

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

C

    int id3DetectedFaceList_FindDetectedFace (
        ID3_DETECTED_FACE_LIST hDetectedFaceList,
        int id,
        ID3_DETECTED_FACE hDetectedFace)

Parameters

> `hDetectedFaceList` ID3_DETECTED_FACE_LIST
> in Handle to the DetectedFaceList object.
> `id` int
> in ID of the detected face to find in the list.
> `hDetectedFace` ID3_DETECTED_FACE
> out The found detected face.

Returns

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