@authme/engine 2.1.2-rc.0 → 2.2.0-rc.5
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/CHANGELOG.md +24 -0
- package/assets/engine-worker.js +34 -29
- package/assets/ml_engine_web.js +1 -1
- package/assets/ml_engine_web.simd.js +1 -1
- package/assets/ml_engine_web.simd.wasm +0 -0
- package/assets/ml_engine_web.wasm +0 -0
- package/assets/ml_engine_web_version.txt +1 -0
- package/package.json +3 -3
- package/src/lib/engine.d.ts +1 -0
- package/src/lib/engine.js +7 -0
- package/src/lib/engine.js.map +1 -1
- package/src/lib/enum/module.enum.d.ts +1 -1
- package/src/lib/enum/module.enum.js +1 -1
- package/src/lib/enum/module.enum.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.2.0-rc.5](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.4...v2.2.0-rc.5) (2022-12-03)
|
|
6
|
+
|
|
7
|
+
## [2.2.0-rc.4](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.3...v2.2.0-rc.4) (2022-12-01)
|
|
8
|
+
|
|
9
|
+
## [2.2.0-rc.3](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.2...v2.2.0-rc.3) (2022-11-30)
|
|
10
|
+
|
|
11
|
+
## [2.2.0-rc.2](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.1...v2.2.0-rc.2) (2022-11-28)
|
|
12
|
+
|
|
13
|
+
## [2.2.0-rc.1](https://github.com/AuthMe01/web-client-sdk/compare/v2.2.0-rc.0...v2.2.0-rc.1) (2022-11-18)
|
|
14
|
+
|
|
15
|
+
## [2.2.0-rc.0](https://github.com/AuthMe01/web-client-sdk/compare/v2.1.1...v2.2.0-rc.0) (2022-11-11)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- PROD-1847 camera focusMode ([a5baa6a](https://github.com/AuthMe01/web-client-sdk/commit/a5baa6a6023b6d102cb60deb539faa493e7f5f91))
|
|
20
|
+
- PROD-1847 loss engine ts ([43529b6](https://github.com/AuthMe01/web-client-sdk/commit/43529b6eec6bee27e8d04ab3124d7622fed9806c))
|
|
21
|
+
- PROD-1947 update EngineLib v4.0.0 ([9178c38](https://github.com/AuthMe01/web-client-sdk/commit/9178c3882c26f828e548104af66791d9d2d3f51d))
|
|
22
|
+
- PROD-1947 update EngineLib v4.0.0 ([b409697](https://github.com/AuthMe01/web-client-sdk/commit/b409697feececcfb92de73c924645f753b080e45))
|
|
23
|
+
- PROD-2126 update to 4.1.2 ([6216754](https://github.com/AuthMe01/web-client-sdk/commit/6216754f513017a88c09f8d62cdf44cb9269ef69))
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
- field via engine-lib toJson when mrz ([dd4e731](https://github.com/AuthMe01/web-client-sdk/commit/dd4e73134dce246f450d124a0afb36e182a9873d))
|
|
28
|
+
|
|
5
29
|
## [2.1.2-rc.0](https://github.com/AuthMe01/web-client-sdk/compare/prod-2.1.1...prod-2.1.2-rc.0) (2022-09-15)
|
|
6
30
|
|
|
7
31
|
## [2.1.1](https://github.com/AuthMe01/web-client-sdk/compare/prod-2.1.0...prod-2.1.1) (2022-09-08)
|
package/assets/engine-worker.js
CHANGED
|
@@ -110,54 +110,64 @@
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
//
|
|
114
|
-
self.
|
|
113
|
+
// PassportService
|
|
114
|
+
self.PassportService = {
|
|
115
115
|
instance: null,
|
|
116
116
|
init: async function () {
|
|
117
|
-
return await self.Base.init(self.
|
|
117
|
+
return await self.Base.init(self.PassportService, 'PassportService');
|
|
118
118
|
},
|
|
119
119
|
start: function () {
|
|
120
|
-
return self.Base.start(self.
|
|
120
|
+
return self.Base.start(self.PassportService);
|
|
121
121
|
},
|
|
122
122
|
stop: function () {
|
|
123
|
-
return self.Base.stop(self.
|
|
123
|
+
return self.Base.stop(self.PassportService);
|
|
124
124
|
},
|
|
125
125
|
getJsonReport: function () {
|
|
126
|
-
return self.Base.getJsonReport(self.
|
|
126
|
+
return self.Base.getJsonReport(self.PassportService);
|
|
127
127
|
},
|
|
128
128
|
setFrameSize: function (params) {
|
|
129
|
-
return self.Base.setFrameSize(self.
|
|
129
|
+
return self.Base.setFrameSize(self.PassportService, params);
|
|
130
|
+
},
|
|
131
|
+
getFinalResult: function (params) {
|
|
132
|
+
return self.PassportService.instance.getFinalResult();
|
|
133
|
+
},
|
|
134
|
+
toJson: function (params) {
|
|
135
|
+
return Object.getPrototypeOf(
|
|
136
|
+
self.PassportService.instance
|
|
137
|
+
).constructor.toJson(params);
|
|
130
138
|
},
|
|
131
139
|
recognition: function (params) {
|
|
132
|
-
const result = self.Base.recognition(self.
|
|
140
|
+
const result = self.Base.recognition(self.PassportService, params);
|
|
133
141
|
if (result) {
|
|
134
142
|
result.eStatus = result.eStatus.constructor.name;
|
|
135
|
-
result.tField =
|
|
136
|
-
.map(([k, v]) => [
|
|
137
|
-
k,
|
|
138
|
-
v
|
|
139
|
-
.map((x) => String.fromCharCode(x))
|
|
140
|
-
.filter((x) => x !== '\x00')
|
|
141
|
-
.join(''),
|
|
142
|
-
])
|
|
143
|
-
.reduce((prev, cur) => {
|
|
144
|
-
prev[cur[0]] = cur[1];
|
|
145
|
-
return prev;
|
|
146
|
-
}, {});
|
|
143
|
+
result.tField = JSON.parse(self.PassportService.toJson(result.tField));
|
|
147
144
|
}
|
|
148
145
|
return result;
|
|
149
146
|
},
|
|
150
147
|
getParams: function () {
|
|
151
|
-
return self.Base.getParams(self.
|
|
148
|
+
return self.Base.getParams(self.PassportService);
|
|
152
149
|
},
|
|
153
150
|
setParams: function (params) {
|
|
154
|
-
return self.Base.setParams(self.
|
|
151
|
+
return self.Base.setParams(self.PassportService, params);
|
|
155
152
|
},
|
|
156
153
|
getDebugImage: function (params) {
|
|
157
|
-
return self.Base.getDebugImage(self.
|
|
154
|
+
return self.Base.getDebugImage(self.PassportService, params);
|
|
158
155
|
},
|
|
159
156
|
destroy: function () {
|
|
160
|
-
return self.Base.destroy(self.
|
|
157
|
+
return self.Base.destroy(self.PassportService);
|
|
158
|
+
},
|
|
159
|
+
setMaskPosition: function (params) {
|
|
160
|
+
const positions = params.positions;
|
|
161
|
+
return self.PassportService.instance?.setMatchROI(
|
|
162
|
+
positions[0][0],
|
|
163
|
+
positions[0][1],
|
|
164
|
+
positions[1][0],
|
|
165
|
+
positions[1][1],
|
|
166
|
+
positions[2][0],
|
|
167
|
+
positions[2][1],
|
|
168
|
+
positions[3][0],
|
|
169
|
+
positions[3][1]
|
|
170
|
+
);
|
|
161
171
|
},
|
|
162
172
|
};
|
|
163
173
|
|
|
@@ -269,13 +279,9 @@
|
|
|
269
279
|
result.info.eCardMatchStatus.constructor.name;
|
|
270
280
|
result.info.cardClass.eClass =
|
|
271
281
|
result.info.cardClass.eClass.constructor.name;
|
|
272
|
-
result.info.laserTag.eStatus =
|
|
273
|
-
result.info.laserTag.eStatus.constructor.name;
|
|
274
282
|
result.info.metalTag.aeStatus = result.info.metalTag.aeStatus.map(
|
|
275
283
|
(x) => x.constructor.name
|
|
276
284
|
);
|
|
277
|
-
result.info.taiwanHole.eStatus =
|
|
278
|
-
result.info.taiwanHole.eStatus.constructor.name;
|
|
279
285
|
}
|
|
280
286
|
return result;
|
|
281
287
|
},
|
|
@@ -395,7 +401,6 @@
|
|
|
395
401
|
let queryModelString = models
|
|
396
402
|
.map((x) => 'models=' + x.name + '[' + x.version + ']')
|
|
397
403
|
.join('&');
|
|
398
|
-
|
|
399
404
|
let modelPath = await loadModels(queryModelString);
|
|
400
405
|
let modelPointer = models.map(({ name }, index) => {
|
|
401
406
|
if (modelSession[name]) {
|