-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcommon.yml
More file actions
555 lines (530 loc) · 16.2 KB
/
common.yml
File metadata and controls
555 lines (530 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
openapi: 3.0.4
components:
parameters:
x-request:
in: header
name: X-RequestID
schema:
type: string
description: It allows the client and server to correlate each HTTP request. HTTP requests with an identifier are sent from the client to the server and back again.
schemas:
PageIndex:
title: "PageIndex"
description: "Page index of the image from input list"
type: integer
Source:
title: "Source"
description: "Document data sources"
type: string
enum:
- "MRZ"
- "VISUAL"
- "BARCODE"
- "RFID"
- "MAGNETIC"
- "EXTERNAL"
- "LIVE"
- "FINGERPRINT"
x-enum-varnames:
- "MRZ"
- "VISUAL"
- "BARCODE"
- "RFID"
- "MAGNETIC"
- "EXTERNAL"
- "LIVE"
- "FINGERPRINT"
x-enum-descriptions:
- "Machine readable zone (MRZ)"
- "Visual zone"
- "Barcode"
- "RFID"
- "Magnetic"
- "External"
- "Live"
- "Fingerprint"
CheckResult:
title: "CheckResult"
type: integer
description: "0 - result is negative; 1 - result is positive; 2 - сheck was not performed"
enum:
- 0
- 1
- 2
x-enum-varnames:
- "ERROR"
- "OK"
- "WAS_NOT_DONE"
x-enum-descriptions:
- "Check was performed and result is NEGATIVE"
- "Check was performed and result is POSITIVE"
- "Check was NOT PERFORMED"
Scenario:
title: "Scenario"
type: string
description: "Document processing scenario"
enum:
- "Mrz"
- "Barcode"
- "Locate"
- "Ocr"
- "DocType"
- "MrzOrBarcode"
- "MrzOrLocate"
- "MrzAndLocate"
- "BarcodeAndLocate"
- "MrzOrOcr"
- "MrzOrBarcodeOrOcr"
- "LocateVisual_And_MrzOrOcr"
- "FullProcess"
- "FullAuth"
- "RusStamp"
- "OcrFree"
- "CreditCard"
- "Capture"
- "DTC"
- "RFID"
- "mDL"
x-enum-varnames:
- "MRZ"
- "BARCODE"
- "LOCATE"
- "OCR"
- "DOCTYPE"
- "MRZ_OR_BARCODE"
- "MRZ_OR_LOCATE"
- "MRZ_AND_LOCATE"
- "BARCODE_AND_LOCATE"
- "MRZ_OR_OCR"
- "MRZ_OR_BARCODE_OR_OCR"
- "LOCATE_VISUAL_AND_MRZ_OR_OCR"
- "FULL_PROCESS"
- "FULL_AUTH"
- "RUS_STAMP"
- "OCR_FREE"
- "CREDIT_CARD"
- "CAPTURE"
- "DTC"
- "RFID"
- "MDL"
x-enum-descriptions:
- "Scenario for obtaining MRZ data"
- "Scenario for obtaining barcode data"
- "Scenario for detecting document boundaries"
- "Scenario for obtaining visual zone OCR results"
- "Scenario for document type recognition"
- "Scenario for obtaining MRZ and/or barcode data"
- "Scenario for detecting document boundaries and/or obtaining MRZ data"
- "Scenario for detecting document boundaries and obtaining MRZ data"
- "Scenario for detecting the document boundaries and obtaining barcode data"
- "Scenario for obtaining MRZ data or visual zone OCR results"
- "Scenario for obtaining MRZ or barcode or visual zone OCR results"
- "Scenario for detecting document boundaries and obtaining MRZ data or visual zone OCR results"
- "Scenario for obtaining all document data"
- "Scenario for obtaining all document data and document authentication"
- "Scenario for obtaining data from registration stamps"
- "Scenario for obtaining OCR results of any image"
- "Scenario for obtaining bank card data"
- "Scenario for obtaining an original image without any processing"
- "Scenario for Digital Travel Credentials (DTC-VC) data processing"
- "Scenario for RFID chip processing"
- "Scenario for mDL processing"
ImageData:
title: "ImageData"
type: object
properties:
image:
$ref: "#/components/schemas/ImageBase64"
format:
description: "Image format"
type: string
ImageTransactionData:
title: "ImageTransactionData"
type: object
properties:
image:
$ref: './rt-images.yml#/components/schemas/ImagesFieldValue'
ImageBase64:
title: "ImageBase64"
description: "Base64 encoded image"
type: string
format: base64
example: "Base64 encoded image"
RectangleCoordinates:
title: "RectangleCoordinates"
description: "Coordinates of the rectangle region on a document image(result type 1). Represented by two points - (left, top) + (right, bottom)"
type: object
required:
- left
- top
- right
- bottom
properties:
left:
type: integer
top:
type: integer
right:
type: integer
bottom:
type: integer
RfidLocation:
title: "RfidLocation"
type: integer
description: "Determines the presence and location of an RFID chip in a document. 0 - no rfid chip; 1 - chip is located in the document data page; 2 - chip is located in the back page or inlay of the document"
enum:
- 0
- 1
- 2
x-enum-descriptions:
- "There is no RFID chip in the document"
- "The RFID chip is located in the document data page"
- "The RFID chip is located in the back page or inlay of the document"
x-enum-varnames:
- "NONE"
- "MAIN_PAGE"
- "BACK_PAGE"
RfidOrigin:
title: "RfidOrigin"
type: object
description: "Location of data in RFID chip"
required:
- dg
- dgTag
- tagEntry
- entryView
properties:
dg:
description: "Source data group file"
type: integer
dgTag:
description: "Index of the source record of the image with biometric information in the information data group"
type: integer
tagEntry:
description: "Index of the template in the record with biometric data"
type: integer
entryView:
description: "Index of the variant of the biometric data template"
type: integer
Light:
type: integer
description: "Image light index"
enum:
- 0
- 2
- 4
- 6
- 24
- 128
- 3072
x-enum-descriptions:
- "No Light"
- "Upper/lower white"
- "Side white"
- "White"
- "Infrared"
- "Ultraviolet"
- "Axial white"
x-enum-varnames:
- "OFF"
- "WHITE_TOP"
- "WHITE_SIDE"
- "WHITE"
- "IR"
- "UV"
- "AXIAL_WHITE"
Point:
title: "Point"
type: object
required:
- x
- y
properties:
x:
type: integer
y:
type: integer
License:
title: "License"
description: "Base64 encoded data"
type: string
format: byte
example: "Base64 encoded data"
EncryptedRCL:
title: "EncryptedRCL"
description: "Base64 encoded data"
type: string
format: byte
example: "Base64 encoded data"
FaceApi:
title: "FaceApi"
type: object
properties:
url:
type: string
example: "https://faceapi.regulaforensics.com"
description: "The URL of the Regula Face Web service to be used."
mode:
type: string
example: "match"
description: "The processing mode: \"match\" or \"match+search\"."
search:
type: object
description: "A search filter that can be applied if the \"match+search\" mode is enabled. May include limit, threshold, group_ids. If the group_ids are specified, the search is performed only in these groups. Find more information in the <a href=\"https://dev.regulaforensics.com/FaceSDK-web-openapi/#tag/search/operation/search\" target=\"_blank\">OpenAPI documentation</a>."
properties:
limit:
type: integer
description: "The maximum number of results to be returned."
threshold:
type: number
format: float
description: "The similarity threshold."
group_ids:
type: array
items:
type: string
description: " The groups where to conduct the search."
threshold:
type: integer
example: 75
description: "The similarity threshold, 0-100. Above 75 means that the faces' similarity is verified, below 75 is not."
serviceTimeout:
type: integer
example: 3000
description: "The Regula Face Web service requests timeout, ms."
proxy:
type: string
example: "http://localhost:8080"
description: "Proxy to use, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXY.html\" target=\"_blank\">cURL standard</a>."
proxy_userpwd:
type: string
example: "user:pass"
description: "Username and password to use for proxy authentication, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html\" target=\"_blank\">cURL standard</a>."
proxy_type:
type: integer
example: 0
description: "Proxy protocol type, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXYTYPE.html\" target=\"_blank\">cURL standard</a>."
childAgeThreshold:
type: integer
example: 13
description: "The age threshold for the portrait comparison. Default: 13."
childDocValidityYears:
type: integer
example: 5
description: "Estimated duration of validity for a child's passport, years. Default: 5."
VisualExtendedFieldItem:
title: "VisualExtendedFieldItem"
type: object
required:
- wFieldType
- FieldName
- StringsCount
- StringsResult
- Buf_Length
properties:
wFieldType:
$ref: "./e-text-field-type.yml#/components/schemas/TextFieldType"
FieldName:
description: "Field symbolic name (null-terminated string)"
type: string
StringsCount:
description: "Number of StringsResult array elements"
type: number
StringsResult:
type: array
description: "Array of recognizing probabilities for a each line of text field.
Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results."
items:
$ref: "#/components/schemas/StringRecognitionResult"
Buf_Length:
description: "Buf_Text text string length"
type: number
Buf_Text:
type: string
description: "Text field data in UTF8 format.
Results of reading different lines of a multi-line field are separated by '^'"
FieldMask:
type: string
Validity:
type: integer
InComparison:
type: integer
wLCID:
$ref: "./e-lcid.yml#/components/schemas/LCID"
Reserved2:
type: integer
Reserved3:
type: integer
StringRecognitionResult:
title: "StringRecognitionResult"
type: object
description: "Describes single row recognition results in multi-line text field of a document"
required:
- SymbolsCount
- StringResult
properties:
SymbolsCount:
description: "Number of StringResult array elements"
type: number
StringResult:
type: array
description: "Array of recognition results for individual characters of a string"
items:
$ref: "#/components/schemas/SymbolRecognitionResult"
Buf_Length:
description: "Buf_Text text string length"
type: number
Buf_Text:
type: string
description: "Text field data in UTF8 format.
Results of reading different lines of a multi-line field are separated by '^'"
Reserved:
type: integer
SymbolRecognitionResult:
title: "SymbolRecognitionResult"
type: object
description: "Describes a single character recognition results in the text field line"
required:
- CandidatesCount
- ListOfCandidates
properties:
SymbolRect: # Coordinates of the symbol in the normalized image of the document
$ref: "#/components/schemas/RectangleCoordinates"
CandidatesCount:
description: "Number of significant elements of ListOfCandidates array"
type: number
ListOfCandidates:
type: array
description: "Array of candidate characters. Sorted in descending order of recognition probabilities
(the first element has highest probability)"
items:
$ref: "#/components/schemas/SymbolCandidate"
BaseLineBottom:
type: integer
BaseLineTop:
type: integer
SymbolCandidate:
title: "SymbolCandidate"
required:
- SymbolCode
- SymbolProbability
type: object
description: "Describes an individual character recognition candidate"
properties:
SymbolCode:
type: integer
format: int64
description: "Unicode symbol code"
SymbolProbability:
type: integer
description: "character recognition probability (0–100,%)"
minimum: 0
maximum: 100
Class:
type: integer
SubClass:
type: integer
RawImageContainerList:
title: "RawImageContainerList"
type: object
required:
- Count
- Images
properties:
Count:
type: integer
Images:
type: array
items:
$ref: "#/components/schemas/ImageData"
DocumentPosition:
title: "DocumentPosition"
type: object
required:
- docFormat
- Angle
- Width
- Height
- Center
- LeftBottom
- LeftTop
- RightBottom
- RightTop
- Dpi
properties:
docFormat:
$ref: "./rt-doc-type-old.yml#/components/schemas/DocumentFormat"
Angle:
description: "Document rotation angle"
type: number
Width:
description: "Document width"
type: integer
Height:
description: "Document height"
type: integer
Center:
$ref: "./common.yml#/components/schemas/Point"
LeftBottom:
$ref: "./common.yml#/components/schemas/Point"
LeftTop:
$ref: "./common.yml#/components/schemas/Point"
RightBottom:
$ref: "./common.yml#/components/schemas/Point"
RightTop:
$ref: "./common.yml#/components/schemas/Point"
Dpi:
type: integer
Inverse:
type: integer
ObjArea:
type: integer
ObjIntAngleDev:
type: integer
PerspectiveTr:
type: integer
ResultStatus:
type: integer
GlaresCheckParams:
title: "GlaresCheckParams"
type: object
properties:
imgMarginPart:
type: number
format: float
description: "Margin from the edges of the image. 0.35 = 35%"
example: 0.35
maxGlaringPart:
type: number
format: float
description: "The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6%"
example: 0.0
MDLDeviceEngagement:
title: "MDLDeviceEngagement"
type: integer
enum:
- 0
- 1
x-enum-varnames:
- "QR"
- "NFC"
MDLDeviceRetrieval:
title: "MDLDeviceRetrieval"
type: integer
enum:
- 1
- 2
- 3
x-enum-varnames:
- "NFC"
- "BLE"
- "WIFI_AWARE"
MDLServerRetrieval:
title: "MDLServerRetrieval"
type: integer
enum:
- 0
- 1
x-enum-varnames:
- "WEB_API"
- "OIDC"