Thanks for downloading Dynamsoft Label Recognizer Package!
Your download will start shortly. If your download does not begin, click here to retry.
DSRecognizedTextLinesResult
The DSRecognizedTextLinesResult
class represents the overall result(s) of a text recognition process. It provides access to information about the recognized text lines, the original image, and any errors that occurred during the recognition process.
Definition
Assembly: DynamsoftLabelRecognizer.xcframework
- Objective-C
- Swift
@interface DSRecognizedTextLinesResult : NSObject
class RecognizedTextLinesResult: NSObject
Property Summary
Property | Type | Description |
---|---|---|
originalImageHashId |
NSString | The hash ID of the original image. |
originalImageTag |
DSImageTag | The tag of the original image stores in a DSImageTag object. |
items |
NSArray<DSTextLineResultItem> | All the text line result items that recognized from the image in an array of DSTextLineResultItem . |
rotationTransformMatrix |
CGAffineTransform | The rotation transformation matrix of the original image relative to the rotated image. |
errorCode |
NSInteger | The error code of the recognition result, if an error occurred. |
errorMessage |
NSString | The error message of the recognition result, if an error occurred. |
originalImageHashId
The hash ID of the original image.
- Objective-C
- Swift
@property (nonatomic, nullable, readonly) NSString* originalImageHashId;
var originalImageHashId: String? { get }
originalImageTag
The tag of the original image stores in a DSImageTag
object.
- Objective-C
- Swift
@property (nonatomic, nullable, readonly) DSImageTag* originalImageTag;
var originalImageTag: ImageTag? { get }
items
All the text line result items that recognized from the image in an array of DSTextLineResultItem
.
- Objective-C
- Swift
@property (nonatomic, nullable, readonly) NSArray<DSTextLineResultItem*>* items;
var items: [TextLineResultItem]? { get }
rotationTransformMatrix
Get the rotation transformation matrix of the original image relative to the rotated image.
- Objective-C
- Swift
@property (nonatomic, nullable, assign, readonly) CGAffineTransform rotationTransformMatrix;
var rotationTransformMatrix: CGAffineTransform { get }
errorCode
Returns the error code of this result should something go wrong.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSInteger errorCode;
var errorCode: Int { get }
errorMessage
Returns the error message of this result should something go wrong.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSString * errorMessage;
var errorMessage: String { get }