Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP-20030 - add expectedPass #223

Merged
merged 5 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions p-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,11 @@ components:
description: "This parameter specifies the necessary margin. Default 0."
type: integer
# default: 0
expectedPass:
description: "This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process."
type: array
items:
$ref: "./rt-image-quality.yml#/components/schemas/ImageQualityChecks"
inspector-code marked this conversation as resolved.
Show resolved Hide resolved

ProcessRequestImage:
type: object
Expand Down
32 changes: 32 additions & 0 deletions rt-image-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,38 @@ components:
- "Signals if the portrait is present"
- "Signals if the document image is bright enough"

ImageQualityChecks:
inspector-code marked this conversation as resolved.
Show resolved Hide resolved
type: string
description: "Image quality checks"
inspector-code marked this conversation as resolved.
Show resolved Hide resolved
enum:
- "glaresCheck"
- "focusCheck"
- "dpiThreshold"
- "colornessCheck"
- "IQC_Perspective"
vyakimchik marked this conversation as resolved.
Show resolved Hide resolved
- "documentPosition"
- "IQC_Portrait"
vyakimchik marked this conversation as resolved.
Show resolved Hide resolved
- "brightness"
inspector-code marked this conversation as resolved.
Show resolved Hide resolved
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:
Expand Down
Loading