Table of contents

MRZ Scanner API Enumerations

The MRZ Scanner comes with a few enumerations for some of the configuration properties.

EnumMRZDocumentType

Syntax

enum EnumMRZDocumentType {
  Passport = "passport",
  TD1 = "td1",
  TD2 = "td2",
}

EnumResultStatus

Syntax

export enum EnumResultStatus {
  RS_SUCCESS = 0,
  RS_CANCELLED = 1,
  RS_FAILED = 2,
}

EnumMRZData

Syntax

export enum EnumMRZData {
  InvalidFields = "invalidFields",
  DocumentType = "documentType",
  DocumentNumber = "documentNumber",
  MRZText = "mrzText",
  FirstName = "firstName",
  LastName = "lastName",
  Age = "age",
  Sex = "sex",
  IssuingState = "issuingState",
  Nationality = "nationality",
  DateOfBirth = "dateOfBirth",
  DateOfExpiry = "dateOfExpiry",
}

Is this page helpful?

YesYes NoNo

In this article: