Package | com.myflashlab.air.extensions.firebase.mlkit |
Class | public class FaceDetector |
Inheritance | FaceDetector Object |
Method | Defined By | ||
---|---|---|---|
close():void
Closes the face detector and release its model resources. | FaceDetector | ||
process($visionImage:VisionImage, $contours:Vector.<int>, $callback:Function):void | FaceDetector |
Constant | Defined By | ||
---|---|---|---|
CONTOUR_ALL_POINTS : int = 0 [static] | FaceDetector | ||
CONTOUR_FACE : int = 1 [static] | FaceDetector | ||
CONTOUR_LEFT_EYE : int = 6 [static] | FaceDetector | ||
CONTOUR_LEFT_EYEBROW_BOTTOM : int = 3 [static] | FaceDetector | ||
CONTOUR_LEFT_EYEBROW_TOP : int = 2 [static] | FaceDetector | ||
CONTOUR_LOWER_LIP_BOTTOM : int = 11 [static] | FaceDetector | ||
CONTOUR_LOWER_LIP_TOP : int = 10 [static] | FaceDetector | ||
CONTOUR_NOSE_BOTTOM : int = 13 [static] | FaceDetector | ||
CONTOUR_NOSE_BRIDGE : int = 12 [static] | FaceDetector | ||
CONTOUR_RIGHT_EYE : int = 7 [static] | FaceDetector | ||
CONTOUR_RIGHT_EYEBROW_BOTTOM : int = 5 [static] | FaceDetector | ||
CONTOUR_RIGHT_EYEBROW_TOP : int = 4 [static] | FaceDetector | ||
CONTOUR_UPPER_LIP_BOTTOM : int = 9 [static] | FaceDetector | ||
CONTOUR_UPPER_LIP_TOP : int = 8 [static] | FaceDetector |
close | () | method |
public function close():void
Closes the face detector and release its model resources. To use it again, you must init again.
process | () | method |
public function process($visionImage:VisionImage, $contours:Vector.<int>, $callback:Function):void
Parameters
$visionImage:VisionImage | |
$contours:Vector.<int> — [CONTOUR_FACE, CONTOUR_RIGHT_EYEBROW_TOP, ...] if you're setting this, you must have set 'contourMode' when calling 'faceDetector_init'
| |
$callback:Function |
CONTOUR_ALL_POINTS | Constant |
public static const CONTOUR_ALL_POINTS:int = 0
CONTOUR_FACE | Constant |
public static const CONTOUR_FACE:int = 1
CONTOUR_LEFT_EYE | Constant |
public static const CONTOUR_LEFT_EYE:int = 6
CONTOUR_LEFT_EYEBROW_BOTTOM | Constant |
public static const CONTOUR_LEFT_EYEBROW_BOTTOM:int = 3
CONTOUR_LEFT_EYEBROW_TOP | Constant |
public static const CONTOUR_LEFT_EYEBROW_TOP:int = 2
CONTOUR_LOWER_LIP_BOTTOM | Constant |
public static const CONTOUR_LOWER_LIP_BOTTOM:int = 11
CONTOUR_LOWER_LIP_TOP | Constant |
public static const CONTOUR_LOWER_LIP_TOP:int = 10
CONTOUR_NOSE_BOTTOM | Constant |
public static const CONTOUR_NOSE_BOTTOM:int = 13
CONTOUR_NOSE_BRIDGE | Constant |
public static const CONTOUR_NOSE_BRIDGE:int = 12
CONTOUR_RIGHT_EYE | Constant |
public static const CONTOUR_RIGHT_EYE:int = 7
CONTOUR_RIGHT_EYEBROW_BOTTOM | Constant |
public static const CONTOUR_RIGHT_EYEBROW_BOTTOM:int = 5
CONTOUR_RIGHT_EYEBROW_TOP | Constant |
public static const CONTOUR_RIGHT_EYEBROW_TOP:int = 4
CONTOUR_UPPER_LIP_BOTTOM | Constant |
public static const CONTOUR_UPPER_LIP_BOTTOM:int = 9
CONTOUR_UPPER_LIP_TOP | Constant |
public static const CONTOUR_UPPER_LIP_TOP:int = 8