Class OutputImageParams
- java.lang.Object
-
- com.regula.facesdk.detection.request.OutputImageParams
-
public class OutputImageParams extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OutputImageParams(OutputImageCrop imageCropParams)
Set of parameter for image processing.OutputImageParams(OutputImageCrop imageCropParams, int color)
Set of parameter for image processing.OutputImageParams(OutputImageCrop imageCropParams, long color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getBackgroundColor()
OutputImageCrop
getImageCropParams()
-
-
-
Constructor Detail
-
OutputImageParams
public OutputImageParams(OutputImageCrop imageCropParams)
Set of parameter for image processing.- Parameters:
imageCropParams
-OutputImageCrop
the Base64 of an aligned and cropped portrait is returned in the crop field. Alignment is performed according to type. If a head on the original image is tilted, for the returned portrait it is aligned in a straight vertical line. If there are more than one face in the photo, all the faces will be detected and processed, and separate portraits for each face will be returned. So, if there were five people in the photo, you'll get five processed portraits.
-
OutputImageParams
public OutputImageParams(OutputImageCrop imageCropParams, int color)
Set of parameter for image processing.- Parameters:
imageCropParams
-OutputImageCrop
the Base64 of an aligned and cropped portrait is returned in the crop field. Alignment is performed according to type. If a head on the original image is tilted, for the returned portrait it is aligned in a straight vertical line. If there are more than one face in the photo, all the faces will be detected and processed, and separate portraits for each face will be returned. So, if there were five people in the photo, you'll get five processed portraits.color
- the background color is replaced. The silhouette of a person is cut out and the background is filled with this color. For example android.graphics.Color#WHITE
-
OutputImageParams
public OutputImageParams(OutputImageCrop imageCropParams, long color)
-
-
Method Detail
-
getBackgroundColor
public java.lang.Long getBackgroundColor()
-
getImageCropParams
public OutputImageCrop getImageCropParams()
-
-