public static class VisionConfig.FaceDetectConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
enableCandidateObj
Turn on report bounding box on possible person region,
default is false. |
boolean |
enableDebugPreview
Enable debug preview, default is
false. |
boolean |
enableDetectHead
Turn on the head detection, when head detection off,
DetectFaceResult.hasValidHeadROI() report
false, and
DetectFaceResult.getFaceLocCam() is heuristically calculate
from upper part of body box. |
boolean |
enableFacePosture
Turn on detect head orientation, when turn off, <0,0,0> will report in
DetectFaceResult.getFaceAngle()
default is false. |
boolean |
enableHeadGazeClassifier
Turn on head direction classifier mostly used if previous head orientation
beyond detection limit and cannot report value.
|
int |
interval
Face detect interval accept only positive integer in seconds, default is 1.
|
int |
intervalInMS
Face detect interval accept only positive integer in millisecond,
default is 1000.
|
| Constructor and Description |
|---|
FaceDetectConfig() |
public boolean enableCandidateObj
false.
Results read in DetectFaceResult.getFaceAngle(), Check this function to see if this FaceResult is a candidate but not convincing person.
public boolean enableDebugPreview
false.public boolean enableDetectHead
false, and
DetectFaceResult.getFaceLocCam() is heuristically calculate
from upper part of body box.
false.
Results read in DetectFaceResult.getFaceLocCam(), Rectangle2D of the ROI bounding user's face in camera frame, normalize to 0 - 1 value with respect to frame width / height separately. Format(x, y, h_width, h_height).
public boolean enableFacePosture
false.
Results read in DetectFaceResult.getFaceAngle(), user face rotation angel, in order of roll (x axis), pitch (y axis), yaw (z axis) PointF3D(pose.roll,pose.pitch,pose.yaw).
public boolean enableHeadGazeClassifier
false.
Results read in DetectFaceResult.getHeadGazeDirection(), user head look direction in specific integer. GAZE_FRONTAL = -50; GAZE_LEFT = -51; GAZE_RIGHT = -52; GAZE_NOT_KNOWN = -53; GAZE_LEFT_45 = -54; GAZE_RIGHT_45 = -55;
public int interval
public int intervalInMS