FIRVisionText.h 511 B

123456789101112131415161718192021222324252627282930
  1. #import <Foundation/Foundation.h>
  2. @class FIRVisionTextBlock;
  3. NS_ASSUME_NONNULL_BEGIN
  4. /**
  5. * Recognized text in an image.
  6. */
  7. NS_SWIFT_NAME(VisionText)
  8. @interface FIRVisionText : NSObject
  9. /**
  10. * String representation of the recognized text.
  11. */
  12. @property(nonatomic, readonly) NSString *text;
  13. /**
  14. * An array of blocks recognized in the text.
  15. */
  16. @property(nonatomic, readonly) NSArray<FIRVisionTextBlock *> *blocks;
  17. /**
  18. * Unavailable.
  19. */
  20. - (instancetype)init NS_UNAVAILABLE;
  21. @end
  22. NS_ASSUME_NONNULL_END