shopar-plugin 0.8.0 → 0.8.1
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 +2 -2
- package/dist/deepar/README.md +17 -0
- package/dist/deepar/VERSION.txt +1 -1
- package/dist/deepar/js/deepar.esm.js +1 -1
- package/dist/deepar/js/deepar.js +1 -1
- package/dist/deepar/js/dynamicModules/xzimg.js +1 -1
- package/dist/deepar/js/types/DeepAR.d.ts +1 -0
- package/dist/deepar/js/types/initParams.d.ts +35 -0
- package/dist/deepar/js/types/version.d.ts +1 -1
- package/dist/deepar/models/face-cnn/face-pdm.zip +0 -0
- package/dist/deepar/models/face-cnn/face-track.bin +0 -0
- package/dist/deepar/models/face-cnn/face.obj +4571 -0
- package/dist/deepar/package.json +1 -1
- package/dist/deepar/wasm/deepar.wasm +0 -0
- package/dist/deepar/wasm/dyArcorePhysics.wasm +0 -0
- package/dist/deepar/wasm/dyArcoreScripting.wasm +0 -0
- package/dist/shopar-deepar.js +1 -1
- package/dist/shopar-plugin.esm.js +1 -1
- package/dist/shopar-plugin.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ There are two distinct ways of integrating the plugin: via Script tag and via NP
|
|
|
32
32
|
Add the following script to your HTML.
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.1/dist/shopar-plugin.js"></script>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
It is possible to use a different CDN instead of [jsDelivr](https://www.jsdelivr.com/) (e.g. [cdnjs](https://cdnjs.com/), [unpkg](https://www.unpkg.com/)), or even a relative path if the plugin is distributed as a static asset to your app. Just make sure to set the `baseUrl` parameter accordingly (see [setup options](#shoparpluginsetupoptions) for more details).
|
|
@@ -153,7 +153,7 @@ Options used for the plugin setup:
|
|
|
153
153
|
- `baseUrl` (optional)
|
|
154
154
|
- Type: `string`
|
|
155
155
|
- If provided, defines where the additional ShopAR plugin files are fetched from.
|
|
156
|
-
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.
|
|
156
|
+
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.1/dist`
|
|
157
157
|
- `defaultUI` (optional)
|
|
158
158
|
- Type: `boolean`
|
|
159
159
|
- If provided and set to `false`, disables the default UI such as buttons, loading and error views.
|
package/dist/deepar/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/dist/deepar/VERSION.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
DeepAR SDK version: v5.6.
|
|
1
|
+
DeepAR SDK version: v5.6.11-shopar
|