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

# TrackedFace.rescale Method

Module: TrackedFace

## Definition

Rescales the detected face object bounding box and landmarks. This function can be useful if the image was downscaled to speed up detection, then you need to upscale the detected face to fit the source image size.

Python

    rescale(self, scale: float) -> None

Parameters

> `scale` float
> in The multiplicative rescaling factor to apply to the face object.

Exceptions

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

Dart

    void rescale(double scale)

Parameters

> `scale` double
> in The multiplicative rescaling factor to apply to the face object.

Exceptions

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

C#

    public void Rescale(float scale)

Parameters

> `scale` float
> in The multiplicative rescaling factor to apply to the face object.

Exceptions

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

Java

    public void rescale(float scale) throws FaceException

Parameters

> `scale` float
> in The multiplicative rescaling factor to apply to the face object.

Exceptions

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

Swift

    public func rescale(scale: Float) throws

Parameters

> `scale` Float
> in The multiplicative rescaling factor to apply to the face object.

Exceptions

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

C

    int id3TrackedFace_Rescale (
        ID3_TRACKED_FACE hTrackedFace,
        float scale)

Parameters

> `hTrackedFace` ID3_TRACKED_FACE
> in Handle to the TrackedFace object.
> `scale` float
> in The multiplicative rescaling factor to apply to the face object.

Returns

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