MLKTextLine
@interface MLKTextLine : NSObject
在图片中识别到的文本行,由一组元素组成。
-
识别出的文本行的字符串表示。
声明
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;
-
组成线条的文本元素数组。
声明
Objective-C
@property (nonatomic, readonly) NSArray<MLKTextElement *> *_Nonnull elements;
-
矩形,包含相对于默认坐标空间中的图片的文本行。
声明
Objective-C
@property (nonatomic, readonly) CGRect frame;
-
文本行中识别出的语言的数组。如果未识别出语言,则数组为空。
声明
Objective-C
@property (nonatomic, readonly) NSArray<MLKTextRecognizedLanguage *> *_Nonnull recognizedLanguages;
-
文本行的四个角点(按顺时针顺序),从左上角(相对于默认坐标空间中图片)开始。
NSValue
对象为CGPoint
。声明
Objective-C
@property (nonatomic, readonly) NSArray<NSValue *> *_Nonnull cornerPoints;
-
不可用。
声明
Objective-C
- (nonnull instancetype)init;