-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathrt-doc-type-old.yml
More file actions
205 lines (198 loc) · 6.33 KB
/
rt-doc-type-old.yml
File metadata and controls
205 lines (198 loc) · 6.33 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
openapi: 3.0.4
components:
schemas:
CandidatesListItem:
title: "CandidatesListItem"
type: object
properties:
CandidatesList:
$ref: "#/components/schemas/DocumentTypesCandidatesList"
OneCandidateItem:
title: "OneCandidateItem"
type: object
required:
- OneCandidate
properties:
OneCandidate:
$ref: "#/components/schemas/OneCandidate"
XML_buffer:
type: string
readOnly: true
DocumentTypesCandidatesList:
title: "DocumentTypesCandidatesList"
type: object
properties:
RecResult: # Overall recognition result
$ref: "#/components/schemas/DocumentTypeRecognitionResult"
Candidates:
type: array
items:
$ref: "#/components/schemas/OneCandidate"
DocumentTypeRecognitionResult:
title: "DocumentTypeRecognitionResult"
type: integer
enum:
- 0
- 15
- 29
x-enum-descriptions:
- "Document type determined. The first element in candidates array is recognition result"
- "Document type was not determined. Ongoing processing is not possible"
- "To determine document type user should provide more images with different light sources (UV, for example)"
x-enum-varnames:
- "OK"
- "UNKNOWN"
- "NEED_MORE_IMAGES"
OneCandidate:
title: "OneCandidate"
type: object
description: "Contains information about one document type candidate"
required:
- ID
- P
- Rotated180
- RFID_Presence
- NecessaryLights
- CheckAuthenticity
- UVExp
- AuthenticityNecessaryLights
- OVIExp
properties:
DocumentName:
type: string
description: "Document name"
ID:
type: integer
description: "Unique document type template identifier (Regula's internal numeric code)"
P:
type: number
description: "A measure of the likelihood of correct recognition in the analysis of this type of document"
example: 0.9913095831871032
minimum: 0
maximum: 1
Rotated180:
description: "Indicates if the document of the given type is rotated by 180 degrees"
type: integer
RFID_Presence:
description: # Indication of the presence of an RFID chip in the document (electronic document indicator)
$ref: "./common.yml#/components/schemas/RfidLocation"
FDSIDList:
$ref: "#/components/schemas/FDSIDList"
NecessaryLights:
type: integer
description: "Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document"
CheckAuthenticity:
type: integer
description: "Set of authentication options provided for this type of document (combination of Authenticity enum)"
UVExp:
type: integer
description: "The required exposure value of the camera when receiving images of a document
of this type for a UV lighting scheme"
AuthenticityNecessaryLights:
type: integer
description: "Combination of lighting scheme identifiers (combination of Light enum) needed
to perform all authenticity checks specified in CheckAuthenticity"
OVIExp:
description: "Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme"
type: number
RotationAngle:
type: integer
FDSIDList:
title: "FDSIDList"
description: "Extended document type info and Regula's 'Information Reference Systems' links"
type: object
required:
- ICAOCode
- dType
- dFormat
- dMRZ
- dCountryName
- isDeprecated
properties:
ICAOCode:
type: string
minLength: 3
maxLength: 3
description: "ICAO code of the issuing country"
Count:
description: "Number of elements in the List"
type: number
List:
type: array
items:
type: integer
description: "Document identifiers in 'Information Reference Systems'"
dType:
$ref: "./e-document-type.yml#/components/schemas/DocumentType"
dFormat:
$ref: "#/components/schemas/DocumentFormat"
dMRZ:
type: boolean
description: "Flag indicating the presence of MRZ on the document"
dDescription:
type: string
description: "Document description"
dYear:
type: string
description: "Year of publication of the document"
dCountryName:
type: string
description: "Issuing country name"
dStateCode:
type: string
description: "Issuing state code"
dStateName:
type: string
description: "Issuing state name"
isDeprecated:
type: boolean
description: "Whether the document is deprecated"
DocumentFormat:
title: "DocumentFormat"
type: integer
description: "Defining the geometric format of documents in accordance with ISO / IEC 7810"
enum:
- -1
- 0
- 1
- 2
- 3
- 4
- 5
- 10
- 11
- 12
- 13
- 14
- 1000
- 1002
x-enum-descriptions:
- "Unknown document format"
- "ID1 document format"
- "ID2 document format"
- "ID3 document format"
- "Undefined document format"
- "A4 document format"
- "ID3 double document format"
- "ID1 format document rotated 90 °"
- "ID1 format document rotated 180 °"
- "ID1 format document rotated 270 °"
- "ID2 format document rotated 90 °"
- "ID3 format document rotated 180 °"
- "Arbitrary format"
- "Flexible format. Standard formats can be resized during cropping, depending on various factors: light, background..."
x-enum-varnames:
- "UNKNOWN"
- "ID1"
- "ID2"
- "ID3"
- "NON"
- "A4"
- "ID3_X2"
- "ID1_90"
- "ID1_180"
- "ID1_270"
- "ID2_180"
- "ID3_180"
- "CUSTOM"
- "FLEXIBLE"