LocalizationResult
The LocalizationResult
extends the class TextResult
and IntermediateResult
. It stores the barcode localization data.
class com.dynamsoft.dbr.LocalizationResult;
Attribute | Type | Descriptions |
---|---|---|
terminatePhase |
int | The terminate phase of localization result. |
barcodeFormat |
int | Barcode type in BarcodeFormat group 1. |
barcodeFormat_2 |
int | Barcode type in BarcodeFormat group 2. |
barcodeFormatString |
String | Barcode type as string. |
resultPoints |
Point [] |
The vertices coordinates information of the barcode region. |
angle |
int | The angle of a barcode. Values range is from 0 to 360. |
moduleSize |
int | The barcode module size (the minimum bar width in pixel). |
pageNumber |
int | The page number the barcode located in. The index is 0-based. |
regionName |
String | The region name the barcode located in. |
documentName |
String | The document name. |
resultCoordinateType |
int | The coordinate type. |
accompanyingTextBytes |
byte[] | The accompanying text content in a byte array. |
confidence |
int | The confidence of the localization result. |
transformationMatrix |
android.graphics.Matrix | 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.
int terminatePhase
Value Range
Any one of the EnumTerminatePhase
Enumeration items
Default Value
TP_BARCODE_RECOGNIZED
Remarks
When the recognition result is not desired, you can set this parameter can be set to skip certain processing stages.
See Also
barcodeFormat
Barcode type in BarcodeFormat group 1.
int barcodeFormat
Value Range
One of the EnumBarcodeFormat
Enumeration value.
See Also
EnumBarcodeFormat
, EnumBarcodeFormat_2
barcodeFormat_2
Barcode type in BarcodeFormat group 2.
int barcodeFormat_2
Value Range
One of the EnumBarcodeFormat_2
Enumeration items
See Also
EnumBarcodeFormat
, EnumBarcodeFormat_2
barcodeFormatString
Barcode type as string.
String barcodeFormatString
Value Range
One of the barcode type in EnumBarcodeFormat
or EnumBarcodeFormat_2
.
See Also
EnumBarcodeFormat
, EnumBarcodeFormat_2
resultPoints
The vertices coordinates information of the barcode region.
Point[] resultPoints
Related Class
Class Point
.
angle
The angle of a barcode. Values range is from 0 to 360.
int angle
moduleSize
The barcode module size (the minimum bar width in pixel).
int moduleSize
pageNumber
The page number the barcode located in. The index is 0-based. Only available when decoding files.
int pageNumber
regionName
The region name the barcode located in.
String regionName
documentName
The document name. Only available when decoding files.
String documentName
resultCoordinateType
The coordinate type.
int resultCoordinateType
accompanyingTextBytes
The accompanying text content in a byte array.
byte[] accompanyingTextBytes
confidence
The confidence of the localization result.
int confidence
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.
android.graphics.Matrix transformationMatrix