Jump to top

VisionBarcodeDriverLicense

interface

A driver license or ID card.

Example
import vision, { VisionBarcodeValueType } from '@react-native-firebase/ml-vision';

const [barcode, ...otherBarcodes] = await vision().barcodeDetectorProcessImage(filePath);

if (barcode && barcode.valueType === VisionBarcodeValueType.DRIVER_LICENSE) {
  console.log(barcode.driverLicense);
}

Properties

addressCity

</>

Gets city of holder's address.

addressCity: string | null;

addressState

</>

Gets state of holder's address.

addressState: string | null;

addressStreet

</>

The holder's street address.

addressStreet: string | null;

addressZip

</>

The zip code of holder's address.

addressZip: string | null;

birthDate

</>

The birth date of the holder.

birthDate: string | null;

documentType

</>

The "DL" for driver licenses, "ID" for ID cards.

documentType: string | null;

expiryDate

</>

The expiry date of the license.

expiryDate: string | null;

firstName

</>

The holder's first name.

firstName: string | null;

gender

</>

The holder's gender.

gender: string | null;

issueDate

</>

The issue date of the license.

issueDate: string | null;

issuingCountry

</>

The country in which DL/ID was issued.

issuingCountry: string | null;

lastName

</>

The holder's last name.

lastName: string | null;

licenseNumber

</>

The driver license ID number.

licenseNumber: string | null;

middleName

</>

The holder's middle name.

middleName: string | null;