Skip to content

Commit 6b9dd5d

Browse files
Add expectedPass
1 parent 5ca0e76 commit 6b9dd5d

File tree

5 files changed

+68
-1
lines changed

5 files changed

+68
-1
lines changed

src/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ models/in-data.ts
8484
models/index.ts
8585
models/inline-response200.ts
8686
models/inline-response2001.ts
87+
models/input-image-quality-checks.ts
8788
models/lcid.ts
8889
models/lexical-analysis-result-all-of.ts
8990
models/lexical-analysis-result.ts

src/models/image-qa.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414

1515

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

1718
/**
1819
*
@@ -62,6 +63,12 @@ export interface ImageQA {
6263
* @memberof ImageQA
6364
*/
6465
documentPositionIndent?: number;
66+
/**
67+
* This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process.
68+
* @type {Array<InputImageQualityChecks>}
69+
* @memberof ImageQA
70+
*/
71+
expectedPass?: Array<InputImageQualityChecks>;
6572
}
6673

6774

src/models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export * from './in-data-transaction-images-field-value';
7878
export * from './in-data-video';
7979
export * from './inline-response200';
8080
export * from './inline-response2001';
81+
export * from './input-image-quality-checks';
8182
export * from './lcid';
8283
export * from './lexical-analysis-result';
8384
export * from './lexical-analysis-result-all-of';
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Regula Document Reader Web API
5+
* 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
6+
*
7+
* The version of the OpenAPI document: 7.2.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
* Input image quality checks for the document processing
19+
* @export
20+
* @enum {string}
21+
*/
22+
export enum InputImageQualityChecks {
23+
/**
24+
* Signals glare presence on the image
25+
*/
26+
Glares = 'glaresCheck',
27+
/**
28+
* Signals whether image is in focus
29+
*/
30+
Focus = 'focusCheck',
31+
/**
32+
* Signals if image resolution is below threshold
33+
*/
34+
Resolution = 'dpiThreshold',
35+
/**
36+
* Signals if image is colorless
37+
*/
38+
Colorness = 'colornessCheck',
39+
/**
40+
* Signals if document in the image has prespective distortion above threshold
41+
*/
42+
Perspective = 'perspectiveCheck',
43+
/**
44+
* Signals if document is not fully present in the image
45+
*/
46+
Bounds = 'documentPosition',
47+
/**
48+
* Signals if the portrait is present
49+
*/
50+
Portrait = 'portraitCheck',
51+
/**
52+
* Signals if the document image is bright enough
53+
*/
54+
Brightness = 'brightnessCheck'
55+
}
56+
57+
58+

src/models/process-request-image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface ProcessRequestImage {
2727
* @type {ImageData}
2828
* @memberof ProcessRequestImage
2929
*/
30-
ImageData: ImageData;
30+
ImageData?: ImageData;
3131
/**
3232
*
3333
* @type {Light}

0 commit comments

Comments
 (0)