Skip to content

Commit 4091318

Browse files
Merge pull request #70 from regulaforensics/BE-429-barcodes
[BE-429] ResultType 5 | Barcodes
2 parents c1a88b3 + 6259d78 commit 4091318

File tree

3 files changed

+96
-1
lines changed

3 files changed

+96
-1
lines changed

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
33
"spaces": 2,
44
"generator-cli": {
5-
"version": "5.0.1"
5+
"version": "5.0.0"
66
}
77
}

rt-barcodes.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
openapi: 3.0.3
2+
components:
3+
schemas:
4+
5+
DocBarCodeInfo:
6+
title: "Document BarCode Info"
7+
description: "Raw data from BarCodes"
8+
allOf:
9+
- type: object
10+
properties:
11+
nFields:
12+
type: integer
13+
description: "Count of array fields"
14+
pArrayFields:
15+
type: array
16+
description: "Data from barcode"
17+
items:
18+
$ref: '#/components/schemas/pArrayField'
19+
- $ref: './rt.yml#/components/schemas/ResultItem'
20+
21+
pArrayField:
22+
type: object
23+
properties:
24+
bcAngle_DETECT:
25+
type: float
26+
bcCodeResult:
27+
type: integer
28+
bcCountModule:
29+
type: integer
30+
bcDataModule:
31+
type: array
32+
items:
33+
$ref: '#/components/schemas/DataModule'
34+
bcPDF417INFO:
35+
$ref: '#/components/schemas/bcPDF417INFO'
36+
bcROI_DETECT:
37+
$ref: '#/components/schemas/bcROI_DETECT'
38+
bcTextDecoderTypes:
39+
type: integer
40+
bcTextFieldType:
41+
type: integer
42+
bcType_DECODE:
43+
type: integer
44+
bcType_DETECT:
45+
type: integer
46+
47+
bcPDF417INFO:
48+
type: object
49+
properties:
50+
Angle:
51+
type: float
52+
bcColumn:
53+
type: integer
54+
bcErrorLevel:
55+
type: integer
56+
bcRow:
57+
type: integer
58+
minX:
59+
type: float
60+
minY:
61+
type: float
62+
63+
bcROI_DETECT:
64+
type: object
65+
properties:
66+
bottom:
67+
type: integer
68+
left:
69+
type: integer
70+
right:
71+
type: integer
72+
top:
73+
type: integer
74+
75+
DataModule:
76+
type: object
77+
properties:
78+
mData:
79+
type: string
80+
mLength:
81+
type: integer
82+
mReserved1:
83+
type: integer
84+
mReserver2:
85+
type: integer
86+
mType:
87+
type: integer

rt.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ components:
2828
- 9
2929
- 20
3030
- 85
31+
- 5
3132
- 50
3233
- 49
3334
x-enum-descriptions:
@@ -52,6 +53,7 @@ components:
5253
- 'Contains description of determined document type, if any'
5354
- 'Contains result of document authenticity checks'
5455
- 'Contains information about document position on the input image, its center, angle, etc'
56+
- 'Contains raw information about barcodes on the input image'
5557
- 'Contains license'
5658
- 'Contains encrypted ResultContainerList'
5759
x-enum-varnames:
@@ -72,6 +74,7 @@ components:
7274
- DOCUMENT_TYPE
7375
- AUTHENTICITY
7476
- DOCUMENT_POSITION
77+
- BARCODES
7578
- LICENSE
7679
- ENCRYPTED_RCL
7780

@@ -97,6 +100,7 @@ components:
97100
mapping:
98101
1: "DocumentImageResult"
99102
3: "TextDataResult"
103+
5: "DocBarCodeInfo"
100104
6: "GraphicsResult"
101105
8: "DocumentTypesCandidatesResult"
102106
9: "ChosenDocumentTypeResult"
@@ -140,6 +144,7 @@ components:
140144
- $ref: "#/components/schemas/AuthenticityResult"
141145
- $ref: "#/components/schemas/ImageQualityResult"
142146
- $ref: "#/components/schemas/DocumentPositionResult"
147+
- $ref: "#/components/schemas/DocBarCodeInfo"
143148
- $ref: "#/components/schemas/LicenseResult"
144149
- $ref: "#/components/schemas/EncryptedRCLResult"
145150

@@ -178,6 +183,9 @@ components:
178183
ImageQualityResult:
179184
$ref: "./rt-image-quality.yml#/components/schemas/ImageQualityResult"
180185

186+
DocBarCodeInfo:
187+
$ref: "./rt-barcodes.yml#/components/schemas/DocBarCodeInfo"
188+
181189
LicenseResult:
182190
$ref: "./rt-license.yml#/components/schemas/LicenseResult"
183191

0 commit comments

Comments
 (0)