From a65b5101acb4a5d47705e47c6776986c9c0f1ae2 Mon Sep 17 00:00:00 2001 From: Hleb Albau Date: Mon, 3 May 2021 13:39:36 +0300 Subject: [PATCH 1/2] Add 5.6 features --- p-process.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/p-process.yml b/p-process.yml index e7bec4a7..cfc4b5d1 100644 --- a/p-process.yml +++ b/p-process.yml @@ -242,6 +242,29 @@ components: default: false imageQA: $ref: '#/components/schemas/ImageQA' + forceDocFormat: + description: "Force use of specified document format when locating + and recognizing document to reduce the number of candidates." + $ref: "./rt-doc-type-old.yml#/components/schemas/DocumentFormat" + noGraphics: + description: "When enabled no graphic fields will be cropped from document image." + type: boolean + default: false + documentAreaMin: + description: "Specifies minimal area of the image + that document should cover to be treated as candidate when locating. + Value should be in range from 0 to 1, where 1 is when document should fully cover the image." + type: number + format: float + default: 0 + logLevel: + description: "When used together with 'log' parameter enabled, sets the level of logs detalization." + default: "INFO" + $ref: "#/components/schemas/LogLevel" + depersonalizeLog: + description: "When enabled all personal data will be forcibly removed from the logs." + type: boolean + default: false required: - scenario @@ -258,6 +281,15 @@ components: - 'METRIC' - 'IMPERIAL' + LogLevel: + type: string + enum: + - FATAL_ERROR + - ERROR + - WARNING + - INFO + - DEBUG + ImageQA: type: object properties: From 49f9bd50aa3098622026666cf5dd7ffa074c66ff Mon Sep 17 00:00:00 2001 From: Hleb Albau Date: Mon, 3 May 2021 18:51:46 +0300 Subject: [PATCH 2/2] Fix LogLevel enum values --- p-process.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/p-process.yml b/p-process.yml index cfc4b5d1..1f285d30 100644 --- a/p-process.yml +++ b/p-process.yml @@ -284,12 +284,18 @@ components: LogLevel: type: string enum: - - FATAL_ERROR - - ERROR - - WARNING - - INFO - - DEBUG - + - FatalError + - Error + - Warning + - Info + - Debug + x-enum-varnames: + - 'FATAL_ERROR' + - 'ERROR' + - 'WARNING' + - 'INFO' + - 'DEBUG' + ImageQA: type: object properties: