FIRVisionCloudLandmark.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #import <CoreGraphics/CoreGraphics.h>
  2. #import <Foundation/Foundation.h>
  3. @class FIRVisionLatitudeLongitude;
  4. NS_ASSUME_NONNULL_BEGIN
  5. /**
  6. * Set of landmark properties identified by a vision cloud detector.
  7. */
  8. NS_SWIFT_NAME(VisionCloudLandmark)
  9. @interface FIRVisionCloudLandmark : NSObject
  10. /**
  11. * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API]
  12. * (https://developers.google.com/knowledge-graph/).
  13. */
  14. @property(nonatomic, copy, readonly, nullable) NSString *entityId;
  15. /**
  16. * Textual description of the landmark.
  17. */
  18. @property(nonatomic, copy, readonly, nullable) NSString *landmark;
  19. /**
  20. * Overall confidence of the result. The value is float, in range [0, 1].
  21. */
  22. @property(nonatomic, readonly, nullable) NSNumber *confidence;
  23. /**
  24. * A rectangle image region to which this landmark belongs to (in the view coordinate system).
  25. */
  26. @property(nonatomic, readonly) CGRect frame;
  27. /**
  28. * The location information for the detected landmark. Multiple LocationInfo elements can be present
  29. * because one location may indicate the location of the scene in the image, and another location
  30. * may indicate the location of the place where the image was taken.
  31. */
  32. @property(nonatomic, readonly, nullable) NSArray<FIRVisionLatitudeLongitude *> *locations;
  33. /**
  34. * Unavailable.
  35. */
  36. - (instancetype)init NS_UNAVAILABLE;
  37. @end
  38. NS_ASSUME_NONNULL_END