DSDecodedBarcodesResult Class
The DSDecodedBarcodesResult
class represents the result of a barcode reading process. It provides access to information about the decoded barcodes, the source image, and any errors that occurred during the barcode reading process.
Definition
Assembly: DynamsoftBarcodeReader.xcframework
- Objective-C
- Swift
@interface DSDecodedBarcodesResult : NSObject
class DecodedBarcodesResult : NSObject
Attributes
Attributes | Type | Description |
---|---|---|
originalImageHashId |
NSString * | The hash id of the source image. You can use this ID to get the source image via DSIntermediateResultManager class. |
originalImageTag |
DSImageTag * | The tag of the source image. |
items |
NSArray<DSBarcodeResultItem*> * | An array of DSBarcodeResultItems, which are the basic unit of the captured results. |
rotationTransformMatrix |
CGAffineTransform | Get the rotation transformation matrix of the original image relative to the rotated image. |
errorCode |
NSInteger | Get the error code of this result. |
errorMessage |
NSString * | Get the error message of this result. |
originalImageHashId
The hash id of the source image. You can use this ID to get the source image via DSIntermediateResultManager
class.
- Objective-C
- Swift
@property(nonatomic, copy, readonly) NSString *originalImageHashId;
var originalImageHashId: String? { get }
originalImageTag
Returns the ImageTag
of the source image. The image tag contains info about the image such as the image ID and the image capture distance mode.
- Objective-C
- Swift
@property(nonatomic, readonly) DSImageTag *originalImageTag;
var originalImageTag: DSImageTag? { get }
items
An array of DSBarcodeResultItem, which is the basic unit of the barcode captured results.
- Objective-C
- Swift
@property(nonatomic, nullable, readonly) NSArray<DSBarcodeResultItem *> *items;
var items: [DSBarcodeResultItem]? { get }
rotationTransformMatrix
Get the rotation transformation matrix of the original image relative to the rotated image.
- Objective-C
- Swift
@property(nonatomic, assign, readonly) CGAffineTransform rotationTransformMatrix;
var rotationTransformMatrix: CGAffineTransform { get }
errorCode
Returns the error code of this result should something go wrong. A DecodedBarcodesResult
will carry error information when the license module is missing or the process times out.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSInteger errorCode;
var errorCode: Int { get }
errorMessage
Returns the error message of this result should something go wrong. A DecodedBarcodesResult
will carry error information when the license module is missing or the process times out.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSString * errorMessage;
var errorMessage: String? { get }