@zappar/zappar-cv 3.1.0-beta.1 → 3.1.0-beta.3

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 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.1.0-beta.1/zappar-cv.js"></script>
21
+ <script src="https://libs.zappar.com/zappar-cv/3.1.0-beta.3/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.1.0-beta.1/zappar-cv.zip](https://libs.zappar.com/zappar-cv/3.1.0-beta.1/zappar-cv.zip)
25
+ [https://libs.zappar.com/zappar-cv/3.1.0-beta.3/zappar-cv.zip](https://libs.zappar.com/zappar-cv/3.1.0-beta.3/zappar-cv.zip)
@@ -43,4 +43,5 @@ export interface Additional {
43
43
  sequence_source_time_set: (o: zappar_sequence_source_t, ms: number) => void;
44
44
  cookies_permitted: (p: boolean) => void;
45
45
  world_tracker_points_data_matrix(wt: zappar_world_tracker_t, screenWidth: number, screenHeight: number, mirror: boolean): Float32Array;
46
+ in_app_clip: () => boolean;
46
47
  }
@@ -325,6 +325,7 @@ export class zappar_client {
325
325
  m.type(o);
326
326
  m.bool(enabled);
327
327
  });
328
+ s.enabled = enabled;
328
329
  },
329
330
  image_tracker_anchor_count: (o) => {
330
331
  let s = this._image_tracker_state_by_instance.get(o);
@@ -396,6 +397,7 @@ export class zappar_client {
396
397
  m.type(o);
397
398
  m.bool(enabled);
398
399
  });
400
+ s.enabled = enabled;
399
401
  },
400
402
  face_tracker_enabled: (o) => {
401
403
  let s = this._face_tracker_state_by_instance.get(o);
@@ -411,6 +413,7 @@ export class zappar_client {
411
413
  m.type(o);
412
414
  m.int(num);
413
415
  });
416
+ s.max_faces = num;
414
417
  },
415
418
  face_tracker_max_faces: (o) => {
416
419
  let s = this._face_tracker_state_by_instance.get(o);
@@ -521,6 +524,7 @@ export class zappar_client {
521
524
  m.type(o);
522
525
  m.bool(enabled);
523
526
  });
527
+ s.enabled = enabled;
524
528
  },
525
529
  barcode_finder_enabled: (o) => {
526
530
  let s = this._barcode_finder_state_by_instance.get(o);
@@ -560,6 +564,7 @@ export class zappar_client {
560
564
  m.type(o);
561
565
  m.barcodeFormat(f);
562
566
  });
567
+ s.formats = f;
563
568
  },
564
569
  // #### instant_world_tracker ####
565
570
  instant_world_tracker_create: (pipeline) => {
@@ -592,6 +597,7 @@ export class zappar_client {
592
597
  m.type(o);
593
598
  m.bool(enabled);
594
599
  });
600
+ s.enabled = enabled;
595
601
  },
596
602
  instant_world_tracker_enabled: (o) => {
597
603
  let s = this._instant_world_tracker_state_by_instance.get(o);
@@ -672,6 +678,7 @@ export class zappar_client {
672
678
  m.type(o);
673
679
  m.bool(enabled);
674
680
  });
681
+ s.enabled = enabled;
675
682
  },
676
683
  zapcode_tracker_anchor_count: (o) => {
677
684
  let s = this._zapcode_tracker_state_by_instance.get(o);
@@ -752,6 +759,7 @@ export class zappar_client {
752
759
  m.type(o);
753
760
  m.bool(enabled);
754
761
  });
762
+ s.enabled = enabled;
755
763
  },
756
764
  world_tracker_quality: (o) => {
757
765
  let s = this._world_tracker_state_by_instance.get(o);
@@ -773,6 +781,7 @@ export class zappar_client {
773
781
  m.type(o);
774
782
  m.bool(horizontal_plane_detection_enabled);
775
783
  });
784
+ s.horizontal_plane_detection_enabled = horizontal_plane_detection_enabled;
776
785
  },
777
786
  world_tracker_vertical_plane_detection_enabled: (o) => {
778
787
  let s = this._world_tracker_state_by_instance.get(o);
@@ -788,6 +797,7 @@ export class zappar_client {
788
797
  m.type(o);
789
798
  m.bool(vertical_plane_detection_enabled);
790
799
  });
800
+ s.vertical_plane_detection_enabled = vertical_plane_detection_enabled;
791
801
  },
792
802
  world_tracker_plane_anchor_count: (o) => {
793
803
  let s = this._world_tracker_state_by_instance.get(o);
@@ -895,6 +905,7 @@ export class zappar_client {
895
905
  m.type(o);
896
906
  m.bool(tracks_data_enabled);
897
907
  });
908
+ s.tracks_data_enabled = tracks_data_enabled;
898
909
  },
899
910
  world_tracker_tracks_data_size: (o) => {
900
911
  let s = this._world_tracker_state_by_instance.get(o);
@@ -934,6 +945,7 @@ export class zappar_client {
934
945
  m.type(o);
935
946
  m.bool(projections_data_enabled);
936
947
  });
948
+ s.projections_data_enabled = projections_data_enabled;
937
949
  },
