Class OutputImageCrop
java.lang.Object
com.regula.facesdk.detection.request.OutputImageCrop
-
Constructor Summary
ConstructorDescriptionOutputImageCrop
(OutputImageCropAspectRatio type, Size size) OutputImageCrop
(OutputImageCropAspectRatio type, Size size, Integer padColor) OutputImageCrop
(OutputImageCropAspectRatio type, Size size, Integer padColor, boolean returnOriginalRect) OutputImageCrop
(OutputImageCropAspectRatio type, Size size, Long padColor) OutputImageCrop
(OutputImageCropAspectRatio type, Size size, Long padColor, boolean returnOriginalRect) -
Method Summary
-
Constructor Details
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type, Size size, Integer padColor, boolean returnOriginalRect) - Parameters:
type
- the aspect ratio according to which alignment is performedsize
- the resize value to process. If the value doesn't match AspectRatio `type` proportion or minimum size, an adjustment is applied.padColor
- when an image is aligned by `type`, its original size may be insufficient, and in this case it needs to be supplemented, "padded". padColor sets the value for the color that will be used for such a supplement.returnOriginalRect
- if set, the coordinates of the rectangle with the face in the original image prepared for the face crop are returned in theDetectFaceResult.getOriginalRect()
. Default false
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type, Size size, Long padColor, boolean returnOriginalRect) -
OutputImageCrop
-
OutputImageCrop
-
OutputImageCrop
-
OutputImageCrop
-
-
Method Details
-
getType
-
getSize
public Size getSize() -
getPadColor
-
isReturnOriginalRect
-