FaceTracker.warmUp Method

Module: FaceTracker

Definition

Gets the face tracker module ready to work on a specific image size by initializing all its internal memory layout.

This function can be called after setting all the parameters of the face detector module if the image size is fixed, for example using frames from a video stream.

Calling this function is not mandatory as the internal memory layout is automatically initialized in the first call to detectFaces() or trackFaces() if missing.

Important

Loading a face detector model is required to use this function. This SDK supports id3 face detectors 3A and 3B.

warm_up(self, image_width: int, image_height: int) -> None

Parameters

image_width int
in Width of the expected image size.

image_height int
in Height of expected image size.

Exceptions

An error has occurred during Face Library execution.
void warmUp(int imageWidth, int imageHeight)

Parameters

imageWidth int
in Width of the expected image size.

imageHeight int
in Height of expected image size.

Exceptions

An error has occurred during Face Library execution.
public void WarmUp(int imageWidth, int imageHeight)

Parameters

imageWidth int
in Width of the expected image size.

imageHeight int
in Height of expected image size.

Exceptions

An error has occurred during Face Library execution.
public void warmUp(int imageWidth, int imageHeight) throws FaceException

Parameters

imageWidth int
in Width of the expected image size.

imageHeight int
in Height of expected image size.

Exceptions

An error has occurred during Face Library execution.
public func warmUp(imageWidth: Int32, imageHeight: Int32) throws

Parameters

imageWidth Int32
in Width of the expected image size.

imageHeight Int32
in Height of expected image size.

Exceptions

An error has occurred during Face Library execution.
int id3FaceTracker_WarmUp (
    ID3_FACE_TRACKER hFaceTracker,
    int imageWidth,
    int imageHeight)

Parameters

hFaceTracker ID3_FACE_TRACKER
in Handle to the FaceTracker object.

imageWidth int
in Width of the expected image size.

imageHeight int
in Height of expected image size.

Returns

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