@mediapipe/tasks-vision 0.1.0-alpha-8 → 0.1.0-alpha-9
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/package.json +1 -1
- package/vision.d.ts +68 -0
- package/vision_bundle.js +1 -1
- package/wasm/vision_wasm_internal.js +132 -132
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +139 -139
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
package/package.json
CHANGED
package/vision.d.ts
CHANGED
|
@@ -153,6 +153,27 @@ declare interface ClassifierOptions {
|
|
|
153
153
|
categoryDenylist?: string[] | undefined;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* CopyRIGHT 2023 The MediaPipe Authors. All RIGHTs Reserved.
|
|
158
|
+
*
|
|
159
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
160
|
+
* you may not use this file except in compliance with the License.
|
|
161
|
+
* You may obtain a copy of the License at
|
|
162
|
+
*
|
|
163
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
164
|
+
*
|
|
165
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
166
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
167
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
168
|
+
* See the License for the specific language governing permissions and
|
|
169
|
+
* limitations under the License.
|
|
170
|
+
*/
|
|
171
|
+
/** A face landmark connection. */
|
|
172
|
+
export declare interface Connection {
|
|
173
|
+
start: number;
|
|
174
|
+
end: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
156
177
|
/** Represents one detection by a detection task. */
|
|
157
178
|
export declare interface Detection {
|
|
158
179
|
/** A list of `Category` objects. */
|
|
@@ -449,6 +470,53 @@ export declare interface FaceLandmarkerResult {
|
|
|
449
470
|
facialTransformationMatrixes?: Matrix[];
|
|
450
471
|
}
|
|
451
472
|
|
|
473
|
+
/**
|
|
474
|
+
* A class containing the Pairs of landmark indices to be rendered with
|
|
475
|
+
* connections.
|
|
476
|
+
*/
|
|
477
|
+
export declare class FaceLandmarksConnections {
|
|
478
|
+
static FACE_LANDMARKS_LIPS: {
|
|
479
|
+
start: number;
|
|
480
|
+
end: number;
|
|
481
|
+
}[];
|
|
482
|
+
static FACE_LANDMARKS_LEFT_EYE: {
|
|
483
|
+
start: number;
|
|
484
|
+
end: number;
|
|
485
|
+
}[];
|
|
486
|
+
static FACE_LANDMARKS_LEFT_EYEBROW: {
|
|
487
|
+
start: number;
|
|
488
|
+
end: number;
|
|
489
|
+
}[];
|
|
490
|
+
static FACE_LANDMARKS_LEFT_IRIS: {
|
|
491
|
+
start: number;
|
|
492
|
+
end: number;
|
|
493
|
+
}[];
|
|
494
|
+
static FACE_LANDMARKS_RIGHT_EYE: {
|
|
495
|
+
start: number;
|
|
496
|
+
end: number;
|
|
497
|
+
}[];
|
|
498
|
+
static FACE_LANDMARKS_RIGHT_EYEBROW: {
|
|
499
|
+
start: number;
|
|
500
|
+
end: number;
|
|
501
|
+
}[];
|
|
502
|
+
static FACE_LANDMARKS_RIGHT_IRIS: {
|
|
503
|
+
start: number;
|
|
504
|
+
end: number;
|
|
505
|
+
}[];
|
|
506
|
+
static FACE_LANDMARKS_FACE_OVAL: {
|
|
507
|
+
start: number;
|
|
508
|
+
end: number;
|
|
509
|
+
}[];
|
|
510
|
+
static FACE_LANDMARKS_CONTOURS: {
|
|
511
|
+
start: number;
|
|
512
|
+
end: number;
|
|
513
|
+
}[];
|
|
514
|
+
static FACE_LANDMARKS_TESSELATION: {
|
|
515
|
+
start: number;
|
|
516
|
+
end: number;
|
|
517
|
+
}[];
|
|
518
|
+
}
|
|
519
|
+
|
|
452
520
|
/** Performs face stylization on images. */
|
|
453
521
|
export declare class FaceStylizer extends VisionTaskRunner {
|
|
454
522
|
/**
|