Table of contents
Swift
Objective-C

BarcodeResultItem Class

The BarcodeResultItem class represents a single barcode result decoded by the barcode reader. It is part of the DecodedBarcodesResult, which is what the library outputs at the end of the barcode recognition process.

Definition

Assembly: dynamsoft_capture_vision_flutter

class BarcodeResultItem extends CapturedResultItem

Properties

Property Type Description
format BigInt The format of the barcode.
formatString String The format of the barcode as a text string.
text String The decoded text of the barcode.
bytes Uint8List The raw bytes of the barcode.
location Quadrilateral The location of the barcode in the image/frame.
confidence int The confidence of the barcode result.
angle int The angle at which the barcode is detected if it’s not aligned in the image/frame.
moduleSize int The size of the smallest module (dot or line) of the barcode.
isDPM bool Indicates whether the barcode is a Direct Part Marking (DPM).
isMirrored bool Indicates whether the barcode image is mirrored.
pdf417Details PDF417Details Represents extended info that is specific to PDF417 codes, if the decoded barcode is a PDF417 code.
oneDCodeDetails OneDCodeDetails Represents extended info that is specific to 1D codes, if the decoded barcode is a 1D code.
dataMatrixDetails DataMatrixDetails Represents extended info that is specific to DataMatrix codes, if the decoded barcode is a DataMatrix code.
aztecDetails AztecDetails Represents extended info that is specific to Aztec codes, if the decoded barcode is an Aztec code.
qrCodeDetails QRCodeDetails Represents extended info that is specific to QR Codes, if the decoded barcode is a QR Code.

format

The format of the barcode. One of the EnumBarcodeFormat.

BigInt format;

formatString

The format of the barcode as a text string instead of a EnumBarcodeFormat.

String formatString;

text

The decoded text of the barcode.

String text;

bytes

The raw bytes of the barcode.

Uint8List bytes;

location

The location of the barcode in the image/frame as a Quadrilateral. The quadrilateral contains the four vertex points of the location, with the first vertex being the left-most vertex, then going in a clockwise direction for the remaining points.

Quadrilateral location;

confidence

The confidence of the barcode result is a measure of the result’s accuracy. If the confidence is lower than 30, the result will not be output by default as it is considered quite inaccurate.

int confidence;

angle

The angle at which the barcode is detected if it’s not aligned in the image/frame.

int angle;

moduleSize

The size of the smallest module (dot or line) of the barcode.

int moduleSize;

isDPM

Indicates whether the barcode is a Dot Peen Marking (DPM), which is a unique type of DataMatrix code.

bool isDPM;

isMirrored

Indicates whether the barcode image is mirrored.

bool isMirrored;

qrCodeDetails

Represents extended info (as QRCodeDetails) that is specific to QR Codes, if the decoded barcode is a QR Code.

QRCodeDetails? qrCodeDetails;

aztecDetails

Represents extended info (as AztecDetails) that is specific to Aztec codes, if the decoded barcode is an Aztec code.

AztecDetails? aztecDetails;

dataMatrixDetails

Represents extended info (as DataMatrixDetails) that is specific to DataMatrix codes, if the decoded barcode is a DataMatrix code.

DataMatrixDetails? dataMatrixDetails;

oneDCodeDetails

Represents extended info (as OneDCodeDetails) that is specific to 1D codes, if the decoded barcode is a 1D code.

OneDCodeDetails? oneDCodeDetails;

pdf417Details

Represents extended info (as PDF417Details) that is specific to PDF417 codes, if the decoded barcode is a PDF417 code.

PDF417Details? pdf417Details;

This page is compatible for: