deepar 5.6.3 → 5.6.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.
@@ -319,10 +319,12 @@ export declare class DeepAR {
319
319
  *
320
320
  * If the foot tracking is already initialized it will do nothing.
321
321
  * To check if foot tracking is initialized call {@link isFootTrackingInitialized} or wait {@link DeepARCallbacks.onFootTrackingInitialized} callback.
322
+ * @internal
322
323
  */
323
324
  initializeFootTracking(): void;
324
325
  /**
325
326
  * Check weather the foot tracking is initialized.
327
+ * @internal
326
328
  */
327
329
  isFootTrackingInitialized(): boolean;
328
330
  /**
@@ -342,6 +344,7 @@ export declare class DeepAR {
342
344
  isSegmentationInitialized(): boolean;
343
345
  /**
344
346
  * Check weather the wrist tracking is initialized.
347
+ * @internal
345
348
  */
346
349
  isWristTrackingInitialized(): boolean;
347
350
  /**
@@ -23,18 +23,21 @@ export interface DeepARCallbacks {
23
23
  * NOTE: This callback is only called when the SDK does foot tracking. For example, you laded some effect that uses foot tracking (shoe-try-on effects). But if no effect is loaded this callback will not get called because the SDK is not performing foot tracking.
24
24
  * @param leftFootData Information about the left foot.
25
25
  * @param rightFootData Information about the right foot.
26
+ * @internal
26
27
  */
27
28
  onFeetTracked?: (leftFootData: FootData, rightFootData: FootData) => void;
28
29
  /**
29
30
  * Passes the information about the detected wrist. If this callback is set, it will get called every frame.
30
31
  * NOTE: This callback is only called when the SDK does wrist tracking. For example, you laded some effect that uses wrist tracking (watch-try-on effects). But if no effect is loaded this callback will not get called because the SDK is not performing wrist tracking.
31
32
  * @param wristData Information about the wrist.
33
+ * @internal
32
34
  */
33
35
  onWristTracked?: (wristData: WristData) => void;
34
36
  /**
35
37
  * Called when foot tracking is fully initialized.
36
38
  * Be sure to check {@link DeepAR.isFootTrackingInitialized} before setting this callback.
37
39
  * Because this callback is called only once. So if you set this callback after the foot tracking is initialized, it will not be called again.
40
+ * @internal
38
41
  */
39
42
  onFootTrackingInitialized?: () => void;
40
43
  /**
@@ -47,6 +50,7 @@ export interface DeepARCallbacks {
47
50
  * Called when wrist tracking is fully initialized.
48
51
  * Be sure to check {@link DeepAR.isWristTrackingInitialized} before setting this callback.
49
52
  * Because this callback is called only once. So if you set this callback after the wrist tracking is initialized, it will not be called again.
53
+ * @internal
50
54
  */
51
55
  onWristTrackingInitialized?: () => void;
52
56
  /**
@@ -60,5 +64,10 @@ export interface DeepARCallbacks {
60
64
  * @internal
61
65
  */
62
66
  __deeparRendered?: (canvas: HTMLCanvasElement) => void;
67
+ /**
68
+ * An internal callback called on every render() after __deeparRendered.
69
+ * @param canvas A canvas containing input camera image that DeepAR used for rendering/tracking.
70
+ * @internal
71
+ */
63
72
  __deeparRendered2?: (canvas: HTMLCanvasElement) => void;
64
73
  }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Information about the feet being tracked. FootData object is constructed and passed in the {@link DeepARCallbacks.onFeetTracked} callback.
3
+ * @internal
3
4
  */
4
5
  export interface FootData {
5
6
  /**
@@ -95,11 +95,8 @@ export interface DeepARParams {
95
95
  * <ul>
96
96
  * <li><b>faceModelsPredownload</b> - Will download the face models as soon as possible.</li>
97
97
  * <li><b>segmentationModelsPredownload</b> - Will download the segmentation models as soon as possible. Note - it will not try to initialize segmentation. Segmentation will be lazy loaded when needed.</li>
98
- * <li><b>footModelsPredownload</b> - Will download the foot models as soon as possible. Note - it will not try to initialize foot tracking. Foot tracking will be lazy loaded when needed.</li>
99
98
  * <li><b>segmentationInit</b> - Will initialize segmentation as soon as possible. Without this hint segmentation is lazy loaded when some segmentation effect is loaded.</li>
100
99
  * <li><b>faceInit</b> - Will initialize face tracking as soon as possible. Without this hint face tracking is lazy loaded when some face tracking effect is loaded.</li>
101
- * <li><b>footInit</b> - Will initialize foot tracking as soon as possible. Without this hint foot tracking is lazy loaded when some foot tracking effect is loaded.</li>
102
- * <li><b>wristInit</b> - Will initialize wrist tracking as soon as possible. Without this hint wrist tracking is lazy loaded when some wrist tracking effect is loaded.</li>
103
100
  * </ul>
104
101
  */
105
102
  hint?: string | string[];
@@ -118,15 +115,15 @@ export interface DeepARParams {
118
115
  */
119
116
  poseEstimationWasmPath?: string;
120
117
  /**
121
- * Path to the detector model, e.g. "/path/to/deepar/models/foot/foot-detector.bin".
118
+ * Path to the detector model, e.g. "/path/to/deepar/models/face-cnn/face-det.bin".
122
119
  */
123
120
  detectorPath?: string;
124
121
  /**
125
- * Path to the tracker model, e.g. "/path/to/deepar/models/foot/foot-tracker.bin".
122
+ * Path to the tracker model, e.g. "/path/to/deepar/models/face-cnn/face-track-19-v2.bin".
126
123
  */
127
124
  trackerPath?: string;
128
125
  /**
129
- * Path to the foot model object file, e.g. "/path/to/deepar/models/foot/foot-model.obj".
126
+ * Path to the face model object file, e.g. "/path/to/deepar/models/face/face-rigid.obj".
130
127
  */
131
128
  objPath?: string;
132
129
  /**
@@ -167,6 +164,7 @@ export interface DeepARParams {
167
164
  };
168
165
  /**
169
166
  * Foot tracking module paths and options.
167
+ * @internal
170
168
  */
171
169
  footTrackingConfig?: {
172
170
  /**
@@ -200,6 +198,7 @@ export interface DeepARParams {
200
198
  };
201
199
  /**
202
200
  * Foot tracking module paths and options.
201
+ * @internal
203
202
  */
204
203
  wristTrackingConfig?: {
205
204
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * DeepAR Web SDK version.
3
3
  */
4
- declare const version = "5.6.3";
4
+ declare const version = "5.6.4";
5
5
  export { version };
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Information about the wrist being tracked. WristData object is constructed and passed in the {@link DeepARCallbacks.onWristTracked} callback.
3
+ * @internal
3
4
  */
4
5
  export interface WristData {
5
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepar",
3
- "version": "5.6.3",
3
+ "version": "5.6.4",
4
4
  "description": "The official DeepAR Web SDK",
5
5
  "main": "js/deepar.esm.js",
6
6
  "jsdelivr": "js/deepar.js",
@@ -14,7 +14,6 @@
14
14
  "bacground removal",
15
15
  "bacground replacement",
16
16
  "background blur",
17
- "shoe try-on",
18
17
  "AR mini-games"
19
18
  ],
20
19
  "author": "deepar",
package/wasm/deepar.wasm CHANGED
Binary file
Binary file
package/effects/Shoe DELETED
Binary file