DSCharacterResult
The DSCharacterResult class represents the result of a character recognition process. It contains the characters recognized (high, medium, and low confidence), their respective confidences, and the location of the character in a quadrilateral shape.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@interface DSCharacterResult : NSObjectclass CharacterResult: NSObject
Properties & Methods
| Property | Type | Description |
|---|---|---|
characterH |
unichar | The character with high confidence. |
characterM |
unichar | The character with medium confidence. |
characterL |
unichar | The character with low confidence. |
location |
DSQuadrilateral * | The location of the character in a quadrilateral shape. |
characterHConfidence |
NSInteger | The confidence of the character with high confidence. |
characterMConfidence |
NSInteger | The confidence of the character with medium confidence. |
characterLConfidence |
NSInteger | The confidence of the character with low confidence. |
| Methods | Description |
|---|---|
init |
Initializes a new instance of the DSCharacterResult class. |
initWithCharacterH |
Initializes a new instance of the DSCharacterResult class. |
characterH
The character with high confidence.
- Objective-C
- Swift
@property (nonatomic, assign) unichar characterH;var characterH: unichar { get }
characterM
The character with medium confidence.
- Objective-C
- Swift
@property (nonatomic, assign) unichar characterM;var characterM: unichar { get }
characterL
The character with low confidence.
- Objective-C
- Swift
@property (nonatomic, assign) unichar characterL;var characterL: unichar { get }
location
The location of the character in a quadrilateral shape.
- Objective-C
- Swift
@property (nonatomic, nullable) DSQuadrilateral * location;var location: Quadrilateral? { get }
characterHConfidence
The confidence of the character with high confidence.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger characterHConfidence;var characterHConfidence: Int { get }
characterMConfidence
The confidence of the character with medium confidence.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger characterMConfidence;var characterMConfidence: Int { get }
characterLConfidence
The confidence of the character with low confidence.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger characterLConfidence;var characterLConfidence: Int { get }
init
- Objective-C
- Swift
- (instancetype)init;init()
initWithCharacterH
- Objective-C
- Swift
- (instancetype)initWithCharacterH:(unichar)characterH characterM:(unichar)characterM characterL:(unichar)characterL characterHConfidence:(DSQuadrilateral *)characterHConfidence characterMConfidence:(NSInteger)characterMConfidence characterLConfidence:(NSInteger)characterLConfidence location:(NSInteger)location;init(characterH: unichar, characterM: unichar, characterL: unichar, characterHConfidence: Int, characterMConfidence: Int, characterLConfidence: Int, location: Int)