/*
 * 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/DSBarcodeFormat.h>

@class DSImageData;
@class DSQuadrilateral;

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(DeformationResistedBarcode)
@interface DSDeformationResistedBarcode : NSObject

/**
 * The image of the deformation resisted barcode.
 */
@property (nonatomic, nullable) DSImageData *imageData;

/**
 * The location of the deformation resisted barcode.
 */
@property (nonatomic, strong) DSQuadrilateral *location;
/**
 * The barcode format of the deformation resisted barcode.
 */
@property (nonatomic, assign) DSBarcodeFormat format;

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

- (instancetype)initWithLocation:(DSQuadrilateral *)location
                       imageData:(DSImageData *)imageData
                          format:(DSBarcodeFormat)format;

@end

NS_ASSUME_NONNULL_END
