@nano-lib/util 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/face.d.ts +2 -3
- package/package.json +1 -1
package/lib/utils/face.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as faceapi from 'face-api.js';
|
|
2
1
|
export type ImgFormat = 'blob' | 'base64';
|
|
3
2
|
export type FaceapiGesture = 'nod' | 'shake' | 'mouth' | 'eye';
|
|
4
3
|
export declare const faceapiLivingEvent: FaceapiGesture[];
|
|
5
4
|
export declare const faceapiLivingEventHint: Record<FaceapiGesture, string>;
|
|
6
5
|
export declare function loadFaceModels(modelsPath: string): Promise<void>;
|
|
7
|
-
export declare function getFaceLandmarks(video: HTMLVideoElement, score?: number, time?: number): Promise<
|
|
8
|
-
detection:
|
|
6
|
+
export declare function getFaceLandmarks(video: HTMLVideoElement, score?: number, time?: number): Promise<import('face-api.js').WithFaceLandmarks<{
|
|
7
|
+
detection: import('face-api.js').FaceDetection;
|
|
9
8
|
}> | undefined>;
|
|
10
9
|
export declare function getFaceVideoFrame(video: HTMLVideoElement, format?: ImgFormat, quality?: number): Promise<string | ArrayBuffer>;
|
|
11
10
|
export declare function getFaceGestureResult(video: HTMLVideoElement, gesture: FaceapiGesture, times?: number): Promise<boolean>;
|