FaceDetector.warmUp Method¶
Module: FaceDetector
Definition¶
Gets the face detector 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 intin Width of the expected image size.
imageHeight intin Height of expected image size.
Exceptions
An error has occurred during Face Library execution.