FirebaseMLVision Framework Reference

VisionDocumentTextBlock

class VisionDocumentTextBlock : NSObject

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

  • The detected block type.

    Declaration

    Swift

    var type: VisionDocumentTextBlockType { get }
  • String representation of the document text block that was recognized.

    Declaration

    Swift

    var text: String { get }
  • An array of paragraphs in the block if the type is VisionDocumentTextBlockType.text. Otherwise, the array is empty.

    Declaration

    Swift

    var paragraphs: [FIRVisionDocumentTextParagraph] { get }
  • The rectangle that contains the document text block relative to the image in the default coordinate space.

    Declaration

    Swift

    var frame: CGRect { get }
  • The confidence of the recognized document text block.

    Declaration

    Swift

    var confidence: NSNumber { get }
  • An array of recognized languages in the document text block. If no languages are recognized, the array is empty.

    Declaration

    Swift

    var recognizedLanguages: [FIRVisionTextRecognizedLanguage] { get }
  • The recognized start or end of the document text block.

    Declaration

    Swift

    var recognizedBreak: FIRVisionTextRecognizedBreak? { get }
  • Unavailable.