Class OutputImageCrop
- java.lang.Object
-
- com.regula.facesdk.detection.request.OutputImageCrop
-
public class OutputImageCrop extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OutputImageCrop(OutputImageCropAspectRatio type)
OutputImageCrop(OutputImageCropAspectRatio type, Size size)
OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.Integer padColor)
OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.Integer padColor, boolean returnOriginalRect)
OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.Long padColor)
OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.Long padColor, boolean returnOriginalRect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getPadColor()
Size
getSize()
OutputImageCropAspectRatio
getType()
java.lang.Boolean
isReturnOriginalRect()
-
-
-
Constructor Detail
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.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, java.lang.Long padColor, boolean returnOriginalRect)
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.Integer padColor)
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type, Size size, java.lang.Long padColor)
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type, Size size)
-
OutputImageCrop
public OutputImageCrop(OutputImageCropAspectRatio type)
-
-
Method Detail
-
getType
public OutputImageCropAspectRatio getType()
-
getSize
public Size getSize()
-
getPadColor
public java.lang.Long getPadColor()
-
isReturnOriginalRect
public java.lang.Boolean isReturnOriginalRect()
-
-