# warmUp method

void warmUp(

1. int imageWidth,
2. int imageHeight

)

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.

param imageWidth Width of the expected image size. param imageHeight Height of expected image size. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void warmUp(int imageWidth, int imageHeight) {
      var err = faceSDK.id3FaceDetector_WarmUp(_pHandle.value, imageWidth, imageHeight);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }