Dev Center
Swift
Objective-C
Table of contents

Class iLocalizationResult

The iLocalizationResult extends the class iTextResult and iIntermediateResult. It stores the barcode localization data.

  • Objective-C
  • Swift
  1. @interface iLocalizationResult : NSObject
    
  2. class iLocalizationResult : NSObject
    
Attribute Type Description
terminatePhase The terminate phase of localization result.  
barcodeFormat Barcode type in BarcodeFormat group 1.  
barcodeFormat_2 Barcode type in BarcodeFormat group 2.  
barcodeFormatString Barcode type as string.  
resultPoints The vertices coordinates information of the barcode region.  
angle The angle of a barcode. Values range is from 0 to 360.  
moduleSize The barcode module size (the minimum bar width in pixel).  
pageNumber The page number the barcode located in. The index is 0-based.  
regionName The region name the barcode located in.  
documentName The document name.  
resultCoordinateType The coordinate type.  
accompanyingTextBytes The accompanying text content in a byte array.  
confidence The confidence of the localization result.  
transformationMatrix A transformation matrix that can transform the coordinates of the resultPoints. The transformationMatrix is calculated from the orientation information of the image.  

terminatePhase

The terminate phase of localization result.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) EnumTerminatePhase terminatePhase
    
  2. var terminatePhase: EnumTerminatePhase { get set }
    

barcodeFormat

Barcode type in BarcodeFormat group 1.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) EnumBarcodeFormat barcodeFormat
    
  2. var barcodeFormat: EnumBarcodeFormat { get set }
    

barcodeFormat_2

Barcode type in BarcodeFormat group 2.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) EnumBarcodeFormat2 barcodeFormat_2
    
  2. var barcodeFormat_2: EnumBarcodeFormat2 { get set }
    

barcodeFormatString

Barcode type as string.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable) NSString* barcodeFormatString
    
  2. var barcodeFormatString: String? { get set }
    

resultPoints

The resultPoints are Four CGPoints that localize the result area.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable) NSArray* resultPoints
    
  2. var resultPoints: [Any]? { get set }
    

angle

The angle of a barcode. Values range is from 0 to 360.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger angle
    
  2. var angle: Int { get set }
    

moduleSize

The barcode module size (the minimum bar width in pixel).

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger moduleSize
    
  2. var moduleSize: Int { get set }
    

pageNumber

The page number the barcode located in. The index is 0-based.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger pageNumber
    
  2. var pageNumber: Int { get set }
    

regionName

The region name the barcode located in.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable) NSString* regionName
    
  2. var regionName: String? { get set }
    

documentName

The document name.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable) NSString* documentName
    
  2. var documentName: String? { get set }
    

resultCoordinateType

The coordinate type.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) EnumResultCoordinateType resultCoordinateType
    
  2. var resultCoordinateType: EnumResultCoordinateType { get set }
    

accompanyingTextBytes

The accompanying text content in a byte array.

  • Objective-C
  • Swift
  1. @property (nonatomic, nullable) NSData* accompanyingTextBytes
    
  2. var accompanyingTextBytes: Data? { get set }
    

confidence

The confidence of the localization result.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger confidence
    
  2. var confidence: Int { get set }
    

transformationMatrix

A transformation matrix that can transform the coordinates of the resultPoints. The transformationMatrix is calculated from the orientation information of the image.

The images that captured by mobile cameras are always 90 degree counterclockwise rotated from what you see. The coordinates of resultPoints are based on the image coordinate system. You can use the transformationMatrix to rotate the resultPoints from the image coordinate system to the real coordinate system.

  • Objective-C
  • Swift
  1. @property (nonatomic) CGAffineTransform transformationMatrix;
    
  2. var transformationMatrix: CGAffineTransform { get set }
    

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 10.x
    • Version 10.2.1100
    • Version 10.2.1101
    • Version 10.2.10
    • Version 10.0.21
    • Version 10.0.20
    • Version 10.2.10
    • Version 10.0.21
    • Version 10.0.20
  • Version 9.x
    • Version 9.6.40
    • Version 9.6.20
    • Version 9.6.11
    • Version 9.6.10
    • Version 9.6.0
    • Version 9.4.0
    • Version 9.2.11
    • Version 9.2.10
    • Version 9.0.2
    • Version 9.0.1
    • Version 9.0.0
    • Version 9.6.40
    • Version 9.6.20
    • Version 9.6.10
    • Version 9.6.0
    • Version 9.4.0
    • Version 9.2.13
    • Version 9.2.10
    • Version 9.0.2
    • Version 9.0.1
    • Version 9.0.0
  • Version 8.x
    • Version 8.9.3
    • Version 8.9.1
    • Version 8.9.0
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.1
    • Version 8.2.0
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
    • Version 8.9.3
    • Version 8.9.1
    • Version 8.9.0
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.1
    • Version 8.2.0
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
  • Version 7.x
    • Version 7.6.0
    • Version 7.5.0
    • Version 7.6.0
    • Version 7.5.0
  • Documentation Homepage
Change +