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.

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.

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 }
    

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (3.2.30)
  • Version 3.x
    • Version 3.0.20
  • Version 2.x
    • Version 2.2.20
    • Version 2.0.0
  • Version 1.x
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support