|
boolean | initLoad (String model_path) |
|
boolean | uninitLoad () |
|
int[] | predictAgeGender (byte[] data, int w, int h, int format, Bbox bbox) |
|
int[] | predictAgeGender (Bitmap frameBitmap, Bbox bbox) |
|
float | predictMask (byte[] data, int w, int h, int format, Bbox bbox) |
|
float | predictMask (Bitmap frameBitmap, Bbox bbox) |
|
boolean com.dface.api.FaceAttribute.initLoad |
( |
String |
model_path | ) |
|
int [] com.dface.api.FaceAttribute.predictAgeGender |
( |
byte[] |
data, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
Bbox |
bbox |
|
) |
| |
Predict face age and gender
- Parameters
-
w | Image width |
h | Image height |
format | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
- See also
- com.dface.dto.FrameFormatType
- Parameters
-
- Returns
- Output [age,gender] (0:Female 1:Male)
int [] com.dface.api.FaceAttribute.predictAgeGender |
( |
Bitmap |
frameBitmap, |
|
|
Bbox |
bbox |
|
) |
| |
Predict face age and gender
- Parameters
-
frameBitmap | Frame bitmap |
bbox | Face box |
- Returns
- Output [age,gender] (0:Female 1:Male)
float com.dface.api.FaceAttribute.predictMask |
( |
byte[] |
data, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
Bbox |
bbox |
|
) |
| |
Predict face mask
- Parameters
-
data | Image bytes data |
w | Image width |
h | Image height |
format | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
bbox | Face box |
- Returns
- mask score value
float com.dface.api.FaceAttribute.predictMask |
( |
Bitmap |
frameBitmap, |
|
|
Bbox |
bbox |
|
) |
| |
Predict face age and gender
- Parameters
-
frameBitmap | Frame bitmap |
bbox | Face box |
- Returns
- mask score value
boolean com.dface.api.FaceAttribute.uninitLoad |
( |
| ) |
|
The documentation for this class was generated from the following file:
- java/en/com/dface/api/FaceAttribute.java