@privateid/charlie-web-sdk-alpha
Advanced tools
Comparing version 0.0.10-alpha to 0.0.11-alpha
@@ -243,2 +243,10 @@ /* eslint-disable no-loop-func */ | ||
} | ||
const isWindowsDevice = () => { | ||
if (['windows', 'win16', 'win32', 'wince'].includes(navigator.platform.toUpperCase())) { | ||
return true; | ||
} | ||
else { | ||
return false; | ||
} | ||
}; | ||
const deviceCapabilites = getDefaultDevice(devices, mediaDevice); | ||
@@ -259,2 +267,3 @@ const isMacFaceTimeCamera = isFaceTimeCamera((_e = deviceCapabilites[0]) === null || _e === void 0 ? void 0 : _e.label, isDocumentScan); | ||
resizeMode: 'none', | ||
facingMode: isWindowsDevice() ? "user" : undefined, | ||
}, | ||
@@ -600,4 +609,4 @@ }; | ||
blur_threshold_enroll_pred: 50, | ||
threshold_user_too_close: 0.9, | ||
threshold_user_too_far: 0.1, | ||
threshold_user_too_close: 0.8, | ||
threshold_user_too_far: 0.2, | ||
allow_only_one_face: true, | ||
@@ -613,3 +622,3 @@ threshold_user_up: 0.15, | ||
if (['iOS', 'android', 'Android OS'].includes(os)) { | ||
configJSON = Object.assign(Object.assign({}, configJSON), { input_image_format: 'rgba', blur_threshold_enroll_pred: 50, threshold_user_too_close: 0.9, threshold_user_too_far: 0.1, threshold_user_up: 0.15, threshold_user_down: 0.9, threshold_user_left: 0.8, threshold_user_right: 0.2, threshold_high_vertical_predict: -0.15, threshold_down_vertical_predict: 0.15 }); | ||
configJSON = Object.assign(Object.assign({}, configJSON), { input_image_format: 'rgba', blur_threshold_enroll_pred: 50, threshold_user_too_close: 0.8, threshold_user_too_far: 0.2, threshold_user_up: 0.15, threshold_user_down: 0.9, threshold_user_left: 0.8, threshold_user_right: 0.2, threshold_high_vertical_predict: -0.15, threshold_down_vertical_predict: 0.15 }); | ||
} | ||
@@ -616,0 +625,0 @@ if (element) { |
@@ -5,3 +5,3 @@ { | ||
"description": "CryptoNets WebAssembly SDK", | ||
"version": "0.0.10-alpha", | ||
"version": "0.0.11-alpha", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "Face recognition", |
Sorry, the diff of this file is not supported yet
19589196
5401