@zappar/zappar-cv 3.0.0-beta.2 → 3.0.0-beta.4
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/camera-source.js +2 -2
- package/lib/imagebitmap-camera-source.js +2 -2
- package/lib/mstp-camera-source.js +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/zappar-cv.wasm +0 -0
- package/package.json +1 -1
- package/umd/{716ba8996a5e0574e40e.wasm → 22a0ba3553d400112656.wasm} +0 -0
- package/umd/56.zappar-cv.js +1 -1
- package/umd/zappar-cv.js +1 -1
- package/umd/zappar-cv.worker.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/3.0.0-beta.
|
|
21
|
+
<script src="https://libs.zappar.com/zappar-cv/3.0.0-beta.4/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/3.0.0-beta.
|
|
25
|
+
[https://libs.zappar.com/zappar-cv/3.0.0-beta.4/zappar-cv.zip](https://libs.zappar.com/zappar-cv/3.0.0-beta.4/zappar-cv.zip)
|
package/lib/camera-source.js
CHANGED
|
@@ -57,7 +57,7 @@ export class CameraSource extends HTMLElementSource {
|
|
|
57
57
|
ev.rotationRate.alpha !== null &&
|
|
58
58
|
ev.rotationRate.beta !== null &&
|
|
59
59
|
ev.rotationRate.gamma !== null && this._hasStartedOrientation) {
|
|
60
|
-
pipeline.motionRotationRateSubmit(timeStamp, ev.rotationRate.alpha, ev.rotationRate.beta, ev.rotationRate.gamma);
|
|
60
|
+
pipeline.motionRotationRateSubmit(timeStamp, ev.rotationRate.alpha * Math.PI / -180.0, ev.rotationRate.beta * Math.PI / -180.0, ev.rotationRate.gamma * Math.PI / -180.0);
|
|
61
61
|
pipeline.motionRotationRateSubmitInt(timeStamp, interval, ev.rotationRate.alpha, ev.rotationRate.beta, ev.rotationRate.gamma);
|
|
62
62
|
}
|
|
63
63
|
else if (!this._hasStartedOrientation) {
|
|
@@ -209,7 +209,7 @@ export class CameraSource extends HTMLElementSource {
|
|
|
209
209
|
let timeStamp = (ev.timeStamp !== undefined && ev.timeStamp !== null) ? ev.timeStamp : performance.now();
|
|
210
210
|
if (ev.alpha === null || ev.beta === null || ev.gamma === null)
|
|
211
211
|
return;
|
|
212
|
-
pipeline.motionAttitudeSubmit(timeStamp, ev.alpha, ev.beta, ev.gamma);
|
|
212
|
+
// pipeline.motionAttitudeSubmit(timeStamp, ev.alpha, ev.beta, ev.gamma);
|
|
213
213
|
pipeline.motionAttitudeSubmitInt(timeStamp, 0, ev.alpha, ev.beta, ev.gamma);
|
|
214
214
|
};
|
|
215
215
|
window.addEventListener("deviceorientation", this._deviceOrientationListener);
|
|
@@ -62,7 +62,7 @@ export class ImageBitmapCameraSource extends Source {
|
|
|
62
62
|
ev.rotationRate.alpha !== null &&
|
|
63
63
|
ev.rotationRate.beta !== null &&
|
|
64
64
|
ev.rotationRate.gamma !== null && this._hasStartedOrientation) {
|
|
65
|
-
pipeline.motionRotationRateSubmit(timeStamp, ev.rotationRate.alpha, ev.rotationRate.beta, ev.rotationRate.gamma);
|
|
65
|
+
pipeline.motionRotationRateSubmit(timeStamp, ev.rotationRate.alpha * Math.PI / -180.0, ev.rotationRate.beta * Math.PI / -180.0, ev.rotationRate.gamma * Math.PI / -180.0);
|
|
66
66
|
pipeline.motionRotationRateSubmitInt(timeStamp, interval, ev.rotationRate.alpha, ev.rotationRate.beta, ev.rotationRate.gamma);
|
|
67
67
|
}
|
|
68
68
|
else if (!this._hasStartedOrientation) {
|
|
@@ -253,7 +253,7 @@ export class ImageBitmapCameraSource extends Source {
|
|
|
253
253
|
let timeStamp = (ev.timeStamp !== undefined && ev.timeStamp !== null) ? ev.timeStamp : performance.now();
|
|
254
254
|
if (ev.alpha === null || ev.beta === null || ev.gamma === null)
|
|
255
255
|
return;
|
|
256
|
-
pipeline.motionAttitudeSubmit(timeStamp, ev.alpha, ev.beta, ev.gamma);
|
|
256
|
+
// pipeline.motionAttitudeSubmit(timeStamp, ev.alpha, ev.beta, ev.gamma);
|
|
257
257
|
pipeline.motionAttitudeSubmitInt(timeStamp, 0, ev.alpha, ev.beta, ev.gamma);
|
|
258
258
|
});
|
|
259
259
|
}
|
|
@@ -54,7 +54,7 @@ export class MSTPCameraSource extends Source {
|
|
|
54
54
|
ev.rotationRate.alpha !== null &&
|
|
55
55
|
ev.rotationRate.beta !== null &&
|
|
56
56
|
ev.rotationRate.gamma !== null && this._hasStartedOrientation) {
|
|
57
|
-
pipeline.motionRotationRateSubmit(timeStamp, ev.rotationRate.alpha, ev.rotationRate.beta, ev.rotationRate.gamma);
|
|
57
|
+
pipeline.motionRotationRateSubmit(timeStamp, ev.rotationRate.alpha * Math.PI / -180.0, ev.rotationRate.beta * Math.PI / -180.0, ev.rotationRate.gamma * Math.PI / -180.0);
|
|
58
58
|
pipeline.motionRotationRateSubmitInt(timeStamp, interval, ev.rotationRate.alpha, ev.rotationRate.beta, ev.rotationRate.gamma);
|
|
59
59
|
}
|
|
60
60
|
else if (!this._hasStartedOrientation) {
|
|
@@ -216,7 +216,7 @@ export class MSTPCameraSource extends Source {
|
|
|
216
216
|
let timeStamp = (ev.timeStamp !== undefined && ev.timeStamp !== null) ? ev.timeStamp : performance.now();
|
|
217
217
|
if (ev.alpha === null || ev.beta === null || ev.gamma === null)
|
|
218
218
|
return;
|
|
219
|
-
pipeline.motionAttitudeSubmit(timeStamp, ev.alpha, ev.beta, ev.gamma);
|
|
219
|
+
// pipeline.motionAttitudeSubmit(timeStamp, ev.alpha, ev.beta, ev.gamma);
|
|
220
220
|
pipeline.motionAttitudeSubmitInt(timeStamp, 0, ev.alpha, ev.beta, ev.gamma);
|
|
221
221
|
});
|
|
222
222
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.0-beta.
|
|
1
|
+
export declare const VERSION = "3.0.0-beta.4";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.0-beta.
|
|
1
|
+
export const VERSION = "3.0.0-beta.4";
|
package/lib/zappar-cv.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|