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.

GMVFeature Class

GMVFeature Class Reference

Overview

Generic feature returned by a GMVDetector.

Inherits NSObject.

Inherited by GMVBarcodeFeature, GMVFaceFeature, GMVTextBlockFeature, GMVTextElementFeature, and GMVTextLineFeature.

Public Attributes

NSString *const GMVFeatureTypeFace
 
NSString *const GMVFeatureTypeBarcode
 
NSString *const GMVFeatureTypeTextBlock
 
NSString *const GMVFeatureTypeTextLine
 
NSString *const GMVFeatureTypeTextElement
 

Property Summary

CGRect bounds
 The rectangle that holds the discovered feature relative to the detected image in the view coordinate system. More...
 
NSString * type
 The type of feature that was discovered. More...
 
BOOL hasTrackingID
 Indicates whether the object has a tracking ID. More...
 
NSUInteger trackingID
 The tracking identifier of the feature. More...
 

Member Data Documentation

- (NSString* const) GMVFeatureTypeFace

The discovered feature is a person’s face. Use the GMVFaceFeature class to get more information about the detected feature.

- (NSString* const) GMVFeatureTypeBarcode

The discovered feature is a barcode. Use the GMVBarcodeFeature class to get more information about the detected feature.

- (NSString* const) GMVFeatureTypeTextBlock

The discovered feature is a text block. Use the GMVTextBlockFeature class to get more information about the detected feature.

- (NSString* const) GMVFeatureTypeTextLine

The discovered feature is a text line. Use the GMVTextLineFeature class to get more information about the detected feature.

- (NSString* const) GMVFeatureTypeTextElement

The discovered feature is a text element. Use the GMVTextElementFeature class to get more information about the detected feature.

Property Detail

- (CGRect) bounds
readatomicassign

The rectangle that holds the discovered feature relative to the detected image in the view coordinate system.

- (NSString*) type
readatomiccopy

The type of feature that was discovered.

- (BOOL) hasTrackingID
readatomicassign

Indicates whether the object has a tracking ID.

- (NSUInteger) trackingID
readatomicassign

The tracking identifier of the feature.

This ID is not associated with a specific feature but identifies the same face among consecutive video frames.