deepar 5.1.1 → 5.2.0-chromeExtension
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/VERSION.txt +1 -1
- package/js/deepar.esm.js +1 -1
- package/js/deepar.js +1 -1
- package/js/types/DeepAR.d.ts +11 -1
- package/js/types/callbacks.d.ts +13 -0
- package/js/types/initParams.d.ts +33 -0
- package/js/types/version.d.ts +1 -1
- package/js/types/wristData.d.ts +13 -0
- package/lib/README.md +7 -0
- package/lib/VERSION.txt +1 -0
- package/lib/js/deepar.esm.js +1 -0
- package/lib/js/deepar.js +1 -0
- package/lib/js/types/DeepAR.d.ts +332 -0
- package/lib/js/types/callbacks.d.ts +63 -0
- package/lib/js/types/errors.d.ts +6 -0
- package/lib/js/types/faceData.d.ts +33 -0
- package/lib/js/types/footData.d.ts +9 -0
- package/lib/js/types/index.d.ts +9 -0
- package/lib/js/types/initParams.d.ts +157 -0
- package/lib/js/types/logType.d.ts +18 -0
- package/lib/js/types/scriptingApi.d.ts +107 -0
- package/lib/js/types/touchType.d.ts +34 -0
- package/lib/js/types/version.d.ts +5 -0
- package/lib/js/types/wristData.d.ts +13 -0
- package/lib/models/face/models-68-extreme.bin +0 -0
- package/lib/models/foot/foot-detection-96x96x6.bin +0 -0
- package/lib/models/foot/foot-model.obj +3965 -0
- package/lib/models/foot/foot-tracker-96x96x13-test.bin +0 -0
- package/lib/models/foot/foot-tracker-96x96x18-test.bin +0 -0
- package/lib/models/segmentation/segmentation-160x160-opt.bin +0 -0
- package/lib/models/wrist/wrist-base-2.obj +3815 -0
- package/lib/models/wrist/wrist-det-9.bin +0 -0
- package/lib/models/wrist/wrist-track.bin +0 -0
- package/lib/wasm/deepar.wasm +0 -0
- package/lib/wasm/libxzimgPoseEstimation.wasm +0 -0
- package/lib/wasm/tfjs-backend-wasm-simd.wasm +0 -0
- package/lib/wasm/tfjs-backend-wasm-threaded-simd.wasm +0 -0
- package/lib/wasm/tfjs-backend-wasm.wasm +0 -0
- package/models/wrist/wrist-base-2.obj +3815 -0
- package/models/wrist/wrist-det-9.bin +0 -0
- package/models/wrist/wrist-track.bin +0 -0
- package/package.json +1 -1
- package/wasm/deepar.wasm +0 -0
- package/wasm/libxzimgPoseEstimation.wasm +0 -0
package/js/types/DeepAR.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ export declare class DeepAR {
|
|
|
265
265
|
*
|
|
266
266
|
* Segmentation is usually lazy loaded on demand when filter loaded with {@link switchEffect} requires it.
|
|
267
267
|
* But this method will start loading the segmentation immediately.
|
|
268
|
-
* To start initializing
|
|
268
|
+
* To start initializing segmentation as soon as possible pass "segmentationInit" hint in the {@link initialize} function (see {@link DeepARParams}). <br><br>
|
|
269
269
|
*
|
|
270
270
|
* If the segmentation is already initialized it will do nothing.
|
|
271
271
|
* To check if segmentation is initialized call {@link isSegmentationInitialized} or wait {@link DeepARCallbacks.onSegmentationInitialized} callback.
|
|
@@ -275,6 +275,10 @@ export declare class DeepAR {
|
|
|
275
275
|
* Check weather the segmentation is initialized.
|
|
276
276
|
*/
|
|
277
277
|
isSegmentationInitialized(): boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Check weather the wrist tracking is initialized.
|
|
280
|
+
*/
|
|
281
|
+
isWristTrackingInitialized(): boolean;
|
|
278
282
|
/**
|
|
279
283
|
* Display profiling metrics on preview.
|
|
280
284
|
* @param enabled
|
|
@@ -319,4 +323,10 @@ export declare class DeepAR {
|
|
|
319
323
|
* @param enabled
|
|
320
324
|
*/
|
|
321
325
|
showColliders(enabled: boolean): void;
|
|
326
|
+
/**
|
|
327
|
+
* Sets the preview zoom.
|
|
328
|
+
*
|
|
329
|
+
* @param zoomLevel Floating point number determining how much to zoom in. Value <= 1 will disable zoom. Example, value 2.0 puts 2x zoom.
|
|
330
|
+
*/
|
|
331
|
+
setZoom(zoomLevel: number): void;
|
|
322
332
|
}
|
package/js/types/callbacks.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FaceData } from "./faceData";
|
|
2
2
|
import { FootData } from "./footData";
|
|
3
|
+
import { WristData } from "./wristData";
|
|
3
4
|
/**
|
|
4
5
|
* Callbacks from DeepAR notifying events.
|
|
5
6
|
* Register callbacks with {@link DeepAR.callbacks}.
|
|
@@ -24,6 +25,12 @@ export interface DeepARCallbacks {
|
|
|
24
25
|
* @param rightFootData Information about the right foot.
|
|
25
26
|
*/
|
|
26
27
|
onFeetTracked?: (leftFootData: FootData, rightFootData: FootData) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Passes the information about the detected wrist. If this callback is set, it will get called every frame.
|
|
30
|
+
* 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
|
+
* @param wristData Information about the wrist.
|
|
32
|
+
*/
|
|
33
|
+
onWristTracked?: (wristData: WristData) => void;
|
|
27
34
|
/**
|
|
28
35
|
* Called when foot tracking is fully initialized.
|
|
29
36
|
* Be sure to check {@link DeepAR.isFootTrackingInitialized} before setting this callback.
|
|
@@ -36,6 +43,12 @@ export interface DeepARCallbacks {
|
|
|
36
43
|
* Because this callback is called only once. So if you set this callback after the segmentation is initialized, it will not be called again.
|
|
37
44
|
*/
|
|
38
45
|
onSegmentationInitialized?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Called when wrist tracking is fully initialized.
|
|
48
|
+
* Be sure to check {@link DeepAR.isWristTrackingInitialized} before setting this callback.
|
|
49
|
+
* 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.
|
|
50
|
+
*/
|
|
51
|
+
onWristTrackingInitialized?: () => void;
|
|
39
52
|
/**
|
|
40
53
|
* Called when the animation player transitions to a new state.
|
|
41
54
|
* @param newState Name of the new state that is being transitioned to.
|
package/js/types/initParams.d.ts
CHANGED
|
@@ -116,6 +116,39 @@ export interface DeepARParams {
|
|
|
116
116
|
*/
|
|
117
117
|
tfjsBackendWasmThreadedSimdPath?: string;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Foot tracking module paths and options.
|
|
121
|
+
*/
|
|
122
|
+
wristTrackingConfig?: {
|
|
123
|
+
/**
|
|
124
|
+
* Path to the pose libPoseEstimation.wasm file, e.g. "/path/to/deepar/wasm/libPoseEstimation.wasm".
|
|
125
|
+
*/
|
|
126
|
+
poseEstimationWasmPath?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Path to the detector model, e.g. "/path/to/deepar/models/foot/foot-detector.bin".
|
|
129
|
+
*/
|
|
130
|
+
detectorPath?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Path to the tracker model, e.g. "/path/to/deepar/models/foot/foot-tracker.bin".
|
|
133
|
+
*/
|
|
134
|
+
trackerPath?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Path to the foot model object file, e.g. "/path/to/deepar/models/foot/foot-model.obj".
|
|
137
|
+
*/
|
|
138
|
+
objPath?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Path to tfjs-backend-wasm.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm.wasm"
|
|
141
|
+
*/
|
|
142
|
+
tfjsBackendWasmPath?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Path to tfjs-backend-wasm-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-simd.wasm"
|
|
145
|
+
*/
|
|
146
|
+
tfjsBackendWasmSimdPath?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Path to tfjs-backend-wasm-threaded-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-threaded-simd.wasm"
|
|
149
|
+
*/
|
|
150
|
+
tfjsBackendWasmThreadedSimdPath?: string;
|
|
151
|
+
};
|
|
119
152
|
/**
|
|
120
153
|
* Path to deepar.wasm file. Something like "/path/to/deepar/wasm/deepar.wasm".
|
|
121
154
|
*/
|
package/js/types/version.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about the wrist being tracked. WristData object is constructed and passed in the {@link DeepARCallbacks.onWristTracked} callback.
|
|
3
|
+
*/
|
|
4
|
+
export interface WristData {
|
|
5
|
+
/**
|
|
6
|
+
* True if the wrist is detected, false otherwise.
|
|
7
|
+
*/
|
|
8
|
+
detected: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* True if the detected wrist is of the left hande. False if the detected wrist is of the right hand.
|
|
11
|
+
*/
|
|
12
|
+
isLeft: boolean;
|
|
13
|
+
}
|
package/lib/README.md
ADDED
package/lib/VERSION.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DeepAR SDK version: v5.2.0-chromeExtension
|