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

Property Summary

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.

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 }
    

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