Comparing version
/** | ||
* DeepAR Web SDK version. | ||
*/ | ||
declare const version = "5.6.4-alpha-193"; | ||
declare const version = "5.6.4"; | ||
export { version }; |
{ | ||
"name": "deepar", | ||
"version": "5.6.4-alpha-193", | ||
"version": "5.6.4", | ||
"description": "The official DeepAR Web SDK", | ||
@@ -17,3 +17,2 @@ "main": "js/deepar.esm.js", | ||
"background blur", | ||
"shoe try-on", | ||
"AR mini-games" | ||
@@ -20,0 +19,0 @@ ], |
@@ -12,3 +12,2 @@ # deepar | ||
- Background blur. | ||
- Shoe try-on. | ||
- AR mini-games. | ||
@@ -163,14 +162,8 @@ | ||
DeepAR has some callbacks you can implement for additional informations. For example, | ||
to check if feet are visible in the camera preview. | ||
to check if face is detected in the scene. | ||
```javascript | ||
await deepAR.switchEffect('https://cdn.jsdelivr.net/npm/deepar/effects/Shoe'); | ||
deepAR.callbacks.onFeetTracked = (leftFoot, rightFoot) => { | ||
if(leftFoot.detected && rightFoot.detected) { | ||
console.log('Both foot detected!'); | ||
} else if (leftFoot.detected) { | ||
console.log('Left foot detected!'); | ||
} else if (rightFoot.detected) { | ||
console.log('Right foot detected!'); | ||
} else { | ||
console.log('No feet detected!'); | ||
await deepAR.switchEffect('https://cdn.jsdelivr.net/npm/deepar/effects/aviators'); | ||
deepAR.callbacks.onFaceTracked = function(faceDataArr) { | ||
if (faceDataArr[0].detected) { | ||
console.log("Face is detected!"); | ||
} | ||
@@ -182,3 +175,3 @@ }; | ||
```javascript | ||
deepAR.callbacks.onFeetTracked = undefined; | ||
deepAR.callbacks.onFaceTracked = undefined; | ||
``` | ||
@@ -332,11 +325,2 @@ | ||
}, | ||
footTrackingConfig: { | ||
poseEstimationWasmPath: 'path/to/deepar/wasm/libxzimgPoseEstimation.wasm', | ||
detectorPath: 'path/to/deepar/models/foot/foot-detection-96x96x6.bin', | ||
trackerPath: 'path/to/deepar/models/foot/foot-tracker-96x96x18-test.bin', | ||
objPath: 'path/to/deepar/models/foot/foot-model.obj', | ||
tfjsBackendWasmPath: 'path/to/deepar/wasm/tfjs-backend-wasm.wasm', | ||
tfjsBackendWasmSimdPath: 'path/to/deepar/wasm/tfjs-backend-wasm-simd.wasm', | ||
tfjsBackendWasmThreadedSimdPath: 'path/to/deepar/wasm/tfjs-backend-wasm-threaded-simd.wasm', | ||
}, | ||
deeparWasmPath: 'path/to/deepar/wasm/deepar.wasm' | ||
@@ -343,0 +327,0 @@ } |
@@ -1,1 +0,1 @@ | ||
DeepAR SDK version: v5.6.4-alpha-193 | ||
DeepAR SDK version: v5.6.4 |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
3
-25%50009879
-8.41%64
-1.54%330
-4.62%