Jump to top

VisionBarcodeContactInfo

interface

A persons or organization's business card. For example a VCARD.

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

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

if (barcode && barcode.valueType === VisionBarcodeValueType.CONTACT_INFO) {
  console.log(barcode.contactInfo);
}

Properties

addresses

</>

Gets an array of the contact persons addresses.

addresses: VisionBarcodeAddress[];

emails

</>

Gets the contact persons emails.

name

</>

Gets the contact persons name.

organization

</>

Gets the contact persons organization.

organization: string | null;

phones

</>

Gets the contact persons phones.

title

</>

Gets the contact persons title. E.g. Dr

title: string | null;

urls

</>

Get an array of detected urls for the contact.

urls: string[];