Skip to content

Commit

Permalink
Merge pull request #192 from regulaforensics/expected-pass
Browse files Browse the repository at this point in the history
Expected pass
  • Loading branch information
inspector-code authored Dec 13, 2024
2 parents 6d725e9 + 6b9dd5d commit e1b6ac6
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/models/image-qa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/


import { InputImageQualityChecks } from './input-image-quality-checks';

/**
*
Expand Down Expand Up @@ -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<InputImageQualityChecks>}
* @memberof ImageQA
*/
expectedPass?: Array<InputImageQualityChecks>;
}


1 change: 1 addition & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
58 changes: 58 additions & 0 deletions src/models/input-image-quality-checks.ts
Original file line number Diff line number Diff line change
@@ -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'
}



2 changes: 1 addition & 1 deletion src/models/process-request-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface ProcessRequestImage {
* @type {ImageData}
* @memberof ProcessRequestImage
*/
ImageData: ImageData;
ImageData?: ImageData;
/**
*
* @type {Light}
Expand Down

0 comments on commit e1b6ac6

Please sign in to comment.