deepar 5.6.10 → 5.6.11
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 +17 -0
- package/VERSION.txt +1 -1
- package/js/deepar.esm.js +1 -1
- package/js/deepar.js +1 -1
- package/js/dynamicModules/xzimg.js +1 -1
- package/js/types/DeepAR.d.ts +1 -0
- package/js/types/initParams.d.ts +35 -0
- package/js/types/version.d.ts +1 -1
- package/models/face-cnn/face-pdm.zip +0 -0
- package/models/face-cnn/face-track.bin +0 -0
- package/models/face-cnn/face.obj +4571 -0
- package/package.json +1 -1
- package/wasm/deepar.wasm +0 -0
- package/wasm/dyArcorePhysics.wasm +0 -0
- package/wasm/dyArcoreScripting.wasm +0 -0
package/README.md
CHANGED
|
@@ -244,6 +244,23 @@ If you are using non-default DeepAR camera apply the rotation with:
|
|
|
244
244
|
deepAR.setVideoRotation(90) // or 270
|
|
245
245
|
```
|
|
246
246
|
|
|
247
|
+
## Long distance face tracking (better accuracy)
|
|
248
|
+
In some cases, it is needed to have face tracking at longer distances, not just at hand-held distances.
|
|
249
|
+
For that use-case, DeepAR comes with upgraded face tracking model which works better at distances and is more accurate in general.
|
|
250
|
+
It can also be used if more accurate beauty effects are needed.
|
|
251
|
+
|
|
252
|
+
> ⚠️ This face tracking model works only for single person face tracking, ie. it cannot track multiple faces.
|
|
253
|
+
|
|
254
|
+
To enable this face tracking mode, pass `enableFaceTrackingCnn` hint at initialization.
|
|
255
|
+
```javascript
|
|
256
|
+
const deepAR = await deepar.initialize({
|
|
257
|
+
// ...
|
|
258
|
+
additionalOptions: {
|
|
259
|
+
hint: "enableFaceTrackingCnn"
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
```
|
|
263
|
+
|
|
247
264
|
## Providing your own canvas for rendering
|
|
248
265
|
|
|
249
266
|
Create canvas directly in the HTML:
|
package/VERSION.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
DeepAR SDK version: v5.6.
|
|
1
|
+
DeepAR SDK version: v5.6.11
|