diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index dddc7ef3..8d221ac0 100755 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -84,6 +84,7 @@ models/in-data.ts models/index.ts models/inline-response200.ts models/inline-response2001.ts +models/input-image-quality-checks.ts models/lcid.ts models/lexical-analysis-result-all-of.ts models/lexical-analysis-result.ts diff --git a/src/models/image-qa.ts b/src/models/image-qa.ts index 8ae5e6ed..fe72fb6a 100644 --- a/src/models/image-qa.ts +++ b/src/models/image-qa.ts @@ -13,6 +13,7 @@ */ +import { InputImageQualityChecks } from './input-image-quality-checks'; /** * @@ -62,6 +63,12 @@ export interface ImageQA { * @memberof ImageQA */ documentPositionIndent?: number; + /** + * This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process. + * @type {Array} + * @memberof ImageQA + */ + expectedPass?: Array; } diff --git a/src/models/index.ts b/src/models/index.ts index 6a81f2d0..87d456a3 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -78,6 +78,7 @@ export * from './in-data-transaction-images-field-value'; export * from './in-data-video'; export * from './inline-response200'; export * from './inline-response2001'; +export * from './input-image-quality-checks'; export * from './lcid'; export * from './lexical-analysis-result'; export * from './lexical-analysis-result-all-of'; diff --git a/src/models/input-image-quality-checks.ts b/src/models/input-image-quality-checks.ts new file mode 100644 index 00000000..18fe4295 --- /dev/null +++ b/src/models/input-image-quality-checks.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula Document Reader Web API + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 7.2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Input image quality checks for the document processing + * @export + * @enum {string} + */ +export enum InputImageQualityChecks { + /** + * Signals glare presence on the image + */ + Glares = 'glaresCheck', + /** + * Signals whether image is in focus + */ + Focus = 'focusCheck', + /** + * Signals if image resolution is below threshold + */ + Resolution = 'dpiThreshold', + /** + * Signals if image is colorless + */ + Colorness = 'colornessCheck', + /** + * Signals if document in the image has prespective distortion above threshold + */ + Perspective = 'perspectiveCheck', + /** + * Signals if document is not fully present in the image + */ + Bounds = 'documentPosition', + /** + * Signals if the portrait is present + */ + Portrait = 'portraitCheck', + /** + * Signals if the document image is bright enough + */ + Brightness = 'brightnessCheck' +} + + + diff --git a/src/models/process-request-image.ts b/src/models/process-request-image.ts index d2b194b1..502c3f96 100644 --- a/src/models/process-request-image.ts +++ b/src/models/process-request-image.ts @@ -27,7 +27,7 @@ export interface ProcessRequestImage { * @type {ImageData} * @memberof ProcessRequestImage */ - ImageData: ImageData; + ImageData?: ImageData; /** * * @type {Light}