FIRVisionDocumentTextBlock


@interface FIRVisionDocumentTextBlock : NSObject

A document text block recognized in an image that consists of an array of paragraphs.

  • The detected block type.

    Declaration

    Objective-C

    @property (readonly, nonatomic) FIRVisionDocumentTextBlockType type;
  • String representation of the document text block that was recognized.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull text;
  • An array of paragraphs in the block if the type is VisionDocumentTextBlockType.text. Otherwise, the array is empty.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSArray<FIRVisionDocumentTextParagraph *> *_Nonnull paragraphs;
  • The rectangle that contains the document text block relative to the image in the default coordinate space.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect frame;
  • The confidence of the recognized document text block.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull confidence;
  • An array of recognized languages in the document text block. If no languages are recognized, the array is empty.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSArray<FIRVisionTextRecognizedLanguage *> *_Nonnull recognizedLanguages;
  • The recognized start or end of the document text block.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        FIRVisionTextRecognizedBreak *recognizedBreak;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;