-
Notifications
You must be signed in to change notification settings - Fork 10
/
rt-doc-type-old.yml
176 lines (167 loc) · 5.66 KB
/
rt-doc-type-old.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
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
openapi: 3.0.3
components:
schemas:
ChosenDocumentTypeResult:
title: "Chosen Document Type"
description: "Contains information about the type of document that was determined
based on the analysis of the provided image"
allOf:
- type: object
properties:
OneCandidate:
$ref: "#/components/schemas/OneCandidate"
XML_buffer:
type: string
readOnly: true
- $ref: "./rt.yml#/components/schemas/ResultItem"
DocumentTypesCandidatesResult:
title: "Document Types Candidates"
allOf:
- type: object
properties:
CandidatesList:
$ref: "#/components/schemas/DocumentTypesCandidatesList"
- $ref: "./rt.yml#/components/schemas/ResultItem"
DocumentTypesCandidatesList:
type: object
properties:
RecResult:
description: "Overall recognition result"
$ref: "#/components/schemas/DocumentTypeRecognitionResult"
Candidates:
type: array
items:
$ref: "#/components/schemas/OneCandidate"
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:
type: object
description: "Contains information about one document type candidate"
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
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"
FDSIDList:
description: "Extended document type info and Regula's 'Information Reference Systems' links"
type: object
properties:
ICAOCode:
type: string
minLength: 3
maxLength: 3
description: "ICAO code of the issuing country"
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:
type: integer
description: "Defining the geometric format of documents in accordance with ISO / IEC 7810"
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 10
- 11
- 12
- 13
- 14
- 1000
- 1002
x-enum-descriptions:
- "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:
- "ID1"
- "ID2"
- "ID3"
- "NON"
- "A4"
- "ID3_X2"
- "ID1_90"
- "ID1_180"
- "ID1_270"
- "ID2_180"
- "ID3_180"
- "CUSTOM"
- "FLEXIBLE"