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

#import <Foundation/Foundation.h>
#import <DynamsoftCaptureVisionBundle/DSDecodedBarcodeElement.h>

@class DSImageData;

typedef NS_ENUM(NSInteger, DSExtendedBarcodeResultType) {
    
    DSExtendedBarcodeResultTypeStandardResult,
    
    DSExtendedBarcodeResultTypeCandidateResult,
    
    DSExtendedBarcodeResultTypePartialResult
} NS_SWIFT_NAME(ExtendedBarcodeResultType);

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(ExtendedBarcodeResult)
@interface DSExtendedBarcodeResult : DSDecodedBarcodeElement

- (NSInteger)getDeformation;

- (NSInteger)getClarity;

- (nullable DSImageData *)getSamplingImage;

- (DSExtendedBarcodeResultType)getExtendedBarcodeResultType;

+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
