AI-generated Key Takeaways
-
MLKText represents recognized text within an image and provides access to the text string and its structure.
-
The
textproperty holds the recognized text string, which will be empty if no text was recognized. -
Recognized text is organized into blocks, accessible through the
blocksproperty as an array ofMLKTextBlockobjects. -
You cannot directly initialize an
MLKTextobject using theinitmethod.
MLKText
@interface MLKText : NSObjectRecognized text in an image.
-
The recognized text. The string is empty if no text was recognized.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text; -
An array of blocks recognized in the text.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<MLKTextBlock *> *_Nonnull blocks; -
Unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;