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

FacePose API. More...

Collaboration diagram for com.dface.api.FacePose:

Public Member Functions

boolean initLoad (String model_path)
 
boolean uninitLoad ()
 
FaceLandmark predictPose (byte[] data, int w, int h, int format, Bbox bbox)
 
FaceLandmark predictPose (Bitmap frameBitmap, Bbox bbox)
 
boolean setCameraParameter (float focalLength, float opticalCenterX, float opticalCenterY)
 

Detailed Description

FacePose API.

Member Function Documentation

boolean com.dface.api.FacePose.initLoad ( String  model_path)

init FacePose

Parameters
model_pathmodel path
Returns
init status
FaceLandmark com.dface.api.FacePose.predictPose ( byte[]  data,
int  w,
int  h,
int  format,
Bbox  bbox 
)

Detect face landmarks and 3d pose(Euler angles) information

Parameters
dataImage bytes data
wImage width
hImage height
formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
See also
com.dface.dto.FrameFormatType
Parameters
bboxFace box
See also
FaceLandmark
Returns
face landmarks and pose information
FaceLandmark com.dface.api.FacePose.predictPose ( Bitmap  frameBitmap,
Bbox  bbox 
)

Detect face landmarks and 3d pose(Euler angles) information

Parameters
frameBitmapFrame bitmap
bboxFace box
See also
FaceLandmark
Returns
face landmarks and pose information
boolean com.dface.api.FacePose.setCameraParameter ( float  focalLength,
float  opticalCenterX,
float  opticalCenterY 
)

Set camera parameters

Parameters
focalLengthCamera focal length(unit pixels),default 500px
focalLength = f_mm * (sensor_size_px / sensor_size_mm)
f_mm: camera physic focal length(unit mm)
sensor_size_px:camera sensor size, unit pixels
sensor_size_mm:camera sensor physic size, unit mm
opticalCenterXopticalCenterX=image width/2,unit pixels
opticalCenterYopticalCenterY=image height/2,unit pixels
boolean com.dface.api.FacePose.uninitLoad ( )

uninit FacePose

Returns
uninit status

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