getBounds method

Rectangle getBounds()

Gets the bounds of the detected face.

return Bounds of the detected face. throws FaceException An error has occurred during Face Library execution.

Implementation

Rectangle getBounds() {
  Pointer<id3FaceRectangle> pBounds = calloc();
  var err = faceSDK.id3TrackedFace_GetBounds(_pHandle.value, pBounds);
  if (err != FaceError.success.value) {
  	calloc.free(pBounds);
  	throw FaceException(err);
  }
  return Rectangle(pBounds);
}