The result of the medical certificate scanning.

Hierarchy (view full)

Constructors

Properties

Found checkboxes.

clockwiseRotations: number

The number of 90-degree clockwise rotations that were applied to the original image. The same number of counter-clockwise rotations are necessary to make the image upright again.

Default is 0

croppedImage: null | ImageRef

The cropped image used for recognition.

Found dates.

documentDetectionResult: null | DocumentDetectionResult

Result of the document detection in the input image. Is available only if the shouldCropDocument parameter is set to true.

Form type.

Default is UNKNOWN

Patient info box.

scaleX: number

The scale factor used to scale the image to the recognition size.

Default is 1.0

scaleY: number

The scale factor used to scale the image to the recognition size.

Default is 1.0

scanningSuccessful: boolean

True if scanning was successful.

Default is false

Methods

  • Returns Promise<void>

  • Returns void

  • Parameters

    Returns Promise<{
        checkBoxes?: (undefined | {
            checked?: boolean;
            checkedConfidence?: number;
            quad?: (undefined | {
                x?: (...) | (...);
                y?: (...) | (...);
            })[];
            type?: MedicalCertificateCheckBoxType;
            serialize?: any;
        })[];
        clockwiseRotations?: number;
        croppedImage?: null | {
            buffer: undefined | string;
            uniqueId?: string;
            clear?: any;
            clone?: any;
            encodeImage?: any;
            encodeInPlace?: any;
            hibernate?: any;
            info?: any;
            isRetained?: any;
            release?: any;
            retain?: any;
            saveImage?: any;
            serialize?: any;
        };
        dates?: (undefined | {
            quad?: (undefined | {
                x?: (...) | (...);
                y?: (...) | (...);
            })[];
            rawString?: string;
            recognitionConfidence?: number;
            type?: MedicalCertificateDateRecordType;
            value?: string;
            serialize?: any;
        })[];
        documentDetectionResult?: null | {
            aspectRatio?: number;
            averageBrightness?: number;
            detectionScores?: {
                angleScore?: number;
                aspectRatioScore?: number;
                distanceScore?: number;
                heightScore?: number;
                lineCoverageScore?: number;
                sizeScore?: number;
                totalScore?: number;
                widthScore?: number;
                serialize?: any;
            };
            horizontalLines?: (undefined | {
                end?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                start?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                serialize?: any;
            })[];
            horizontalLinesNormalized?: (undefined | {
                end?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                start?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                serialize?: any;
            })[];
            points?: (undefined | {
                x?: number;
                y?: number;
            })[];
            pointsNormalized?: (undefined | {
                x?: number;
                y?: number;
            })[];
            status?: DocumentDetectionStatus;
            verticalLines?: (undefined | {
                end?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                start?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                serialize?: any;
            })[];
            verticalLinesNormalized?: (undefined | {
                end?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                start?: {
                    x?: (...) | (...);
                    y?: (...) | (...);
                };
                serialize?: any;
            })[];
            serialize?: any;
        };
        formType?: MedicalCertificateFormType;
        patientInfoBox?: {
            fields?: (undefined | {
                recognitionConfidence?: number;
                type?: MedicalCertificatePatientInfoFieldType;
                value?: string;
                serialize?: any;
            })[];
            hasContents?: boolean;
            quad?: (undefined | {
                x?: number;
                y?: number;
            })[];
            serialize?: any;
        };
        scaleX?: number;
        scaleY?: number;
        scanningSuccessful?: boolean;
        encodeImages?: any;
        release?: any;
        serialize?: any;
    }>