FirebaseMLVision Framework Reference Stay organized with collections Save and categorize content based on your preferences.
Classes
The following classes are available globally.
A Firebase service that supports vision APIs.
Declaration
Swift
classVision:NSObjectAn address.
Declaration
Swift
classVisionBarcodeAddress:NSObjectA calendar event extracted from a QR code.
Declaration
Swift
classVisionBarcodeCalendarEvent:NSObjectA driver license or ID card data representation.
An ANSI driver license contains more fields than are represented by this class. The
FIRVisionBarcodesrawValueproperty can be used to access the other fields.Declaration
Swift
classVisionBarcodeDriverLicense:NSObjectAn email message from a ‘MAILTO:’ or similar QR Code type.
Declaration
Swift
classVisionBarcodeEmail:NSObjectGPS coordinates from a ‘GEO:’ or similar QR Code type data.
Declaration
Swift
classVisionBarcodeGeoPoint:NSObjectA person’s name, both formatted and as individual name components.
Declaration
Swift
classVisionBarcodePersonName:NSObjectA phone number from a ‘TEL:’ or similar QR Code type.
Declaration
Swift
classVisionBarcodePhone:NSObjectAn SMS message from an ‘SMS:’ or similar QR Code type.
Declaration
Swift
classVisionBarcodeSMS:NSObjectA URL and title from a ‘MEBKM:’ or similar QR Code type.
Declaration
Swift
classVisionBarcodeURLBookmark:NSObjectWi-Fi network parameters from a ‘WIFI:’ or similar QR Code type.
Declaration
Swift
classVisionBarcodeWifi:NSObjectA person’s or organization’s business card. This may come from different underlying formats including VCARD and MECARD.
This object represents a simplified view of possible business cards. If you require lossless access to the information in the barcode, you should parse the raw data yourself. To access the raw data, use the
FIRVisionBarcodesrawValueproperty.Declaration
Swift
classVisionBarcodeContactInfo:NSObjectA barcode in an image.
Declaration
Swift
classVisionBarcode:NSObjectA barcode detector that detects barcodes in an image.
Declaration
Swift
classVisionBarcodeDetector:NSObjectOptions for specifying a Barcode detector.
Declaration
Swift
classVisionBarcodeDetectorOptions:NSObjectGeneric options of a vision cloud detector.
Declaration
Swift
classVisionCloudDetectorOptions:NSObjectOptions for a cloud document text recognizer.
Declaration
Swift
classVisionCloudDocumentTextRecognizerOptions:NSObjectOptions for a cloud image labeler.
Declaration
Swift
classVisionCloudImageLabelerOptions:NSObjectSet of landmark properties identified by a vision cloud detector.
Declaration
Swift
classVisionCloudLandmark:NSObjectA landmark detector that detects landmark in an image.
Declaration
Swift
classVisionCloudLandmarkDetector:NSObjectOptions for a cloud text recognizer.
Declaration
Swift
classVisionCloudTextRecognizerOptions:NSObjectRecognized document text in an image.
Declaration
Swift
classVisionDocumentText:NSObjectA document text block recognized in an image that consists of an array of paragraphs.
Declaration
Swift
classVisionDocumentTextBlock:NSObjectA document text paragraph recognized in an image that consists of an array of words.
Declaration
Swift
classVisionDocumentTextParagraph:NSObjectA cloud document text recognizer that recognizes text in an image.
Declaration
Swift
classVisionDocumentTextRecognizer:NSObjectA document text symbol recognized in an image.
Declaration
Swift
classVisionDocumentTextSymbol:NSObjectA document text word recognized in an image that consists of an array of symbols.
Declaration
Swift
classVisionDocumentTextWord:NSObjectA human face detected in an image.
Declaration
Swift
classVisionFace:NSObjectA contour on a human face detected in an image.
Declaration
Swift
classVisionFaceContour:NSObjectA face detector that detects faces in an image.
Declaration
Swift
classVisionFaceDetector:NSObjectOptions for specifying a face detector.
Declaration
Swift
classVisionFaceDetectorOptions:NSObjectA landmark on a human face detected in an image.
Declaration
Swift
classVisionFaceLandmark:NSObjectAn image or image buffer used in vision detection, with optional metadata.
Declaration
Swift
classVisionImage:NSObjectRepresents a label for an image.
Declaration
Swift
classVisionImageLabel:NSObjectAn on-device or cloud image labeler for labeling images.
Declaration
Swift
classVisionImageLabeler:NSObjectMetadata of an image used in feature detection.
Declaration
Swift
classVisionImageMetadata:NSObjectAn object representing a latitude/longitude pair. This is expressed as a pair of doublesrepresenting degrees latitude and degrees longitude. Unless specified otherwise, this mustconform to theWGS84standard. Values must be within normalized ranges.
Declaration
Swift
classVisionLatitudeLongitude:NSObjectOptions for an on-device image labeler.
Declaration
Swift
classVisionOnDeviceImageLabelerOptions:NSObjectA 2D or 3D point in the image. A valid point must have both x and y coordinates. The point’scoordinates are in the same scale as the original image.
Declaration
Swift
classVisionPoint:NSObjectRecognized text in an image.
Declaration
Swift
classVisionText:NSObjectA text block recognized in an image that consists of an array of text lines.
Declaration
Swift
classVisionTextBlock:NSObjectA text element recognized in an image. A text element is roughly equivalent to a space-separatedword in most Latin-script languages.
Declaration
Swift
classVisionTextElement:NSObjectA text line recognized in an image that consists of an array of elements.
Declaration
Swift
classVisionTextLine:NSObjectDetected break from text recognition.
Declaration
Swift
classVisionTextRecognizedBreak:NSObjectDetected language from text recognition.
Declaration
Swift
classVisionTextRecognizedLanguage:NSObjectAn on-device or cloud text recognizer that recognizes text in an image.
Declaration
Swift
classVisionTextRecognizer:NSObject
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.