DFACE JAVA SDK  5.0.0
com.dface.api.FaceTool Class Reference

FaceTool API. More...

Collaboration diagram for com.dface.api.FaceTool:

Public Member Functions

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)
 

Detailed Description

FaceTool API.

Member Function Documentation

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
rgbimage
wImage width
hImage height
cImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
crop_xface x coordinate
crop_yface y coordinate
crop_yface width
crop_yface 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
srcBitmapImage bitmap
crop_xface x coordinate
crop_yface y coordinate
crop_yface width
crop_yface height
Returns
face bitmap
Bitmap com.dface.api.FaceTool.flipBitmap ( Bitmap  srcBitmap)

flip bitmap

Parameters
srcBitmapimage bitmap
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
rgbimage
wImage width
hImage height
cImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
resize_wdestination resize width
resize_hdestination resize height
Returns
resized image bits
Bitmap com.dface.api.FaceTool.resizeBitmap ( Bitmap  srcBitmap,
int  resize_w,
int  resize_h 
)

resize bitmap

Parameters
srcBitmapimage bitmap
resize_wresize width
resize_hresize 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
rgbimage
wImage width
hImage height
formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
clockwise_degreeclock wise rotate degree
Returns
rotated image bits
Bitmap com.dface.api.FaceTool.rotateBitmap ( Bitmap  srcBitmap,
int  clockwiseDegree 
)

rotate bitmap

Parameters
srcBitmapimage bitmap
clockwiseDegreeclock wise degree
Returns
rotated image bitmap

The documentation for this class was generated from the following file: