diff --git a/p-process.yml b/p-process.yml index a452768..0196d02 100644 --- a/p-process.yml +++ b/p-process.yml @@ -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 diff --git a/rt-image-quality.yml b/rt-image-quality.yml index 4a4e2f2..7c6418f 100644 --- a/rt-image-quality.yml +++ b/rt-image-quality.yml @@ -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: