public static class VisionConfig.PersonDetectConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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. |
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.
|
int |
trackId
Specifies the person you want to track, get this id by
VisionControl.requestDetectPerson(float)
|
Constructor and Description |
---|
PersonDetectConfig() |
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 int interval
public int intervalInMS
public int trackId