Packagecom.myflashlab.air.extensions.firebase.mlkit
Classpublic class FaceDetector
InheritanceFaceDetector Inheritance Object



Public Methods
 MethodDefined By
  
close():void
Closes the face detector and release its model resources.
FaceDetector
  
process($visionImage:VisionImage, $contours:Vector.<int>, $callback:Function):void
FaceDetector
Public Constants
 ConstantDefined 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
Method Detail
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

Constant Detail
CONTOUR_ALL_POINTSConstant
public static const CONTOUR_ALL_POINTS:int = 0

CONTOUR_FACEConstant 
public static const CONTOUR_FACE:int = 1

CONTOUR_LEFT_EYEConstant 
public static const CONTOUR_LEFT_EYE:int = 6

CONTOUR_LEFT_EYEBROW_BOTTOMConstant 
public static const CONTOUR_LEFT_EYEBROW_BOTTOM:int = 3

CONTOUR_LEFT_EYEBROW_TOPConstant 
public static const CONTOUR_LEFT_EYEBROW_TOP:int = 2

CONTOUR_LOWER_LIP_BOTTOMConstant 
public static const CONTOUR_LOWER_LIP_BOTTOM:int = 11

CONTOUR_LOWER_LIP_TOPConstant 
public static const CONTOUR_LOWER_LIP_TOP:int = 10

CONTOUR_NOSE_BOTTOMConstant 
public static const CONTOUR_NOSE_BOTTOM:int = 13

CONTOUR_NOSE_BRIDGEConstant 
public static const CONTOUR_NOSE_BRIDGE:int = 12

CONTOUR_RIGHT_EYEConstant 
public static const CONTOUR_RIGHT_EYE:int = 7

CONTOUR_RIGHT_EYEBROW_BOTTOMConstant 
public static const CONTOUR_RIGHT_EYEBROW_BOTTOM:int = 5

CONTOUR_RIGHT_EYEBROW_TOPConstant 
public static const CONTOUR_RIGHT_EYEBROW_TOP:int = 4

CONTOUR_UPPER_LIP_BOTTOMConstant 
public static const CONTOUR_UPPER_LIP_BOTTOM:int = 9

CONTOUR_UPPER_LIP_TOPConstant 
public static const CONTOUR_UPPER_LIP_TOP:int = 8