MLFaceAnalyzerSetting class
Constants
-
modeTracingFast
→ const int
-
Fast tracking mode. In this mode, detection and tracking are performed at the same time.
Initial detection has a delay, but the detection during tracking is fast.
When used together with the speed preference mode,
this mode can make the greatest improvements to the detection performance.
-
modeTracingRobust
→ const int
-
Common tracking mode. In this mode, initial detection is fast,
but the performance of detection during tracking will be affected by
face re-detection every several frames. The detection result in this mode is stable.
-
typeFeatureAge
→ const int
-
Detects the age.
-
typeFeatureBeard
→ const int
-
Detects whether a person has a beard.
-
typeFeatureEmotion
→ const int
-
Detects facial expressions.
-
typeFeatureEyeglass
→ const int
-
Detects whether a person wears glasses.
-
typeFeatureGender
→ const int
-
Detects the gender.
-
typeFeatureHat
→ const int
-
Detects whether a person wears a hat.
-
typeFeatureOpenCloseEye
→ const int
-
Detects eye opening and eye closing.
-
typeFeatures
→ const int
-
Detects all facial features and expressions.
-
typeKeyPoints
→ const int
-
Precision preference mode. This mode will detect more faces and be
more precise in detecting key points and contours, but will run slower.
-
typePrecision
→ const int
-
Precision preference mode. This mode will detect more faces
and be more precise in detecting key points and contours, but will run slower.
-
typeShapes
→ const int
-
Detects facial contours.
-
typeSpeed
→ const int
-
Speed preference mode. This mode will detect fewer faces
and be less precise in detecting key points and contours, but will run faster.
-
typeUnsupportedFeatures
→ const int
-
Detects only basic data: including contours, key points,
and three-dimensional rotation angles; does not detect facial features or expressions.
-
typeUnsupportedKeyPoints
→ const int
-
Does not detect key face points.
-
typeUnsupportedShapes
→ const int
-
Does not detect facial contours.