shopar-plugin
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -104,2 +104,3 @@ /// <reference types="dom-mediacapture-transform" /> | ||
envmap?: string | ArrayBufferLike; | ||
diamondEnvMap?: string | ArrayBufferLike; | ||
}): Promise<void>; | ||
@@ -106,0 +107,0 @@ /** |
@@ -104,2 +104,3 @@ import { ToneMapping } from "./DeepAR"; | ||
* <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> | ||
* <li><b>enableFaceTrackingCnn</b> - Use CNN face tracking instead of standard face tracking. Enables long distance face tracking and better face tracking accuracy, but performance will be slower.</li> | ||
* </ul> | ||
@@ -147,2 +148,36 @@ */ | ||
}; | ||
faceTrackingCnnConfig?: { | ||
/** | ||
* Path to the pose libPoseEstimation.wasm file, e.g. "/path/to/deepar/wasm/libPoseEstimation.wasm". | ||
*/ | ||
poseEstimationWasmPath?: string; | ||
/** | ||
* Path to the detector model, e.g. "/path/to/deepar/models/face-cnn/face-det.bin". | ||
*/ | ||
detectorPath?: string; | ||
/** | ||
* Path to the tracker model, e.g. "/path/to/deepar/models/face-cnn/face-track.bin". | ||
*/ | ||
trackerPath?: string; | ||
/** | ||
* Path to the face model object file, e.g. "/path/to/deepar/models/face-cnn/face.obj". | ||
*/ | ||
objPath?: string; | ||
/** | ||
* Path to pdm zip, e.g. "/path/to/deepar/models/face-cnn/face-pdm.zip". | ||
*/ | ||
pdmZipPath?: string; | ||
/** | ||
* Path to tfjs-backend-wasm.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm.wasm" | ||
*/ | ||
tfjsBackendWasmPath?: string; | ||
/** | ||
* Path to tfjs-backend-wasm-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-simd.wasm" | ||
*/ | ||
tfjsBackendWasmSimdPath?: string; | ||
/** | ||
* Path to tfjs-backend-wasm-threaded-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-threaded-simd.wasm" | ||
*/ | ||
tfjsBackendWasmThreadedSimdPath?: string; | ||
}; | ||
/** | ||
@@ -149,0 +184,0 @@ * Segmentation module path and options. |
/** | ||
* DeepAR Web SDK version. | ||
*/ | ||
declare const version = "5.6.10-shopar"; | ||
declare const version = "5.6.11-shopar"; | ||
export { version }; |
{ | ||
"name": "deepar", | ||
"version": "5.6.10-shopar", | ||
"version": "5.6.11-shopar", | ||
"description": "The official DeepAR Web SDK", | ||
@@ -5,0 +5,0 @@ "main": "js/deepar.esm.js", |
@@ -247,2 +247,19 @@ # deepar | ||
## Long distance face tracking (better accuracy) | ||
In some cases, it is needed to have face tracking at longer distances, not just at hand-held distances. | ||
For that use-case, DeepAR comes with upgraded face tracking model which works better at distances and is more accurate in general. | ||
It can also be used if more accurate beauty effects are needed. | ||
> ⚠️ This face tracking model works only for single person face tracking, ie. it cannot track multiple faces. | ||
To enable this face tracking mode, pass `enableFaceTrackingCnn` hint at initialization. | ||
```javascript | ||
const deepAR = await deepar.initialize({ | ||
// ... | ||
additionalOptions: { | ||
hint: "enableFaceTrackingCnn" | ||
} | ||
}); | ||
``` | ||
## Providing your own canvas for rendering | ||
@@ -249,0 +266,0 @@ |
@@ -1,1 +0,1 @@ | ||
DeepAR SDK version: v5.6.10-shopar | ||
DeepAR SDK version: v5.6.11-shopar |
{ | ||
"name": "shopar-plugin", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Plugin for the Web that seamlessly integrates into your webpage to create embedded virtual try-on and 3D preview capabilities.", | ||
@@ -5,0 +5,0 @@ "main": "dist/shopar-plugin.esm.js", |
@@ -35,3 +35,3 @@ # ShopAR Plugin | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.0/dist/shopar-plugin.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.1/dist/shopar-plugin.js"></script> | ||
``` | ||
@@ -157,3 +157,3 @@ | ||
- If provided, defines where the additional ShopAR plugin files are fetched from. | ||
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.0/dist` | ||
- Default value: `https://cdn.jsdelivr.net/npm/shopar-plugin@0.8.1/dist` | ||
- `defaultUI` (optional) | ||
@@ -160,0 +160,0 @@ - Type: `boolean` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
72686466
88
13870
117