MrzHelper.check Method

Module: MrzHelper

Definition

Checks the validity of a single line of an MRZ of a given type by checking the check digits.

@staticmethod
check(text: str, type: MrzType) -> bool

Parameters

text str
in The input MRZ line.

type MrzType
in The input MRZ type according to ICAO-9303 standard.

Returns

bool
The result of the verification.

Exceptions

An error has occurred during Document Library execution.
static bool check(String? text, MrzType type)

Parameters

text String
in The input MRZ line.

type MrzType
in The input MRZ type according to ICAO-9303 standard.

Returns

bool
The result of the verification.

Exceptions

An error has occurred during Document Library execution.
public static bool Check(string text, MrzType type)

Parameters

text string
in The input MRZ line.

type MrzType
in The input MRZ type according to ICAO-9303 standard.

Returns

bool
The result of the verification.

Exceptions

An error has occurred during Document Library execution.
public static boolean check(String text, MrzType type) throws DocumentException

Parameters

text String
in The input MRZ line.

type MrzType
in The input MRZ type according to ICAO-9303 standard.

Returns

boolean
The result of the verification.

Exceptions

An error has occurred during Document Library execution.
public static func check(text: String, type: MrzType) throws -> Bool

Parameters

text String
in The input MRZ line.

type MrzType
in The input MRZ type according to ICAO-9303 standard.

Returns

Bool
The result of the verification.

Exceptions

An error has occurred during Document Library execution.
int id3DocumentMrzHelper_Check (
    const char * text,
    id3DocumentMrzType eType,
    bool * validity)

Parameters

text const char *
in The input MRZ line.

in The input MRZ type according to ICAO-9303 standard.

validity bool *
out The result of the verification.

Returns

int
An error code.
See id3DocumentError file for the list of possible error codes.