The Mobile Vision API is now a part of ML Kit. We strongly encourage you to try it out, as it comes with new capabilities like on-device image labeling! Also, note that we ultimately plan to wind down the Mobile Vision API, with all new on-device ML capabilities released via ML Kit. Feel free to reach out to Firebase support for help.

/google/src/cloud/hsiu/general2/google3/googlemac/iPhone/MobileVision/API/GMVDetector/ExternalHeaders/GMVDetectorConstants.h File

GMVDetectorConstants.h File Reference

Detector constants. More...

Enumerations

enum  GMVResultCoordinateSpace : NSInteger { GMVResultCaptureDeviceEXIFCoordinateSpace = 1, GMVResultCaptureDeviceCoordinateSpace = 2 }
 This enumeration specifies the detection result coordinate space. More...
 
enum  GMVDetectorError : NSInteger { GMVDetectorInvalidInput = -301 }
 Possible error codes returned by GMVDetector. More...
 
enum  GMVImageOrientation : NSInteger {
  GMVImageOrientationTopLeft = 1, GMVImageOrientationTopRight = 2, GMVImageOrientationBottomRight = 3, GMVImageOrientationBottomLeft = 4,
  GMVImageOrientationLeftTop = 5, GMVImageOrientationRightTop = 6, GMVImageOrientationRightBottom = 7, GMVImageOrientationLeftBottom = 8
}
 This enumeration specifies where the origin (0,0) of the image is located. More...
 
enum  GMVDetectorFaceModeOption : NSInteger { GMVDetectorFaceFastMode = 200, GMVDetectorFaceAccurateMode = 201 }
 This enum specifies a preference for accuracy vs. More...
 
enum  GMVBarcodeFeatureEmailType : NSInteger { GMVBarcodeFeatureEmailTypeUnknown = 0, GMVBarcodeFeatureEmailTypeWork = 1, GMVBarcodeFeatureEmailTypeHome = 2 }
 This enum specifies the email type for GMVBarcodeFeatureEmail. More...
 
enum  GMVBarcodeFeaturePhoneType : NSInteger {
  GMVBarcodeFeaturePhoneTypeUnknown = 0, GMVBarcodeFeaturePhoneTypeWork = 1, GMVBarcodeFeaturePhoneTypeHome = 2, GMVBarcodeFeaturePhoneTypeFax = 3,
  GMVBarcodeFeaturePhoneTypeMobile = 4
}
 This enum specifies the phone type for GMVBarcodeFeaturePhone. More...
 
enum  GMVBarcodeFeatureWiFiEncryptionType : NSInteger { GMVBarcodeFeatureWiFiEncryptionTypeUnknown = 0, GMVBarcodeFeatureWiFiEncryptionTypeOpen = 1, GMVBarcodeFeatureWiFiEncryptionTypeWPA = 2, GMVBarcodeFeatureWiFiEncryptionTypeWEP = 3 }
 This enum specifies the Wi-Fi encryption type for GMVBarcodeFeatureWiFi. More...
 
enum  GMVBarcodeFeatureAddressType : NSInteger { GMVBarcodeFeatureAddressTypeUnknown = 0, GMVBarcodeFeatureAddressTypeWork = 1, GMVBarcodeFeatureAddressTypeHome = 2 }
 This enum specifies address type. More...
 
enum  GMVDetectorBarcodeValueFormat : NSInteger {
  GMVDetectorBarcodeValueFormatContactInfo = 1, GMVDetectorBarcodeValueFormatEmail = 2, GMVDetectorBarcodeValueFormatISBN = 3, GMVDetectorBarcodeValueFormatPhone = 4,
  GMVDetectorBarcodeValueFormatProduct = 5, GMVDetectorBarcodeValueFormatSMS = 6, GMVDetectorBarcodeValueFormatText = 7, GMVDetectorBarcodeValueFormatURL = 8,
  GMVDetectorBarcodeValueFormatWiFi = 9, GMVDetectorBarcodeValueFormatGeographicCoordinates = 10, GMVDetectorBarcodeValueFormatCalendarEvent = 11, GMVDetectorBarcodeValueFormatDriversLicense = 12
}
 This enum specifies a barcode's value format. More...
 

Functions

typedef NS_OPTIONS (NSInteger, GMVDetectorFaceLandmark)
 GMVDetectorFaceLandmark This option specifies the landmark detection type. More...
 
typedef NS_OPTIONS (NSInteger, GMVDetectorFaceClassification)
 GMVDetectorFaceClassification This option specifies the classification type. More...
 
typedef NS_OPTIONS (NSInteger, GMVDetectorBarcodeFormat)
 GMVDetectorBarcodeFormat This option specifies the barcode formats that the library should detect. More...
 

Detailed Description

Detector constants.

Enumeration Type Documentation

enum GMVResultCoordinateSpace : NSInteger

This enumeration specifies the detection result coordinate space.

Enumerator
GMVResultCaptureDeviceEXIFCoordinateSpace 

This enumeration specifies the detection results which are in the CaptureDevice coordinate space.

The coordinates are rotated / flipped based on the EXIF information. The coordinates are scaled based on detection buffer / image. The result coordinates need to be scaled properly based on the video gravity to display correctly in the AVCaptureVideoPreviewLayer.

GMVResultCaptureDeviceCoordinateSpace 

This enumeration specifies the detection results which are in CaptureDevice coordinate space.

