public class DetectFaceResult
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Constructor and Description |
---|
DetectFaceResult(java.lang.String faceID,
int trackID,
PointF3D mLoc,
BBox3D mBox,
Rectangle2D locCam,
PointF3D faceAngle,
boolean hasValidHeadROI,
boolean hasValidDepth,
boolean isCandidateObj,
HeadGazeDirection headGazeDirection,
int headPoseConfidence) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
PointF3D |
getFaceAngle()
Return user face rotation angel, in order of roll = x, pitch = y, yaw = z PointF3D(pose.roll,pose.pitch,pose.yaw);
|
BBox3D |
getFaceBox() |
int |
getFaceEmotion()
If request has face emotion, it will return the state of face emotion result
|
PointF3D |
getFaceLoc()
PointF3D of the mass center the visible user's face with trackID with respect to Robot Base Coordinates (in meters) x axis means robot to user depth, y means left/right shift, z means user height above ground
|
Rectangle2D |
getFaceLocCam()
Rectangle2D of the mass center the visible user's face in camera frame, normalize to 0 - 1 value. if ( 0.5 , 0.5 ) means face on camera frame center
|
HeadGazeDirection |
getHeadGazeDirection()
get head gaze direction classify result
|
int |
getHeadPoseConfidence()
confidence value of head pose angle prediction, valid = 100, not-valid = 0
|
int |
getTrackID()
Track ID is an integer number used to provide temporal consistency to identify the face/person in the current tracked ID
|
java.lang.String |
getUuid()
If the request has face recognition process, it will return face ID (UUID) which recognizes faces
|
boolean |
hasValidDepth()
if this result is from intel estimation or our own depth average.
|
boolean |
hasValidHeadROI()
return whether this face is from true head detection or from body rectangle
|
boolean |
isCandidateObj()
if this detection result is only proposal region, not formal detected person
|
DetectFaceResult |
setFaceEmotion(int emotion) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public DetectFaceResult(java.lang.String faceID, int trackID, PointF3D mLoc, BBox3D mBox, Rectangle2D locCam, PointF3D faceAngle, boolean hasValidHeadROI, boolean hasValidDepth, boolean isCandidateObj, HeadGazeDirection headGazeDirection, int headPoseConfidence)
public int describeContents()
describeContents
in interface android.os.Parcelable
public PointF3D getFaceAngle()
PointF3D
public BBox3D getFaceBox()
public int getFaceEmotion()
public PointF3D getFaceLoc()
PointF3D
public Rectangle2D getFaceLocCam()
Rectangle2D
public HeadGazeDirection getHeadGazeDirection()
HeadGazeDirection
public int getHeadPoseConfidence()
public int getTrackID()
public java.lang.String getUuid()
public boolean hasValidDepth()
public boolean hasValidHeadROI()
public boolean isCandidateObj()
public DetectFaceResult setFaceEmotion(int emotion)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable