public static class VisionConfig.PersonRecognizeConfig
extends java.lang.Object
Example:
VisionConfig.PersonRecognizeConfig config= new VisionConfig.PersonRecognizeConfig();
config.enableDebugPreview = false;
config.enableDetectHead = true;
config.enableFacePosture = true;
config.enableCandidateObj = true;
config.enableHeadGazeClassifier = true;
config.interval = 1;
config.interval = 0.1;
config.trackId = 1;
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,
RecognizePersonResult.hasValidHeadROI() report
false ,
and RecognizePersonResult.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
RecognizePersonResult.getFaceAngle()
default is true . |
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 |
---|
PersonRecognizeConfig() |
public boolean enableCandidateObj
false
.
Results read in RecognizePersonResult.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 RecognizePersonResult.getFaceLocCam() is heuristically
calculate from upper part of body box.
false
.
Results read in RecognizePersonResult.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
true
.
Results read in RecognizePersonResult.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 RecognizePersonResult.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