DSParsedResult Class
DSParsedResult
class stores all parsed result items that are obtained from a single image. It carries additional information such as the original image data or error messages.
Definition
Assembly: DynamsoftCodeParser.xcframework
- Objective-C
- Swift
@interface DSParsedResult : NSObject
class ParsedResult : NSObject
Property Summary
Property | Type | Description |
---|---|---|
originalImageHashId |
NSString * | Gets the hash ID of the source image. |
originalImageTag |
DSImageTag * | Gets the tag of the source image. |
items |
NSArray<DSParsedResultItem> ** | Gets the parsed result item at the specified index. |
errorCode |
NSInteger | Gets the error code of the parsed result, if an error occurred. |
errorString |
NSString * | Gets the error message of the parsed result, if an error occurred. |
Method Detail
originalImageHashId
Gets the hash ID of the source image.
- Objective-C
- Swift
@property (nonatomic, nullable, readonly) NSString* originalImageHashId;
var originalImageHashId: String? { get }
Return value
Returns a pointer to a null-terminated string containing the hash ID of the source image.
originalImageTag
Gets the tag of the source image.
- Objective-C
- Swift
@property (nonatomic, nullable, readonly) DSImageTag* originalImageTag;
var originalImageTag: ImageTag? { get }
Return value
Returns a pointer to a CImageTag object representing the tag of the source image.
See Also
items
Gets the parsed result item at the specified index.
- Objective-C
- Swift
@property (nonatomic, nullable, readonly) NSArray<DSParsedResultItem*>* items;
var items: [ParsedResultItem]? { get }
Return value
Returns an array of ParsedResultItem
.
errorCode
Gets the error code of the parsed result, if an error occurred.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSInteger errorCode;
var errorCode: Int { get }
Return value
Returns the error code of the parsed result, or 0 if no error occurred.
errorMessage
Gets the error message of the parsed result, if an error occurred.
- Objective-C
- Swift
@property (nonatomic, assign, readonly) NSString * errorMessage;
var errorMessage: String? { get }
Return value
The error message in a string.