@zappar/zappar-cv 3.13.0 → 4.0.0-beta.0
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 +2 -2
- package/lib/android-bridge-message-handler.js +3 -3
- package/lib/bridged-camera-source.d.ts +3 -3
- package/lib/bridged-camera-source.js +14 -14
- package/lib/bridged-d3-tracker.d.ts +2 -2
- package/lib/bridged-d3-tracker.js +2 -2
- package/lib/bridged-message-parser.d.ts +1 -1
- package/lib/bridged-message.d.ts +2 -2
- package/lib/bridged-world-tracker.d.ts +2 -2
- package/lib/bridged-world-tracker.js +3 -3
- package/lib/camera-source-map.d.ts +6 -6
- package/lib/camera-source-map.js +7 -7
- package/lib/camera-source.d.ts +2 -2
- package/lib/camera-source.js +6 -6
- package/lib/cameramodel.js +1 -1
- package/lib/ceres-worker.js +2 -2
- package/lib/data-download.d.ts +1 -1
- package/lib/deserializer.d.ts +1 -1
- package/lib/direct.d.ts +1 -1
- package/lib/direct.js +3 -3
- package/lib/drawaxis.js +1 -1
- package/lib/drawcamera.d.ts +1 -1
- package/lib/drawcamera.js +2 -2
- package/lib/drawface.d.ts +1 -1
- package/lib/drawface.js +1 -1
- package/lib/drawfaceproject.js +1 -1
- package/lib/drawgrid.js +1 -1
- package/lib/drawmesh.js +1 -1
- package/lib/drawplane.js +1 -1
- package/lib/drawpoints.js +2 -2
- package/lib/drawpointswithtype.js +2 -2
- package/lib/drawpolygon.js +1 -1
- package/lib/drawpreviewmesh.d.ts +1 -1
- package/lib/drawpreviewmesh.js +1 -1
- package/lib/drawquad.js +1 -1
- package/lib/facelandmark.d.ts +1 -1
- package/lib/facelandmark.js +2 -2
- package/lib/facelandmarkdata.d.ts +1 -1
- package/lib/facemesh.d.ts +2 -2
- package/lib/facemesh.js +1 -1
- package/lib/gen/zappar-bridge.d.ts +20 -20
- package/lib/gen/zappar-bridge.js +12 -12
- package/lib/gen/zappar-client.d.ts +3 -3
- package/lib/gen/zappar-client.js +2 -2
- package/lib/gen/zappar-cwrap.d.ts +1 -1
- package/lib/gen/zappar-server.d.ts +15 -15
- package/lib/gen/zappar-server.js +2 -2
- package/lib/gen/zappar.d.ts +22 -22
- package/lib/gen/zappar.js +12 -12
- package/lib/html-element-source.d.ts +3 -3
- package/lib/html-element-source.js +6 -6
- package/lib/image-blit-gl.js +3 -3
- package/lib/image-process-gl.d.ts +1 -1
- package/lib/image-process-gl.js +3 -3
- package/lib/imagebitmap-camera-source.d.ts +2 -2
- package/lib/imagebitmap-camera-source.js +7 -7
- package/lib/imagetracker-previewmesh.d.ts +1 -1
- package/lib/imagetracker-previewmesh.js +1 -1
- package/lib/imagetracker.d.ts +3 -3
- package/lib/imagetracker.js +3 -3
- package/lib/index-standalone.d.ts +3 -3
- package/lib/index-standalone.js +2 -2
- package/lib/index.d.ts +5 -5
- package/lib/index.js +3 -3
- package/lib/landmarkdatagenerate.js +2 -2
- package/lib/loglevel.d.ts +1 -1
- package/lib/loglevel.js +1 -1
- package/lib/messages.d.ts +1 -1
- package/lib/messages.js +1 -1
- package/lib/mstp-camera-source.d.ts +2 -2
- package/lib/mstp-camera-source.js +6 -6
- package/lib/native.d.ts +2 -2
- package/lib/native.js +27 -27
- package/lib/permission.d.ts +1 -1
- package/lib/permission.js +5 -5
- package/lib/pipeline.d.ts +11 -11
- package/lib/pipeline.js +10 -10
- package/lib/profile.d.ts +1 -1
- package/lib/profile.js +6 -6
- package/lib/sequencerecorder.d.ts +1 -1
- package/lib/sequencerecorder.js +1 -1
- package/lib/sequencesource.d.ts +2 -2
- package/lib/sequencesource.js +4 -4
- package/lib/serializer.d.ts +1 -1
- package/lib/src/additional.d.ts +2 -2
- package/lib/src/bridged-camera-source.d.ts +3 -3
- package/lib/src/bridged-d3-tracker.d.ts +2 -2
- package/lib/src/bridged-message-parser.d.ts +1 -1
- package/lib/src/bridged-message.d.ts +2 -2
- package/lib/src/bridged-world-tracker.d.ts +2 -2
- package/lib/src/camera-source-map.d.ts +6 -6
- package/lib/src/camera-source.d.ts +2 -2
- package/lib/src/data-download.d.ts +1 -1
- package/lib/src/deserializer.d.ts +1 -1
- package/lib/src/direct.d.ts +1 -1
- package/lib/src/drawcamera.d.ts +1 -1
- package/lib/src/drawface.d.ts +1 -1
- package/lib/src/drawpreviewmesh.d.ts +1 -1
- package/lib/src/facelandmark.d.ts +1 -1
- package/lib/src/facelandmarkdata.d.ts +1 -1
- package/lib/src/facemesh.d.ts +2 -2
- package/lib/src/gen/zappar-bridge.d.ts +20 -20
- package/lib/src/gen/zappar-client.d.ts +3 -3
- package/lib/src/gen/zappar-cwrap.d.ts +1 -1
- package/lib/src/gen/zappar-server.d.ts +15 -15
- package/lib/src/gen/zappar.d.ts +22 -22
- package/lib/src/html-element-source.d.ts +3 -3
- package/lib/src/image-process-gl.d.ts +1 -1
- package/lib/src/imagebitmap-camera-source.d.ts +2 -2
- package/lib/src/imagetracker-previewmesh.d.ts +1 -1
- package/lib/src/imagetracker.d.ts +3 -3
- package/lib/src/index-standalone.d.ts +3 -3
- package/lib/src/index.d.ts +5 -5
- package/lib/src/loglevel.d.ts +1 -1
- package/lib/src/messages.d.ts +1 -1
- package/lib/src/mstp-camera-source.d.ts +2 -2
- package/lib/src/native.d.ts +2 -2
- package/lib/src/permission.d.ts +1 -1
- package/lib/src/pipeline.d.ts +11 -11
- package/lib/src/profile.d.ts +1 -1
- package/lib/src/sequencerecorder.d.ts +1 -1
- package/lib/src/sequencesource.d.ts +2 -2
- package/lib/src/serializer.d.ts +1 -1
- package/lib/src/tracing/jsontracer.d.ts +1 -1
- package/lib/src/tracing/sharedtracer.d.ts +1 -1
- package/lib/src/tracing/usertimingtracer.d.ts +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/webxr-camera-source.d.ts +2 -2
- package/lib/src/webxr-world-tracker.d.ts +2 -2
- package/lib/src/worker-client.d.ts +1 -1
- package/lib/src/worker-imagebitmap.d.ts +4 -4
- package/lib/src/worker-messages.d.ts +1 -1
- package/lib/src/worker-server.d.ts +1 -1
- package/lib/src/workerinterface.d.ts +2 -2
- package/lib/tr.js +1 -1
- package/lib/tracing/jsontracer.d.ts +1 -1
- package/lib/tracing/sharedtracer.d.ts +1 -1
- package/lib/tracing/sharedtracer.js +1 -1
- package/lib/tracing/usertimingtracer.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/webxr-camera-source.d.ts +2 -2
- package/lib/webxr-camera-source.js +9 -9
- package/lib/webxr-world-tracker.d.ts +2 -2
- package/lib/webxr-world-tracker.js +3 -3
- package/lib/worker-client.d.ts +1 -1
- package/lib/worker-client.js +1 -1
- package/lib/worker-imagebitmap.d.ts +4 -4
- package/lib/worker-imagebitmap.js +1 -1
- package/lib/worker-messages.d.ts +1 -1
- package/lib/worker-server.d.ts +1 -1
- package/lib/worker-server.js +8 -8
- package/lib/worker.js +1 -1
- package/lib/workerinterface.d.ts +2 -2
- package/lib/yuv-conversion-gl.js +4 -4
- package/package.json +19 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { anchor_status_t, plane_orientation_t, world_scale_mode_t } from "./gen/zappar";
|
|
2
|
-
import { Pipeline } from "./pipeline";
|
|
3
|
-
import { WebXRCameraSource } from "./webxr-camera-source";
|
|
1
|
+
import { anchor_status_t, plane_orientation_t, world_scale_mode_t } from "./gen/zappar.js";
|
|
2
|
+
import { Pipeline } from "./pipeline.js";
|
|
3
|
+
import { WebXRCameraSource } from "./webxr-camera-source.js";
|
|
4
4
|
const _emptyUint8Array = new Uint8Array(0);
|
|
5
5
|
export class WebXRWorldTracker {
|
|
6
6
|
constructor() {
|
package/lib/worker-client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgManager } from "./messages";
|
|
1
|
+
import { MsgManager } from "./messages.js";
|
|
2
2
|
export declare let messageManager: MsgManager;
|
|
3
3
|
export declare function launchWorker(worker?: Worker): Promise<void>;
|
|
4
4
|
export declare function launchCeresWorkers(port0: MessagePort, port1: MessagePort, worker0?: Worker, worker1?: Worker): Promise<void>;
|
package/lib/worker-client.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var _a;
|
|
11
|
-
import { MsgManager } from "./messages";
|
|
11
|
+
import { MsgManager } from "./messages.js";
|
|
12
12
|
export let messageManager = new MsgManager();
|
|
13
13
|
const params = new URLSearchParams(window.location.search);
|
|
14
14
|
const shouldRecordData = parseInt((_a = params.get('_zrecorddata')) !== null && _a !== void 0 ? _a : '0');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { zappar_cwrap } from "./gen/zappar-native";
|
|
2
|
-
import { zappar_server } from "./gen/zappar-server";
|
|
3
|
-
import { MsgManager } from "./messages";
|
|
4
|
-
import { ImageBitmapC2S } from "./workerinterface";
|
|
1
|
+
import { zappar_cwrap } from "./gen/zappar-native.js";
|
|
2
|
+
import { zappar_server } from "./gen/zappar-server.js";
|
|
3
|
+
import { MsgManager } from "./messages.js";
|
|
4
|
+
import { ImageBitmapC2S } from "./workerinterface.js";
|
|
5
5
|
export declare function handleImageBitmap(m: ImageBitmapC2S, r: zappar_cwrap, server: zappar_server, mgr: MsgManager): void;
|
package/lib/worker-messages.d.ts
CHANGED
package/lib/worker-server.d.ts
CHANGED
package/lib/worker-server.js
CHANGED
|
@@ -7,15 +7,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import * as ZNM from "./zappar-cv";
|
|
11
|
-
import { getRuntimeObject } from "./gen/zappar-cwrap";
|
|
12
|
-
import { zappar_server } from "./gen/zappar-server";
|
|
13
|
-
import { MsgManager } from "./messages";
|
|
10
|
+
import * as ZNM from "./zappar-cv.js";
|
|
11
|
+
import { getRuntimeObject } from "./gen/zappar-cwrap.js";
|
|
12
|
+
import { zappar_server } from "./gen/zappar-server.js";
|
|
13
|
+
import { MsgManager } from "./messages.js";
|
|
14
14
|
import { mat4 } from "gl-matrix";
|
|
15
|
-
import { camera_profile_t, frame_pixel_format_t } from "./gen/zappar-native";
|
|
16
|
-
import { handleImageBitmap } from "./worker-imagebitmap";
|
|
17
|
-
import { getWorkerMessageAPI } from "./worker-messages";
|
|
18
|
-
import { getDataDownloadAPI } from "./data-download";
|
|
15
|
+
import { camera_profile_t, frame_pixel_format_t } from "./gen/zappar-native.js";
|
|
16
|
+
import { handleImageBitmap } from "./worker-imagebitmap.js";
|
|
17
|
+
import { getWorkerMessageAPI } from "./worker-messages.js";
|
|
18
|
+
import { getDataDownloadAPI } from "./data-download.js";
|
|
19
19
|
export let messageManager = new MsgManager();
|
|
20
20
|
let workerMessageChannel0;
|
|
21
21
|
let workerMessageChannel1;
|
package/lib/worker.js
CHANGED
package/lib/workerinterface.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="dom-webcodecs" />
|
|
2
|
-
import { CameraFrameData } from "./camera-frame-data";
|
|
3
|
-
import { camera_profile_t, zappar_camera_source_t, zappar_pipeline_t } from "./gen/zappar-native";
|
|
2
|
+
import { CameraFrameData } from "./camera-frame-data.js";
|
|
3
|
+
import { camera_profile_t, zappar_camera_source_t, zappar_pipeline_t } from "./gen/zappar-native.js";
|
|
4
4
|
export interface CameraFrameC2S {
|
|
5
5
|
t: "cameraFrameC2S";
|
|
6
6
|
d: ArrayBuffer;
|
package/lib/yuv-conversion-gl.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GLStateManager } from "./gl-state-manager";
|
|
2
|
-
import { compileShader, linkProgram } from "./shader";
|
|
3
|
-
import { zcout } from "./loglevel";
|
|
4
|
-
import { getSharedTracer } from "./tracing/sharedtracer";
|
|
1
|
+
import { GLStateManager } from "./gl-state-manager.js";
|
|
2
|
+
import { compileShader, linkProgram } from "./shader.js";
|
|
3
|
+
import { zcout } from "./loglevel.js";
|
|
4
|
+
import { getSharedTracer } from "./tracing/sharedtracer.js";
|
|
5
5
|
// Some no-op tracing helpers for concise code and good dead code removal in bundlers
|
|
6
6
|
let tracer = null;
|
|
7
7
|
let traceStart = (name) => { };
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zappar/zappar-cv",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.0",
|
|
4
4
|
"description": "Zappar's core computer vision library, supporting image, face and world tracking.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "lib/index.js",
|
|
6
7
|
"types": "lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./lib/*": "./lib/*"
|
|
14
|
+
},
|
|
7
15
|
"scripts": {
|
|
8
|
-
"build-standalone": "webpack --config=webpack.config.standalone.
|
|
9
|
-
"build-standalone-debug": "webpack --config=webpack.config.standalone.
|
|
16
|
+
"build-standalone": "webpack --config=webpack.config.standalone.cjs --mode=production",
|
|
17
|
+
"build-standalone-debug": "webpack --config=webpack.config.standalone.cjs --mode=development",
|
|
10
18
|
"build-module": "tsc",
|
|
11
19
|
"tsc-watch": "tsc --watch",
|
|
12
20
|
"test-module": "npx playwright test --config playwright.config.module.ts",
|
|
13
21
|
"test-standalone": "npx playwright test --config playwright.config.standalone.ts",
|
|
14
22
|
"test-cdn": "npx playwright test --config playwright.config.cdn.ts",
|
|
15
23
|
"test-cdn-live": "npx playwright test --config playwright.config.cdn-live.ts",
|
|
16
|
-
"tests": "webpack --config=webpack.tests.config.
|
|
17
|
-
"tests-with-tracing": "webpack --config=webpack.testswithtracing.config.
|
|
18
|
-
"tests-with-tracing-prod": "webpack --config=webpack.testswithtracing.config.
|
|
19
|
-
"webpack-puppeteer": "webpack --config=webpack.config.puppeteer.
|
|
24
|
+
"tests": "webpack --config=webpack.tests.config.cjs --mode=development && webpack serve --mode=development --config=webpack.tests.config.cjs",
|
|
25
|
+
"tests-with-tracing": "webpack --config=webpack.testswithtracing.config.cjs --mode=development && webpack serve --mode=development --config=webpack.testswithtracing.config.cjs",
|
|
26
|
+
"tests-with-tracing-prod": "webpack --config=webpack.testswithtracing.config.cjs --mode=production && webpack serve --mode=production --config=webpack.testswithtracing.config.cjs",
|
|
27
|
+
"webpack-puppeteer": "webpack --config=webpack.config.puppeteer.cjs --mode=development && webpack serve --config=webpack.config.puppeteer.cjs",
|
|
20
28
|
"audit": "better-npm-audit audit --production"
|
|
21
29
|
},
|
|
22
30
|
"author": "Zappar Limited",
|
|
@@ -29,10 +37,10 @@
|
|
|
29
37
|
"devDependencies": {
|
|
30
38
|
"@playwright/test": "^1.48.2",
|
|
31
39
|
"@types/dom-mediacapture-transform": "0.1.1",
|
|
40
|
+
"@types/dom-webcodecs": "0.1.2",
|
|
32
41
|
"@types/node": "14.14.7",
|
|
33
42
|
"@types/offscreencanvas": "2019.6.4",
|
|
34
43
|
"@types/pngjs": "6.0.0",
|
|
35
|
-
"@types/ua-parser-js": "0.7.33",
|
|
36
44
|
"@types/webxr": "0.5.22",
|
|
37
45
|
"@zappar/zapworks-cli": "2.0.6",
|
|
38
46
|
"better-npm-audit": "^3.7.3",
|
|
@@ -45,12 +53,11 @@
|
|
|
45
53
|
"webpack": "5.89.0",
|
|
46
54
|
"webpack-cli": "4.9.2",
|
|
47
55
|
"webpack-dev-server": "^4.7.3",
|
|
48
|
-
"worker-loader": "^3.0.8"
|
|
49
|
-
"@types/dom-webcodecs": "0.1.2"
|
|
56
|
+
"worker-loader": "^3.0.8"
|
|
50
57
|
},
|
|
51
58
|
"dependencies": {
|
|
52
59
|
"@types/w3c-generic-sensor": "^1.0.9",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
60
|
+
"bowser": "^2.14.1",
|
|
61
|
+
"gl-matrix": "3.4.3"
|
|
55
62
|
}
|
|
56
63
|
}
|