DetectedFace.rescale Method¶
Module: DetectedFace
Definition¶
Rescales the detected face object bounding box and landmarks. This function can be useful if the image was downscaled to speed up detection, then you need to upscale the detected face to fit the source image size.
rescale(self, scale: float) -> None
Parameters
scale
floatin The multiplicative rescaling factor to apply to the face object.
Exceptions
An error has occurred during Face Library execution.
void rescale(double scale)
Parameters
scale
doublein The multiplicative rescaling factor to apply to the face object.
Exceptions
An error has occurred during Face Library execution.
public void Rescale(float scale)
Parameters
scale
floatin The multiplicative rescaling factor to apply to the face object.
Exceptions
An error has occurred during Face Library execution.
public void rescale(float scale) throws FaceException
Parameters
scale
floatin The multiplicative rescaling factor to apply to the face object.
Exceptions
An error has occurred during Face Library execution.
public func rescale(scale: Float) throws
Parameters
scale
Floatin The multiplicative rescaling factor to apply to the face object.
Exceptions
An error has occurred during Face Library execution.
int id3DetectedFace_Rescale (
ID3_DETECTED_FACE hDetectedFace,
float scale)
Parameters
hDetectedFace
ID3_DETECTED_FACEin Handle to the DetectedFace object.scale
floatin The multiplicative rescaling factor to apply to the face object.
Returns