Skip to content

Commit

Permalink
Merge branch 'develop' into fix/SP-18211
Browse files Browse the repository at this point in the history
  • Loading branch information
inspector-code authored Dec 6, 2024
2 parents 5f55378 + b6fb9d7 commit a76186b
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 @@ -690,6 +690,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:
title: "ProcessRequestImage"
Expand Down
32 changes: 32 additions & 0 deletions rt-image-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,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:
title: "AreaArray"
type: object
Expand Down

0 comments on commit a76186b

Please sign in to comment.