public class ImageAgeDetector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static float[][][] |
adjustBrightness(float[][][] image,
float delta) |
static Bitmap |
createFlippedBitmap(Bitmap source) |
static ImageAgeDetector |
getAgeDetector(Context context) |
float[] |
getAgePredictionScores(Bitmap croppedImage) |
float |
getExactAgeEstimation(Bitmap croppedImage) |
float |
getExactAgeEstimation(Bitmap croppedImage,
Bitmap initialImage,
Rect faceRect,
boolean flip,
int displacements,
boolean contrast,
boolean hue,
boolean gamma,
boolean brightness) |
float |
getExactAgeEstimation(Bitmap croppedImage,
boolean includeFlip) |
ch.privately.ageestimation.image.estimation.ImageExactAgeEstimationResult |
getExactAgePrediction(java.util.List<Bitmap> images,
java.util.List<Bitmap> initialImages,
java.util.List<Rect> rects) |
float[] |
getScaledPredictionScores(Bitmap croppedImage,
PredictionMode predictionMode) |
public static ImageAgeDetector getAgeDetector(Context context)
public static Bitmap createFlippedBitmap(Bitmap source)
public static float[][][] adjustBrightness(float[][][] image, float delta)
public ch.privately.ageestimation.image.estimation.ImageExactAgeEstimationResult getExactAgePrediction(java.util.List<Bitmap> images, java.util.List<Bitmap> initialImages, java.util.List<Rect> rects)
public float[] getAgePredictionScores(Bitmap croppedImage)
public float getExactAgeEstimation(Bitmap croppedImage, boolean includeFlip)
public float[] getScaledPredictionScores(Bitmap croppedImage, PredictionMode predictionMode)
public float getExactAgeEstimation(Bitmap croppedImage)
public float getExactAgeEstimation(Bitmap croppedImage, Bitmap initialImage, Rect faceRect, boolean flip, int displacements, boolean contrast, boolean hue, boolean gamma, boolean brightness)