Dev Center
Swift
Objective-C
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

Intermediate Result Classes

IntermediateResult

IntermediateResult is the class that stores the intermediate result data.

class com.dynamsoft.dbr.IntermediateResult;
Attribute Type Descriptions
results Object[] One of the following types: Array of Contour, Array of ImageData, Array of LineSegment, Array of LocalizationResult, Array of RegionOfInterest.
dataType int The data type of the intermediate result.
resultType int Intermediate result type.
barcodeComplementMode int The EnumBarcodeComplementMode used when generating the current intermediate result.
bcmIndex int The array index of current used EnumBarcodeComplementMode in the barcodeComplementModes setting.
deformationResistingMode int The EnumDeformationResistingMode used when generating the current intermediate result.
drmIndex int The array index of current used EnumDeformationResistingMode in the deformationResistingModes setting.
dpmCodeReadingMode int The EnumDPMCodeReadingMode used when generating the current intermediate result.
dpmcrmIndex int The array index of current used EnumDPMCodeReadingMode in the dpmCodeReadingModes setting.
rotationMatrix double[] The rotation matrix.
textFilterMode int The EnumTextFilterMode used when generating the current intermediate result.
tfmIndex int The array index of current used EnumTextFilterMode in the textFilterModes setting.
localizationMode int The EnumLocalizationMode used when generating the current intermediate result.
lmIndex int The array index of current used EnumLocalizationMode in the localizationModes setting.
binarizationMode int The EnumBinarizationMode used when generating the current intermediate result.
bmIndex int The array index of current used EnumBinarizationMode in the binarizationModes setting.
imagePreprocessingMode int The EnumImagePreprocessingMode used when generating the current intermediate result.
ipmIndex int The array index of current used EnumImagePreprocessingMode in imagePreprocessingModes setting.
roiId int The ID of the ROI (Region Of Interest) generated by the SDK. -1 means the original image.
regionPredetectionMode int The EnumRegionPredetectionMode used when generating the current intermediate result.
rpmIndex int The array index of current used EnumRegionPredetectionMode in the regionPredetectionModes setting.
grayscaleTransformationMode int The EnumGrayscaleTransformationMode used when generating the current intermediate result.
gtmIndex int The array index of current used EnumGrayscaleTransformationMode in the grayscaleTransformationModes setting.
colourConversionMode int The EnumColourConversionMode used when generating the current intermediate result.
cicmIndex int The array index of current used EnumColourConversionMode in the colourConversionModes setting.
colourClusteringMode int The EnumColourClusteringMode used when generating the current intermediate result.
ccmIndex int The array index of current used EnumColourClusteringMode in the colourClusteringModes setting.
scaleDownRatio int The scale down ratio.
frameId int The ID of the operated frame.
rpmColourArgumentIndex int The index of the rpm colour argument.

Code Snippet

barcodeReader.initIntermediateResults(EnumIntermediateResultType.IRT_ORIGINAL_IMAGE);
IntermediateResult[] intermediateResults = barcodeReader.getIntermediateResults();

Contour

contour is one of the results type in IntermediateResult.

class com.dynamsoft.dbr.Contour;
Attribute Type Description
points Point[] The array of the points that surround the barcode area.

Code Snippet

Contour[] contours = (Contour[]) intermediateResults[i].results;

ImageData

ImageData is one of the results type in IntermediateResult.

class com.dynamsoft.dbr.ImageData;
Attribute Type Description
bytes byte[] The image data content in a byte array.
width int The width of the image in pixels.
height int The height of the image in pixels.
stride int The stride (or scan width) of the image.
format int The image pixel format used in the image byte array.

Code Snippet

ImageData[] imageData = (ImageData[]) intermediateResults[i].results;

LineSegment

LineSegment is one of the results type in IntermediateResult.

class com.dynamsoft.dbr.LineSegment;
Attribute Type Description
startPoint Point The start point of the line segment.
endPoint Point The end point of the line segment.
linesConfidenceCoefficients byte[] The confidence coefficients for lines.

Code Snippet

LineSegment[] lineSegment = (LineSegment[]) intermediateResults[i].results;

RegionOfInterest

RegionOfInterest is one of the results type in IntermediateResult.

class com.dynamsoft.dbr.RegionOfInterest;
Attribute Type Description
roiId int The ID generated by the SDK.
point Point The left top point of the region.
width int The width of the region.
height int The height of the region.

Code Snippet

RegionOfInterest[] regionOfInterest = (RegionOfInterest[]) intermediateResults[i].results;

LocalizationResult

View more in TextResult » LocalizationResult

class com.dynamsoft.dbr.LocalizationResult;

LocalizationResult can be the extension of class TextResult and class IntermediateResult. It stores the localization result information.

Attribute Type Description
terminatePhase int The terminate phase of localization result.
barcodeFormat int Barcode type in BarcodeFormat group 1.
barcodeFormatString String Barcode type in BarcodeFormat group 1 as string.
barcodeFormat_2 int Barcode type in BarcodeFormat group 2.
barcodeFormatString_2 String Barcode type in BarcodeFormat group 2 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.

Code Snippet

LocalizationResult[] localizationResult = (LocalizationResult[]) intermediateResults[i].results;

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • 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 +