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