@regulaforensics/document-reader-webclient 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs-es5/models/index.js +1 -2
- package/dist/esm-es5/models/index.js +1 -2
- package/package.json +1 -1
- package/src/models/image-qa.ts +1 -8
- package/src/models/index.ts +0 -1
- package/src/models/process-params.ts +28 -34
- package/dist/cjs-es5/models/glares-check-params.js +0 -16
- package/dist/esm-es5/models/glares-check-params.js +0 -14
- package/src/models/glares-check-params.ts +0 -37
|
@@ -54,7 +54,6 @@ __exportStar(require("./encrypted-rclresult-all-of.js"), exports);
|
|
|
54
54
|
__exportStar(require("./fdsidlist.js"), exports);
|
|
55
55
|
__exportStar(require("./fiber-result.js"), exports);
|
|
56
56
|
__exportStar(require("./fiber-result-all-of.js"), exports);
|
|
57
|
-
__exportStar(require("./glares-check-params.js"), exports);
|
|
58
57
|
__exportStar(require("./graphic-field.js"), exports);
|
|
59
58
|
__exportStar(require("./graphic-field-type.js"), exports);
|
|
60
59
|
__exportStar(require("./graphic-fields-list.js"), exports);
|
|
@@ -134,4 +133,4 @@ __exportStar(require("./transaction-info.js"), exports);
|
|
|
134
133
|
__exportStar(require("./verification-result.js"), exports);
|
|
135
134
|
__exportStar(require("./verified-field-map.js"), exports);
|
|
136
135
|
__exportStar(require("./visibility.js"), exports);
|
|
137
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
136
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBLGtEQUFnQztBQUNoQyxzREFBb0M7QUFDcEMsK0RBQTZDO0FBQzdDLGlFQUErQztBQUMvQyxzRUFBb0Q7QUF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
export * from './fiber-result.js';
|
|
44
44
|
export * from './fiber-result-all-of.js';
|
|
45
|
-
export * from './glares-check-params.js';
|
|
46
45
|
export * from './graphic-field.js';
|
|
47
46
|
export * from './graphic-field-type.js';
|
|
48
47
|
export * from './graphic-fields-list.js';
|
|
@@ -122,4 +121,4 @@ export * from './transaction-info.js';
|
|
|
122
121
|
export * from './verification-result.js';
|
|
123
122
|
export * from './verified-field-map.js';
|
|
124
123
|
export * from './visibility.js';
|
|
125
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
124
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLHlDQUF5QyxDQUFDO0FBQ3hELGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pD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Q3hDLGNBQWMsaUJBQWlCLENBQUMifQ==
|
package/package.json
CHANGED
package/src/models/image-qa.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { GlaresCheckParams } from './glares-check-params';
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
@@ -52,17 +51,11 @@ export interface ImageQA {
|
|
|
52
51
|
*/
|
|
53
52
|
colornessCheck?: boolean;
|
|
54
53
|
/**
|
|
55
|
-
* This option enables moire patterns check while performing image quality validation.
|
|
54
|
+
* This option enables screen capture (moire patterns) check while performing image quality validation.
|
|
56
55
|
* @type {boolean}
|
|
57
56
|
* @memberof ImageQA
|
|
58
57
|
*/
|
|
59
58
|
moireCheck?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {GlaresCheckParams}
|
|
63
|
-
* @memberof ImageQA
|
|
64
|
-
*/
|
|
65
|
-
glaresCheckParams?: GlaresCheckParams;
|
|
66
59
|
}
|
|
67
60
|
|
|
68
61
|
|
package/src/models/index.ts
CHANGED
|
@@ -42,7 +42,6 @@ export * from './encrypted-rclresult-all-of.js';
|
|
|
42
42
|
export * from './fdsidlist.js';
|
|
43
43
|
export * from './fiber-result.js';
|
|
44
44
|
export * from './fiber-result-all-of.js';
|
|
45
|
-
export * from './glares-check-params.js';
|
|
46
45
|
export * from './graphic-field.js';
|
|
47
46
|
export * from './graphic-field-type.js';
|
|
48
47
|
export * from './graphic-fields-list.js';
|
|
@@ -44,19 +44,19 @@ export interface ProcessParams {
|
|
|
44
44
|
*/
|
|
45
45
|
resultTypeOutput?: Array<Result>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Enable this option if the image you provide contains double page spread of the passport and you want to process both pages in one go. It makes sense to use it for documents that have meaningful information on both pages, like Russian domestic passport, or some others. Disabled by default.
|
|
48
48
|
* @type {boolean}
|
|
49
49
|
* @memberof ProcessParams
|
|
50
50
|
*/
|
|
51
51
|
doublePageSpread?: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* When enabled together with \"doublePageSpread\" and there is a passport with two pages spread in the image, pages will be cropped, straightened and aligned together, as if the document was captured on a flatbed scanner.
|
|
53
|
+
* When enabled together with \"doublePageSpread\" and there is a passport with two pages spread in the image, pages will be cropped, straightened and aligned together, as if the document was captured on a flatbed scanner. Disabled by default.
|
|
54
54
|
* @type {boolean}
|
|
55
55
|
* @memberof ProcessParams
|
|
56
56
|
*/
|
|
57
57
|
generateDoublePageSpreadImage?: boolean;
|
|
58
58
|
/**
|
|
59
|
-
* List of text field types to extract. If empty, all text fields from template will be extracted. Narrowing the list can shorten processing time.
|
|
59
|
+
* List of text field types to extract. If empty, all text fields from template will be extracted. Narrowing the list can shorten processing time. Empty by default.
|
|
60
60
|
* @type {Array<TextFieldType>}
|
|
61
61
|
* @memberof ProcessParams
|
|
62
62
|
*/
|
|
@@ -80,25 +80,25 @@ export interface ProcessParams {
|
|
|
80
80
|
*/
|
|
81
81
|
imageDpiOutMax?: number;
|
|
82
82
|
/**
|
|
83
|
-
* This option can be
|
|
83
|
+
* This option can be enabled if you know for sure that the image you provide contains already cropped document by its edges. This was designed to process on the server side images captured and cropped on mobile. Disabled by default.
|
|
84
84
|
* @type {boolean}
|
|
85
85
|
* @memberof ProcessParams
|
|
86
86
|
*/
|
|
87
87
|
alreadyCropped?: boolean;
|
|
88
88
|
/**
|
|
89
|
-
* This option allows
|
|
89
|
+
* This option allows passing custom processing parameters that can be implemented in future without changing API.
|
|
90
90
|
* @type {{ [key: string]: object; }}
|
|
91
91
|
* @memberof ProcessParams
|
|
92
92
|
*/
|
|
93
93
|
customParams?: { [key: string]: object; };
|
|
94
94
|
/**
|
|
95
|
-
* This option allows
|
|
95
|
+
* This option allows setting additional custom configuration per document type. If recognized document has ID specified in config, processing adjusts according to designated configuration.
|
|
96
96
|
* @type {Array<PerDocumentConfig>}
|
|
97
97
|
* @memberof ProcessParams
|
|
98
98
|
*/
|
|
99
99
|
config?: Array<PerDocumentConfig>;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* When enabled, results will contain transaction processing log. Disabled by default
|
|
102
102
|
* @type {boolean}
|
|
103
103
|
* @memberof ProcessParams
|
|
104
104
|
*/
|
|
@@ -116,31 +116,31 @@ export interface ProcessParams {
|
|
|
116
116
|
*/
|
|
117
117
|
forceDocID?: number;
|
|
118
118
|
/**
|
|
119
|
-
* When disabled, text field OCR will be done as is and then the recognized value will be matched to the field mask for validity. If enabled, we are trying to read a field value with maximum efforts to match the mask and provide a correctly formatted value, making assumptions based on the provided field mask in the template.
|
|
119
|
+
* When disabled, text field OCR will be done as is and then the recognized value will be matched to the field mask for validity. If enabled, we are trying to read a field value with maximum efforts to match the mask and provide a correctly formatted value, making assumptions based on the provided field mask in the template. Enabled by default.
|
|
120
120
|
* @type {boolean}
|
|
121
121
|
* @memberof ProcessParams
|
|
122
122
|
*/
|
|
123
123
|
matchTextFieldMask?: boolean;
|
|
124
124
|
/**
|
|
125
|
-
* When enabled, shorten the list of candidates to process during document detection in a single image process mode. Reduces processing time for specific backgrounds.
|
|
125
|
+
* When enabled, shorten the list of candidates to process during document detection in a single image process mode. Reduces processing time for specific backgrounds. Enabled by default.
|
|
126
126
|
* @type {boolean}
|
|
127
127
|
* @memberof ProcessParams
|
|
128
128
|
*/
|
|
129
129
|
fastDocDetect?: boolean;
|
|
130
130
|
/**
|
|
131
|
-
* When enabled, fail OCR field validity, if there is a glare over the text field on the image.
|
|
131
|
+
* When enabled, fail OCR field validity, if there is a glare over the text field on the image. Disabled by default.
|
|
132
132
|
* @type {boolean}
|
|
133
133
|
* @memberof ProcessParams
|
|
134
134
|
*/
|
|
135
135
|
updateOCRValidityByGlare?: boolean;
|
|
136
136
|
/**
|
|
137
|
-
* When enabled, each field in template will be checked for value presence and if the field is marked as required, but has no value, it will have \
|
|
137
|
+
* When enabled, each field in template will be checked for value presence and if the field is marked as required, but has no value, it will have \'error\' in validity status. Disabled by default.
|
|
138
138
|
* @type {boolean}
|
|
139
139
|
* @memberof ProcessParams
|
|
140
140
|
*/
|
|
141
141
|
checkRequiredTextFields?: boolean;
|
|
142
142
|
/**
|
|
143
|
-
* When enabled, returns cropped barcode images for unknown documents
|
|
143
|
+
* When enabled, returns cropped barcode images for unknown documents. Disabled by default.
|
|
144
144
|
* @type {boolean}
|
|
145
145
|
* @memberof ProcessParams
|
|
146
146
|
*/
|
|
@@ -151,6 +151,12 @@ export interface ProcessParams {
|
|
|
151
151
|
* @memberof ProcessParams
|
|
152
152
|
*/
|
|
153
153
|
imageQa?: ImageQA;
|
|
154
|
+
/**
|
|
155
|
+
* When enabled, image quality checks status affects document optical and overall status. Disabled by default.
|
|
156
|
+
* @type {boolean}
|
|
157
|
+
* @memberof ProcessParams
|
|
158
|
+
*/
|
|
159
|
+
respectImageQuality?: boolean;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {DocumentFormat}
|
|
@@ -158,7 +164,7 @@ export interface ProcessParams {
|
|
|
158
164
|
*/
|
|
159
165
|
forceDocFormat?: DocumentFormat;
|
|
160
166
|
/**
|
|
161
|
-
* When enabled no graphic fields will be cropped from document image.
|
|
167
|
+
* When enabled, no graphic fields will be cropped from document image. Disabled by default.
|
|
162
168
|
* @type {boolean}
|
|
163
169
|
* @memberof ProcessParams
|
|
164
170
|
*/
|
|
@@ -170,19 +176,19 @@ export interface ProcessParams {
|
|
|
170
176
|
*/
|
|
171
177
|
documentAreaMin?: number;
|
|
172
178
|
/**
|
|
173
|
-
* When enabled all personal data will be forcibly removed from the logs.
|
|
179
|
+
* When enabled, all personal data will be forcibly removed from the logs. Disabled by default.
|
|
174
180
|
* @type {boolean}
|
|
175
181
|
* @memberof ProcessParams
|
|
176
182
|
*/
|
|
177
183
|
depersonalizeLog?: boolean;
|
|
178
184
|
/**
|
|
179
|
-
* This option allows locating and cropping multiple documents from one image if enabled.
|
|
185
|
+
* This option allows locating and cropping multiple documents from one image if enabled. Disabled by default.
|
|
180
186
|
* @type {boolean}
|
|
181
187
|
* @memberof ProcessParams
|
|
182
188
|
*/
|
|
183
189
|
multiDocOnImage?: boolean;
|
|
184
190
|
/**
|
|
185
|
-
* This option allows shifting the date of expiry into the future or past for number of months specified. This is useful, for example, in some cases when document might be still valid for some period after original expiration date to prevent negative validity status for such documents. Or by shifting the date to the past will set negative validity for the documents that is about to expire in a specified number of months.
|
|
191
|
+
* This option allows shifting the date of expiry into the future or past for number of months specified. This is useful, for example, in some cases when document might be still valid for some period after original expiration date to prevent negative validity status for such documents. Or by shifting the date to the past will set negative validity for the documents that is about to expire in a specified number of months. 0 by default
|
|
186
192
|
* @type {number}
|
|
187
193
|
* @memberof ProcessParams
|
|
188
194
|
*/
|
|
@@ -194,7 +200,7 @@ export interface ProcessParams {
|
|
|
194
200
|
*/
|
|
195
201
|
minimalHolderAge?: number;
|
|
196
202
|
/**
|
|
197
|
-
*
|
|
203
|
+
* When enabled, returns input images in output. Disabled by default.
|
|
198
204
|
* @type {boolean}
|
|
199
205
|
* @memberof ProcessParams
|
|
200
206
|
*/
|
|
@@ -206,13 +212,13 @@ export interface ProcessParams {
|
|
|
206
212
|
*/
|
|
207
213
|
mrzFormatsFilter?: Array<MRZFormat>;
|
|
208
214
|
/**
|
|
209
|
-
*
|
|
215
|
+
* When enabled, make sure that in series processing MRZ is located fully inside the result document image, if present on the document. Enabling this option may add extra processing time, by disabling optimizations, but allows more stability in output image quality. Disabled by default.
|
|
210
216
|
* @type {boolean}
|
|
211
217
|
* @memberof ProcessParams
|
|
212
218
|
*/
|
|
213
219
|
forceReadMrzBeforeLocate?: boolean;
|
|
214
220
|
/**
|
|
215
|
-
* This option can be
|
|
221
|
+
* This option can be disabled to stop parsing after barcode is read. Enabled by default.
|
|
216
222
|
* @type {boolean}
|
|
217
223
|
* @memberof ProcessParams
|
|
218
224
|
*/
|
|
@@ -224,35 +230,23 @@ export interface ProcessParams {
|
|
|
224
230
|
*/
|
|
225
231
|
convertCase?: TextPostProcessing;
|
|
226
232
|
/**
|
|
227
|
-
*
|
|
233
|
+
* When enabled, the Surname and GivenNames field will be divided into ft_First_Name, ft_Second_Name, ft_Third_Name, ft_Fourth_Name, ft_Last_Name fields. Disabled by default.
|
|
228
234
|
* @type {boolean}
|
|
229
235
|
* @memberof ProcessParams
|
|
230
236
|
*/
|
|
231
237
|
splitNames?: boolean;
|
|
232
238
|
/**
|
|
233
|
-
*
|
|
239
|
+
* When enabled, OCR of perforated fields in the document template will not be performed. Disabled by default.
|
|
234
240
|
* @type {boolean}
|
|
235
241
|
* @memberof ProcessParams
|
|
236
242
|
*/
|
|
237
243
|
disablePerforationOCR?: boolean;
|
|
238
244
|
/**
|
|
239
|
-
*
|
|
240
|
-
* @type {boolean}
|
|
241
|
-
* @memberof ProcessParams
|
|
242
|
-
*/
|
|
243
|
-
processAuth?: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Filter documents by group
|
|
245
|
+
* List of specific eligible document types from DocumentType enum to recognize from. You may, for example, specify only passports to be recognized by setting this property. Empty by default.
|
|
246
246
|
* @type {Array<DocumentType>}
|
|
247
247
|
* @memberof ProcessParams
|
|
248
248
|
*/
|
|
249
249
|
documentGroupFilter?: Array<DocumentType>;
|
|
250
|
-
/**
|
|
251
|
-
* When it true ImageQuality can affect on Optical Status
|
|
252
|
-
* @type {boolean}
|
|
253
|
-
* @memberof ProcessParams
|
|
254
|
-
*/
|
|
255
|
-
respectImageQuality?: boolean;
|
|
256
250
|
}
|
|
257
251
|
|
|
258
252
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Regula Document Reader Web API
|
|
6
|
-
* 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
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 6.3.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xhcmVzLWNoZWNrLXBhcmFtcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RlbHMvZ2xhcmVzLWNoZWNrLXBhcmFtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHIn0=
|
|
@@ -1,14 +0,0 @@
|
|
|
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: 6.3.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
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xhcmVzLWNoZWNrLXBhcmFtcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2RlbHMvZ2xhcmVzLWNoZWNrLXBhcmFtcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUcifQ==
|
|
@@ -1,37 +0,0 @@
|
|
|
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: 6.3.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
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface GlaresCheckParams
|
|
21
|
-
*/
|
|
22
|
-
export interface GlaresCheckParams {
|
|
23
|
-
/**
|
|
24
|
-
* Margin from the edges of the image. 0.35 = 35%
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof GlaresCheckParams
|
|
27
|
-
*/
|
|
28
|
-
imgMarginPart?: number;
|
|
29
|
-
/**
|
|
30
|
-
* The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6%
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof GlaresCheckParams
|
|
33
|
-
*/
|
|
34
|
-
maxGlaringPart?: number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|