public enum FaceCropper extends java.lang.Enum<FaceCropper>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Bitmap |
faceCrop(Bitmap image)
Face detection and cropping
|
Bitmap |
faceCrop(Bitmap image,
ch.privately.ageestimation.image.estimation.LandmarkDetectionResults landmarks) |
FaceCroppingResult |
faceCropWithRect(Bitmap image) |
FaceCroppingResult |
faceCropWithRect(Bitmap image,
ch.privately.ageestimation.image.estimation.Box box1) |
void |
init(Context context) |
static boolean |
isFaceBigEnough(Bitmap baseImage,
ch.privately.ageestimation.image.estimation.LandmarkDetectionResults landmarkDetectionResults) |
static boolean |
isFaceBigEnough(Bitmap baseImage,
Rect croppedRect) |
java.lang.String |
toString() |
static FaceCropper |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FaceCropper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FaceCropper INSTANCE
public static FaceCropper[] values()
for (FaceCropper c : FaceCropper.values()) System.out.println(c);
public static FaceCropper valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NonNull public java.lang.String toString()
toString
in class java.lang.Enum<FaceCropper>
public void init(Context context)
public Bitmap faceCrop(Bitmap image)
image
- Non-cropped image.public Bitmap faceCrop(Bitmap image, ch.privately.ageestimation.image.estimation.LandmarkDetectionResults landmarks)
public FaceCroppingResult faceCropWithRect(Bitmap image)
public FaceCroppingResult faceCropWithRect(Bitmap image, ch.privately.ageestimation.image.estimation.Box box1)
public static boolean isFaceBigEnough(Bitmap baseImage, Rect croppedRect)
public static boolean isFaceBigEnough(Bitmap baseImage, ch.privately.ageestimation.image.estimation.LandmarkDetectionResults landmarkDetectionResults)