@zappar/zappar-cv 0.4.0-beta.10 → 0.4.0-beta.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/README.md +2 -2
- package/lib/additional.d.ts +1 -1
- package/lib/imagetracker.d.ts +1 -1
- package/lib/imagetracker.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/umd/zappar-cv.js +1 -1
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ npm i @zappar/zappar-cv
|
|
|
18
18
|
|
|
19
19
|
You can use our CDN from within your HTML:
|
|
20
20
|
```
|
|
21
|
-
<script src="https://libs.zappar.com/zappar-cv/0.4.0-beta.
|
|
21
|
+
<script src="https://libs.zappar.com/zappar-cv/0.4.0-beta.11/zappar-cv.js"></script>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Or you can download and host our standalone JavaScript bundle:
|
|
25
|
-
[https://libs.zappar.com/zappar-cv/0.4.0-beta.
|
|
25
|
+
[https://libs.zappar.com/zappar-cv/0.4.0-beta.11/zappar-cv.zip](https://libs.zappar.com/zappar-cv/0.4.0-beta.11/zappar-cv.zip)
|
package/lib/additional.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface Additional {
|
|
|
8
8
|
pipeline_draw_face(pipeline: zappar_pipeline_t, projectionMatrix: Float32Array, cameraMatrix: Float32Array, targetMatrix: Float32Array, o: zappar_face_mesh_t): void;
|
|
9
9
|
pipeline_draw_face_project(pipeline: zappar_pipeline_t, drawwMatrix: Float32Array, vertices: Float32Array, uvMatrix: Float32Array, uvs: Float32Array, indices: Uint16Array, texture: WebGLTexture): void;
|
|
10
10
|
draw_plane(gl: WebGLRenderingContext, projectionMatrix: Float32Array, cameraMatrix: Float32Array, targetMatrix: Float32Array, texture: string): void;
|
|
11
|
-
image_tracker_target_image(o: zappar_image_tracker_t, indx: number): HTMLImageElement;
|
|
11
|
+
image_tracker_target_image(o: zappar_image_tracker_t, indx: number): HTMLImageElement | undefined;
|
|
12
12
|
face_mesh_load_default(o: zappar_face_mesh_t): Promise<void>;
|
|
13
13
|
face_mesh_load_default_face(o: zappar_face_mesh_t, fillMouth: boolean, fillEyeL: boolean, fillEyeR: boolean): Promise<void>;
|
|
14
14
|
face_mesh_load_default_full_head_simplified(o: zappar_face_mesh_t, fillMouth: boolean, fillEyeL: boolean, fillEyeR: boolean, fillNeck: boolean): Promise<void>;
|
package/lib/imagetracker.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export declare class ImageTracker {
|
|
|
23
23
|
targetCount(): number;
|
|
24
24
|
getTargetInfo(i: number): ParsedTargetInfo;
|
|
25
25
|
private _parseOdle;
|
|
26
|
-
getDecodedPreview(i: number): HTMLImageElement;
|
|
26
|
+
getDecodedPreview(i: number): HTMLImageElement | undefined;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
package/lib/imagetracker.js
CHANGED
|
@@ -105,7 +105,7 @@ class ImageTracker {
|
|
|
105
105
|
getDecodedPreview(i) {
|
|
106
106
|
const info = this.getTargetInfo(i);
|
|
107
107
|
if (!info.preview)
|
|
108
|
-
return
|
|
108
|
+
return undefined;
|
|
109
109
|
const blob = new Blob([info.preview.compressed], { type: info.preview.mimeType });
|
|
110
110
|
const image = new Image();
|
|
111
111
|
image.src = URL.createObjectURL(blob);
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.4.0-beta.
|
|
1
|
+
export declare const VERSION = "0.4.0-beta.11";
|
package/lib/version.js
CHANGED
package/package.json
CHANGED