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

# DetectedFace.bounds Property

Module: DetectedFace

Type: Rectangle

## Definition

Bounds of the detected face.

Python

    bounds: Rectangle

Exceptions

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

Dart

    Rectangle get bounds => getBounds();
    set bounds(Rectangle value) => setBounds(value);

Exceptions

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

C#

    public Rectangle bounds
    {
        get => Getbounds();
        set => Setbounds(ref value);
    }

Exceptions

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

Java

    public Rectangle getBounds() throws FaceException
    public void setBounds(Rectangle bounds) throws FaceException

Exceptions

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

Swift

    public var bounds: Rectangle
        get {
            return try! getBounds()
        }
    }

Exceptions

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

C

    int id3DetectedFace_GetBounds (ID3_DETECTED_FACE hDetectedFace, id3FaceRectangle * sBounds)
    int id3DetectedFace_SetBounds (ID3_DETECTED_FACE hDetectedFace, const id3FaceRectangle * sBounds)

Returns

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