Classes

The following classes are available globally.

  • A Firebase service that supports vision APIs.

    Declaration

    Swift

    class Vision : NSObject
  • An address.

    Declaration

    Swift

    class VisionBarcodeAddress : NSObject
  • A calendar event extracted from a QR code.

    Declaration

    Swift

    class VisionBarcodeCalendarEvent : NSObject
  • A driver license or ID card data representation.

    An ANSI driver license contains more fields than are represented by this class. The FIRVisionBarcodes rawValue property can be used to access the other fields.

    Declaration

    Swift

    class VisionBarcodeDriverLicense : NSObject
  • An email message from a ‘MAILTO:’ or similar QR Code type.

    Declaration

    Swift

    class VisionBarcodeEmail : NSObject
  • GPS coordinates from a ‘GEO:’ or similar QR Code type data.

    Declaration

    Swift

    class VisionBarcodeGeoPoint : NSObject
  • A person’s name, both formatted and as individual name components.

    Declaration

    Swift

    class VisionBarcodePersonName : NSObject
  • A phone number from a ‘TEL:’ or similar QR Code type.

    Declaration

    Swift

    class VisionBarcodePhone : NSObject
  • An SMS message from an ‘SMS:’ or similar QR Code type.

    Declaration

    Swift

    class VisionBarcodeSMS : NSObject
  • A URL and title from a ‘MEBKM:’ or similar QR Code type.

    Declaration

    Swift

    class VisionBarcodeURLBookmark : NSObject
  • Wi-Fi network parameters from a ‘WIFI:’ or similar QR Code type.

    Declaration

    Swift

    class VisionBarcodeWifi : NSObject
  • A 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 FIRVisionBarcodes rawValue property.

    Declaration

    Swift

    class VisionBarcodeContactInfo : NSObject
  • A barcode in an image.

    Declaration

    Swift

    class VisionBarcode : NSObject
  • A barcode detector that detects barcodes in an image.

    Declaration

    Swift

    class VisionBarcodeDetector : NSObject
  • Generic options of a vision cloud detector.

    Declaration

    Swift

    class VisionCloudDetectorOptions : NSObject
  • Set of label properties identified by a vision cloud detector.

    Declaration

    Swift

    class VisionCloudLabel : NSObject
  • A label detector that detects labels in an image.

    Declaration

    Swift

    class VisionCloudLabelDetector : NSObject
  • Set of landmark properties identified by a vision cloud detector.

    Declaration

    Swift

    class VisionCloudLandmark : NSObject
  • A landmark detector that detects landmark in an image.

    Declaration

    Swift

    class VisionCloudLandmarkDetector : NSObject
  • Recognized document text in an image.

    Declaration

    Swift

    class VisionDocumentText : NSObject
  • A document text block recognized in an image that consists of an array of paragraphs.

    Declaration

    Swift

    class VisionDocumentTextBlock : NSObject
  • A document text paragraph recognized in an image that consists of an array of words.

    Declaration

    Swift

    class VisionDocumentTextParagraph : NSObject
  • A cloud document text recognizer that recognizes text in an image.

    Declaration

    Swift

    class VisionDocumentTextRecognizer : NSObject
  • A document text symbol recognized in an image.

    Declaration

    Swift

    class VisionDocumentTextSymbol : NSObject
  • A document text word recognized in an image that consists of an array of symbols.

    Declaration

    Swift

    class VisionDocumentTextWord : NSObject
  • A human face detected in an image.

    Declaration

    Swift

    class VisionFace : NSObject
  • A contour on a human face detected in an image.

    Declaration

    Swift

    class VisionFaceContour : NSObject
  • A face detector that detects faces in an image.

    Declaration

    Swift

    class VisionFaceDetector : NSObject
  • Options for specifying a face detector.

    Declaration

    Swift

    class VisionFaceDetectorOptions : NSObject
  • A landmark on a human face detected in an image.

    Declaration

    Swift

    class VisionFaceLandmark : NSObject
  • An image or image buffer used in vision detection, with optional metadata.

    Declaration

    Swift

    class VisionImage : NSObject
  • Metadata of an image used in feature detection.

    Declaration

    Swift

    class VisionImageMetadata : NSObject
  • Represents a label for an image.

    Declaration

    Swift

    class VisionLabel : NSObject
  • A label detector that detects labels in an image.

    Declaration

    Swift

    class VisionLabelDetector : NSObject
  • An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.

    Declaration

    Swift

    class VisionLatitudeLongitude : NSObject
  • A 2D or 3D point in the image. A valid point must have both x and y coordinates. The point’s coordinates are in the same scale as the original image.

    Declaration

    Swift

    class VisionPoint : NSObject
  • Recognized text in an image.

    Declaration

    Swift

    class VisionText : NSObject
  • A text block recognized in an image that consists of an array of text lines.

    Declaration

    Swift

    class VisionTextBlock : NSObject
  • A text element recognized in an image. A text element is roughly equivalent to a space-separated word in most Latin-script languages.

    Declaration

    Swift

    class VisionTextElement : NSObject
  • A text line recognized in an image that consists of an array of elements.

    Declaration

    Swift

    class VisionTextLine : NSObject
  • Detected break from text recognition.

    Declaration

    Swift

    class VisionTextRecognizedBreak : NSObject
  • An on-device or cloud text recognizer that recognizes text in an image.

    Declaration

    Swift

    class VisionTextRecognizer : NSObject