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 FaceDetector model is required to use this function.

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.