FIRVisionCloudBlock


@interface FIRVisionCloudBlock : NSObject

A block consisting of VisionCloudParagraph objects.

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

    Declaration

    Objective-C

    @property (readonly, nonatomic) FIRVisionCloudBlockType type;
  • An array of paragraphs in the block if the type is VisionCloudBlockTypeText.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSArray<FIRVisionCloudParagraph *> *paragraphs;
  • A rectangle image region to which this landmark belongs to (in the view coordinate system).

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect frame;
  • Confidence of the OCR results on the block. The value is a float, in range [0, 1].

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSNumber *confidence;
  • Additional information detected for the block.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        FIRVisionCloudTextProperty *textProperty;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;