Inline constants for FaceLandmarksConnections
PiperOrigin-RevId: 530384171
This commit is contained in:
parent
e3c2f31ddf
commit
ae8bedd352
|
@ -33,10 +33,10 @@ import {ImageSource, WasmModule} from '../../../../web/graph_runner/graph_runner
|
|||
|
||||
import {FaceLandmarkerOptions} from './face_landmarker_options';
|
||||
import {FaceLandmarkerResult} from './face_landmarker_result';
|
||||
import {FACE_LANDMARKS_CONTOURS, FACE_LANDMARKS_FACE_OVAL, FACE_LANDMARKS_LEFT_EYE, FACE_LANDMARKS_LEFT_EYEBROW, FACE_LANDMARKS_LEFT_IRIS, FACE_LANDMARKS_LIPS, FACE_LANDMARKS_RIGHT_EYE, FACE_LANDMARKS_RIGHT_EYEBROW, FACE_LANDMARKS_RIGHT_IRIS, FACE_LANDMARKS_TESSELATION} from './face_landmarks_connections';
|
||||
|
||||
export * from './face_landmarker_options';
|
||||
export * from './face_landmarker_result';
|
||||
export * from './face_landmarks_connections';
|
||||
export {ImageSource};
|
||||
|
||||
// The OSS JS API does not support the builder pattern.
|
||||
|
@ -112,6 +112,43 @@ export class FaceLandmarker extends VisionTaskRunner {
|
|||
FaceLandmarker, wasmFileset, {baseOptions: {modelAssetPath}});
|
||||
}
|
||||
|
||||
/** Landmark connections to draw the connection between a face's lips. */
|
||||
static FACE_LANDMARKS_LIPS = FACE_LANDMARKS_LIPS;
|
||||
|
||||
/** Landmark connections to draw the connection between a face's left eye. */
|
||||
static FACE_LANDMARKS_LEFT_EYE = FACE_LANDMARKS_LEFT_EYE;
|
||||
|
||||
/**
|
||||
* Landmark connections to draw the connection between a face's left eyebrow.
|
||||
*/
|
||||
static FACE_LANDMARKS_LEFT_EYEBROW = FACE_LANDMARKS_LEFT_EYEBROW;
|
||||
|
||||
/** Landmark connections to draw the connection between a face's left iris. */
|
||||
static FACE_LANDMARKS_LEFT_IRIS = FACE_LANDMARKS_LEFT_IRIS;
|
||||
|
||||
/** Landmark connections to draw the connection between a face's right eye. */
|
||||
static FACE_LANDMARKS_RIGHT_EYE = FACE_LANDMARKS_RIGHT_EYE;
|
||||
|
||||
/**
|
||||
* Landmark connections to draw the connection between a face's right
|
||||
* eyebrow.
|
||||
*/
|
||||
static FACE_LANDMARKS_RIGHT_EYEBROW = FACE_LANDMARKS_RIGHT_EYEBROW;
|
||||
|
||||
/**
|
||||
* Landmark connections to draw the connection between a face's right iris.
|
||||
*/
|
||||
static FACE_LANDMARKS_RIGHT_IRIS = FACE_LANDMARKS_RIGHT_IRIS;
|
||||
|
||||
/** Landmark connections to draw the face's oval. */
|
||||
static FACE_LANDMARKS_FACE_OVAL = FACE_LANDMARKS_FACE_OVAL;
|
||||
|
||||
/** Landmark connections to draw the face's contour. */
|
||||
static FACE_LANDMARKS_CONTOURS = FACE_LANDMARKS_CONTOURS;
|
||||
|
||||
/** Landmark connections to draw the face's tesselation. */
|
||||
static FACE_LANDMARKS_TESSELATION = FACE_LANDMARKS_TESSELATION;
|
||||
|
||||
/** @hideconstructor */
|
||||
constructor(
|
||||
wasmModule: WasmModule,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -19,7 +19,7 @@ import {DrawingUtils as DrawingUtilsImpl} from '../../../tasks/web/vision/core/d
|
|||
import {MPImage as MPImageImpl} from '../../../tasks/web/vision/core/image';
|
||||
import {MPMask as MPMaskImpl} from '../../../tasks/web/vision/core/mask';
|
||||
import {FaceDetector as FaceDetectorImpl} from '../../../tasks/web/vision/face_detector/face_detector';
|
||||
import {FaceLandmarker as FaceLandmarkerImpl, FaceLandmarksConnections as FaceLandmarksConnectionsImpl} from '../../../tasks/web/vision/face_landmarker/face_landmarker';
|
||||
import {FaceLandmarker as FaceLandmarkerImpl} from '../../../tasks/web/vision/face_landmarker/face_landmarker';
|
||||
import {FaceStylizer as FaceStylizerImpl} from '../../../tasks/web/vision/face_stylizer/face_stylizer';
|
||||
import {GestureRecognizer as GestureRecognizerImpl} from '../../../tasks/web/vision/gesture_recognizer/gesture_recognizer';
|
||||
import {HandLandmarker as HandLandmarkerImpl} from '../../../tasks/web/vision/hand_landmarker/hand_landmarker';
|
||||
|
@ -38,7 +38,6 @@ const MPImage = MPImageImpl;
|
|||
const MPMask = MPMaskImpl;
|
||||
const FaceDetector = FaceDetectorImpl;
|
||||
const FaceLandmarker = FaceLandmarkerImpl;
|
||||
const FaceLandmarksConnections = FaceLandmarksConnectionsImpl;
|
||||
const FaceStylizer = FaceStylizerImpl;
|
||||
const GestureRecognizer = GestureRecognizerImpl;
|
||||
const HandLandmarker = HandLandmarkerImpl;
|
||||
|
@ -56,7 +55,6 @@ export {
|
|||
MPMask,
|
||||
FaceDetector,
|
||||
FaceLandmarker,
|
||||
FaceLandmarksConnections,
|
||||
FaceStylizer,
|
||||
GestureRecognizer,
|
||||
HandLandmarker,
|
||||
|
|
Loading…
Reference in New Issue
Block a user