deepar 5.0.0-alpha-1 → 5.0.0-alpha-2
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 +7 -3
- package/js/deepar.esm.js +1 -1
- package/js/deepar.js +1 -1
- package/js/types/DeepAR.d.ts +17 -4
- package/js/types/initParams.d.ts +44 -21
- package/js/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/wasm/deepar.wasm +0 -0
- package/wasm/tfjs-backend-wasm-simd.wasm +0 -0
- package/wasm/tfjs-backend-wasm-threaded-simd.wasm +0 -0
- package/wasm/tfjs-backend-wasm.wasm +0 -0
- package/js/types/footTrackingConfig.d.ts +0 -21
- package/js/types/platformDetect.d.ts +0 -17
- package/js/types/videoRecordingOptions.d.ts +0 -14
- package/js/types/wrapper.d.ts +0 -10
package/README.md
CHANGED
|
@@ -190,7 +190,9 @@ Set up your own camera or custom video source:
|
|
|
190
190
|
const deepAR = await deepar.initialize({
|
|
191
191
|
// ...
|
|
192
192
|
additionalOptions: {
|
|
193
|
-
|
|
193
|
+
cameraConfig: {
|
|
194
|
+
disableDefaultCamera: true
|
|
195
|
+
}
|
|
194
196
|
}
|
|
195
197
|
});
|
|
196
198
|
|
|
@@ -206,12 +208,14 @@ This is used when you do not want to ask the camera permission right away.
|
|
|
206
208
|
const deepAR = await deepar.initialize({
|
|
207
209
|
// ...
|
|
208
210
|
additionalOptions: {
|
|
209
|
-
|
|
211
|
+
cameraConfig: {
|
|
212
|
+
disableDefaultCamera: true
|
|
213
|
+
}
|
|
210
214
|
}
|
|
211
215
|
});
|
|
212
216
|
|
|
213
217
|
// When you want to ask the camera permission and start the camera.
|
|
214
|
-
deepAR.startCamera();
|
|
218
|
+
await deepAR.startCamera();
|
|
215
219
|
```
|
|
216
220
|
|
|
217
221
|
## License
|