-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrt-text-data.yml
105 lines (99 loc) · 3.78 KB
/
rt-text-data.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
openapi: 3.0.3
components:
schemas:
TextDataResult:
title: "Text Data (legacy)"
description: "Text fields extracted from one document source.
Contains results of specific source for each provided page."
allOf:
- type: object
properties:
DocVisualExtendedInfo:
$ref: "#/components/schemas/DocVisualExtendedInfo"
- $ref: "./rt.yml#/components/schemas/ResultItem"
DocVisualExtendedInfo:
type: object
description: "Container for extracted text fields. Fields are identified by type and language"
required:
- pArrayFields
properties:
pArrayFields:
type: array
items:
$ref: "#/components/schemas/DocVisualExtendedField"
DocVisualExtendedField:
type: object
required:
- wFieldType
- FieldName
- wLCID
properties:
wFieldType:
$ref: "./e-text-field-type.yml#/components/schemas/TextFieldType"
FieldName:
description: "Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup."
type: string
wLCID:
$ref: "./e-lcid.yml#/components/schemas/LCID"
StringsResult:
type: array
description: "Array of recognizing probabilities for a each line of text field.
Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results."
items:
$ref: "#/components/schemas/StringRecognitionResult"
Buf_Text:
type: string
description: "Text field data in UTF8 format.
Results of reading different lines of a multi-line field are separated by '^'"
FieldRect:
description: "Coordinates of the text field in the normalized image of the document.
Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results."
$ref: "./common.yml#/components/schemas/RectangleCoordinates"
RFID_OriginDG:
description: "Origin data group information. Only for Result.RFID_TEXT results."
type: integer
RFID_OriginTagEntry:
type: integer
description: "Index of the text field record in origin data group. Only for Result.RFID_TEXT results."
StringRecognitionResult:
type: object
description: "Describes single row recognition results in multi-line text field of a document"
required:
- StringResult
properties:
StringResult:
type: array
description: "Array of recognition results for individual characters of a string"
items:
$ref: "#/components/schemas/SymbolRecognitionResult"
SymbolRecognitionResult:
type: object
description: "Describes a single character recognition results in the text field line"
required:
- SymbolRect
- ListOfCandidates
properties:
SymbolRect:
description: "Coordinates of the symbol in the normalized image of the document"
$ref: "./common.yml#/components/schemas/RectangleCoordinates"
ListOfCandidates:
type: array
description: "Array of candidate characters. Sorted in descending order of recognition probabilities
(the first element has highest probability)"
items:
$ref: "#/components/schemas/SymbolCandidate"
SymbolCandidate:
required:
- SymbolCode
- SymbolProbability
type: object
description: "Describes an individual character recognition candidate"
properties:
SymbolCode:
type: integer
description: "Unicode symbol code"
SymbolProbability:
type: integer
description: "character recognition probability (0–100,%)"
minimum: 0
maximum: 100