Skip to content

Commit d2e2042

Browse files
committed
Rename rt1 from 'raw image' to 'document image'
1 parent 2393f25 commit d2e2042

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

rt-ocr-lexical-analisis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ components:
99
Lexical data analysis allows you to compare the results of reading the text data of the MRZ,
1010
the document filling area, barcodes and data from the memory of the RFID chip for an additional
1111
assessment of the authenticity of the document. Single result for all pages.
12-
Deprecated since 5.2. Instead consider to use text(36) type.
12+
Deprecated since 5.2. Instead consider to use Result.TEXT type.
1313
allOf:
1414
- $ref: './rt.yml#/components/schemas/ResultItem'
1515
- type: object

rt-raw-image.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ openapi: 3.0.3
22
components:
33
schemas:
44

5-
RawImageResult:
5+
DocumentImageResult:
66
allOf:
77
- $ref: './rt.yml#/components/schemas/ResultItem'
88
- type: object
9-
description: "Returns cropped and rotated image of document.
10-
Most of coordinates in other types defined on that image"
9+
description: "Contains cropped and rotated with perspective compensation image of document.
10+
Single input image can contain multiple document side/pages, which will be returned as separated results.
11+
Most of coordinates in other types defined on that image"
1112
required:
1213
- RawImageContainer
1314
properties:

rt.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ components:
2525
- 8
2626
- 9
2727
x-enum-descriptions:
28-
- 'Contains cropped and rotated image of document. Most of coordinates in other types defined on that image'
28+
- 'Contains cropped and rotated with perspective compensation image of document.
29+
Single input image can contain multiple document side/pages, which will be returned as separated results.
30+
Most of coordinates in other types defined on that image'
2931
- 'Contains check statuses with details, grouped by source'
3032
- 'Contains document textual fields from all sources (mrz, rfid, visual, barcode) with validity and cross-source compare checks'
3133
- 'Contains images from all document sources (mrz, rfid, visual, barcode)'
@@ -42,7 +44,7 @@ components:
4244
- 'Contains list of document type candidates with their probabilities and descriptions'
4345
- 'Contains description of determined document type, if any'
4446
x-enum-varnames:
45-
- RAW_IMAGE
47+
- DOCUMENT_IMAGE
4648
- STATUS
4749
- TEXT
4850
- IMAGES
@@ -76,7 +78,7 @@ components:
7678
discriminator:
7779
propertyName: result_type
7880
mapping:
79-
1: "RawImageResult"
81+
1: "DocumentImageResult"
8082
3: "TextDataResult"
8183
6: "GraphicsResult"
8284
8: "DocumentTypesCandidatesResult"
@@ -101,7 +103,7 @@ components:
101103
type: array
102104
items:
103105
anyOf:
104-
- $ref: "#/components/schemas/RawImageResult"
106+
- $ref: "#/components/schemas/DocumentImageResult"
105107
- $ref: "#/components/schemas/TextResult"
106108
- $ref: "#/components/schemas/StatusResult"
107109
- $ref: "#/components/schemas/TextDataResult"
@@ -111,8 +113,8 @@ components:
111113
- $ref: "#/components/schemas/DocumentTypesCandidatesResult"
112114
- $ref: "#/components/schemas/ImagesResult"
113115

114-
RawImageResult:
115-
$ref: "./rt-raw-image.yml#/components/schemas/RawImageResult"
116+
DocumentImageResult:
117+
$ref: "./rt-raw-image.yml#/components/schemas/DocumentImageResult"
116118

117119
StatusResult:
118120
$ref: "./rt-status.yml#/components/schemas/StatusResult"

0 commit comments

Comments
 (0)