@regulaforensics/vp-frontend-face-components 1.3.0 → 2.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 +317 -29
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +41 -0
- package/lib/common/BackCameraIcon.d.ts +6 -0
- package/lib/common/Button.d.ts +7 -0
- package/lib/common/CameraChangeIcon.d.ts +6 -0
- package/lib/common/CameraIcon.d.ts +6 -0
- package/lib/common/CheckIcon.d.ts +6 -0
- package/lib/common/CrossIcon.d.ts +6 -0
- package/lib/common/DocReaderCameraDisabled.d.ts +5 -0
- package/lib/common/DocReaderCameraPreparing.d.ts +5 -0
- package/lib/common/DocReaderFlip.d.ts +5 -0
- package/lib/common/DocReaderProcessing.d.ts +5 -0
- package/lib/common/DocReaderProcessingError.d.ts +5 -0
- package/lib/common/DocReaderProcessingFinished.d.ts +6 -0
- package/lib/common/DocReaderSearch.d.ts +5 -0
- package/lib/common/ErrorIcon.d.ts +6 -0
- package/lib/common/FromCameraIcon.d.ts +5 -0
- package/lib/common/FromGalleryIcon.d.ts +5 -0
- package/lib/common/FrontCameraIcon.d.ts +6 -0
- package/lib/common/FullscreenExitIcon.d.ts +6 -0
- package/lib/common/FullscreenIcon.d.ts +6 -0
- package/lib/common/Icon.d.ts +64 -0
- package/lib/common/Message.d.ts +8 -0
- package/lib/common/NoGlareIconLivenessDetection.d.ts +5 -0
- package/lib/common/NoSmilingIconLivenessDetection.d.ts +5 -0
- package/lib/common/PortraitOrientationOnlyIcon.d.ts +6 -0
- package/lib/common/RegulaLogo.d.ts +6 -0
- package/lib/common/RegulaLogoLivenessDetection.d.ts +5 -0
- package/lib/common/SnapshotIcon.d.ts +6 -0
- package/lib/common/Spinner.d.ts +3 -0
- package/lib/common/SquareIcon.d.ts +6 -0
- package/lib/common/StopIcon.d.ts +6 -0
- package/lib/common/VerifiedIcon.d.ts +6 -0
- package/lib/components/ButtonFaceLiveness.d.ts +7 -0
- package/lib/components/CameraCapture.d.ts +9 -0
- package/lib/components/CameraSnapshot.d.ts +2 -0
- package/lib/components/CameraSnapshotFileCapture.d.ts +10 -0
- package/lib/components/DocumentCapture.d.ts +11 -0
- package/lib/components/DocumentContainer.d.ts +11 -0
- package/lib/components/DocumentReader.d.ts +2 -0
- package/lib/components/DocumentReaderFileCapture.d.ts +12 -0
- package/lib/components/DocumentReaderLayout.d.ts +22 -0
- package/lib/components/DocumentReaderStartScreen.d.ts +10 -0
- package/lib/components/ErrorBoundary.d.ts +18 -0
- package/lib/components/FaceCapture.d.ts +25 -0
- package/lib/components/FaceDetection.d.ts +2 -0
- package/lib/components/FaceFullScreenOverlay.d.ts +10 -0
- package/lib/components/FaceHintAnimaition.d.ts +16 -0
- package/lib/components/FaceLayout.d.ts +23 -0
- package/lib/components/FaceLiveness.d.ts +2 -0
- package/lib/components/InfoScreen.d.ts +11 -0
- package/lib/components/InfoScreenFaceLiveness.d.ts +12 -0
- package/lib/components/InstructionVideoScreen.d.ts +9 -0
- package/lib/components/ProcessScreen.d.ts +6 -0
- package/lib/components/ProcessScreenFaceLiveness.d.ts +6 -0
- package/lib/components/RetryScreenFaceLiveness.d.ts +7 -0
- package/lib/components/SectorAnimationSvg.d.ts +11 -0
- package/lib/components/WebCamera.d.ts +19 -0
- package/lib/constants.d.ts +686 -0
- package/lib/contexts/DocumentAttributesContext.d.ts +25 -0
- package/lib/contexts/DocumentSDKContext.d.ts +8 -0
- package/lib/contexts/FaceAttributesContext.d.ts +25 -0
- package/lib/hoc/withDocumentAttributesContext.d.ts +4 -0
- package/lib/hoc/withDocumentSDKContext.d.ts +3 -0
- package/lib/hoc/withFaceAttributesContext.d.ts +4 -0
- package/lib/hoc/withLocalize.d.ts +8 -0
- package/lib/hooks/useDocumentReaderSeries.d.ts +20 -0
- package/lib/hooks/useDocumentReaderSingle.d.ts +15 -0
- package/lib/hooks/useFaceLiveness.d.ts +41 -0
- package/lib/hooks/useImageInputParam.d.ts +7 -0
- package/lib/hooks/useOrientationChange.d.ts +10 -0
- package/lib/hooks/useStateCallback.d.ts +1 -0
- package/lib/hooks/useStream.d.ts +10 -0
- package/lib/hooks/useUserAgent.d.ts +3 -0
- package/lib/hooks/useWindowBlur.d.ts +2 -0
- package/lib/i18n/dictionaries/_dictionaries.d.ts +2275 -0
- package/lib/index-document.d.ts +4 -0
- package/lib/index-face.d.ts +1 -0
- package/lib/media-resources/resourcesBase64.d.ts +7 -0
- package/lib/models/CameraModel.d.ts +9 -0
- package/lib/models/CustomError.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/authenticity.d.ts +32 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/fiber.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/ident.d.ts +8 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/image-ident.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/index.d.ts +5 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/ocr-security-text.d.ts +7 -0
- package/lib/models/DocReaderWebclient/ext/authenticity/security-feature.d.ts +8 -0
- package/lib/models/DocReaderWebclient/ext/images.d.ts +16 -0
- package/lib/models/DocReaderWebclient/ext/index.d.ts +6 -0
- package/lib/models/DocReaderWebclient/ext/process-request-image.d.ts +5 -0
- package/lib/models/DocReaderWebclient/ext/process-request.d.ts +38 -0
- package/lib/models/DocReaderWebclient/ext/process-response.d.ts +36 -0
- package/lib/models/DocReaderWebclient/ext/text-field.d.ts +40 -0
- package/lib/models/DocReaderWebclient/ext/text.d.ts +14 -0
- package/lib/models/DocReaderWebclient/models/area-array.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/area-container.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-list.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-result-item.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/authenticity-check-result.d.ts +43 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result-type.d.ts +33 -0
- package/lib/models/DocReaderWebclient/models/authenticity-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/bc-pdf417-info.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/bc-roidetect.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/check-diagnose.d.ts +98 -0
- package/lib/models/DocReaderWebclient/models/check-result.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/chosen-document-type.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/container-list.d.ts +45 -0
- package/lib/models/DocReaderWebclient/models/critical.d.ts +26 -0
- package/lib/models/DocReaderWebclient/models/cross-source-value-comparison.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/data-module.d.ts +48 -0
- package/lib/models/DocReaderWebclient/models/details-optical.d.ts +67 -0
- package/lib/models/DocReaderWebclient/models/details-rfid.d.ts +61 -0
- package/lib/models/DocReaderWebclient/models/device-info.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info-all-of.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/doc-bar-code-info.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-field.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/doc-visual-extended-info.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-format.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/document-image-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-image-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/document-image.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/document-position-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-position-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/document-position.d.ts +80 -0
- package/lib/models/DocReaderWebclient/models/document-type-recognition-result.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/document-type.d.ts +246 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-list.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/document-types-candidates.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult-all-of.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/encrypted-rclresult.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/fdsidlist.d.ts +80 -0
- package/lib/models/DocReaderWebclient/models/fiber-result-all-of.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/fiber-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/graphic-field-type.d.ts +118 -0
- package/lib/models/DocReaderWebclient/models/graphic-field.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/graphic-fields-list.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/graphics-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/graphics-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/ident-result-all-of.d.ts +65 -0
- package/lib/models/DocReaderWebclient/models/ident-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/image-data.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/image-qa.d.ts +54 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check-list.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check-type.d.ts +50 -0
- package/lib/models/DocReaderWebclient/models/image-quality-check.d.ts +64 -0
- package/lib/models/DocReaderWebclient/models/image-quality-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/image-quality-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/images-available-source.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/images-field-value.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/images-field.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/images-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/images-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/images.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/index.d.ts +123 -0
- package/lib/models/DocReaderWebclient/models/lcid.d.ts +582 -0
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/lexical-analysis-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/license-result-all-of.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/license-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/light.d.ts +34 -0
- package/lib/models/DocReaderWebclient/models/list-verified-fields.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/log-level.d.ts +23 -0
- package/lib/models/DocReaderWebclient/models/measure-system.d.ts +26 -0
- package/lib/models/DocReaderWebclient/models/mrzformat.d.ts +24 -0
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result-all-of.d.ts +81 -0
- package/lib/models/DocReaderWebclient/models/ocrsecurity-text-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/one-candidate.d.ts +74 -0
- package/lib/models/DocReaderWebclient/models/original-symbol.d.ts +37 -0
- package/lib/models/DocReaderWebclient/models/parray-field.d.ts +81 -0
- package/lib/models/DocReaderWebclient/models/per-document-config.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/photo-ident-result-all-of.d.ts +76 -0
- package/lib/models/DocReaderWebclient/models/photo-ident-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/point-array.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/point.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/points-container.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/process-params.d.ts +254 -0
- package/lib/models/DocReaderWebclient/models/process-request-image.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/process-request.d.ts +60 -0
- package/lib/models/DocReaderWebclient/models/process-response.d.ts +66 -0
- package/lib/models/DocReaderWebclient/models/process-system-info.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/processing-status.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/raw-image-container-list.d.ts +31 -0
- package/lib/models/DocReaderWebclient/models/rectangle-coordinates.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/result-item.d.ts +48 -0
- package/lib/models/DocReaderWebclient/models/result.d.ts +98 -0
- package/lib/models/DocReaderWebclient/models/rfid-location.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/rfid-origin.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/scenario.d.ts +36 -0
- package/lib/models/DocReaderWebclient/models/security-feature-result-all-of.d.ts +59 -0
- package/lib/models/DocReaderWebclient/models/security-feature-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/security-feature-type.d.ts +49 -0
- package/lib/models/DocReaderWebclient/models/source-validity.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/source.d.ts +23 -0
- package/lib/models/DocReaderWebclient/models/status-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/status-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/status.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/string-recognition-result.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/symbol-candidate.d.ts +30 -0
- package/lib/models/DocReaderWebclient/models/symbol-recognition-result.d.ts +32 -0
- package/lib/models/DocReaderWebclient/models/text-available-source.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/text-data-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/text-data-result.d.ts +19 -0
- package/lib/models/DocReaderWebclient/models/text-field-type.d.ts +2386 -0
- package/lib/models/DocReaderWebclient/models/text-field-value.d.ts +70 -0
- package/lib/models/DocReaderWebclient/models/text-field.d.ts +84 -0
- package/lib/models/DocReaderWebclient/models/text-post-processing.d.ts +22 -0
- package/lib/models/DocReaderWebclient/models/text-result-all-of.d.ts +25 -0
- package/lib/models/DocReaderWebclient/models/text-result.d.ts +18 -0
- package/lib/models/DocReaderWebclient/models/text.d.ts +51 -0
- package/lib/models/DocReaderWebclient/models/transaction-info.d.ts +42 -0
- package/lib/models/DocReaderWebclient/models/verification-result.d.ts +38 -0
- package/lib/models/DocReaderWebclient/models/verified-field-map.d.ts +63 -0
- package/lib/models/DocReaderWebclient/models/visibility.d.ts +23 -0
- package/lib/models/ImageModel.d.ts +7 -0
- package/lib/services/DebugService.d.ts +17 -0
- package/lib/services/DocumentReaderProcessor.d.ts +50 -0
- package/lib/services/DocumentReaderService.d.ts +57 -0
- package/lib/services/EventEmitter.d.ts +9 -0
- package/lib/services/FaceLivenessService.d.ts +62 -0
- package/lib/services/FaceService.d.ts +39 -0
- package/lib/services/StreamRecorderService.d.ts +24 -0
- package/lib/types.d.ts +361 -0
- package/lib/utils.d.ts +30 -0
- package/lib/web-components/CameraSnapshot.d.ts +14 -0
- package/lib/web-components/DocumentReader.d.ts +14 -0
- package/lib/web-components/FaceDetection.d.ts +11 -0
- package/lib/web-components/FaceLiveness.d.ts +17 -0
- package/lib/web-components/FullScreenContainer.d.ts +4 -0
- package/package.json +64 -72
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CameraFacingMode, ErrorTypes } from '../constants';
|
|
3
|
+
import { VideoParamsType, VideoStatusParamsType } from '../types';
|
|
4
|
+
declare type WebCameraVideoProps = {
|
|
5
|
+
onVideoStatusChange: (status: VideoStatusParamsType) => void;
|
|
6
|
+
onVideoSizeChange?: (params: VideoParamsType) => void;
|
|
7
|
+
mode?: CameraFacingMode;
|
|
8
|
+
resolution?: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
mirroring?: boolean;
|
|
13
|
+
onFailStatus?: (reason: ErrorTypes) => void;
|
|
14
|
+
cameraId?: string;
|
|
15
|
+
videoRecording?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare function WebCamera({ onVideoStatusChange, onVideoSizeChange, mode, resolution, mirroring, onFailStatus, cameraId, videoRecording, }: WebCameraVideoProps): JSX.Element;
|
|
18
|
+
declare const _default: React.MemoExoticComponent<typeof WebCamera>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
export declare enum FaceMessage {
|
|
2
|
+
Empty = 0,
|
|
3
|
+
FitFaceIntoOval = 1,
|
|
4
|
+
LookStraight = 2,
|
|
5
|
+
MoveCloser = 3,
|
|
6
|
+
MoveAway = 4,
|
|
7
|
+
HoldStill = 5,
|
|
8
|
+
ShowOnlyOneFace = 6,
|
|
9
|
+
TurnHead = 7
|
|
10
|
+
}
|
|
11
|
+
export declare enum FaceProcessingStage {
|
|
12
|
+
Far = 0,
|
|
13
|
+
Near = 1
|
|
14
|
+
}
|
|
15
|
+
export declare enum FaceStatus {
|
|
16
|
+
Finished = 0,
|
|
17
|
+
InProcess = 1,
|
|
18
|
+
Timeout = 2,
|
|
19
|
+
Failed = 3,
|
|
20
|
+
Stop_Session = 4
|
|
21
|
+
}
|
|
22
|
+
export declare enum ImageOutputType {
|
|
23
|
+
UINT = "UINT",
|
|
24
|
+
BASE64 = "BASE64",
|
|
25
|
+
UINT_AND_BASE64 = "UINT_AND_BASE64"
|
|
26
|
+
}
|
|
27
|
+
export declare enum FaceEventActions {
|
|
28
|
+
ELEMENT_VISIBLE = "ELEMENT_VISIBLE",
|
|
29
|
+
PRESS_START_BUTTON = "PRESS_START_BUTTON",
|
|
30
|
+
PRESS_RETRY_BUTTON = "PRESS_RETRY_BUTTON",
|
|
31
|
+
CLOSE = "CLOSE",
|
|
32
|
+
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
33
|
+
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
34
|
+
}
|
|
35
|
+
export declare enum DocumentEventActions {
|
|
36
|
+
ELEMENT_VISIBLE = "ELEMENT_VISIBLE",
|
|
37
|
+
PRESS_CAMERA_BUTTON = "PRESS_CAMERA_BUTTON",
|
|
38
|
+
PRESS_FILE_BUTTON = "PRESS_FILE_BUTTON",
|
|
39
|
+
PRESS_RETRY_BUTTON = "PRESS_RETRY_BUTTON",
|
|
40
|
+
PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
|
|
41
|
+
CLOSE = "CLOSE",
|
|
42
|
+
CAMERA_PROCESS_STARTED = "CAMERA_PROCESS_STARTED",
|
|
43
|
+
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
44
|
+
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
45
|
+
SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
|
|
46
|
+
}
|
|
47
|
+
export declare enum DocumentCaptureStatus {
|
|
48
|
+
FINDING = "DocumentCaptureStatus.FINDING",
|
|
49
|
+
PROCESSING = "DocumentCaptureStatus.PROCESSING",
|
|
50
|
+
SUCCESS = "DocumentCaptureStatus.SUCCESS",
|
|
51
|
+
FAILED = "DocumentCaptureStatus.FAILED",
|
|
52
|
+
RESOLUTION = "DocumentCaptureStatus.RESOLUTION",
|
|
53
|
+
GLARE = "DocumentCaptureStatus.GLARE",
|
|
54
|
+
FOCUS = "DocumentCaptureStatus.FOCUS",
|
|
55
|
+
HOLD = "DocumentCaptureStatus.HOLD",
|
|
56
|
+
START_DETECTION = "DocumentCaptureStatus.START_DETECTION",
|
|
57
|
+
START_NEXT_PAGE = "DocumentCaptureStatus.START_NEXT_PAGE",
|
|
58
|
+
SNAPSHOT = "DocumentCaptureStatus.SNAPSHOT",
|
|
59
|
+
TIMEOUT = "DocumentCaptureStatus.TIMEOUT"
|
|
60
|
+
}
|
|
61
|
+
export declare enum ImageQualityCheckType {
|
|
62
|
+
IMAGE_GLARES = 0,
|
|
63
|
+
IMAGE_FOCUS = 1,
|
|
64
|
+
IMAGE_RESOLUTION = 2,
|
|
65
|
+
IMAGE_COLORNESS = 3,
|
|
66
|
+
PERSPECTIVE = 4,
|
|
67
|
+
BOUNDS = 5,
|
|
68
|
+
SCREEN_CAPTURE = 6,
|
|
69
|
+
PORTRAIT = 7,
|
|
70
|
+
HANDWRITTEN = 8
|
|
71
|
+
}
|
|
72
|
+
export declare enum ResponseCode {
|
|
73
|
+
EMPTY = -1,
|
|
74
|
+
ERROR = 0,
|
|
75
|
+
OK = 1
|
|
76
|
+
}
|
|
77
|
+
export declare enum CheckResult {
|
|
78
|
+
ERROR = 0,
|
|
79
|
+
OK = 1,
|
|
80
|
+
WAS_NOT_DONE = 2
|
|
81
|
+
}
|
|
82
|
+
export declare enum StreamStatus {
|
|
83
|
+
PREPARING = "StreamStatus.PREPARING",
|
|
84
|
+
REQUESTING = "StreamStatus.REQUESTING",
|
|
85
|
+
READY = "StreamStatus.READY",
|
|
86
|
+
PLAY = "StreamStatus.PLAY",
|
|
87
|
+
UNKNOWN_ERROR = "StreamStatus.UNKNOWN_ERROR",
|
|
88
|
+
PERMISSION_DENIED = "StreamStatus.PERMISSION_DENIED",
|
|
89
|
+
NO_CAMERA = "StreamStatus.NO_CAMERA",
|
|
90
|
+
INCORRECT_CAMERA_ID = "StreamStatus.INCORRECT_CAMERA_ID"
|
|
91
|
+
}
|
|
92
|
+
export declare enum FaceAbortSessionStatus {
|
|
93
|
+
CHANGE_CAMERA = "FaceAbortSessionStatus.CHANGE_CAMERA",
|
|
94
|
+
DEVICE_ROTATE = "FaceAbortSessionStatus.DEVICE_ROTATE",
|
|
95
|
+
SESSION_TIMEOUT = "FaceAbortSessionStatus.TIMEOUT",
|
|
96
|
+
CLOSE_BUTTON = "FaceAbortSessionStatus.CLOSE_BUTTON",
|
|
97
|
+
UNKNOWN = "FaceAbortSessionStatus.UNKNOWN"
|
|
98
|
+
}
|
|
99
|
+
export declare enum FaceCompletionStatus {
|
|
100
|
+
RESTART = "FaceCompletionStatus.RESTART",
|
|
101
|
+
ABORT_PROCESSING = "FaceCompletionStatus.ABORT_PROCESSING",
|
|
102
|
+
INSTRUCTION = "FaceCompletionStatus.INSTRUCTION",
|
|
103
|
+
SUCCESS = "FaceCompletionStatus.SUCCESS",
|
|
104
|
+
FAILED = "FaceCompletionStatus.FAILED",
|
|
105
|
+
CAPTURING = "FaceCompletionStatus.CAPTURING",
|
|
106
|
+
PROCESSING_REQUEST = "FaceCompletionStatus.PROCESSING_REQUEST",
|
|
107
|
+
WASM_DEFAULT_ERROR = "FaceCompletionStatus.WASM_DEFAULT_ERROR",
|
|
108
|
+
NOT_SUPPORTED_ERROR = "FaceCompletionStatus.NOT_SUPPORTED_ERROR",
|
|
109
|
+
WASM_LICENSE_ERROR = "FaceCompletionStatus.WASM_LICENSE_ERROR",
|
|
110
|
+
UNKNOWN_ERROR = "FaceCompletionStatus.UNKNOWN_ERROR",
|
|
111
|
+
NO_CAMERA_ERROR = "FaceCompletionStatus.NO_CAMERA_ERROR",
|
|
112
|
+
PERMISSION_DENIED_ERROR = "FaceCompletionStatus.PERMISSION_DENIED_ERROR",
|
|
113
|
+
INCORRECT_CAMERA_ID_ERROR = "FaceCompletionStatus.INCORRECT_CAMERA_ID_ERROR"
|
|
114
|
+
}
|
|
115
|
+
export declare enum DocumentCompletionStatus {
|
|
116
|
+
CHOOSE_INPUT_SOURCE = "DocumentCompletionStatus.CHOOSE_INPUT_SOURCE",
|
|
117
|
+
CAMERA_PROCESSING = "DocumentCompletionStatus.CAMERA_PROCESSING",
|
|
118
|
+
FILE_PROCESSING = "DocumentCompletionStatus.FILE_PROCESSING",
|
|
119
|
+
API_PROCESSING = "DocumentCompletionStatus.API_PROCESSING",
|
|
120
|
+
SUCCESS = "DocumentCompletionStatus.SUCCESS",
|
|
121
|
+
FAILED = "DocumentCompletionStatus.FAILED",
|
|
122
|
+
FILE_SIZE_ERROR = "DocumentCompletionStatus.FILE_SIZE_ERROR",
|
|
123
|
+
WASM_DEFAULT_ERROR = "DocumentCompletionStatus.WASM_DEFAULT_ERROR",
|
|
124
|
+
NOT_SUPPORTED_ERROR = "DocumentCompletionStatus.NOT_SUPPORTED_ERROR",
|
|
125
|
+
WASM_LICENSE_ERROR = "DocumentCompletionStatus.WASM_LICENSE_ERROR",
|
|
126
|
+
INCORRECT_FILE_ERROR = "DocumentCompletionStatus.INCORRECT_FILE_ERROR",
|
|
127
|
+
UNKNOWN_ERROR = "DocumentCompletionStatus.UNKNOWN_ERROR",
|
|
128
|
+
TIMEOUT = "DocumentCompletionStatus.TIMEOUT"
|
|
129
|
+
}
|
|
130
|
+
export declare enum CameraFacingMode {
|
|
131
|
+
user = "user",
|
|
132
|
+
environment = "environment"
|
|
133
|
+
}
|
|
134
|
+
export declare enum ProcessingStatus {
|
|
135
|
+
NOT_FINISHED = 0,
|
|
136
|
+
FINISHED = 1,
|
|
137
|
+
TIMEOUT = 2
|
|
138
|
+
}
|
|
139
|
+
export declare enum DocumentCommandCode {
|
|
140
|
+
PROCESS = 12101,
|
|
141
|
+
PROCESS_IMAGE = 12104,
|
|
142
|
+
START_NEW_DOCUMENT = 12105,
|
|
143
|
+
START_NEW_PAGE = 12106
|
|
144
|
+
}
|
|
145
|
+
export declare enum ObjectFit {
|
|
146
|
+
contain = "contain",
|
|
147
|
+
cover = "cover"
|
|
148
|
+
}
|
|
149
|
+
export declare enum InternalScenarios {
|
|
150
|
+
MrzAndLocate = "MrzAndLocate",
|
|
151
|
+
MrzOrLocate = "MrzOrLocate",
|
|
152
|
+
Mrz = "Mrz",
|
|
153
|
+
Locate = "Locate"
|
|
154
|
+
}
|
|
155
|
+
export declare enum ErrorTypes {
|
|
156
|
+
WASM_ERROR = "WASM_ERROR",
|
|
157
|
+
WASM_LICENSE = "WASM_LICENSE",
|
|
158
|
+
FILE_SIZE = "FILE_SIZE",
|
|
159
|
+
INCORRECT_FILE = "INCORRECT_FILE",
|
|
160
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR",
|
|
161
|
+
NOT_SUPPORTED = "NOT_SUPPORTED",
|
|
162
|
+
CAMERA_UNKNOWN_ERROR = "CAMERA_UNKNOWN_ERROR",
|
|
163
|
+
CAMERA_PERMISSION_DENIED = "CAMERA_PERMISSION_DENIED",
|
|
164
|
+
NO_CAMERA = "NO_CAMERA",
|
|
165
|
+
INCORRECT_CAMERA_ID = "INCORRECT_CAMERA_ID",
|
|
166
|
+
CONNECTION_ERROR = "CONNECTION_ERROR",
|
|
167
|
+
LANDSCAPE_MODE_RESTRICTED = "LANDSCAPE_MODE_RESTRICTED",
|
|
168
|
+
NOT_PREPARED = "NOT_PREPARED",
|
|
169
|
+
NOT_INITIALIZED = "NOT_INITIALIZED",
|
|
170
|
+
IN_PROCESS = "IN_PROCESS",
|
|
171
|
+
ALREADY_PREPARED = "ALREADY_PREPARED",
|
|
172
|
+
ALREADY_INITIALIZED = "ALREADY_INITIALIZED"
|
|
173
|
+
}
|
|
174
|
+
export declare enum Method {
|
|
175
|
+
onRuntimeInitialized = "onRuntimeInitialized",
|
|
176
|
+
processImage = "processImage",
|
|
177
|
+
process = "process",
|
|
178
|
+
startNewPage = "startNewPage",
|
|
179
|
+
startNewDocument = "startNewDocument",
|
|
180
|
+
initializeService = "initializeService",
|
|
181
|
+
close = "close",
|
|
182
|
+
stderr = "strerr"
|
|
183
|
+
}
|
|
184
|
+
export declare enum MediaElementReadyState {
|
|
185
|
+
HAVE_NOTHING = 0,
|
|
186
|
+
HAVE_METADATA = 1,
|
|
187
|
+
HAVE_CURRENT_DATA = 2,
|
|
188
|
+
HAVE_FUTURE_DATA = 3,
|
|
189
|
+
HAVE_ENOUGH_DATA = 4
|
|
190
|
+
}
|
|
191
|
+
export declare enum Target {
|
|
192
|
+
stdout = "stdout",
|
|
193
|
+
stderr = "stderr",
|
|
194
|
+
custom = "custom"
|
|
195
|
+
}
|
|
196
|
+
export declare enum PromiseMethod {
|
|
197
|
+
resolve = "resolve",
|
|
198
|
+
reject = "reject"
|
|
199
|
+
}
|
|
200
|
+
export declare enum PromiseName {
|
|
201
|
+
empty = "empty",
|
|
202
|
+
prepare = "prepare",
|
|
203
|
+
initialize = "initialize",
|
|
204
|
+
process = "process",
|
|
205
|
+
processImage = "processImage",
|
|
206
|
+
startNewPage = "startNewPage",
|
|
207
|
+
startNewDocument = "startNewDocument"
|
|
208
|
+
}
|
|
209
|
+
export declare enum logLevels {
|
|
210
|
+
OFF = 0,
|
|
211
|
+
LOG = 1,
|
|
212
|
+
INFO = 2,
|
|
213
|
+
WARN = 3,
|
|
214
|
+
ERROR = 4
|
|
215
|
+
}
|
|
216
|
+
export declare enum DirectionType {
|
|
217
|
+
Rtl = "rtl",
|
|
218
|
+
Ltr = "ltr"
|
|
219
|
+
}
|
|
220
|
+
export declare const FACE_LIVENESS_EVENT = "face-liveness";
|
|
221
|
+
export declare const FACE_CAPTURE_EVENT = "face-capture";
|
|
222
|
+
export declare const DOCUMENT_READER_EVENT = "document-reader";
|
|
223
|
+
export declare const CAMERA_SNAPSHOT_EVENT = "camera-snapshot";
|
|
224
|
+
export declare const PERCENT_FRAME_OFFSET = 10;
|
|
225
|
+
export declare const FLIP_TIMEOUT = 3000;
|
|
226
|
+
export declare const FRAME_STROKE_WIDTH_LIVENESS_DETECTION = 3;
|
|
227
|
+
export declare const RESULT_TIMEOUT_MS = 2000;
|
|
228
|
+
export declare const NEW_INDEX = 1;
|
|
229
|
+
export declare const MAX_FILES_SIZE = 25000000;
|
|
230
|
+
export declare const RESIZE_VALUE = 1920;
|
|
231
|
+
export declare const MAX_BROWSER_SUPPORTED_RESOLUTION = 536870912;
|
|
232
|
+
export declare const PERMISSION_DENIED_ERROR_NAME = "NotAllowedError";
|
|
233
|
+
export declare const FACE_BACKEND_URL = "https://faceapi.regulaforensics.com";
|
|
234
|
+
export declare const DEFAULT_COMPONENT_LANGUAGE = "en";
|
|
235
|
+
export declare const RTL_LANGUAGES: string[];
|
|
236
|
+
export declare const DEFAULT_CAMERA_ID = 0;
|
|
237
|
+
export declare const OVAL_TRANSITION_TIME = 200;
|
|
238
|
+
export declare const CAMERAS_COUNT = 1;
|
|
239
|
+
export declare const FIREFOX_SWITCH_CAMERA_DELAY = 500;
|
|
240
|
+
export declare const CameraResolution: {
|
|
241
|
+
VGA: {
|
|
242
|
+
width: number;
|
|
243
|
+
height: number;
|
|
244
|
+
};
|
|
245
|
+
HD: {
|
|
246
|
+
width: number;
|
|
247
|
+
height: number;
|
|
248
|
+
};
|
|
249
|
+
FULL_HD: {
|
|
250
|
+
width: number;
|
|
251
|
+
height: number;
|
|
252
|
+
};
|
|
253
|
+
SQUARE: {
|
|
254
|
+
width: number;
|
|
255
|
+
height: number;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
export declare const BackCameraKeywords: string[];
|
|
259
|
+
export declare const FaceErrorCodes: {
|
|
260
|
+
199: {
|
|
261
|
+
name: string;
|
|
262
|
+
type: number;
|
|
263
|
+
};
|
|
264
|
+
201: {
|
|
265
|
+
name: string;
|
|
266
|
+
type: number;
|
|
267
|
+
};
|
|
268
|
+
202: {
|
|
269
|
+
name: string;
|
|
270
|
+
type: number;
|
|
271
|
+
};
|
|
272
|
+
203: {
|
|
273
|
+
name: string;
|
|
274
|
+
type: number;
|
|
275
|
+
};
|
|
276
|
+
224: {
|
|
277
|
+
name: string;
|
|
278
|
+
type: number;
|
|
279
|
+
};
|
|
280
|
+
227: {
|
|
281
|
+
name: string;
|
|
282
|
+
type: number;
|
|
283
|
+
};
|
|
284
|
+
228: {
|
|
285
|
+
name: string;
|
|
286
|
+
type: number;
|
|
287
|
+
};
|
|
288
|
+
229: {
|
|
289
|
+
name: string;
|
|
290
|
+
type: number;
|
|
291
|
+
};
|
|
292
|
+
230: {
|
|
293
|
+
name: string;
|
|
294
|
+
type: number;
|
|
295
|
+
};
|
|
296
|
+
231: {
|
|
297
|
+
name: string;
|
|
298
|
+
type: number;
|
|
299
|
+
};
|
|
300
|
+
232: {
|
|
301
|
+
name: string;
|
|
302
|
+
type: number;
|
|
303
|
+
};
|
|
304
|
+
233: {
|
|
305
|
+
name: string;
|
|
306
|
+
type: number;
|
|
307
|
+
};
|
|
308
|
+
234: {
|
|
309
|
+
name: string;
|
|
310
|
+
type: number;
|
|
311
|
+
};
|
|
312
|
+
235: {
|
|
313
|
+
name: string;
|
|
314
|
+
type: number;
|
|
315
|
+
};
|
|
316
|
+
236: {
|
|
317
|
+
name: string;
|
|
318
|
+
type: number;
|
|
319
|
+
};
|
|
320
|
+
237: {
|
|
321
|
+
name: string;
|
|
322
|
+
type: number;
|
|
323
|
+
};
|
|
324
|
+
238: {
|
|
325
|
+
name: string;
|
|
326
|
+
type: number;
|
|
327
|
+
};
|
|
328
|
+
239: {
|
|
329
|
+
name: string;
|
|
330
|
+
type: number;
|
|
331
|
+
};
|
|
332
|
+
240: {
|
|
333
|
+
name: string;
|
|
334
|
+
type: number;
|
|
335
|
+
};
|
|
336
|
+
242: {
|
|
337
|
+
name: string;
|
|
338
|
+
type: number;
|
|
339
|
+
};
|
|
340
|
+
243: {
|
|
341
|
+
name: string;
|
|
342
|
+
type: number;
|
|
343
|
+
};
|
|
344
|
+
244: {
|
|
345
|
+
name: string;
|
|
346
|
+
type: number;
|
|
347
|
+
};
|
|
348
|
+
245: {
|
|
349
|
+
name: string;
|
|
350
|
+
type: number;
|
|
351
|
+
};
|
|
352
|
+
246: {
|
|
353
|
+
name: string;
|
|
354
|
+
type: number;
|
|
355
|
+
};
|
|
356
|
+
247: {
|
|
357
|
+
name: string;
|
|
358
|
+
type: number;
|
|
359
|
+
};
|
|
360
|
+
248: {
|
|
361
|
+
name: string;
|
|
362
|
+
type: number;
|
|
363
|
+
};
|
|
364
|
+
249: {
|
|
365
|
+
name: string;
|
|
366
|
+
type: number;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
export declare const FACER_NO_LICENSE = 200;
|
|
370
|
+
export declare const WebComponentErrorByStreamStatus: {
|
|
371
|
+
"StreamStatus.UNKNOWN_ERROR": ErrorTypes;
|
|
372
|
+
"StreamStatus.PERMISSION_DENIED": ErrorTypes;
|
|
373
|
+
"StreamStatus.NO_CAMERA": ErrorTypes;
|
|
374
|
+
"StreamStatus.INCORRECT_CAMERA_ID": ErrorTypes;
|
|
375
|
+
};
|
|
376
|
+
export declare const DocumentReaderStatusByError: {
|
|
377
|
+
FILE_SIZE: DocumentCompletionStatus;
|
|
378
|
+
WASM_ERROR: DocumentCompletionStatus;
|
|
379
|
+
NOT_SUPPORTED: DocumentCompletionStatus;
|
|
380
|
+
WASM_LICENSE: DocumentCompletionStatus;
|
|
381
|
+
INCORRECT_FILE: DocumentCompletionStatus;
|
|
382
|
+
};
|
|
383
|
+
export declare const DocumentReaderFinishStatusByCaptureStatus: {
|
|
384
|
+
"DocumentCaptureStatus.SUCCESS": DocumentCompletionStatus;
|
|
385
|
+
"DocumentCaptureStatus.TIMEOUT": DocumentCompletionStatus;
|
|
386
|
+
"DocumentCaptureStatus.FAILED": DocumentCompletionStatus;
|
|
387
|
+
};
|
|
388
|
+
export declare const FaceLivenessStatusByError: {
|
|
389
|
+
WASM_ERROR: FaceCompletionStatus;
|
|
390
|
+
NOT_SUPPORTED: FaceCompletionStatus;
|
|
391
|
+
WASM_LICENSE: FaceCompletionStatus;
|
|
392
|
+
};
|
|
393
|
+
export declare const DocumentSupportedBrowsers: {
|
|
394
|
+
iOS: {
|
|
395
|
+
Chrome: number;
|
|
396
|
+
Firefox: number;
|
|
397
|
+
Opera: number;
|
|
398
|
+
Safari: number;
|
|
399
|
+
Edge: number;
|
|
400
|
+
Chromium: number;
|
|
401
|
+
IE: number;
|
|
402
|
+
'Internet Explorer': number;
|
|
403
|
+
'Mobile Safari': number;
|
|
404
|
+
'Samsung Browser': number;
|
|
405
|
+
};
|
|
406
|
+
Android: {
|
|
407
|
+
Chrome: number;
|
|
408
|
+
Firefox: number;
|
|
409
|
+
Opera: number;
|
|
410
|
+
Safari: number;
|
|
411
|
+
Edge: number;
|
|
412
|
+
Chromium: number;
|
|
413
|
+
IE: number;
|
|
414
|
+
'Internet Explorer': number;
|
|
415
|
+
'Mobile Safari': number;
|
|
416
|
+
'Samsung Browser': number;
|
|
417
|
+
};
|
|
418
|
+
desktop: {
|
|
419
|
+
Chrome: number;
|
|
420
|
+
Firefox: number;
|
|
421
|
+
Opera: number;
|
|
422
|
+
Safari: number;
|
|
423
|
+
Edge: number;
|
|
424
|
+
Chromium: number;
|
|
425
|
+
IE: number;
|
|
426
|
+
'Internet Explorer': number;
|
|
427
|
+
'Mobile Safari': number;
|
|
428
|
+
'Samsung Browser': number;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
export declare const FaceSupportedBrowsers: {
|
|
432
|
+
iOS: {
|
|
433
|
+
Chrome: number;
|
|
434
|
+
Firefox: number;
|
|
435
|
+
Opera: number;
|
|
436
|
+
Safari: number;
|
|
437
|
+
Edge: number;
|
|
438
|
+
Chromium: number;
|
|
439
|
+
IE: number;
|
|
440
|
+
'Internet Explorer': number;
|
|
441
|
+
'Mobile Safari': number;
|
|
442
|
+
'Samsung Browser': number;
|
|
443
|
+
};
|
|
444
|
+
Android: {
|
|
445
|
+
Chrome: number;
|
|
446
|
+
Firefox: number;
|
|
447
|
+
Opera: number;
|
|
448
|
+
Safari: number;
|
|
449
|
+
Edge: number;
|
|
450
|
+
Chromium: number;
|
|
451
|
+
IE: number;
|
|
452
|
+
'Internet Explorer': number;
|
|
453
|
+
'Mobile Safari': number;
|
|
454
|
+
'Samsung Browser': number;
|
|
455
|
+
};
|
|
456
|
+
desktop: {
|
|
457
|
+
Chrome: number;
|
|
458
|
+
Firefox: number;
|
|
459
|
+
Opera: number;
|
|
460
|
+
Safari: number;
|
|
461
|
+
Edge: number;
|
|
462
|
+
Chromium: number;
|
|
463
|
+
IE: number;
|
|
464
|
+
'Internet Explorer': number;
|
|
465
|
+
'Mobile Safari': number;
|
|
466
|
+
'Samsung Browser': number;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
export declare const DocumentScenarioFrameParams: {
|
|
470
|
+
scenario: ({
|
|
471
|
+
caption: string;
|
|
472
|
+
desc: string;
|
|
473
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
474
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
475
|
+
frameKWHLandscape: string;
|
|
476
|
+
frameKWHPortrait: string;
|
|
477
|
+
frameOrientation: number;
|
|
478
|
+
multiPageOff: number;
|
|
479
|
+
name: string;
|
|
480
|
+
seriesProcessMode: number;
|
|
481
|
+
barcodeExt?: undefined;
|
|
482
|
+
faceExt?: undefined;
|
|
483
|
+
manualCrop?: undefined;
|
|
484
|
+
UVTorch?: undefined;
|
|
485
|
+
} | {
|
|
486
|
+
barcodeExt: number;
|
|
487
|
+
caption: string;
|
|
488
|
+
desc: string;
|
|
489
|
+
frameKWHDoublePageSpreadLandscape: number;
|
|
490
|
+
frameKWHDoublePageSpreadPortrait: number;
|
|
491
|
+
frameKWHLandscape: number;
|
|
492
|
+
frameKWHPortrait: number;
|
|
493
|
+
frameOrientation: number;
|
|
494
|
+
multiPageOff: number;
|
|
495
|
+
name: string;
|
|
496
|
+
seriesProcessMode: number;
|
|
497
|
+
faceExt?: undefined;
|
|
498
|
+
manualCrop?: undefined;
|
|
499
|
+
UVTorch?: undefined;
|
|
500
|
+
} | {
|
|
501
|
+
caption: string;
|
|
502
|
+
desc: string;
|
|
503
|
+
faceExt: number;
|
|
504
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
505
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
506
|
+
frameKWHLandscape: string;
|
|
507
|
+
frameKWHPortrait: string;
|
|
508
|
+
frameOrientation: number;
|
|
509
|
+
manualCrop: number;
|
|
510
|
+
name: string;
|
|
511
|
+
seriesProcessMode: number;
|
|
512
|
+
multiPageOff?: undefined;
|
|
513
|
+
barcodeExt?: undefined;
|
|
514
|
+
UVTorch?: undefined;
|
|
515
|
+
} | {
|
|
516
|
+
barcodeExt: number;
|
|
517
|
+
caption: string;
|
|
518
|
+
desc: string;
|
|
519
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
520
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
521
|
+
frameKWHLandscape: string;
|
|
522
|
+
frameKWHPortrait: string;
|
|
523
|
+
frameOrientation: number;
|
|
524
|
+
multiPageOff: number;
|
|
525
|
+
name: string;
|
|
526
|
+
seriesProcessMode: number;
|
|
527
|
+
faceExt?: undefined;
|
|
528
|
+
manualCrop?: undefined;
|
|
529
|
+
UVTorch?: undefined;
|
|
530
|
+
} | {
|
|
531
|
+
caption: string;
|
|
532
|
+
desc: string;
|
|
533
|
+
faceExt: number;
|
|
534
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
535
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
536
|
+
frameKWHLandscape: string;
|
|
537
|
+
frameKWHPortrait: string;
|
|
538
|
+
frameOrientation: number;
|
|
539
|
+
manualCrop: number;
|
|
540
|
+
multiPageOff: number;
|
|
541
|
+
name: string;
|
|
542
|
+
seriesProcessMode: number;
|
|
543
|
+
barcodeExt?: undefined;
|
|
544
|
+
UVTorch?: undefined;
|
|
545
|
+
} | {
|
|
546
|
+
barcodeExt: number;
|
|
547
|
+
caption: string;
|
|
548
|
+
desc: string;
|
|
549
|
+
faceExt: number;
|
|
550
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
551
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
552
|
+
frameKWHLandscape: string;
|
|
553
|
+
frameKWHPortrait: string;
|
|
554
|
+
frameOrientation: number;
|
|
555
|
+
manualCrop: number;
|
|
556
|
+
multiPageOff: number;
|
|
557
|
+
name: string;
|
|
558
|
+
seriesProcessMode: number;
|
|
559
|
+
UVTorch?: undefined;
|
|
560
|
+
} | {
|
|
561
|
+
caption: string;
|
|
562
|
+
desc: string;
|
|
563
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
564
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
565
|
+
frameKWHLandscape: string;
|
|
566
|
+
frameKWHPortrait: string;
|
|
567
|
+
frameOrientation: number;
|
|
568
|
+
manualCrop: number;
|
|
569
|
+
name: string;
|
|
570
|
+
seriesProcessMode: number;
|
|
571
|
+
multiPageOff?: undefined;
|
|
572
|
+
barcodeExt?: undefined;
|
|
573
|
+
faceExt?: undefined;
|
|
574
|
+
UVTorch?: undefined;
|
|
575
|
+
} | {
|
|
576
|
+
barcodeExt: number;
|
|
577
|
+
caption: string;
|
|
578
|
+
desc: string;
|
|
579
|
+
faceExt: number;
|
|
580
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
581
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
582
|
+
frameKWHLandscape: string;
|
|
583
|
+
frameKWHPortrait: string;
|
|
584
|
+
frameOrientation: number;
|
|
585
|
+
manualCrop: number;
|
|
586
|
+
name: string;
|
|
587
|
+
seriesProcessMode: number;
|
|
588
|
+
multiPageOff?: undefined;
|
|
589
|
+
UVTorch?: undefined;
|
|
590
|
+
} | {
|
|
591
|
+
caption: string;
|
|
592
|
+
desc: string;
|
|
593
|
+
frameKWHDoublePageSpreadLandscape: string;
|
|
594
|
+
frameKWHDoublePageSpreadPortrait: string;
|
|
595
|
+
frameKWHLandscape: string;
|
|
596
|
+
frameKWHPortrait: string;
|
|
597
|
+
frameOrientation: number;
|
|
598
|
+
manualCrop: number;
|
|
599
|
+
multiPageOff: number;
|
|
600
|
+
name: string;
|
|
601
|
+
seriesProcessMode: number;
|
|
602
|
+
barcodeExt?: undefined;
|
|
603
|
+
faceExt?: undefined;
|
|
604
|
+
UVTorch?: undefined;
|
|
605
|
+
} | {
|
|
606
|
+
caption: string;
|
|
607
|
+
desc: string;
|
|
608
|
+
frameKWHDoublePageSpreadLandscape: number;
|
|
609
|
+
frameKWHDoublePageSpreadPortrait: number;
|
|
610
|
+
frameKWHLandscape: number;
|
|
611
|
+
frameKWHPortrait: number;
|
|
612
|
+
frameOrientation: number;
|
|
613
|
+
multiPageOff: number;
|
|
614
|
+
name: string;
|
|
615
|
+
seriesProcessMode: number;
|
|
616
|
+
barcodeExt?: undefined;
|
|
617
|
+
faceExt?: undefined;
|
|
618
|
+
manualCrop?: undefined;
|
|
619
|
+
UVTorch?: undefined;
|
|
620
|
+
} | {
|
|
621
|
+
UVTorch: number;
|
|
622
|
+
caption: string;
|
|
623
|
+
desc: string;
|
|
624
|
+
frameKWHDoublePageSpreadLandscape: number;
|
|
625
|
+
frameKWHDoublePageSpreadPortrait: number;
|
|
626
|
+
frameKWHLandscape: number;
|
|
627
|
+
frameKWHPortrait: number;
|
|
628
|
+
frameOrientation: number;
|
|
629
|
+
name: string;
|
|
630
|
+
multiPageOff?: undefined;
|
|
631
|
+
seriesProcessMode?: undefined;
|
|
632
|
+
barcodeExt?: undefined;
|
|
633
|
+
faceExt?: undefined;
|
|
634
|
+
manualCrop?: undefined;
|
|
635
|
+
})[];
|
|
636
|
+
};
|
|
637
|
+
export declare const CIRCLE_ROTATE_SHIFT = 22.5;
|
|
638
|
+
export declare const MIRROR_ANIMATION_TARGETS: number[];
|
|
639
|
+
export declare const ANIMATION_TIMEOUT = 1000;
|
|
640
|
+
export declare const ANIMATION_MESSAGE: FaceMessage[];
|
|
641
|
+
export declare const STATIC_ANIMATION_MESSAGE: FaceMessage[];
|
|
642
|
+
export declare const DocumentReaderRecognizerDefaultRequest: {
|
|
643
|
+
processParam: {
|
|
644
|
+
scenario: InternalScenarios;
|
|
645
|
+
returnUncroppedImage: boolean;
|
|
646
|
+
multipageProcessing: boolean;
|
|
647
|
+
timeoutFromFirstDetect: number;
|
|
648
|
+
timeoutFromFirstDocType: number;
|
|
649
|
+
imageQa: {
|
|
650
|
+
expectedPass: string[];
|
|
651
|
+
dpiThreshold: number;
|
|
652
|
+
glaresCheck: boolean;
|
|
653
|
+
glaresCheckParams: {
|
|
654
|
+
imgMarginPart: number;
|
|
655
|
+
maxGlaringPart: number;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
export declare const DocumentReaderImageDefaultRequest: {
|
|
661
|
+
processParam: {
|
|
662
|
+
scenario: InternalScenarios;
|
|
663
|
+
returnUncroppedImage: boolean;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
export declare const SDKDocumentReaderRecognizerDefaultRequest: {
|
|
667
|
+
processParam: {
|
|
668
|
+
scenario: InternalScenarios;
|
|
669
|
+
returnUncroppedImage: boolean;
|
|
670
|
+
timeoutFromFirstDetect: number;
|
|
671
|
+
timeoutFromFirstDocType: number;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
export declare const SDKDocumentReaderImageDefaultRequest: {
|
|
675
|
+
processParam: {
|
|
676
|
+
scenario: InternalScenarios;
|
|
677
|
+
returnUncroppedImage: boolean;
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
export declare const AcceptedFiles: string[];
|
|
681
|
+
export declare enum VideoFinishStatus {
|
|
682
|
+
aborted = "liveness_aborted",
|
|
683
|
+
timeout = "liveness_timeout",
|
|
684
|
+
default = "liveness_default",
|
|
685
|
+
inactive = "liveness_inactive"
|
|
686
|
+
}
|