@@ -5,12 +5,13 @@ import {
55 Quadrilateral ,
66
77
8- LegacyCardIssuer ,
98 Issuer ,
109 BlinkCardProcessingStatus ,
1110 BlinkCardAnonymizationMode ,
1211 CardNumberAnonymizationSettings ,
1312 BlinkCardAnonymizationSettings ,
13+ BlinkCardMatchLevel ,
14+ BlinkCardCheckResult ,
1415 ImageExtensionFactors ,
1516 DataMatchResult ,
1617} from '../types'
@@ -42,13 +43,23 @@ export class BlinkCardRecognizerResult extends RecognizerResult {
4243 */
4344 this . cvv = nativeResult . cvv ;
4445
46+ /**
47+ * Document liveness check (screen, photocopy, hand presence) which can pass or fail.
48+ */
49+ this . documentLivenessCheck = nativeResult . documentLivenessCheck ;
50+
4551 /**
4652 * The payment card's expiry date.
4753 */
4854 this . expiryDate = nativeResult . expiryDate != null ? new Date ( nativeResult . expiryDate ) : null ;
4955
5056 /**
51- * Wheater the first scanned side is blurred.
57+ * Whether the first scanned side is anonymized.
58+ */
59+ this . firstSideAnonymized = nativeResult . firstSideAnonymized ;
60+
61+ /**
62+ * Whether the first scanned side is blurred.
5263 */
5364 this . firstSideBlurred = nativeResult . firstSideBlurred ;
5465
@@ -84,7 +95,12 @@ export class BlinkCardRecognizerResult extends RecognizerResult {
8495 this . scanningFirstSideDone = nativeResult . scanningFirstSideDone ;
8596
8697 /**
87- * Wheater the second scanned side is blurred.
98+ * Whether the second scanned side is anonymized.
99+ */
100+ this . secondSideAnonymized = nativeResult . secondSideAnonymized ;
101+
102+ /**
103+ * Whether the second scanned side is blurred.
88104 */
89105 this . secondSideBlurred = nativeResult . secondSideBlurred ;
90106
@@ -110,6 +126,13 @@ export class BlinkCardRecognizer extends Recognizer {
110126 */
111127 this . allowBlurFilter = true ;
112128
129+ /**
130+ * Whether invalid card number is accepted.
131+ *
132+ *
133+ */
134+ this . allowInvalidCardNumber = false ;
135+
113136 /**
114137 * Defines whether sensitive data should be redacted from the result.
115138 *
@@ -161,6 +184,20 @@ export class BlinkCardRecognizer extends Recognizer {
161184 */
162185 this . fullDocumentImageExtensionFactors = new ImageExtensionFactors ( ) ;
163186
187+ /**
188+ * This parameter is used to adjust heuristics that eliminate cases when the hand is present.
189+ *
190+ *
191+ */
192+ this . handDocumentOverlapThreshold = 0.05 ;
193+
194+ /**
195+ * Hand scale is calculated as a ratio between area of hand mask and document mask.
196+ *
197+ *
198+ */
199+ this . handScaleThreshold = 0.15 ;
200+
164201 /**
165202 * Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
166203 * padding edge and image edge are the same.
@@ -170,13 +207,27 @@ export class BlinkCardRecognizer extends Recognizer {
170207 */
171208 this . paddingEdge = 0.0 ;
172209
210+ /**
211+ * Photocopy analysis match level - higher if stricter.
212+ *
213+ *
214+ */
215+ this . photocopyAnalysisMatchLevel = BlinkCardMatchLevel . Level5 ;
216+
173217 /**
174218 * Sets whether full document image of ID card should be extracted.
175219 *
176220 *
177221 */
178222 this . returnFullDocumentImage = false ;
179223
224+ /**
225+ * Screen analysis match level - higher if stricter.
226+ *
227+ *
228+ */
229+ this . screenAnalysisMatchLevel = BlinkCardMatchLevel . Level5 ;
230+
180231 this . createResultFromNative = function ( nativeResult ) { return new BlinkCardRecognizerResult ( nativeResult ) ; }
181232 }
182233}
0 commit comments