FaceTool API.
More...
|
byte[] | crop (byte[] rgb, int w, int h, int c, int crop_x, int crop_y, int crop_w, int crop_h) |
|
Bitmap | cropBitmap (Bitmap srcBitmap, int crop_x, int crop_y, int crop_w, int crop_h) |
|
byte[] | resize (byte[] rgb, int w, int h, int c, int resize_w, int resize_h) |
|
byte[] | rotate (byte[] rgb, int w, int h, int format, int clockwise_degree) |
|
Bitmap | rotateBitmap (Bitmap srcBitmap, int clockwiseDegree) |
|
Bitmap | flipBitmap (Bitmap srcBitmap) |
|
Bitmap | resizeBitmap (Bitmap srcBitmap, int resize_w, int resize_h) |
|
byte [] com.dface.api.FaceTool.crop |
( |
byte[] |
rgb, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
c, |
|
|
int |
crop_x, |
|
|
int |
crop_y, |
|
|
int |
crop_w, |
|
|
int |
crop_h |
|
) |
| |
crop face area from an image
- Parameters
-
rgb | image |
w | Image width |
h | Image height |
c | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
crop_x | face x coordinate |
crop_y | face y coordinate |
crop_y | face width |
crop_y | face height |
- Returns
- face image bits
Bitmap com.dface.api.FaceTool.cropBitmap |
( |
Bitmap |
srcBitmap, |
|
|
int |
crop_x, |
|
|
int |
crop_y, |
|
|
int |
crop_w, |
|
|
int |
crop_h |
|
) |
| |
crop face area from an image
- Parameters
-
srcBitmap | Image bitmap |
crop_x | face x coordinate |
crop_y | face y coordinate |
crop_y | face width |
crop_y | face height |
- Returns
- face bitmap
Bitmap com.dface.api.FaceTool.flipBitmap |
( |
Bitmap |
srcBitmap | ) |
|
flip bitmap
- Parameters
-
- Returns
- flipped bitmap
byte [] com.dface.api.FaceTool.resize |
( |
byte[] |
rgb, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
c, |
|
|
int |
resize_w, |
|
|
int |
resize_h |
|
) |
| |
resize image
- Parameters
-
rgb | image |
w | Image width |
h | Image height |
c | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
resize_w | destination resize width |
resize_h | destination resize height |
- Returns
- resized image bits
Bitmap com.dface.api.FaceTool.resizeBitmap |
( |
Bitmap |
srcBitmap, |
|
|
int |
resize_w, |
|
|
int |
resize_h |
|
) |
| |
resize bitmap
- Parameters
-
srcBitmap | image bitmap |
resize_w | resize width |
resize_h | resize height |
- Returns
- resized bitmap
- Note
- ()
byte [] com.dface.api.FaceTool.rotate |
( |
byte[] |
rgb, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
int |
clockwise_degree |
|
) |
| |
rotate image
- Parameters
-
rgb | image |
w | Image width |
h | Image height |
format | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
clockwise_degree | clock wise rotate degree |
- Returns
- rotated image bits
Bitmap com.dface.api.FaceTool.rotateBitmap |
( |
Bitmap |
srcBitmap, |
|
|
int |
clockwiseDegree |
|
) |
| |
rotate bitmap
- Parameters
-
srcBitmap | image bitmap |
clockwiseDegree | clock wise degree |
- Returns
- rotated image bitmap
The documentation for this class was generated from the following file:
- java/en/com/dface/api/FaceTool.java