Class iLocalizationResult
The iLocalizationResult extends the class iTextResult and iIntermediateResult. It stores the barcode localization data.
- Objective-C
- Swift
@interface iLocalizationResult : NSObjectclass 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
@property (nonatomic, assign) EnumTerminatePhase terminatePhasevar terminatePhase: EnumTerminatePhase { get set }
barcodeFormat
Barcode type in BarcodeFormat group 1.
- Objective-C
- Swift
@property (nonatomic, assign) EnumBarcodeFormat barcodeFormatvar barcodeFormat: EnumBarcodeFormat { get set }
barcodeFormat_2
Barcode type in BarcodeFormat group 2.
- Objective-C
- Swift
@property (nonatomic, assign) EnumBarcodeFormat2 barcodeFormat_2var barcodeFormat_2: EnumBarcodeFormat2 { get set }
barcodeFormatString
Barcode type as string.
- Objective-C
- Swift
@property (nonatomic, nullable) NSString* barcodeFormatStringvar barcodeFormatString: String? { get set }
resultPoints
The resultPoints are Four CGPoints that localize the result area.
- Objective-C
- Swift
@property (nonatomic, nullable) NSArray* resultPointsvar resultPoints: [Any]? { get set }
angle
The angle of a barcode. Values range is from 0 to 360.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger anglevar angle: Int { get set }
moduleSize
The barcode module size (the minimum bar width in pixel).
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger moduleSizevar moduleSize: Int { get set }
pageNumber
The page number the barcode located in. The index is 0-based.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger pageNumbervar pageNumber: Int { get set }
regionName
The region name the barcode located in.
- Objective-C
- Swift
@property (nonatomic, nullable) NSString* regionNamevar regionName: String? { get set }
documentName
The document name.
- Objective-C
- Swift
@property (nonatomic, nullable) NSString* documentNamevar documentName: String? { get set }
resultCoordinateType
The coordinate type.
- Objective-C
- Swift
@property (nonatomic, assign) EnumResultCoordinateType resultCoordinateTypevar resultCoordinateType: EnumResultCoordinateType { get set }
accompanyingTextBytes
The accompanying text content in a byte array.
- Objective-C
- Swift
@property (nonatomic, nullable) NSData* accompanyingTextBytesvar accompanyingTextBytes: Data? { get set }
confidence
The confidence of the localization result.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger confidencevar 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
@property (nonatomic) CGAffineTransform transformationMatrix;var transformationMatrix: CGAffineTransform { get set }