FIRVisionDocumentTextSymbol.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #import <CoreGraphics/CoreGraphics.h>
  2. #import <Foundation/Foundation.h>
  3. @class FIRVisionTextRecognizedBreak;
  4. @class FIRVisionTextRecognizedLanguage;
  5. NS_ASSUME_NONNULL_BEGIN
  6. /**
  7. * A document text symbol recognized in an image.
  8. */
  9. NS_SWIFT_NAME(VisionDocumentTextSymbol)
  10. @interface FIRVisionDocumentTextSymbol : NSObject
  11. /**
  12. * String representation of the document text symbol that was recognized.
  13. */
  14. @property(nonatomic, readonly) NSString *text;
  15. /**
  16. * The rectangle that contains the document text symbol relative to the image in the default
  17. * coordinate space.
  18. */
  19. @property(nonatomic, readonly) CGRect frame;
  20. /**
  21. * The confidence of the recognized document text symbol.
  22. */
  23. @property(nonatomic, readonly) NSNumber *confidence;
  24. /**
  25. * An array of recognized languages in the document text symbol. If no languages are recognized, the
  26. * array is empty.
  27. */
  28. @property(nonatomic, readonly) NSArray<FIRVisionTextRecognizedLanguage *> *recognizedLanguages;
  29. /**
  30. * The recognized start or end of the document text symbol.
  31. */
  32. @property(nonatomic, readonly, nullable) FIRVisionTextRecognizedBreak *recognizedBreak;
  33. /**
  34. * Unavailable.
  35. */
  36. - (instancetype)init NS_UNAVAILABLE;
  37. @end
  38. NS_ASSUME_NONNULL_END