@hexar/biometric-identity-sdk-core 1.0.17 → 1.0.18
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.
|
@@ -25,7 +25,7 @@ class BiometricIdentitySDK {
|
|
|
25
25
|
encryptionKey: config.encryptionKey || '',
|
|
26
26
|
minMatchScore: config.minMatchScore || 85,
|
|
27
27
|
minLivenessScore: config.minLivenessScore || 80,
|
|
28
|
-
validationTimeout: config.validationTimeout ||
|
|
28
|
+
validationTimeout: config.validationTimeout || 120000,
|
|
29
29
|
modelPaths: {},
|
|
30
30
|
};
|
|
31
31
|
this.state = {
|
|
@@ -299,7 +299,7 @@ class BiometricIdentitySDK {
|
|
|
299
299
|
minimumRequired: 10
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
const MAX_FRAMES =
|
|
302
|
+
const MAX_FRAMES = 10;
|
|
303
303
|
if (videoFrames.length > MAX_FRAMES) {
|
|
304
304
|
const step = Math.floor(videoFrames.length / MAX_FRAMES);
|
|
305
305
|
videoFrames = videoFrames.filter((_, index) => index % step === 0).slice(0, MAX_FRAMES);
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ export class BiometricIdentitySDK {
|
|
|
40
40
|
encryptionKey: config.encryptionKey || '',
|
|
41
41
|
minMatchScore: config.minMatchScore || 85,
|
|
42
42
|
minLivenessScore: config.minLivenessScore || 80,
|
|
43
|
-
validationTimeout: config.validationTimeout ||
|
|
43
|
+
validationTimeout: config.validationTimeout || 120000,
|
|
44
44
|
modelPaths: {},
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -381,7 +381,7 @@ export class BiometricIdentitySDK {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
const MAX_FRAMES =
|
|
384
|
+
const MAX_FRAMES = 10;
|
|
385
385
|
if (videoFrames.length > MAX_FRAMES) {
|
|
386
386
|
const step = Math.floor(videoFrames.length / MAX_FRAMES);
|
|
387
387
|
videoFrames = videoFrames.filter((_, index) => index % step === 0).slice(0, MAX_FRAMES);
|