/*
 * This is one of the header files of Dynamsoft Capture Vision SDK - Label Recognizer module.
 *
 * Copyright © Dynamsoft Corporation.  All rights reserved.
 */

#import <Foundation/Foundation.h>

@class DSQuadrilateral;

NS_ASSUME_NONNULL_BEGIN

/**
 * 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.
 */
NS_SWIFT_NAME(CharacterResult)
@interface DSCharacterResult : NSObject

/**The recognized character with highest confidence.*/
@property (nonatomic, assign) unichar characterH;

/**The recognized character with middle confidence.*/
@property (nonatomic, assign) unichar characterM;

/**The recognized character with lowest confidence.*/
@property (nonatomic, assign) unichar characterL;

/**The location of current character.*/
@property (nonatomic, strong, nullable) DSQuadrilateral *location;

/**The recognized character with highest confidence.*/
@property (nonatomic, assign) NSInteger characterHConfidence;

/**The recognized character with middle confidence.*/
@property (nonatomic, assign) NSInteger characterMConfidence;

/**The recognized character with lowest confidence.*/
@property (nonatomic, assign) NSInteger characterLConfidence;

@end

NS_ASSUME_NONNULL_END
