-
Notifications
You must be signed in to change notification settings - Fork 10
/
rt-image-quality.yml
100 lines (93 loc) · 2.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
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"
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