Dev Center
Swift
Objective-C
Table of contents

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

EnumTerminatePhase

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

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (10.2.10)
  • Version 10.x
    • 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.13
    • Version 9.2.11
    • 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 7.x
    • Version 7.6.0
    • Version 7.5.0
Change +