It should be used with pointForCaptureDevicePointOfInterest: to convert to the AVCaptureVideoPreviewLayer coordinate space.

enum GMVDetectorError : NSInteger

Possible error codes returned by GMVDetector.

enum GMVImageOrientation : NSInteger

This enumeration specifies where the origin (0,0) of the image is located.

The constant has the same value as defined by EXIF specifications.

Enumerator
GMVImageOrientationTopLeft 

Orientation code indicating the 0th row is the top and the 0th column is the left side.

GMVImageOrientationTopRight 

Orientation code indicating the 0th row is the top and the 0th column is the right side.

GMVImageOrientationBottomRight 

Orientation code indicating the 0th row is the bottom and the 0th column is the right side.

GMVImageOrientationBottomLeft 

Orientation code indicating the 0th row is the bottom and the 0th column is the left side.

GMVImageOrientationLeftTop 

Orientation code indicating the 0th row is the left side and the 0th column is the top.

GMVImageOrientationRightTop 

Orientation code indicating the 0th row is the right side and the 0th column is the top.

GMVImageOrientationRightBottom 

Orientation code indicating the 0th row is the right side and the 0th column is the bottom.

GMVImageOrientationLeftBottom 

Orientation code indicating the 0th row is the left side and the 0th column is the bottom.

enum GMVDetectorFaceModeOption : NSInteger

This enum specifies a preference for accuracy vs.

speed trade-offs.

Enumerator
GMVDetectorFaceFastMode 

Face detection mode code indicating detect fewer faces and may be less precise in determining values such as position, but will run faster.

GMVDetectorFaceAccurateMode 

Face detection mode code indicating detect more faces and may be more precise in determining values such as position, at the cost of speed.

enum GMVBarcodeFeatureEmailType : NSInteger

This enum specifies the email type for GMVBarcodeFeatureEmail.

Enumerator
GMVBarcodeFeatureEmailTypeUnknown 

Unknown email type.

GMVBarcodeFeatureEmailTypeWork 

Barcode feature work email type.

GMVBarcodeFeatureEmailTypeHome 

Barcode feature home email type.

enum GMVBarcodeFeaturePhoneType : NSInteger

This enum specifies the phone type for GMVBarcodeFeaturePhone.

Enumerator
GMVBarcodeFeaturePhoneTypeUnknown 

Unknown phone type.

GMVBarcodeFeaturePhoneTypeWork 

Barcode feature work phone type.

GMVBarcodeFeaturePhoneTypeHome 

Barcode feature home phone type.

GMVBarcodeFeaturePhoneTypeFax 

Barcode feature fax phone type.

GMVBarcodeFeaturePhoneTypeMobile 

Barcode feature mobile phone type.

This enum specifies the Wi-Fi encryption type for GMVBarcodeFeatureWiFi.

Enumerator
GMVBarcodeFeatureWiFiEncryptionTypeUnknown 

Barcode feature unknown Wi-Fi encryption type.

GMVBarcodeFeatureWiFiEncryptionTypeOpen 

Barcode feature open Wi-Fi encryption type.

GMVBarcodeFeatureWiFiEncryptionTypeWPA 

Barcode feature WPA Wi-Fi encryption type.

GMVBarcodeFeatureWiFiEncryptionTypeWEP 

Barcode feature WEP Wi-Fi encryption type.

enum GMVBarcodeFeatureAddressType : NSInteger

This enum specifies address type.

Enumerator
GMVBarcodeFeatureAddressTypeUnknown 

Barcode feature unknown address type.

GMVBarcodeFeatureAddressTypeWork 

Barcode feature work address type.

GMVBarcodeFeatureAddressTypeHome 

Barcode feature home address type.

This enum specifies a barcode's value format.

For example, TEXT, PRODUCT, URL, etc.

Enumerator
GMVDetectorBarcodeValueFormatContactInfo 

Barcode value format for contact info.

GMVDetectorBarcodeValueFormatEmail 

Barcode value format for email addresses.

GMVDetectorBarcodeValueFormatISBN 

Barcode value format for ISBNs.

GMVDetectorBarcodeValueFormatPhone 

Barcode value format for phone numbers.

GMVDetectorBarcodeValueFormatProduct 

Barcode value format for product codes.

GMVDetectorBarcodeValueFormatSMS 

Barcode value format for SMS details.

GMVDetectorBarcodeValueFormatText 

Barcode value format for plain text.

GMVDetectorBarcodeValueFormatURL 

Barcode value format for URLs/bookmarks.

GMVDetectorBarcodeValueFormatWiFi 

Barcode value format for Wi-Fi access point details.

GMVDetectorBarcodeValueFormatGeographicCoordinates 

Barcode value format for geographic coordinates.

GMVDetectorBarcodeValueFormatCalendarEvent 

Barcode value format for calendar events.

GMVDetectorBarcodeValueFormatDriversLicense 

Barcode value format for driver's license data.

Function Documentation

typedef NS_OPTIONS ( NSInteger  ,
GMVDetectorFaceLandmark   
)

GMVDetectorFaceLandmark This option specifies the landmark detection type.

typedef NS_OPTIONS ( NSInteger  ,
GMVDetectorFaceClassification   
)

GMVDetectorFaceClassification This option specifies the classification type.

typedef NS_OPTIONS ( NSInteger  ,
GMVDetectorBarcodeFormat   
)

GMVDetectorBarcodeFormat This option specifies the barcode formats that the library should detect.