-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrt-image-quality.yml
132 lines (123 loc) · 3.62 KB
/
rt-image-quality.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
openapi: 3.0.3
components:
schemas:
ImageQualityResult:
title: "Image Quality Checks"
allOf:
- type: object
required:
- ImageQualityCheckList
properties:
ImageQualityCheckList:
$ref: "#/components/schemas/ImageQualityCheckList"
- $ref: "./rt.yml#/components/schemas/ResultItem"
ImageQualityCheckList:
type: object
required:
- result
- List
properties:
result:
description: "Overall image quality status, combined from check statuses in the list."
$ref: "./common.yml#/components/schemas/CheckResult"
List:
type: array
items:
$ref: "#/components/schemas/ImageQualityCheck"
ImageQualityCheckType:
type: integer
description: "Image quality check type"
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 7
- 9
x-enum-varnames:
- "ImageGlares"
- "ImageFocus"
- "ImageResolution"
- "ImageColorness"
- "Perspective"
- "Bounds"
- "Portrait"
- "Brightness"
x-enum-descriptions:
- "Signals glare presence on the image"
- "Signals whether image is in focus"
- "Signals if image resolution is below threshold"
- "Signals if image is colorless"
- "Signals if document in the image has prespective distortion above threshold"
- "Signals if document is not fully present in the image"
- "Signals if the portrait is present"
- "Signals if the document image is bright enough"
InputImageQualityChecks:
type: string
description: "Input image quality checks for the document processing"
enum:
- "glaresCheck"
- "focusCheck"
- "dpiThreshold"
- "colornessCheck"
- "perspectiveCheck"
- "documentPosition"
- "portraitCheck"
- "brightnessCheck"
x-enum-varnames:
- "Glares"
- "Focus"
- "Resolution"
- "Colorness"
- "Perspective"
- "Bounds"
- "Portrait"
- "Brightness"
x-enum-descriptions:
- "Signals glare presence on the image"
- "Signals whether image is in focus"
- "Signals if image resolution is below threshold"
- "Signals if image is colorless"
- "Signals if document in the image has prespective distortion above threshold"
- "Signals if document is not fully present in the image"
- "Signals if the portrait is present"
- "Signals if the document image is bright enough"
AreaArray:
type: object
properties:
List:
type: array
items:
$ref: "./common.yml#/components/schemas/RectangleCoordinates"
Points:
type: array
items:
$ref: "#/components/schemas/PointArray"
PointArray:
type: object
properties:
PointsList:
type: array
items:
$ref: "./common.yml#/components/schemas/Point"
ImageQualityCheck:
type: object
properties:
type:
$ref: "#/components/schemas/ImageQualityCheckType"
result:
$ref: "./common.yml#/components/schemas/CheckResult"
featureType:
$ref: "./e-security-feature-type.yml#/components/schemas/SecurityFeatureType"
areas:
$ref: "#/components/schemas/AreaArray"
mean:
type: number
format: float
std_dev:
type: number
format: float
probability:
type: integer