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.
@@ -101,6 +101,7 @@ export declare class DeepAR {
101
101
  slot?: string;
102
102
  face?: number;
103
103
  envmap?: string | ArrayBufferLike;
104
+ diamondEnvMap?: string | ArrayBufferLike;
104
105
  }): Promise<void>;
105
106
  /**
106
107
  * Clears the given slot of any loaded effects.
@@ -101,6 +101,7 @@ export interface DeepARParams {
101
101
  * <li><b>segmentationModelsPredownload</b> - Will download the segmentation models as soon as possible. Note - it will not try to initialize segmentation. Segmentation will be lazy loaded when needed.</li>
102
102
  * <li><b>segmentationInit</b> - Will initialize segmentation as soon as possible. Without this hint segmentation is lazy loaded when some segmentation effect is loaded.</li>
103
103
  * <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>
104
+ * <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>
104
105
  * </ul>
105
106
  */
106
107
  hint?: string | string[];
@@ -143,6 +144,40 @@ export interface DeepARParams {
143
144
  */
144
145
  tfjsBackendWasmThreadedSimdPath?: string;
145
146
  };
147
+ faceTrackingCnnConfig?: {
148
+ /**
149
+ * Path to the pose libPoseEstimation.wasm file, e.g. "/path/to/deepar/wasm/libPoseEstimation.wasm".
150
+ */
151
+ poseEstimationWasmPath?: string;
152
+ /**
153
+ * Path to the detector model, e.g. "/path/to/deepar/models/face-cnn/face-det.bin".
154
+ */
155
+ detectorPath?: string;
156
+ /**
157
+ * Path to the tracker model, e.g. "/path/to/deepar/models/face-cnn/face-track.bin".
158
+ */
159
+ trackerPath?: string;
160
+ /**
161
+ * Path to the face model object file, e.g. "/path/to/deepar/models/face-cnn/face.obj".
162
+ */
163
+ objPath?: string;
164
+ /**
165
+ * Path to pdm zip, e.g. "/path/to/deepar/models/face-cnn/face-pdm.zip".
166
+ */
167
+ pdmZipPath?: string;
168
+ /**
169
+ * Path to tfjs-backend-wasm.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm.wasm"
170
+ */
171
+ tfjsBackendWasmPath?: string;
172
+ /**
173
+ * Path to tfjs-backend-wasm-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-simd.wasm"
174
+ */
175
+ tfjsBackendWasmSimdPath?: string;
176
+ /**
177
+ * Path to tfjs-backend-wasm-threaded-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-threaded-simd.wasm"
178
+ */
179
+ tfjsBackendWasmThreadedSimdPath?: string;
180
+ };
146
181
  /**
147
182
  * Segmentation module path and options.
148
183
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * DeepAR Web SDK version.
3
3
  */
4
- declare const version = "5.6.10";
4
+ declare const version = "5.6.11";
5
5
  export { version };
Binary file
Binary file