Documentation
Table of contents

DSTextLineResultItem

The DSTextLineResultItem class represents a single text line result item recognized by the library. It is derived from DSCapturedResultItem and is one of the base units of DSRecognizedTextLinesResult.

Definition

Assembly: DynamsoftLabelRecognizer.xcframework

  • Objective-C
  • Swift
  1. @interface DSTextLineResultItem: DSCapturedResultItem
    
  2. class TextLineResultItem: CapturedResultItem
    

Inheritance: DSCapturedResultItem -> DSTextLineResultItem

Properties

Property Type Description
text NSString * The text content of the text line.
location DSQuadrilateral * The location of the text line in the form of a quadrilateral.
confidence NSInteger The confidence of the text line recognition result.
characterResults NSArray<DSCharacterResult *> * All the characters in the text line. Each character is represented by a CharacterResult object.
specificationName NSString * the name of the TextLineSpecification object that generated this TextLineResultItem.
rawText NSString * The recognized raw text, excluding any concatenation separators.

text

Returns the text content of the individual text line.

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

location

It is used to get the location of the text line in the form of a DSQuadrilateral.

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

confidence

Returns the confidence of the individual text line recognition result.

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

characterResults

Returns all the characters in the text line. Each character is represented by a CharacterResult object.

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

specificationName

The name of the TextLineSpecification object that generated this TextLineResultItem.

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

rawText

The recognized raw text, excluding any concatenation separators.

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

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: