Resource Base
Table of contents

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
  1. @interface DSParsedResult : NSObject
    
  2. 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
  1. @property (nonatomic, nullable, readonly) NSString* originalImageHashId;
    
  2. 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
  1. @property (nonatomic, nullable, readonly) DSImageTag* originalImageTag;
    
  2. var originalImageTag: ImageTag? { get }
    

Return value

Returns a pointer to a CImageTag object representing the tag of the source image.

See Also

ImageTag

items

Gets the parsed result item at the specified index.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable, readonly) NSArray<DSParsedResultItem*>* items;
    
  2. 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
  1. @property (nonatomic, assign, readonly) NSInteger errorCode;
    
  2. 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
  1. @property (nonatomic, assign, readonly) NSString * errorMessage;
    
  2. var errorMessage: String? { get }
    

Return value

The error message in a string.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.0.21
      • Version 2.0.20
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support