@innovatrics/dot-face-auto-capture
Advanced tools
Comparing version 4.1.6 to 5.0.0
@@ -1,2 +0,2 @@ | ||
import type { BaseCameraProps, CameraSettings, CustomElement, DetectedFace, Resolution } from '../../../ui-common/src/types'; | ||
import type { BaseCameraProps, CallbackImage, CustomElement, DetectedFace, Resolution } from '../../../ui-common/src/types'; | ||
export * from '../../../ui-common/src/types/common'; | ||
@@ -19,8 +19,6 @@ export * from '../../../ui-common/src/types/face'; | ||
export type FaceComponentData = { | ||
cameraSettings: CameraSettings; | ||
detection: DetectedFace; | ||
imageResolution: Resolution; | ||
record?: DetectedFace[]; | ||
}; | ||
export type FaceCallback = (image: Blob, data: FaceComponentData) => void; | ||
export type FaceCallback = (imageData: CallbackImage<FaceComponentData>, content: Uint8Array) => void; | ||
export type FaceThresholds = { | ||
@@ -34,2 +32,3 @@ brightnessHighThreshold?: number; | ||
sharpnessThreshold?: number; | ||
tiltAngleThreshold?: number; | ||
}; | ||
@@ -36,0 +35,0 @@ export type FaceCameraProps = BaseCameraProps & { |
196
events.js
@@ -1,12 +0,12 @@ | ||
(function(e, t) { | ||
function x(r, o) { | ||
return f(r - 854, o); | ||
(function(t, e) { | ||
function x(r, u) { | ||
return f(u - 375, r); | ||
} | ||
function n(r, o) { | ||
return f(r - 551, o); | ||
const c = t(); | ||
function a(r, u) { | ||
return f(u - 606, r); | ||
} | ||
const c = e(); | ||
for (; []; ) | ||
try { | ||
if (parseInt(x(1208, 1207)) / 1 + parseInt(n(897, 938)) / 2 + parseInt(x(1163, 1177)) / 3 + parseInt(x(1132, 1114)) / 4 * (parseInt(n(882, 853)) / 5) + parseInt(n(867, 866)) / 6 + parseInt(x(1161, 1120)) / 7 * (-parseInt(x(1159, 1157)) / 8) + -parseInt(x(1148, 1151)) / 9 * (parseInt(x(1195, 1221)) / 10) === t) | ||
if (-parseInt(a(813, 827)) / 1 + parseInt(a(775, 784)) / 2 * (parseInt(a(852, 813)) / 3) + -parseInt(x(536, 568)) / 4 + -parseInt(a(847, 807)) / 5 + parseInt(x(550, 552)) / 6 * (parseInt(x(568, 590)) / 7) + parseInt(a(762, 788)) / 8 * (parseInt(x(612, 589)) / 9) + parseInt(a(765, 762)) / 10 === e) | ||
break; | ||
@@ -17,140 +17,68 @@ c.push(c.shift()); | ||
} | ||
})(s, -950196 + -861114 + 2292451); | ||
const d = function() { | ||
let e = !![]; | ||
return function(t, x) { | ||
const n = e ? function() { | ||
function c(r, o) { | ||
return f(o - 446, r); | ||
} | ||
if (x) { | ||
const r = x[c(788, 754)](t, arguments); | ||
return x = null, r; | ||
} | ||
} : function() { | ||
}; | ||
return e = ![], n; | ||
}; | ||
}(); | ||
(function() { | ||
d(this, function() { | ||
const e = new RegExp("function *" + t(9, -25)); | ||
function t(r, o) { | ||
return f(r - -326, o); | ||
} | ||
const x = new RegExp(c(-387, -432) + t(-12, -4) + t(35, -1) + t(-5, -6), "i"), n = b(t(22, -7)); | ||
function c(r, o) { | ||
return f(r - -710, o); | ||
} | ||
!e[t(30, -5)](n + "chain") || !x[c(-354, -313)](n + c(-418, -417)) ? n("0") : b(); | ||
})(); | ||
})(); | ||
const E = (e, t) => { | ||
})(d, 111381 + -1 * 207022 + 348480); | ||
const E = (t, e) => { | ||
const x = {}; | ||
x.detail = t; | ||
function n(c, r) { | ||
return f(c - -47, r); | ||
function c(r, u) { | ||
return f(u - -252, r); | ||
} | ||
document[n(302, 276) + "ent"](new CustomEvent(e, x)); | ||
}; | ||
(function() { | ||
(function() { | ||
function x(r, o) { | ||
return f(r - -440, o); | ||
} | ||
let n; | ||
function c(r, o) { | ||
return f(r - -581, o); | ||
} | ||
try { | ||
n = Function("return (function() " + (c(-261, -295) + c(-244, -241) + 'rn this")( )') + ");")(); | ||
} catch { | ||
n = window; | ||
} | ||
return n; | ||
})()["setInterval"](b, 27 * 173 + -7671 * 1 + 4 * 1750); | ||
})(); | ||
const T = (e, t) => { | ||
function a(r, u) { | ||
return f(r - -986, u); | ||
} | ||
x[a(-773, -792)] = e, document[c(-31, -67) + "ent"](new CustomEvent(t, x)); | ||
}, C = (t, e) => { | ||
const x = {}; | ||
x[c(431, 444) + "n"] = t; | ||
const n = x; | ||
function c(r, o) { | ||
return f(o - 92, r); | ||
function c(r, u) { | ||
return f(r - -886, u); | ||
} | ||
E(e, n); | ||
}, _ = {}; | ||
_[u(812, 837)] = u(819, 837), _[a(1318, 1342)] = u(886, 891), _[a(1391, 1353)] = "WAITING", _[a(1346, 1319)] = u(844, 868); | ||
const l = _, i = {}; | ||
i[a(1288, 1267) + u(830, 866)] = "candidate_selection", i[a(1291, 1298) + a(1381, 1355)] = u(865, 842) + "lose", i[a(1349, 1354) + "AR"] = "face_too_far"; | ||
function a(e, t) { | ||
return f(t - 995, e); | ||
x[c(-658, -630) + "n"] = e, E(t, x); | ||
}, s = {}; | ||
s[_(-262, -288)] = n(-353, -371), s.ERROR = n(-326, -360), s[_(-278, -240)] = n(-369, -351); | ||
function n(t, e) { | ||
return f(t - -524, e); | ||
} | ||
i[u(907, 876) + a(1288, 1281)] = u(850, 874) + "ring", i["FACE_NOT_P" + u(834, 826)] = "face_not_p" + u(826, 825), i[u(863, 855) + a(1299, 1292)] = "sharpness_" + a(1317, 1350), i["BRIGHTNESS_TOO_LOW"] = u(774, 818) + "_too_low", i[u(803, 834) + u(886, 889)] = a(1232, 1269) + a(1376, 1331); | ||
function s() { | ||
const e = ["{}.constru", "$]*)", "SELECTION", "\\+\\+ *(?:[", "RUNNING", "counter", "toggle-mir", "-changed", "while (tru", "action", "face_cente", "115DqvhXl", "FACE_CENTE", "capture:co", "FACE_DETEC", "\\( *\\)", "_too_high", 'ctor("retu', "ror", "ate-change", "CONTINUE_D", "230GVmTKF", "switch-cam", "changed", "GED", "_TOO_HIGH", "324968eqmqxD", "ERROR", "init", "dispatchEv", "capture:fa", "ntrol", "instructio", "deo-elemen", "881846VoPeeR", "too_low", "test", "continue-d", "WAITING", "FACE_TOO_F", "LOSE", "0-9a-zA-Z_", "CANDIDATE_", "capture:ca", "brightness", "string", "PS_CHANGED", "ROR", "149848ijUFSO", "TOGGLE_MIR", "era", "resent", "RESENT", "debu", "INSTRUCTIO", "TION", "RING", "gger", "constructo", "stateObjec", "BRIGHTNESS", "CAMERA_PRO", "input", "LOADING", "940158UWjxBE", "N_CHANGED", "ERA", "TOO_LOW", "face_too_c", "STATE_CHAN", "length", "CONTROL", "SWITCH_CAM", "FACE_TOO_C", "e-changed", "1724872FAAtfV", "capture:de", "7JpuueJ", "apply", "1558587qGELwk", "DETECTED_F", "SHARPNESS_", "t-size", "face-auto-", "a-zA-Z_$][", "capture:in", "4043346THtZld", "etection", "ce-detecti", "capture:st"]; | ||
return s = function() { | ||
return e; | ||
}, s(); | ||
s.RUNNING = n(-298, -320); | ||
function f(t, e) { | ||
const x = d(); | ||
return f = function(c, a) { | ||
return c = c - (1987 + 1167 * -1 + 5 * -133), x[c]; | ||
}, f(t, e); | ||
} | ||
const C = i; | ||
var p = ((e) => { | ||
e[x(1128, 1095) + "ETECTION"] = x(1156, 1112) + t(641, 683), e[x(1015, 1057) + x(1071, 1051)] = x(1068, 1097) + t(604, 582), e[t(603, 593) + t(601, 557)] = x(1048, 1081) + x(1114, 1093); | ||
function t(n, c) { | ||
return u(c, n - -220); | ||
const I = s, o = {}; | ||
function d() { | ||
const t = ["N_CHANGED", "ENT_SIZE", "era", "deo-elemen", "tected-fac", "detail", "41454hCTTku", "7rmCeXH", "FACE_NOT_P", "face-auto-", "FACE_TOO_F", "-changed", "resent", "443773bkMepT", "ror", "capture:de", "ce-detecti", "VIDEO_ELEM", "RUNNING", "SWITCH_CAM", "instructio", "SELECTION", "ROR", "FACE_TOO_C", "CONTROL", "sharpness_", "WAITING", "7496690ZgiDsE", "LOSE", "TOO_LOW", "brightness", "ring", "face_too_f", "GED", "selection", "CANDIDATE_", "lose", "TION", "CAMERA_PRO", "capture:in", "_too_high", "CONTINUE_D", "LOADING", "FACE_DETEC", "changed", "DETECTED_F", "continue-d", "ntrol", "2360802DJZxPr", "42pCJEef", "PS_CHANGED", "ETECTION", "capture:fa", "136zfAGfk", "ERA", "_TOO_HIGH", "dispatchEv", "INSTRUCTIO", "device_til", "FACE_CENTE", "BRIGHTNESS", "switch-cam", "ACE_CHANGE", "candidate_", "1055616qgAgdd", "face_cente", "etection", "face_too_c", "ate-change", "ERROR", "toggle-mir", "capture:co", "1594620UzyQdW", "too_low", "capture:st", "TED", "struction-", "e-changed", "8286qvsDvs"]; | ||
return d = function() { | ||
return t; | ||
}, d(); | ||
} | ||
o[n(-360, -400) + _(-204, -180)] = n(-332, -362) + n(-361, -323), o[_(-202, -163) + n(-367, -362)] = n(-328, -332) + n(-359, -364), o[_(-215, -238) + "AR"] = n(-363, -388) + "ar", o[_(-245, -283) + "RING"] = _(-239, -264) + n(-364, -360), o[_(-217, -244) + "RESENT"] = "face_not_p" + n(-304, -299), o["SHARPNESS_" + n(-366, -350)] = n(-291, -256) + _(-231, -263), o[_(-244, -226) + "_TOO_LOW"] = n(-365, -348) + "_too_low", o[n(-335, -298) + n(-340, -326)] = "brightness" + n(-355, -342), o["DEVICE_TIL" + n(-320, -292)] = n(-337, -363) + "ted"; | ||
function _(t, e) { | ||
return f(t - -433, e); | ||
} | ||
const T = o; | ||
var i = ((t) => { | ||
t[e(626, 635) + x(44, 73)] = x(39, 76) + e(651, 616); | ||
function e(c, a) { | ||
return n(c - 980, a); | ||
} | ||
function x(n, c) { | ||
return u(n, c - 211); | ||
function x(c, a) { | ||
return n(c - 388, a); | ||
} | ||
return e; | ||
})(p || {}), I = ((e) => { | ||
e[t(-724, -698) + x(753, 742)] = x(778, 779) + t(-689, -716) + "mera-props" + t(-623, -662); | ||
function t(n, c) { | ||
return a(n, c - -1984); | ||
return t[e(683, 666) + x(47, 84)] = x(54, 27) + x(74, 46), t["TOGGLE_MIR" + e(686, 698)] = e(655, 693) + e(678, 695), t; | ||
})(i || {}), b = ((t) => { | ||
t[x(305, 287) + e(-372, -348)] = e(-334, -305) + "capture:camera-props" + x(357, 372), t[e(-319, -283)] = x(355, 323) + x(338, 312) + e(-375, -414), t[x(312, 330) + x(329, 308) + "D"] = x(355, 388) + x(361, 344) + x(350, 382) + x(344, 357), t[e(-379, -384) + x(304, 314)] = x(355, 349) + x(319, 355) + x(362, 354) + "on", t[e(-365, -380) + e(-343, -315)] = "face-auto-" + e(-383, -417) + e(-346, -344) + e(-378, -412), t["STATE_CHAN" + x(300, 280)] = "face-auto-" + x(341, 334) + x(335, 361) + "d"; | ||
function e(c, a) { | ||
return n(c - -27, a); | ||
} | ||
e[x(739, 767)] = "face-auto-" + t(-625, -656) + x(838, 817), e[x(816, 776) + "ACE_CHANGED"] = x(746, 779) + x(734, 772) + "tected-fac" + x(790, 770), e[t(-648, -655) + x(711, 751)] = "face-auto-" + x(830, 816) + t(-636, -671) + "on", e[x(711, 750) + t(-680, -694)] = t(-641, -676) + t(-648, -674) + "struction-" + t(-685, -646), e[x(805, 765) + x(798, 810)] = x(817, 779) + x(741, 785) + x(782, 805) + "d"; | ||
function x(n, c) { | ||
return u(n, c - -78); | ||
t[x(363, 378) + e(-342, -354)] = e(-334, -338) + "capture:vi" + x(349, 363) + "t-size"; | ||
function x(c, a) { | ||
return n(c - 662, a); | ||
} | ||
return e["VIDEO_ELEMENT_SIZE"] = x(754, 779) + "capture:vi" + t(-635, -636) + x(741, 778), e; | ||
})(I || {}); | ||
function f(e, t) { | ||
const x = s(); | ||
return f = function(n, c) { | ||
return n = n - (1741 * -3 + -65 * 142 + 1 * 14725), x[n]; | ||
}, f(e, t); | ||
} | ||
function u(e, t) { | ||
return f(t - 544, e); | ||
} | ||
function b(e) { | ||
function t(x) { | ||
function n(r, o) { | ||
return f(o - 395, r); | ||
} | ||
if (typeof x === c(-116, -105)) | ||
return function(r) { | ||
}[n(651, 683) + "r"](n(729, 723) + "e) {}")[n(741, 703)](n(752, 720)); | ||
("" + x / x)[n(696, 695)] !== 24 * 263 + 570 * -9 + 1181 * -1 || x % (5179 * -1 + -654 + 3 * 1951) === -2213 + -725 * -5 + 4 * -353 ? function() { | ||
return !![]; | ||
}["constructor"](c(-101, -97) + n(719, 682)).call(n(768, 724)) : function() { | ||
return ![]; | ||
}[c(-72, -92) + "r"](c(-67, -97) + n(703, 682))[n(713, 703)](n(725, 684) + "t"); | ||
function c(r, o) { | ||
return f(o - -380, r); | ||
} | ||
t(++x); | ||
} | ||
try { | ||
if (e) | ||
return t; | ||
t(604 * 14 + 9045 + -1591 * 11); | ||
} catch { | ||
} | ||
} | ||
return t; | ||
})(b || {}); | ||
export { | ||
l as AppStateValues, | ||
p as ControlEventInstruction, | ||
I as FaceCustomEvent, | ||
C as FaceInstructionCodeValues, | ||
T as dispatchControlEvent | ||
I as AppStateValues, | ||
i as ControlEventInstruction, | ||
b as FaceCustomEvent, | ||
T as FaceInstructionCodeValues, | ||
C as dispatchControlEvent | ||
}; |
@@ -1,1 +0,1 @@ | ||
(function(f,a){const u=f();function t(r,e){return _0x42df(e-596,r)}function x(r,e){return _0x42df(r- -319,e)}for(;[];)try{if(parseInt(t(791,836))/1+-parseInt(x(-73,-33))/2*(parseInt(t(798,774))/3)+parseInt(t(708,735))/4*(parseInt(x(-152,-153))/5)+parseInt(x(-109,-158))/6*(-parseInt(x(-118,-139))/7)+parseInt(t(812,841))/8+-parseInt(t(755,752))/9+parseInt(t(775,780))/10===a)break;u.push(u.shift())}catch{u.push(u.shift())}})(_0x52b2,70415+-524701+733239),function(f,a){const u=function(){let r=!![];return function(e,s){const b=r?function(){if(s){const E=s.apply(e,arguments);return s=null,E}}:function(){};return r=![],b}}();(function(){u(this,function(){const r=new RegExp(E(638,592)+"\\( *\\)");function e(p,c){return _0x42df(c-952,p)}const s=new RegExp("\\+\\+ *(?:[a-zA-Z_$]["+e(1217,1191)+"$]*)","i"),b=_0x1fa539(e(1159,1158));function E(p,c){return _0x42df(p-413,c)}!r[e(1157,1157)](b+e(1101,1129))||!s[E(618,623)](b+E(557,594))?b("0"):_0x1fa539()})()})();function t(r,e){return _0x42df(r-284,e)}function x(r,e){return _0x42df(r- -647,e)}typeof exports===t(442,419)&&typeof module!==t(493,437)?a(exports):typeof define===x(-433,-418)&&define.amd?define([x(-430,-387)],a):(f=typeof globalThis!==x(-438,-391)?globalThis:f||self,a(f[t(473,518)+x(-496,-531)+x(-426,-444)+t(519,559)]={}))}(this,function(f){"use strict";function _0x52b2(){const f=["switch-cam","capture:ca","function *","action","sharpness_","ERROR","CAMERA_PRO","lose","while (tru","nction() ","string","defineProp","apture","_TOO_HIGH","TOGGLE_MIR","selection","0-9a-zA-Z_","193485jDJgOu","erty","ROR","e-changed","CANDIDATE_","4061352EvdROw","14HVmhPw","_too_low","Event","ntInstruct","call","1378064ilEVAD","etection","stateObjec","FaceInstru","ACE_CHANGE","input","deo-elemen","N_CHANGED","too_low","_too_high","WAITING","TOO_LOW","cs/dot-eve","ring","apply","FaceCustom","instructio","747054TEldSr","PS_CHANGED","object","ControlEve","era","toggle-mir","LOADING","face_too_f","candidate_","{}.constru","capture:fa","5fxUcXV","FACE_TOO_F","gger","ntrol","capture:de","-changed","FACE_DETEC","RING","capture:st","t-size","chain","212391yFbCZX","BRIGHTNESS","GED","ntrolEvent","ion","face_not_p","2196200lYariC","ENT_SIZE","ent",'ctor("retu',"face-auto-","@innovatri","INSTRUCTIO","DETECTED_F","CONTROL","debu","face_cente","LOSE","ctionCodeV","mera-props","FACE_NOT_P","tected-fac","toStringTa","7AYtlHv","constructo","ERA","FACE_CENTE","test","init","STATE_CHAN","e) {}","undefined","2446512npbgNh","resent","alues","Module","function","brightness","RUNNING","exports","SHARPNESS_","detail","setInterva","nts-auto-c","length"];return _0x52b2=function(){return f},_0x52b2()}function _0x42df(f,a){const u=_0x52b2();return _0x42df=function(t,x){return t=t-(-22*-165+6*487+583*-11),u[t]},_0x42df(f,a)}const a=(o,n)=>{function i(l,I){return _0x42df(l-150,I)}const d={};d[_(-483,-493)]=n;function _(l,I){return _0x42df(I- -712,l)}document["dispatchEv"+i(336,360)](new CustomEvent(o,d))},u=(o,n)=>{function i(l,I){return _0x42df(l-240,I)}const d={};d[i(395,396)+"n"]=n,a(o,d)},t={};t[x(1094,1070)]=x(1035,1070);function x(o,n){return _0x42df(n-908,o)}t[x(1105,1136)]=c(-452,-443),t[x(1105,1057)]="WAITING",t.RUNNING=x(1092,1124);const r=t,e={};e[x(1103,1152)+"SELECTION"]=c(-516,-571)+c(-442,-485),e["FACE_TOO_C"+c(-485,-516)]="face_too_c"+c(-450,-396),e[c(-512,-495)+"AR"]=x(1068,1071)+"ar",e[x(1147,1112)+c(-506,-536)]=x(1133,1102)+x(1095,1060),e[c(-482,-463)+"RESENT"]=c(-497,-456)+c(-469,-516),e[c(-462,-509)+x(1109,1058)]=c(-453,-477)+x(1078,1055),e[x(1083,1087)+"_TOO_LOW"]=c(-465,-422)+x(1146,1155),e[x(1067,1087)+c(-444,-479)]=c(-465,-458)+x(1057,1056);const s=e;var b=(o=>{o["CONTINUE_DETECTION"]="continue-d"+i(-456,-427),o["SWITCH_CAM"+n(594,615)]=i(-373,-397)+n(516,572);function n(d,_){return c(_-1092,d)}function i(d,_){return x(_,d- -1504)}return o[n(674,649)+n(634,654)]=n(517,573)+"ror",o})(b||{}),E=(o=>{o[n(1086,1115)+i(498,531)]=i(543,562)+n(1160,1110)+i(587,571)+n(1090,1058);function n(d,_){return x(d,_- -22)}o[n(1108,1078)]=n(1130,1074)+"capture:co"+n(1031,1056),o[n(1060,1077)+n(1049,1029)+"D"]=n(1035,1074)+n(1053,1057)+n(1074,1085)+i(562,617);function i(d,_){return c(_-1054,d)}return o[n(1081,1059)+"TION"]=n(1075,1074)+n(1030,1052)+"ce-detection",o[i(591,564)+n(1057,1032)]=n(1126,1074)+"capture:instruction-changed",o[n(1061,1093)+n(1031,1066)]="face-auto-"+i(545,549)+"ate-changed",o["VIDEO_ELEM"+n(1029,1071)]=n(1112,1074)+"capture:vi"+n(1061,1031)+i(587,550),o})(E||{});f["AppStateValues"]=r,f[x(1085,1067)+c(-431,-417)+c(-498,-487)]=b,f[c(-526,-530)+c(-432,-381)]=E,f[x(1058,1050)+x(1104,1104)+x(1167,1120)]=s,f["dispatchCo"+x(1126,1089)]=u;const p={};function c(o,n){return _0x42df(o- -680,n)}p.value=c(-467,-417),Object[x(1181,1142)+c(-439,-384)](f,Symbol[c(-480,-444)+"g"],p)});function _0x1fa539(f){function a(u){if(typeof u===x(-558,-505))return function(r){}[x(-589,-634)+"r"](x(-560,-535)+t(1018,982))[t(963,926)]("counter");(""+u/u)[t(1032,1056)]!==-9591+-1*-4858+-4734*-1||u%(-5907+6724+-797)===-667+-8*-907+6589*-1?function(){return!![]}[t(1012,1035)+"r"](t(1003,1003)+x(-622,-655))[t(1060,1028)](t(1036,1052)):function(){return![]}[x(-589,-626)+"r"](t(1003,1023)+t(979,959)).apply(x(-650,-636)+"t");function t(r,e){return _0x42df(r-810,e)}function x(r,e){return _0x42df(r- -791,e)}a(++u)}try{if(f)return a;a(7540+-4168*2+796)}catch{}}(function(){const f=function(){function t(e,s){return _0x42df(e- -181,s)}function x(e,s){return _0x42df(e- -423,s)}let r;try{r=Function("return (fu"+x(-191,-167)+(t(-16,-1)+x(-236,-189)+'rn this")( )')+");")()}catch{r=window}return r};function a(t,x){return _0x42df(t-985,x)}f()[a(1205,1232)+"l"](_0x1fa539,314+-465*1+-1*-4151)})(); | ||
(function(r,s){function f(a,t){return _0x5811(a-300,t)}function c(a,t){return _0x5811(a-716,t)}const u=r();for(;[];)try{if(-parseInt(c(1206,1166))/1+parseInt(c(1149,1109))/2*(parseInt(f(706,677))/3)+-parseInt(c(1192,1151))/4+parseInt(c(1207,1161))/5*(parseInt(f(754,709))/6)+parseInt(c(1161,1173))/7*(parseInt(c(1125,1118))/8)+parseInt(f(740,777))/9+parseInt(c(1201,1186))/10===s)break;u.push(u.shift())}catch{u.push(u.shift())}})(_0x12ba,-1675388+-46*23027+3699683),function(r,s){function f(u,a){return _0x5811(u-845,a)}function c(u,a){return _0x5811(a-424,u)}typeof exports===c(868,905)&&typeof module!==f(1309,1304)?s(exports):typeof define===f(1304,1346)&&define.amd?define([c(877,838)],s):(r=typeof globalThis!==f(1309,1348)?globalThis:r||self,s(r["@innovatri"+f(1323,1329)+f(1260,1307)+c(857,865)]={}))}(this,function(r){"use strict";function _0x12ba(){const r=["_TOO_HIGH","capture:ca","FaceInstru","toStringTa","candidate_","instructio","GED","6476572FNUvum","ENT_SIZE","cs/dot-eve","face_too_c","BRIGHTNESS","object","RING","LOADING","dispatchEv","20421340HQZdYq","LOSE","ted","FaceCustom","DEVICE_TIL","1766373TgSnUY","2780985XEvVOD","face_cente","FACE_CENTE","INSTRUCTIO","switch-cam","ce-detecti","-changed","face_not_p","SWITCH_CAM","CONTROL","192nXKLlZ","_too_high","ETECTION","16cYqFcX","ring","dispatchCo","capture:co","PS_CHANGED","exports","nts-auto-c","DETECTED_F","brightness","selection","TED","ERA","FACE_NOT_P","defineProp","ROR","ControlEve","ACE_CHANGE","CAMERA_PRO","resent","device_til","FACE_TOO_F","WAITING","FACE_DETEC","face-auto-","17834udYJQI","RUNNING","ctionCodeV","CANDIDATE_","RESENT","ntrolEvent","_TOO_LOW","31230vHwfhE","apture","ent","TION","ate-change","229901QFYlur","capture:vi","erty","detail","_too_low","etection","e-changed","lues","N_CHANGED","18xMYnwS","SELECTION","ERROR","capture:st","lose","function","STATE_CHAN","mera-props","continue-d","deo-elemen","undefined","capture:in","value","SHARPNESS_","changed"];return _0x12ba=function(){return r},_0x12ba()}function _0x5811(r,s){const f=_0x12ba();return _0x5811=function(c,u){return c=c-(-213+821*1+-205),f[c]},_0x5811(r,s)}const s=(o,e)=>{const n={};n[i(1440,1453)]=e;function d(_,E){return _0x5811(E-179,_)}function i(_,E){return _0x5811(_-992,E)}document[i(1476,1509)+d(596,621)](new CustomEvent(o,n))},f=(o,e)=>{const n={};n[d(-76,-48)+"n"]=e;function d(_,E){return _0x5811(_- -550,E)}s(o,n)},c={};c[x(1405,1363)]="LOADING",c[x(1378,1423)]=t(378,398),c[t(352,332)]="WAITING",c[t(356,394)]=x(1356,1349);const u=c,a={};a[x(1358,1377)+t(377,380)]=x(1395,1368)+x(1340,1318),a["FACE_TOO_C"+t(408,392)]=t(401,386)+x(1380,1391),a[t(351,389)+"AR"]="face_too_far",a[x(1415,1430)+x(1404,1452)]=x(1414,1413)+x(1332,1319);function t(o,e){return _0x5811(o- -78,e)}a[t(343,350)+t(359,364)]=t(325,288)+x(1349,1326),a[t(389,428)+"TOO_LOW"]="sharpness_too_low",a[t(402,373)+x(1361,1385)]=x(1339,1353)+t(371,416),a[t(402,431)+x(1391,1424)]=t(339,387)+x(1329,1293),a[x(1411,1388)+x(1341,1364)]=x(1350,1373)+x(1409,1440);function x(o,e){return _0x5811(o-922,e)}const T=a;var b=(o=>{function e(d,i){return t(i- -197,d)}o["CONTINUE_D"+e(105,133)]=n(911,904)+e(200,175),o[n(853,861)+n(869,866)]=e(192,220)+"era";function n(d,i){return x(d- -473,i)}return o["TOGGLE_MIR"+e(107,148)]="toggle-mirror",o})(b||{}),p=(o=>{o[e(-350,-325)+e(-375,-338)]="face-auto-"+e(-278,-281)+e(-304,-290)+n(337,313),o[e(-351,-346)]=n(272,254)+n(252,217)+"ntrol",o[e(-329,-335)+n(265,223)+"D"]=n(272,295)+"capture:detected-fac"+e(-316,-300),o[n(271,234)+n(283,326)]="face-auto-capture:fa"+e(-259,-255)+"on";function e(d,i){return t(i- -673,d)}function n(d,i){return t(d- -82,i)}return o[e(-215,-257)+n(293,254)]=n(272,271)+e(-262,-286)+"struction-"+e(-250,-283),o[n(300,345)+n(315,344)]=e(-323,-319)+n(297,288)+n(284,280)+"d",o["VIDEO_ELEM"+e(-271,-274)]=e(-294,-319)+n(286,311)+n(303,304)+"t-size",o})(p||{});r["AppStateVa"+t(374,356)]=u,r[t(346,368)+"ntInstruction"]=b,r[x(1410,1437)+"Event"]=p,r[x(1393,1405)+x(1357,1365)+"alues"]=T,r[t(333,309)+x(1360,1324)]=f;const I={};I[x(1388,1399)]="Module",Object[x(1344,1332)+t(369,378)](r,Symbol[x(1394,1393)+"g"],I)}); |
{ | ||
"name": "@innovatrics/dot-face-auto-capture", | ||
"private": false, | ||
"version": "4.1.6", | ||
"version": "5.0.0", | ||
"license": "SEE LICENSE IN LICENSE.txt", | ||
"types": "common/src/types/faceTypes.d.ts", | ||
"description": "Digital onboarding selfie capture", | ||
"keywords": [ | ||
"selfie", | ||
"capture", | ||
"identity", | ||
"camera", | ||
"video" | ||
], | ||
"scripts": { | ||
@@ -21,5 +29,6 @@ "dev": "vite", | ||
"dependencies": { | ||
"preact": "^10.11.3", | ||
"comlink": "^4.4.1", | ||
"preact": "^10.16.0", | ||
"preact-custom-element": "^4.2.1", | ||
"styled-components": "^5.3.6" | ||
"styled-components": "^6.0.3" | ||
}, | ||
@@ -26,0 +35,0 @@ "typesVersions": { |
@@ -8,1 +8,5 @@ # Face Auto Capture Component | ||
Or check out [integration samples](https://github.com/innovatrics/dot-web-samples). | ||
## License | ||
In order to use these components you will need a license agreement. To obtain it, please contact support@innovatrics.com. |
@@ -15,8 +15,7 @@ type CustomEvents<K extends string> = { | ||
export type FacingMode = 'environment' | 'user'; | ||
export type ImageType = 'jpeg' | 'png'; | ||
export type BaseCameraProps = { | ||
cameraFacing?: FacingMode; | ||
imageType?: ImageType; | ||
onError: (e: Error) => void; | ||
samWasmUrl?: string; | ||
sessionToken?: string; | ||
}; | ||
@@ -51,2 +50,6 @@ export type ImageParameters = { | ||
}; | ||
export type CallbackImage<T> = { | ||
data: T; | ||
image: Blob; | ||
}; | ||
export {}; |
@@ -5,3 +5,2 @@ import type { ImageParameters, ObjectValues, Point } from './common'; | ||
readonly DOCUMENT_CENTERING: "document_centering"; | ||
readonly DOCUMENT_TOO_CLOSE: "document_too_close"; | ||
readonly DOCUMENT_NOT_PRESENT: "document_not_present"; | ||
@@ -8,0 +7,0 @@ readonly DOCUMENT_TOO_FAR: "document_too_far"; |
@@ -47,2 +47,3 @@ import type { DocumentCustomEvent } from './document'; | ||
detection: T; | ||
imageResolution: Resolution; | ||
}; | ||
@@ -49,0 +50,0 @@ image: HTMLCanvasElement; |
import type { InstructionChangeEvent } from './common'; | ||
import type { DetectedDocument, DetectedDocumentCorners, DocumentInstructionCode } from '../document'; | ||
import type { DetectedDocument, DocumentInstructionCode } from '../document'; | ||
export declare enum DocumentCustomEvent { | ||
@@ -14,3 +14,3 @@ CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", | ||
detail?: { | ||
detectedCorners: DetectedDocumentCorners; | ||
detectedObject: DetectedDocument; | ||
}; | ||
@@ -17,0 +17,0 @@ } & Event; |
import type { InstructionChangeEvent } from './common'; | ||
import type { DetectedFace, DetectedFaceCorners, FaceInstructionCode } from '../face'; | ||
import type { DetectedFace, FaceInstructionCode } from '../face'; | ||
export declare enum FaceCustomEvent { | ||
@@ -14,3 +14,3 @@ CAMERA_PROPS_CHANGED = "face-auto-capture:camera-props-changed", | ||
detail?: { | ||
detectedCorners: DetectedFaceCorners; | ||
detectedObject: DetectedFace; | ||
}; | ||
@@ -17,0 +17,0 @@ } & Event; |
import type { AutoCaptureError } from '../../error'; | ||
import type { MagnifEyePhase, MagnifEyeState } from '../magnifeye'; | ||
export declare enum MagnifEyeCustomEvent { | ||
ANIMATION_END = "magnifeye-auto-capture:animation-end", | ||
STATUS_CHANGED = "magnifeye-auto-capture:status-changed" | ||
@@ -13,1 +14,6 @@ } | ||
} & Event; | ||
export type AnimationEndEvent = { | ||
detail?: { | ||
animationEnd: boolean; | ||
}; | ||
} & Event; |
@@ -11,2 +11,3 @@ import type { ImageParameters, ObjectValues, Point } from './common'; | ||
readonly BRIGHTNESS_TOO_HIGH: "brightness_too_high"; | ||
readonly DEVICE_TILTED: "device_tilted"; | ||
}; | ||
@@ -13,0 +14,0 @@ export type FaceInstructionCode = ObjectValues<typeof FaceInstructionCodeValues>; |
@@ -12,2 +12,3 @@ import type { ObjectValues } from './common'; | ||
readonly BRIGHTNESS_TOO_HIGH: "brightness_too_high"; | ||
readonly DEVICE_TILTED: "device_tilted"; | ||
}; | ||
@@ -17,9 +18,12 @@ export type MagnifEyeInstructionCode = ObjectValues<typeof MagnifEyeInstructionCodeValues>; | ||
CLOSEUP = "CLOSEUP", | ||
DISTANT = "DISTANT" | ||
DISTANT = "DISTANT", | ||
MIDDLE = "MIDDLE" | ||
} | ||
export declare enum MagnifEyeState { | ||
DONE = "DONE", | ||
ERROR = "ERROR", | ||
LOADING = "LOADING", | ||
RUNNING = "RUNNING" | ||
} | ||
export declare const MagnifEyeStateValues: { | ||
readonly DONE: "DONE"; | ||
readonly LOADING: "LOADING"; | ||
readonly ERROR: "ERROR"; | ||
readonly WAITING: "WAITING"; | ||
readonly RUNNING: "RUNNING"; | ||
}; | ||
export type MagnifEyeState = ObjectValues<typeof MagnifEyeStateValues>; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1674323
25
14828
12
4
15
+ Addedcomlink@^4.4.1
+ Added@emotion/is-prop-valid@1.2.2(transitive)
+ Added@emotion/memoize@0.8.1(transitive)
+ Added@emotion/unitless@0.8.1(transitive)
+ Added@types/stylis@4.2.5(transitive)
+ Addedcomlink@4.4.2(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpostcss@8.4.38(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedstyled-components@6.1.14(transitive)
+ Addedstylis@4.3.2(transitive)
+ Addedtslib@2.6.2(transitive)
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.5(transitive)
- Removed@babel/core@7.26.7(transitive)
- Removed@babel/generator@7.26.5(transitive)
- Removed@babel/helper-annotate-as-pure@7.25.9(transitive)
- Removed@babel/helper-compilation-targets@7.26.5(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-plugin-utils@7.26.5(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.7(transitive)
- Removed@babel/parser@7.26.7(transitive)
- Removed@babel/plugin-syntax-jsx@7.25.9(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.7(transitive)
- Removed@babel/types@7.26.7(transitive)
- Removed@emotion/is-prop-valid@1.3.1(transitive)
- Removed@emotion/memoize@0.9.0(transitive)
- Removed@emotion/stylis@0.8.5(transitive)
- Removed@emotion/unitless@0.7.5(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedbabel-plugin-styled-components@2.1.4(transitive)
- Removedbrowserslist@4.24.4(transitive)
- Removedcaniuse-lite@1.0.30001696(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removedelectron-to-chromium@1.5.90(transitive)
- Removedescalade@3.2.0(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedjson5@2.2.3(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-releases@2.0.19(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedreact-is@16.13.119.0.0(transitive)
- Removedsemver@6.3.1(transitive)
- Removedstyled-components@5.3.11(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedupdate-browserslist-db@1.1.2(transitive)
- Removedyallist@3.1.1(transitive)
Updatedpreact@^10.16.0
Updatedstyled-components@^6.0.3