VisionCloudBlock

class VisionCloudBlock : NSObject

A block consisting of VisionCloudParagraph objects.

  • The detected block type (text, image, etc.) for the block.

    Declaration

    Swift

    var type: VisionCloudBlockType { get }
  • An array of paragraphs in the block if the type is VisionCloudBlockTypeText.

    Declaration

    Swift

    var paragraphs: [FIRVisionCloudParagraph]? { get }
  • A rectangle image region to which this landmark belongs to (in the view coordinate system).

    Declaration

    Swift

    var frame: CGRect { get }
  • Confidence of the OCR results on the block. The value is a float, in range [0, 1].

    Declaration

    Swift

    var confidence: NSNumber? { get }
  • Additional information detected for the block.

    Declaration

    Swift

    var textProperty: FIRVisionCloudTextProperty? { get }
  • Unavailable.