Documentation
Table of contents

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
  1. @interface DSRecognizedTextLinesResult : NSObject
    
  2. 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
  1. @property (nonatomic, nullable, readonly) NSString* originalImageHashId;
    
  2. var originalImageHashId: String? { get }
    

originalImageTag

The tag of the original image stores in a DSImageTag object.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, readonly) DSImageTag* originalImageTag;
    
  2. var originalImageTag: ImageTag? { get }
    

items

All the text line result items that recognized from the image in an array of DSTextLineResultItem.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, readonly) NSArray<DSTextLineResultItem*>* items;
    
  2. var items: [TextLineResultItem]? { get }
    

rotationTransformMatrix

Get the rotation transformation matrix of the original image relative to the rotated image.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, assign, readonly) CGAffineTransform rotationTransformMatrix;
    
  2. var rotationTransformMatrix: CGAffineTransform { get }
    

errorCode

Returns the error code of this result should something go wrong.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) NSInteger errorCode;
    
  2. var errorCode: Int { get }
    

errorMessage

Returns the error message of this result should something go wrong.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) NSString * errorMessage;
    
  2. var errorMessage: String { get }
    

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.2.20
    • Version 2.0.0
    • Version 1.2.1
    • Version 1.2
    • Version 1.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support