@regulaforensics/vp-frontend-face-components 2.0.1 → 3.0.0
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/README.md +362 -167
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +20 -0
- package/lib/index.d.ts +229 -0
- package/package.json +5 -83
- package/lib/common/BackCameraIcon.d.ts +0 -6
- package/lib/common/Button.d.ts +0 -7
- package/lib/common/CameraChangeIcon.d.ts +0 -6
- package/lib/common/CameraIcon.d.ts +0 -6
- package/lib/common/CheckIcon.d.ts +0 -6
- package/lib/common/CrossIcon.d.ts +0 -6
- package/lib/common/DocReaderCameraDisabled.d.ts +0 -5
- package/lib/common/DocReaderCameraPreparing.d.ts +0 -5
- package/lib/common/DocReaderFlip.d.ts +0 -5
- package/lib/common/DocReaderProcessing.d.ts +0 -5
- package/lib/common/DocReaderProcessingError.d.ts +0 -5
- package/lib/common/DocReaderProcessingFinished.d.ts +0 -6
- package/lib/common/DocReaderSearch.d.ts +0 -5
- package/lib/common/ErrorIcon.d.ts +0 -6
- package/lib/common/FromCameraIcon.d.ts +0 -5
- package/lib/common/FromGalleryIcon.d.ts +0 -5
- package/lib/common/FrontCameraIcon.d.ts +0 -6
- package/lib/common/FullscreenExitIcon.d.ts +0 -6
- package/lib/common/FullscreenIcon.d.ts +0 -6
- package/lib/common/Icon.d.ts +0 -64
- package/lib/common/Message.d.ts +0 -8
- package/lib/common/NoGlareIconLivenessDetection.d.ts +0 -5
- package/lib/common/NoSmilingIconLivenessDetection.d.ts +0 -5
- package/lib/common/PortraitOrientationOnlyIcon.d.ts +0 -6
- package/lib/common/RegulaLogo.d.ts +0 -6
- package/lib/common/RegulaLogoLivenessDetection.d.ts +0 -5
- package/lib/common/SnapshotIcon.d.ts +0 -6
- package/lib/common/Spinner.d.ts +0 -3
- package/lib/common/SquareIcon.d.ts +0 -6
- package/lib/common/StopIcon.d.ts +0 -6
- package/lib/common/VerifiedIcon.d.ts +0 -6
- package/lib/components/ButtonFaceLiveness.d.ts +0 -7
- package/lib/components/CameraCapture.d.ts +0 -9
- package/lib/components/CameraSnapshot.d.ts +0 -2
- package/lib/components/CameraSnapshotFileCapture.d.ts +0 -10
- package/lib/components/DocumentCapture.d.ts +0 -11
- package/lib/components/DocumentContainer.d.ts +0 -11
- package/lib/components/DocumentReader.d.ts +0 -2
- package/lib/components/DocumentReaderFileCapture.d.ts +0 -12
- package/lib/components/DocumentReaderLayout.d.ts +0 -22
- package/lib/components/DocumentReaderStartScreen.d.ts +0 -10
- package/lib/components/ErrorBoundary.d.ts +0 -18
- package/lib/components/FaceCapture.d.ts +0 -25
- package/lib/components/FaceDetection.d.ts +0 -2
- package/lib/components/FaceFullScreenOverlay.d.ts +0 -10
- package/lib/components/FaceHintAnimaition.d.ts +0 -16
- package/lib/components/FaceLayout.d.ts +0 -23
- package/lib/components/FaceLiveness.d.ts +0 -2
- package/lib/components/InfoScreen.d.ts +0 -11
- package/lib/components/InfoScreenFaceLiveness.d.ts +0 -12
- package/lib/components/InstructionVideoScreen.d.ts +0 -9
- package/lib/components/ProcessScreen.d.ts +0 -6
- package/lib/components/ProcessScreenFaceLiveness.d.ts +0 -6
- package/lib/components/RetryScreenFaceLiveness.d.ts +0 -7
- package/lib/components/SectorAnimationSvg.d.ts +0 -11
- package/lib/components/WebCamera.d.ts +0 -19
- package/lib/constants.d.ts +0 -668
- package/lib/contexts/DocumentAttributesContext.d.ts +0 -25
- package/lib/contexts/DocumentSDKContext.d.ts +0 -8
- package/lib/contexts/FaceAttributesContext.d.ts +0 -26
- package/lib/hoc/withDocumentAttributesContext.d.ts +0 -4
- package/lib/hoc/withDocumentSDKContext.d.ts +0 -3
- package/lib/hoc/withFaceAttributesContext.d.ts +0 -4
- package/lib/hoc/withLocalize.d.ts +0 -8
- package/lib/hooks/useDocumentReaderSeries.d.ts +0 -19
- package/lib/hooks/useDocumentReaderSingle.d.ts +0 -14
- package/lib/hooks/useFaceLiveness.d.ts +0 -41
- package/lib/hooks/useImageInputParam.d.ts +0 -7
- package/lib/hooks/useOrientationChange.d.ts +0 -10
- package/lib/hooks/useStateCallback.d.ts +0 -1
- package/lib/hooks/useStream.d.ts +0 -10
- package/lib/hooks/useUserAgent.d.ts +0 -3
- package/lib/hooks/useWindowBlur.d.ts +0 -2
- package/lib/i18n/dictionaries/_dictionaries.d.ts +0 -2275
- package/lib/index-document.d.ts +0 -4
- package/lib/index-face.d.ts +0 -1
- package/lib/media-resources/resourcesBase64.d.ts +0 -7
- package/lib/models/CameraModel.d.ts +0 -9
- package/lib/models/CustomError.d.ts +0 -7
- package/lib/models/DocReaderWebclient/ext/authenticity/authenticity.d.ts +0 -32
- package/lib/models/DocReaderWebclient/ext/authenticity/fiber.d.ts +0 -7
- package/lib/models/DocReaderWebclient/ext/authenticity/ident.d.ts +0 -8
- package/lib/models/DocReaderWebclient/ext/authenticity/image-ident.d.ts +0 -7
- package/lib/models/DocReaderWebclient/ext/authenticity/index.d.ts +0 -5
- package/lib/models/DocReaderWebclient/ext/authenticity/ocr-security-text.d.ts +0 -7
- package/lib/models/DocReaderWebclient/ext/authenticity/security-feature.d.ts +0 -8
- package/lib/models/DocReaderWebclient/ext/images.d.ts +0 -16
- package/lib/models/DocReaderWebclient/ext/index.d.ts +0 -6
- package/lib/models/DocReaderWebclient/ext/process-request-image.d.ts +0 -5
- package/lib/models/DocReaderWebclient/ext/process-request.d.ts +0 -38
- package/lib/models/DocReaderWebclient/ext/process-response.d.ts +0 -36
- package/lib/models/DocReaderWebclient/ext/text-field.d.ts +0 -40
- package/lib/models/DocReaderWebclient/ext/text.d.ts +0 -14
- package/lib/models/DocReaderWebclient/models/area-array.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/area-container.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/authenticity-check-list.d.ts +0 -31
- package/lib/models/DocReaderWebclient/models/authenticity-check-result-item.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/authenticity-check-result.d.ts +0 -43
- package/lib/models/DocReaderWebclient/models/authenticity-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/authenticity-result-type.d.ts +0 -33
- package/lib/models/DocReaderWebclient/models/authenticity-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/bc-pdf417-info.d.ts +0 -54
- package/lib/models/DocReaderWebclient/models/bc-roidetect.d.ts +0 -42
- package/lib/models/DocReaderWebclient/models/check-diagnose.d.ts +0 -98
- package/lib/models/DocReaderWebclient/models/check-result.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result.d.ts +0 -19
- package/lib/models/DocReaderWebclient/models/chosen-document-type.d.ts +0 -74
- package/lib/models/DocReaderWebclient/models/container-list.d.ts +0 -45
- package/lib/models/DocReaderWebclient/models/critical.d.ts +0 -26
- package/lib/models/DocReaderWebclient/models/cross-source-value-comparison.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/data-module.d.ts +0 -48
- package/lib/models/DocReaderWebclient/models/details-optical.d.ts +0 -67
- package/lib/models/DocReaderWebclient/models/details-rfid.d.ts +0 -61
- package/lib/models/DocReaderWebclient/models/device-info.d.ts +0 -54
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info-all-of.d.ts +0 -31
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info.d.ts +0 -19
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-field.d.ts +0 -70
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-info.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/document-format.d.ts +0 -70
- package/lib/models/DocReaderWebclient/models/document-image-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/document-image-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/document-image.d.ts +0 -24
- package/lib/models/DocReaderWebclient/models/document-position-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/document-position-result.d.ts +0 -19
- package/lib/models/DocReaderWebclient/models/document-position.d.ts +0 -80
- package/lib/models/DocReaderWebclient/models/document-type-recognition-result.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/document-type.d.ts +0 -246
- package/lib/models/DocReaderWebclient/models/document-types-candidates-list.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/document-types-candidates.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult-all-of.d.ts +0 -24
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/fdsidlist.d.ts +0 -80
- package/lib/models/DocReaderWebclient/models/fiber-result-all-of.d.ts +0 -74
- package/lib/models/DocReaderWebclient/models/fiber-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/graphic-field-type.d.ts +0 -118
- package/lib/models/DocReaderWebclient/models/graphic-field.d.ts +0 -63
- package/lib/models/DocReaderWebclient/models/graphic-fields-list.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/graphics-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/graphics-result.d.ts +0 -19
- package/lib/models/DocReaderWebclient/models/ident-result-all-of.d.ts +0 -65
- package/lib/models/DocReaderWebclient/models/ident-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/image-data.d.ts +0 -24
- package/lib/models/DocReaderWebclient/models/image-qa.d.ts +0 -54
- package/lib/models/DocReaderWebclient/models/image-quality-check-list.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/image-quality-check-type.d.ts +0 -50
- package/lib/models/DocReaderWebclient/models/image-quality-check.d.ts +0 -64
- package/lib/models/DocReaderWebclient/models/image-quality-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/image-quality-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/images-available-source.d.ts +0 -31
- package/lib/models/DocReaderWebclient/models/images-field-value.d.ts +0 -70
- package/lib/models/DocReaderWebclient/models/images-field.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/images-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/images-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/images.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/index.d.ts +0 -123
- package/lib/models/DocReaderWebclient/models/lcid.d.ts +0 -582
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result.d.ts +0 -19
- package/lib/models/DocReaderWebclient/models/license-result-all-of.d.ts +0 -24
- package/lib/models/DocReaderWebclient/models/license-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/light.d.ts +0 -34
- package/lib/models/DocReaderWebclient/models/list-verified-fields.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/log-level.d.ts +0 -23
- package/lib/models/DocReaderWebclient/models/measure-system.d.ts +0 -26
- package/lib/models/DocReaderWebclient/models/mrzformat.d.ts +0 -24
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result-all-of.d.ts +0 -81
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/one-candidate.d.ts +0 -74
- package/lib/models/DocReaderWebclient/models/original-symbol.d.ts +0 -37
- package/lib/models/DocReaderWebclient/models/parray-field.d.ts +0 -81
- package/lib/models/DocReaderWebclient/models/per-document-config.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/photo-ident-result-all-of.d.ts +0 -76
- package/lib/models/DocReaderWebclient/models/photo-ident-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/point-array.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/point.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/points-container.d.ts +0 -31
- package/lib/models/DocReaderWebclient/models/process-params.d.ts +0 -254
- package/lib/models/DocReaderWebclient/models/process-request-image.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/process-request.d.ts +0 -60
- package/lib/models/DocReaderWebclient/models/process-response.d.ts +0 -66
- package/lib/models/DocReaderWebclient/models/process-system-info.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/processing-status.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/raw-image-container-list.d.ts +0 -31
- package/lib/models/DocReaderWebclient/models/rectangle-coordinates.d.ts +0 -42
- package/lib/models/DocReaderWebclient/models/result-item.d.ts +0 -48
- package/lib/models/DocReaderWebclient/models/result.d.ts +0 -98
- package/lib/models/DocReaderWebclient/models/rfid-location.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/rfid-origin.d.ts +0 -42
- package/lib/models/DocReaderWebclient/models/scenario.d.ts +0 -36
- package/lib/models/DocReaderWebclient/models/security-feature-result-all-of.d.ts +0 -59
- package/lib/models/DocReaderWebclient/models/security-feature-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/security-feature-type.d.ts +0 -49
- package/lib/models/DocReaderWebclient/models/source-validity.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/source.d.ts +0 -23
- package/lib/models/DocReaderWebclient/models/status-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/status-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/status.d.ts +0 -63
- package/lib/models/DocReaderWebclient/models/string-recognition-result.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/symbol-candidate.d.ts +0 -30
- package/lib/models/DocReaderWebclient/models/symbol-recognition-result.d.ts +0 -32
- package/lib/models/DocReaderWebclient/models/text-available-source.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/text-data-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/text-data-result.d.ts +0 -19
- package/lib/models/DocReaderWebclient/models/text-field-type.d.ts +0 -2386
- package/lib/models/DocReaderWebclient/models/text-field-value.d.ts +0 -70
- package/lib/models/DocReaderWebclient/models/text-field.d.ts +0 -84
- package/lib/models/DocReaderWebclient/models/text-post-processing.d.ts +0 -22
- package/lib/models/DocReaderWebclient/models/text-result-all-of.d.ts +0 -25
- package/lib/models/DocReaderWebclient/models/text-result.d.ts +0 -18
- package/lib/models/DocReaderWebclient/models/text.d.ts +0 -51
- package/lib/models/DocReaderWebclient/models/transaction-info.d.ts +0 -42
- package/lib/models/DocReaderWebclient/models/verification-result.d.ts +0 -38
- package/lib/models/DocReaderWebclient/models/verified-field-map.d.ts +0 -63
- package/lib/models/DocReaderWebclient/models/visibility.d.ts +0 -23
- package/lib/models/ImageModel.d.ts +0 -7
- package/lib/services/DebugService.d.ts +0 -17
- package/lib/services/DeviceOrientationService.d.ts +0 -18
- package/lib/services/DocumentReaderProcessor.d.ts +0 -43
- package/lib/services/DocumentReaderService.d.ts +0 -37
- package/lib/services/EventEmitter.d.ts +0 -9
- package/lib/services/FaceLivenessService.d.ts +0 -70
- package/lib/services/FaceService.d.ts +0 -39
- package/lib/services/StreamRecorderService.d.ts +0 -24
- package/lib/types.d.ts +0 -361
- package/lib/utils.d.ts +0 -30
- package/lib/web-components/CameraSnapshot.d.ts +0 -14
- package/lib/web-components/DocumentReader.d.ts +0 -14
- package/lib/web-components/FaceDetection.d.ts +0 -11
- package/lib/web-components/FaceLiveness.d.ts +0 -17
- package/lib/web-components/FullScreenContainer.d.ts +0 -4
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { OriginalSymbol } from './original-symbol';
|
|
13
|
-
import { RectangleCoordinates } from './rectangle-coordinates';
|
|
14
|
-
import { RfidOrigin } from './rfid-origin';
|
|
15
|
-
import { Source } from './source';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface TextFieldValue
|
|
20
|
-
*/
|
|
21
|
-
export interface TextFieldValue {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Source}
|
|
25
|
-
* @memberof TextFieldValue
|
|
26
|
-
*/
|
|
27
|
-
source: Source;
|
|
28
|
-
/**
|
|
29
|
-
* Parsed/processed value. Date format converted for output, delimiters removed
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof TextFieldValue
|
|
32
|
-
*/
|
|
33
|
-
value: string;
|
|
34
|
-
/**
|
|
35
|
-
* Original value as seen in the document
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof TextFieldValue
|
|
38
|
-
*/
|
|
39
|
-
originalValue?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<OriginalSymbol>}
|
|
43
|
-
* @memberof TextFieldValue
|
|
44
|
-
*/
|
|
45
|
-
originalSymbols?: Array<OriginalSymbol>;
|
|
46
|
-
/**
|
|
47
|
-
* Page index of the image from input list
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof TextFieldValue
|
|
50
|
-
*/
|
|
51
|
-
pageIndex: number;
|
|
52
|
-
/**
|
|
53
|
-
* Min recognition probability. Combined minimum probability from single characters probabilities
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof TextFieldValue
|
|
56
|
-
*/
|
|
57
|
-
probability?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {RectangleCoordinates}
|
|
61
|
-
* @memberof TextFieldValue
|
|
62
|
-
*/
|
|
63
|
-
fieldRect?: RectangleCoordinates;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {RfidOrigin}
|
|
67
|
-
* @memberof TextFieldValue
|
|
68
|
-
*/
|
|
69
|
-
rfidOrigin?: RfidOrigin;
|
|
70
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { CheckResult } from './check-result';
|
|
13
|
-
import { CrossSourceValueComparison } from './cross-source-value-comparison';
|
|
14
|
-
import { LCID } from './lcid';
|
|
15
|
-
import { SourceValidity } from './source-validity';
|
|
16
|
-
import { TextFieldType } from './text-field-type';
|
|
17
|
-
import { TextFieldValue } from './text-field-value';
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface TextField
|
|
22
|
-
*/
|
|
23
|
-
export interface TextField {
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {TextFieldType}
|
|
27
|
-
* @memberof TextField
|
|
28
|
-
*/
|
|
29
|
-
fieldType: TextFieldType;
|
|
30
|
-
/**
|
|
31
|
-
* Field name. Only use to search values for fields with fieldType=50(other). In general, use fieldType for lookup.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof TextField
|
|
34
|
-
*/
|
|
35
|
-
fieldName: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {LCID}
|
|
39
|
-
* @memberof TextField
|
|
40
|
-
*/
|
|
41
|
-
lcid?: LCID;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {CheckResult}
|
|
45
|
-
* @memberof TextField
|
|
46
|
-
*/
|
|
47
|
-
status: CheckResult;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {CheckResult}
|
|
51
|
-
* @memberof TextField
|
|
52
|
-
*/
|
|
53
|
-
validityStatus: CheckResult;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {CheckResult}
|
|
57
|
-
* @memberof TextField
|
|
58
|
-
*/
|
|
59
|
-
comparisonStatus: CheckResult;
|
|
60
|
-
/**
|
|
61
|
-
* The most confidence value, selected from valueList
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof TextField
|
|
64
|
-
*/
|
|
65
|
-
value: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<TextFieldValue>}
|
|
69
|
-
* @memberof TextField
|
|
70
|
-
*/
|
|
71
|
-
valueList: Array<TextFieldValue>;
|
|
72
|
-
/**
|
|
73
|
-
* Validity of all field values for given source. If there are two values on different pages for one field-source pair, then validity also will include logical match checking. If such values do not match, validity will return error.
|
|
74
|
-
* @type {Array<SourceValidity>}
|
|
75
|
-
* @memberof TextField
|
|
76
|
-
*/
|
|
77
|
-
validityList: Array<SourceValidity>;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<CrossSourceValueComparison>}
|
|
81
|
-
* @memberof TextField
|
|
82
|
-
*/
|
|
83
|
-
comparisonList: Array<CrossSourceValueComparison>;
|
|
84
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare enum TextPostProcessing {
|
|
18
|
-
NO_CHANGE = 0,
|
|
19
|
-
UPPERCASE = 1,
|
|
20
|
-
LOWERCASE = 2,
|
|
21
|
-
CAPITAL = 3
|
|
22
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { Text } from './text';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TextResultAllOf
|
|
17
|
-
*/
|
|
18
|
-
export interface TextResultAllOf {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Text}
|
|
22
|
-
* @memberof TextResultAllOf
|
|
23
|
-
*/
|
|
24
|
-
Text: Text;
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { ResultItem } from './result-item';
|
|
13
|
-
import { TextResultAllOf } from './text-result-all-of';
|
|
14
|
-
/**
|
|
15
|
-
* @type TextResult
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export declare type TextResult = ResultItem & TextResultAllOf;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { CheckResult } from './check-result';
|
|
13
|
-
import { TextAvailableSource } from './text-available-source';
|
|
14
|
-
import { TextField } from './text-field';
|
|
15
|
-
/**
|
|
16
|
-
* Contains all document text fields data with validity and cross-source compare checks
|
|
17
|
-
* @export
|
|
18
|
-
* @interface Text
|
|
19
|
-
*/
|
|
20
|
-
export interface Text {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {CheckResult}
|
|
24
|
-
* @memberof Text
|
|
25
|
-
*/
|
|
26
|
-
status: CheckResult;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {CheckResult}
|
|
30
|
-
* @memberof Text
|
|
31
|
-
*/
|
|
32
|
-
validityStatus: CheckResult;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {CheckResult}
|
|
36
|
-
* @memberof Text
|
|
37
|
-
*/
|
|
38
|
-
comparisonStatus: CheckResult;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {Array<TextField>}
|
|
42
|
-
* @memberof Text
|
|
43
|
-
*/
|
|
44
|
-
fieldList: Array<TextField>;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {Array<TextAvailableSource>}
|
|
48
|
-
* @memberof Text
|
|
49
|
-
*/
|
|
50
|
-
availableSourceList: Array<TextAvailableSource>;
|
|
51
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface TransactionInfo
|
|
16
|
-
*/
|
|
17
|
-
export interface TransactionInfo {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof TransactionInfo
|
|
22
|
-
*/
|
|
23
|
-
ComputerName?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof TransactionInfo
|
|
28
|
-
*/
|
|
29
|
-
DateTime?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof TransactionInfo
|
|
34
|
-
*/
|
|
35
|
-
TransactionID?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof TransactionInfo
|
|
40
|
-
*/
|
|
41
|
-
UserName?: string;
|
|
42
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare enum VerificationResult {
|
|
18
|
-
/**
|
|
19
|
-
* Comparison result unknown
|
|
20
|
-
*/
|
|
21
|
-
DISABLED = 0,
|
|
22
|
-
/**
|
|
23
|
-
* Verification passed
|
|
24
|
-
*/
|
|
25
|
-
VERIFIED = 1,
|
|
26
|
-
/**
|
|
27
|
-
* Verification failed
|
|
28
|
-
*/
|
|
29
|
-
NOT_VERIFIED = 2,
|
|
30
|
-
/**
|
|
31
|
-
* Positive comparison result
|
|
32
|
-
*/
|
|
33
|
-
COMPARE_MATCH = 3,
|
|
34
|
-
/**
|
|
35
|
-
* Negative comparison result
|
|
36
|
-
*/
|
|
37
|
-
COMPARE_NOT_MATCH = 4
|
|
38
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { LCID } from './lcid';
|
|
13
|
-
import { TextFieldType } from './text-field-type';
|
|
14
|
-
import { VerificationResult } from './verification-result';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface VerifiedFieldMap
|
|
19
|
-
*/
|
|
20
|
-
export interface VerifiedFieldMap {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {TextFieldType}
|
|
24
|
-
* @memberof VerifiedFieldMap
|
|
25
|
-
*/
|
|
26
|
-
wFieldType?: TextFieldType;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {LCID}
|
|
30
|
-
* @memberof VerifiedFieldMap
|
|
31
|
-
*/
|
|
32
|
-
wLCID?: LCID;
|
|
33
|
-
/**
|
|
34
|
-
* Field data extracted from mrz(machine readable zone)
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof VerifiedFieldMap
|
|
37
|
-
*/
|
|
38
|
-
Field_MRZ?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Field data extracted from visual zone
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof VerifiedFieldMap
|
|
43
|
-
*/
|
|
44
|
-
Field_Visual?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Field data extracted from barcode
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof VerifiedFieldMap
|
|
49
|
-
*/
|
|
50
|
-
Field_Barcode?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Field data extracted from rfid chip
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof VerifiedFieldMap
|
|
55
|
-
*/
|
|
56
|
-
Field_RFID?: string;
|
|
57
|
-
/**
|
|
58
|
-
* results comparison matrix. Elements of the matrix with indices 0, 1, 2, 3 take one of the values Disabled(0), Verified(1) or Not_Verified(2), elements with indices 4, 5, 6, 7, 8 are one of the values Disabled(0), Compare_Match(3) or Compare_Not_Match(4). Elements of the Matrix matrix have the following semantic meaning: - element with index 0 –– the result of verification of data from the MRZ; - 1 –– the result of verification of data from the RFID microcircuit; - 2 –– the result of verification of data from text areas of the document; - 3 –– the result of verification data from barcodes; - 4 - the result of comparing MRZ data and RFID microcircuits; - 5 - the result of comparing MRZ data and text areas of document filling; - 6 - the result of comparing MRZ data and bar codes; - 7 - the result of comparing the data of text areas of the document and the RFID chip; - 8 - the result of comparing the data of the text areas of the document and barcodes; - 9 - the result of comparing the data of the RFID chip and barcodes.
|
|
59
|
-
* @type {Array<VerificationResult>}
|
|
60
|
-
* @memberof VerifiedFieldMap
|
|
61
|
-
*/
|
|
62
|
-
Matrix?: Array<VerificationResult>;
|
|
63
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Regula Document Reader Web API
|
|
3
|
-
* 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
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 6.5.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Enumeration contains visibility status of the security element
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare enum Visibility {
|
|
18
|
-
INVISIBLE = 0,
|
|
19
|
-
VISIBLE = 1,
|
|
20
|
-
COLORED = 2,
|
|
21
|
-
GRAYSCALE = 4,
|
|
22
|
-
WHITE_IR_MATCHING = 8
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { logLevels } from '../constants';
|
|
2
|
-
declare class DebugService {
|
|
3
|
-
private readonly logLvl;
|
|
4
|
-
private prevTime;
|
|
5
|
-
private frameResults;
|
|
6
|
-
constructor(logLvl: logLevels);
|
|
7
|
-
private log;
|
|
8
|
-
private frameInfoLog;
|
|
9
|
-
private shutDownInfoLog;
|
|
10
|
-
private time;
|
|
11
|
-
debug(message: string, ...optionalParams: Array<any>): void;
|
|
12
|
-
info(message: string, ...optionalParams: Array<any>): void;
|
|
13
|
-
warn(message: string, ...optionalParams: Array<any>): void;
|
|
14
|
-
error(message: string, ...optionalParams: Array<any>): void;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: DebugService;
|
|
17
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare class DeviceOrientationService {
|
|
2
|
-
private angles;
|
|
3
|
-
initialized: boolean;
|
|
4
|
-
private debugPlate;
|
|
5
|
-
constructor();
|
|
6
|
-
private setAngle;
|
|
7
|
-
private setAngleLink;
|
|
8
|
-
private setListeners;
|
|
9
|
-
init(debug: boolean | undefined): void;
|
|
10
|
-
getAngle(): {
|
|
11
|
-
alpha: number | null;
|
|
12
|
-
beta: number | null;
|
|
13
|
-
gamma: number | null;
|
|
14
|
-
} | null;
|
|
15
|
-
shutdown(): void;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: DeviceOrientationService;
|
|
18
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CurrentPage, ImageProcessingRequest, ProcessingRequest, StreamParams } from '../types';
|
|
2
|
-
import { Response } from '../models/DocReaderWebclient/ext';
|
|
3
|
-
declare type RecognizeListener = (data: Response) => void;
|
|
4
|
-
declare type ResponseListener = (currentPage: CurrentPage) => void;
|
|
5
|
-
declare class DocumentReaderProcessor {
|
|
6
|
-
private _streamData;
|
|
7
|
-
private _documentReaderService;
|
|
8
|
-
private _canvas;
|
|
9
|
-
private _camerasInfo;
|
|
10
|
-
private _devices;
|
|
11
|
-
private _videoEventListener;
|
|
12
|
-
private _frameListener;
|
|
13
|
-
private _pageIdx;
|
|
14
|
-
private _streamParam;
|
|
15
|
-
isPrepared: boolean;
|
|
16
|
-
isProcessing: boolean;
|
|
17
|
-
isInitialized: boolean;
|
|
18
|
-
videoElement: HTMLVideoElement | null;
|
|
19
|
-
recognizeListener: RecognizeListener | null;
|
|
20
|
-
constructor(videoElement?: HTMLVideoElement);
|
|
21
|
-
get streamParam(): Partial<StreamParams>;
|
|
22
|
-
set streamParam(params: Partial<StreamParams>);
|
|
23
|
-
get recognizerProcessParam(): ProcessingRequest;
|
|
24
|
-
set recognizerProcessParam(params: ProcessingRequest);
|
|
25
|
-
get imageProcessParam(): ImageProcessingRequest;
|
|
26
|
-
set imageProcessParam(params: ImageProcessingRequest);
|
|
27
|
-
private startStream;
|
|
28
|
-
private stopStream;
|
|
29
|
-
private startRecognizeProcess;
|
|
30
|
-
private stopRecognizeProcess;
|
|
31
|
-
private startNewPage;
|
|
32
|
-
private startNewDocument;
|
|
33
|
-
switchCamera(): Promise<void>;
|
|
34
|
-
startRecognition(responseListener?: ResponseListener): Promise<Response | null>;
|
|
35
|
-
processImage(images: FileList | Array<Blob>): Promise<Response>;
|
|
36
|
-
stopRecognition(): void;
|
|
37
|
-
prepare(): Promise<void>;
|
|
38
|
-
initialize(license?: {
|
|
39
|
-
license: string | undefined;
|
|
40
|
-
}): Promise<void>;
|
|
41
|
-
shutdown(): void;
|
|
42
|
-
}
|
|
43
|
-
export default DocumentReaderProcessor;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ImageProcessingRequest, ProcessingRequest } from '../types';
|
|
2
|
-
import { Response } from '../models/DocReaderWebclient/ext';
|
|
3
|
-
declare type TLicense = {
|
|
4
|
-
license: {
|
|
5
|
-
errorCode: number;
|
|
6
|
-
message: string;
|
|
7
|
-
status: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
declare class DocumentReaderService {
|
|
11
|
-
private _worker;
|
|
12
|
-
private _tasks;
|
|
13
|
-
isPrepared: boolean;
|
|
14
|
-
isInitialized: boolean;
|
|
15
|
-
isProcessing: boolean;
|
|
16
|
-
recognizerProcessParam: ProcessingRequest;
|
|
17
|
-
imageProcessParam: ImageProcessingRequest;
|
|
18
|
-
version: {
|
|
19
|
-
component: string;
|
|
20
|
-
};
|
|
21
|
-
private print;
|
|
22
|
-
private printErr;
|
|
23
|
-
private createPromise;
|
|
24
|
-
private createProcessImageRequest;
|
|
25
|
-
private onWorkerMessage;
|
|
26
|
-
prepare(): Promise<void>;
|
|
27
|
-
initialize(initData?: {
|
|
28
|
-
license: string | undefined;
|
|
29
|
-
}): Promise<TLicense>;
|
|
30
|
-
processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<Response>;
|
|
31
|
-
process(imageDataArray: Array<ImageData>): Promise<Response>;
|
|
32
|
-
processImage(imageDataArray: Array<ImageData>): Promise<Response>;
|
|
33
|
-
startNewPage(): Promise<void>;
|
|
34
|
-
startNewDocument(): Promise<void>;
|
|
35
|
-
shutdown(): void;
|
|
36
|
-
}
|
|
37
|
-
export default DocumentReaderService;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare class EventEmitter {
|
|
2
|
-
callbacks: Record<string, any>;
|
|
3
|
-
constructor();
|
|
4
|
-
on(event: string, cb: (data: any) => any): void;
|
|
5
|
-
emit(event: string, data: any): void;
|
|
6
|
-
unsubscribe(event: string, listener: any): void;
|
|
7
|
-
unsubscribeAll(): void;
|
|
8
|
-
}
|
|
9
|
-
export default EventEmitter;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import EventEmitter from './EventEmitter';
|
|
2
|
-
import CameraModel from '../models/CameraModel';
|
|
3
|
-
import { ConfigLivenessParams } from '../types';
|
|
4
|
-
declare type InitializedFaceLivenessData = {
|
|
5
|
-
config: ConfigLivenessParams;
|
|
6
|
-
publicKey: string;
|
|
7
|
-
schema: string;
|
|
8
|
-
sessionId: string;
|
|
9
|
-
transactionId: string;
|
|
10
|
-
metadata: {
|
|
11
|
-
platform: string;
|
|
12
|
-
osVersion: string;
|
|
13
|
-
sdkVersion: string;
|
|
14
|
-
hostAppId: string;
|
|
15
|
-
deviceModel: string;
|
|
16
|
-
currentCameraId: string;
|
|
17
|
-
cameraState: CameraModel[];
|
|
18
|
-
ctx: {
|
|
19
|
-
userIp: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare type InitializedFaceCaptureData = {
|
|
24
|
-
config: {
|
|
25
|
-
scenario: number;
|
|
26
|
-
frameWidth: number;
|
|
27
|
-
frameHeight: number;
|
|
28
|
-
debugOutput: boolean | undefined;
|
|
29
|
-
numChannels: number;
|
|
30
|
-
};
|
|
31
|
-
metadata: {
|
|
32
|
-
hostAppId: string;
|
|
33
|
-
sdkVersion: string;
|
|
34
|
-
deviceModel: string;
|
|
35
|
-
camera: CameraModel;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
declare type InitializeData = InitializedFaceLivenessData | InitializedFaceCaptureData;
|
|
39
|
-
declare type ParamsData = {
|
|
40
|
-
initializedData: InitializeData;
|
|
41
|
-
};
|
|
42
|
-
declare type ProcessData = {
|
|
43
|
-
deviceOrientation?: {
|
|
44
|
-
yaw: number;
|
|
45
|
-
pitch: number;
|
|
46
|
-
roll: number;
|
|
47
|
-
};
|
|
48
|
-
abortSession?: boolean;
|
|
49
|
-
};
|
|
50
|
-
declare class FaceLivenessService {
|
|
51
|
-
initialized: boolean;
|
|
52
|
-
processing: boolean;
|
|
53
|
-
prepared: boolean;
|
|
54
|
-
worker: Worker | null;
|
|
55
|
-
params: ParamsData | null;
|
|
56
|
-
eventEmitter: EventEmitter;
|
|
57
|
-
constructor();
|
|
58
|
-
prepare(listener: (data: any) => void): Promise<void>;
|
|
59
|
-
initialize(params: {
|
|
60
|
-
initializedData: InitializeData;
|
|
61
|
-
}): void;
|
|
62
|
-
private postCustomMessage;
|
|
63
|
-
private emit;
|
|
64
|
-
private print;
|
|
65
|
-
private printErr;
|
|
66
|
-
private onWorkerMessage;
|
|
67
|
-
shutdown(): void;
|
|
68
|
-
processImage(videoFrame: Uint8ClampedArray, processData: ProcessData): void;
|
|
69
|
-
}
|
|
70
|
-
export default FaceLivenessService;
|