938
950
  world_tracker_projections_data_size: (o) => {
939
951
  let s = this._world_tracker_state_by_instance.get(o);
package/lib/native.js CHANGED
@@ -30,6 +30,7 @@ import { drawGrid } from "./drawgrid";
30
30
  import { getPointsDataMatrix } from "./drawpoints";
31
31
  import { drawAxis } from "./drawaxis";
32
32
  import { BridgedWorldTracker } from "./bridged-world-tracker";
33
+ import { BridgedCameraSource } from "./bridged-camera-source";
33
34
  let client;
34
35
  const pipelineByWorldTracker = new Map();
35
36
  const _temporaryMatrix = mat4.create();
@@ -895,7 +896,7 @@ export function initialize(opts) {
895
896
  }
896
897
  mat4.multiply(res, cameraPose, res);
897
898
  return res;
898
- }, html_element_source_create: (pipeline, elm) => HTMLElementSource.createVideoElementSource(pipeline, elm), html_element_source_start: o => { var _a; return (_a = HTMLElementSource.getVideoElementSource(o)) === null || _a === void 0 ? void 0 : _a.start(); }, html_element_source_pause: o => { var _a; return (_a = HTMLElementSource.getVideoElementSource(o)) === null || _a === void 0 ? void 0 : _a.pause(); }, html_element_source_destroy: o => { var _a; return (_a = HTMLElementSource.getVideoElementSource(o)) === null || _a === void 0 ? void 0 : _a.destroy(); }, sequence_source_create: p => SequenceSource.create(p), sequence_source_load_from_memory: (o, data) => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.loadFromMemory(data); }, sequence_source_pause: o => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.pause(); }, sequence_source_start: o => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.start(); }, sequence_source_max_playback_fps_set: (o, fps) => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.maxPlaybackFpsSet(fps); }, sequence_source_time_set: (o, t) => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.setTime(t); }, sequence_source_destroy: o => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.destroy(); }, permission_granted_all: permissionGrantedAll, permission_granted_camera: permissionGrantedCamera, permission_granted_motion: permissionGrantedMotion, permission_denied_any: permissionDeniedAny, permission_denied_camera: permissionDeniedCamera, permission_denied_motion: permissionDeniedMotion, permission_request_motion: permissionRequestMotion, permission_request_camera: permissionRequestCamera, permission_request_all: permissionRequestAll, permission_request_ui: permissionRequestUI, permission_request_ui_promise: permissionRequestUI, permission_denied_ui: permissionDeniedUI, browser_incompatible: compatibility.incompatible, browser_incompatible_ui: compatibility.incompatible_ui, log_level_set: l => {
899
+ }, html_element_source_create: (pipeline, elm) => HTMLElementSource.createVideoElementSource(pipeline, elm), html_element_source_start: o => { var _a; return (_a = HTMLElementSource.getVideoElementSource(o)) === null || _a === void 0 ? void 0 : _a.start(); }, html_element_source_pause: o => { var _a; return (_a = HTMLElementSource.getVideoElementSource(o)) === null || _a === void 0 ? void 0 : _a.pause(); }, html_element_source_destroy: o => { var _a; return (_a = HTMLElementSource.getVideoElementSource(o)) === null || _a === void 0 ? void 0 : _a.destroy(); }, sequence_source_create: p => SequenceSource.create(p), sequence_source_load_from_memory: (o, data) => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.loadFromMemory(data); }, sequence_source_pause: o => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.pause(); }, sequence_source_start: o => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.start(); }, sequence_source_max_playback_fps_set: (o, fps) => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.maxPlaybackFpsSet(fps); }, sequence_source_time_set: (o, t) => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.setTime(t); }, sequence_source_destroy: o => { var _a; return (_a = SequenceSource.get(o)) === null || _a === void 0 ? void 0 : _a.destroy(); }, permission_granted_all: permissionGrantedAll, permission_granted_camera: permissionGrantedCamera, permission_granted_motion: permissionGrantedMotion, permission_denied_any: permissionDeniedAny, permission_denied_camera: permissionDeniedCamera, permission_denied_motion: permissionDeniedMotion, permission_request_motion: permissionRequestMotion, permission_request_camera: permissionRequestCamera, permission_request_all: permissionRequestAll, permission_request_ui: permissionRequestUI, permission_request_ui_promise: permissionRequestUI, permission_denied_ui: permissionDeniedUI, browser_incompatible: compatibility.incompatible, browser_incompatible_ui: compatibility.incompatible_ui, in_app_clip: () => BridgedCameraSource.IsSupported(), log_level_set: l => {
899
900
  setLogLevel(l);
900
901
  c.impl.log_level_set(l);
901
902
  }, cookies_permitted: p => {
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.1.0-beta.1";
1
+ export declare const VERSION = "3.1.0-beta.3";
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "3.1.0-beta.1";
1
+ export const VERSION = "3.1.0-beta.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zappar/zappar-cv",
3
- "version": "3.1.0-beta.1",
3
+ "version": "3.1.0-beta.3",
4
4
  "description": "Zappar's core computer vision library, supporting image, face and world tracking.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",