-
Notifications
You must be signed in to change notification settings - Fork 10
/
rt-ocr-lexical-analisis.yml
95 lines (87 loc) · 3.46 KB
/
rt-ocr-lexical-analisis.yml
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
openapi: 3.0.3
components:
schemas:
LexicalAnalysisResult:
title: "Lexical Analysis"
description: |
Lexical data analysis allows you to compare the results of reading the text data of the MRZ,
the document filling area, barcodes and data from the memory of the RFID chip for an additional
assessment of the authenticity of the document. Single result for all pages.
Consider using Result.TEXT type for more simplicity.
allOf:
- type: object
properties:
ListVerifiedFields:
$ref: "#/components/schemas/ListVerifiedFields"
- $ref: "./rt.yml#/components/schemas/ResultItem"
ListVerifiedFields:
type: object
properties:
pFieldMaps:
type: array
items:
$ref: "#/components/schemas/VerifiedFieldMap"
VerifiedFieldMap:
type: object
properties:
wFieldType:
$ref: "./e-text-field-type.yml#/components/schemas/TextFieldType"
wLCID:
$ref: "./e-lcid.yml#/components/schemas/LCID"
Field_MRZ:
description: "Field data extracted from mrz(machine readable zone)"
type: string
Field_Visual:
description: "Field data extracted from visual zone"
type: string
Field_Barcode:
description: "Field data extracted from barcode"
type: string
Field_RFID:
description: "Field data extracted from rfid chip"
type: string
Matrix:
$ref: "#/components/schemas/ComparisonMatrix"
example:
{FieldType: 185, Field_MRZ: "37", Field_Visual: "37", Matrix: [1,0,0,0,0,3,0,0,0,0]}
ComparisonMatrix:
type: array
minItems: 10
maxItems: 10
description: "results comparison matrix.
Elements of the matrix with indices 0, 1, 2, 3 take one of the values Disabled(0), Verified(1) or Not_Verified(2),
elements with indices 4, 5, 6, 7, 8 are one of the values Disabled(0), Compare_Match(3) or Compare_Not_Match(4).
Elements of the Matrix matrix have the following semantic meaning:
- element with index 0 –– the result of verification of data from the MRZ;
- 1 –– the result of verification of data from the RFID microcircuit;
- 2 –– the result of verification of data from text areas of the document;
- 3 –– the result of verification data from barcodes;
- 4 - the result of comparing MRZ data and RFID microcircuits;
- 5 - the result of comparing MRZ data and text areas of document filling;
- 6 - the result of comparing MRZ data and bar codes;
- 7 - the result of comparing the data of text areas of the document and the RFID chip;
- 8 - the result of comparing the data of the text areas of the document and barcodes;
- 9 - the result of comparing the data of the RFID chip and barcodes."
items:
$ref: "#/components/schemas/VerificationResult"
example: [1,0,0,0,0,3,0,0,0,0]
VerificationResult:
type: integer
enum:
- 0
- 1
- 2
- 3
- 4
x-enum-descriptions:
- "Comparison result unknown"
- "Verification passed"
- "Verification failed"
- "Positive comparison result"
- "Negative comparison result"
x-enum-varnames:
- "DISABLED"
- "VERIFIED"
- "NOT_VERIFIED"
- "COMPARE_MATCH"
- "COMPARE_NOT_MATCH"