veryfi-lens-wasm 1.2.6 → 1.2.7
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/package.json +1 -1
- package/veryfi-lens.js +14 -2
- package/wasm/nonsimd/veryfi-wasm.js +1 -1
- package/wasm/nonsimd/veryfi-wasm.wasm +0 -0
- package/wasm/simd/veryfi-wasm.js +1 -1
- package/wasm/simd/veryfi-wasm.wasm +0 -0
- package/wasm/tfsimd/veryfi-wasm.js +1 -1
- package/wasm/tfsimd/veryfi-wasm.wasm +0 -0
- package/wasm/wasm.js +58 -24
package/package.json
CHANGED
package/veryfi-lens.js
CHANGED
|
@@ -271,11 +271,12 @@ const VeryfiLens = (function () {
|
|
|
271
271
|
);
|
|
272
272
|
const video = videoRef;
|
|
273
273
|
video.srcObject = stream;
|
|
274
|
+
torchTrack = stream.getVideoTracks()[0];
|
|
274
275
|
})
|
|
275
276
|
.catch((err) => {
|
|
276
277
|
console.log(`[Event] Error: ${err}`);
|
|
277
278
|
});
|
|
278
|
-
|
|
279
|
+
|
|
279
280
|
} catch (error) {
|
|
280
281
|
console.error("Error accessing the camera", error);
|
|
281
282
|
}
|
|
@@ -1881,7 +1882,18 @@ const VeryfiLens = (function () {
|
|
|
1881
1882
|
|
|
1882
1883
|
toggleTorch: () => {
|
|
1883
1884
|
toggleTorchLight()
|
|
1884
|
-
}
|
|
1885
|
+
},
|
|
1886
|
+
|
|
1887
|
+
getLcdStatus: () => {
|
|
1888
|
+
if (wasmWrapper.lcdStatus.LCDProb > 0.5) {
|
|
1889
|
+
cardData.cvv = ""
|
|
1890
|
+
cardData.date = ""
|
|
1891
|
+
cardData.name = ""
|
|
1892
|
+
cardData.number = ""
|
|
1893
|
+
cardData.status = ""
|
|
1894
|
+
}
|
|
1895
|
+
return wasmWrapper.lcdStatus();
|
|
1896
|
+
},
|
|
1885
1897
|
};
|
|
1886
1898
|
})();
|
|
1887
1899
|
|