deepar 4.0.2 → 4.0.3-alpha-test
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 +3 -1
- package/js/deepar.d.ts +9 -0
- package/js/deepar.esm.d.ts +9 -0
- package/js/deepar.esm.js +1 -1
- package/js/deepar.js +1 -1
- package/package.json +1 -1
- package/wasm/deepar.wasm +0 -0
- package/wasm/libxzimgPoseEstimation.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# deepar
|
|
2
2
|
|
|
3
|
-
DeepAR SDK for Web is an augmented reality SDK that allows users to integrate advanced, Snapchat-like face lenses in the browser environment. It supports face masks, effects, multiple face tracking, natural image tracking.
|
|
3
|
+
DeepAR SDK for Web is an augmented reality SDK that allows users to integrate advanced, Snapchat-like face lenses in the browser environment. It supports face masks, effects, multiple face tracking, natural image tracking.
|
|
4
4
|
The SDK requires an internet connection.
|
|
5
5
|
|
|
6
6
|
## Documentation
|
|
@@ -10,6 +10,8 @@ See the official example here: https://github.com/DeepARSDK/quickstart-web-js-np
|
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
+
> ⚠️ Note that these steps are only needed when deploying to production (non-localhost) domain.
|
|
14
|
+
|
|
13
15
|
In order to use the DeepAR Web SDK you need to set up a license key for your web app on [developer.deepar.ai](https://developer.deepar.ai).
|
|
14
16
|
1. Create an account: https://developer.deepar.ai/signup.
|
|
15
17
|
2. Create a project: https://developer.deepar.ai/projects.
|
package/js/deepar.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export interface DeepARCallbacks {
|
|
|
86
86
|
* @param faceDataArray Information about all the tracked faces.
|
|
87
87
|
*/
|
|
88
88
|
onFaceTracked?: (faceDataArray: FaceData[]) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Called when one or both feet are tracked.
|
|
91
|
+
*/
|
|
92
|
+
onFeetTracked?: () => void;
|
|
89
93
|
/**
|
|
90
94
|
* Called when any DeepAR related event happens
|
|
91
95
|
* @param errorType Type of message.
|
|
@@ -284,6 +288,11 @@ export declare class DeepAR {
|
|
|
284
288
|
* @param callback Callback to be called when the download is complete.
|
|
285
289
|
*/
|
|
286
290
|
downloadFaceTrackingModel(path: string, callback?: () => void): void;
|
|
291
|
+
/**
|
|
292
|
+
* Downloads the foot tracking models defined when creating DeepAR and sets them up. When it's done, the callback is invoked.
|
|
293
|
+
* @param callback Callback to be called when the download is complete.
|
|
294
|
+
*/
|
|
295
|
+
initializeFootTracking(callback?: () => void): void;
|
|
287
296
|
/**
|
|
288
297
|
* Sets the face tracking model data.
|
|
289
298
|
* @param byteArray Face tracking model data.
|
package/js/deepar.esm.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export interface DeepARCallbacks {
|
|
|
86
86
|
* @param faceDataArray Information about all the tracked faces.
|
|
87
87
|
*/
|
|
88
88
|
onFaceTracked?: (faceDataArray: FaceData[]) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Called when one or both feet are tracked.
|
|
91
|
+
*/
|
|
92
|
+
onFeetTracked?: () => void;
|
|
89
93
|
/**
|
|
90
94
|
* Called when any DeepAR related event happens
|
|
91
95
|
* @param errorType Type of message.
|
|
@@ -284,6 +288,11 @@ export declare class DeepAR {
|
|
|
284
288
|
* @param callback Callback to be called when the download is complete.
|
|
285
289
|
*/
|
|
286
290
|
downloadFaceTrackingModel(path: string, callback?: () => void): void;
|
|
291
|
+
/**
|
|
292
|
+
* Downloads the foot tracking models defined when creating DeepAR and sets them up. When it's done, the callback is invoked.
|
|
293
|
+
* @param callback Callback to be called when the download is complete.
|
|
294
|
+
*/
|
|
295
|
+
initializeFootTracking(callback?: () => void): void;
|
|
287
296
|
/**
|
|
288
297
|
* Sets the face tracking model data.
|
|
289
298
|
* @param byteArray Face tracking model data.
|