Skip to content

Commit

Permalink
Merge branch 'develop' into SP-19891
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiPaulau authored Dec 6, 2024
2 parents f1fdd15 + b6fb9d7 commit 9227d18
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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/InputImageQualityChecks"

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"

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:
Expand Down

0 comments on commit 9227d18

Please sign in to comment.