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: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@interface DSTextLineResultItem: DSCapturedResultItemclass 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
@property (nonatomic, readonly, copy) NSString* text;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
@property (nonatomic, readonly, strong) DSQuadrilateral* location;var location: Quadrilateral? { get }
confidence
Returns the confidence of the individual text line recognition result.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSInteger confidence;var confidence: Int { get }
characterResults
Returns all the characters in the text line. Each character is represented by a CharacterResult object.
- Objective-C
- Swift
@property (nonatomic, readonly, copy, nullable) NSArray<DSCharacterResult*>* charResult;var charResult: [CharacterResult]? { get }
specificationName
The name of the TextLineSpecification object that generated this TextLineResultItem.
- Objective-C
- Swift
@property (nonatomic, readonly, assign) NSString* specificationName;var specificationName: String { get }
rawText
The recognized raw text, excluding any concatenation separators.
- Objective-C
- Swift
@property (nonatomic, readonly, copy) NSString* rawText;var rawText: String? { get }