|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +title: BarcodeResultItem Class - Dynamsoft Barcode Reader Flutter Edition |
| 4 | +description: BarcodeResultItem class represents a barcode result item decoded by barcode reader engine. It is derived from CapturedResultItem. |
| 5 | +keywords: GetFormat, GetText, GetLocation, GetConfidence, GetModuleSize, BarcodeResultItem, api reference, flutter, barcode reader |
| 6 | +needAutoGenerateSidebar: true |
| 7 | +needGenerateH3Content: true |
| 8 | +breadcrumbText: BarcodeResultItem |
| 9 | +--- |
| 10 | + |
| 11 | +# BarcodeResultItem Class |
| 12 | + |
| 13 | +The `BarcodeResultItem` class represents a single barcode result decoded by the barcode reader. It is part of the [`DecodedBarcodesResult`](../api-reference/capture-vision-router-lite/decoded-barcodes-result.md), which is what the library outputs at the end of the barcode recognition process. |
| 14 | + |
| 15 | +## Definition |
| 16 | + |
| 17 | +*Assembly:* dynamsoft_capture_vision_flutter |
| 18 | + |
| 19 | +```dart |
| 20 | +class BarcodeResultItem |
| 21 | +``` |
| 22 | + |
| 23 | +## Properties |
| 24 | + |
| 25 | +| Property | Type | Description | |
| 26 | +| -------- | ---- | ----------- | |
| 27 | +| [`format`](#format) | *[EnumBarcodeFormat](./enum/barcode-format.md)* | The format of the barcode represented as [`EnumBarcodeFormat`](./enum/barcode-format.md). | |
| 28 | +| [`formatString`](#formatstring) | *String* | The format of the barcode as a text string. | |
| 29 | +| [`text`](#text) | *String* | The decoded text of the barcode. | |
| 30 | +| [`bytes`](#bytes) | *Uint8List* | The raw bytes of the barcode. | |
| 31 | +| [`location`](#location) | *Quadrilateral* | The location of the barcode in the image/frame. | |
| 32 | +| [`confidence`](#confidence) | *int* | The confidence of the barcode result. | |
| 33 | +| [`angle`](#angle) | *int* | The angle at which the barcode is detected if it's not aligned in the image/frame. | |
| 34 | +| [`moduleSize`](#modulesize) | *int* | The size of the smallest module (dot or line) of the barcode. | |
| 35 | +| [`isDPM`](#isdpm) | *bool* | Indicates whether the barcode is a Dot Peen Marking (DPM). | |
| 36 | +| [`isMirrored`](#ismirrored) | *bool* | Indicates whether the barcode image is mirrored. | |
| 37 | + |
| 38 | +### format |
| 39 | + |
| 40 | +The format of the barcode represented as [`EnumBarcodeFormat`](./enum/barcode-format.md). |
| 41 | + |
| 42 | +```dart |
| 43 | +EnumBarcodeFormat format; |
| 44 | +``` |
| 45 | + |
| 46 | +### formatString |
| 47 | + |
| 48 | +The format of the barcode as a text string instead of a `EnumBarcodeFormat`. |
| 49 | + |
| 50 | +```dart |
| 51 | +String formatString; |
| 52 | +``` |
| 53 | + |
| 54 | +### text |
| 55 | + |
| 56 | +The decoded text of the barcode. |
| 57 | + |
| 58 | +```dart |
| 59 | +String text; |
| 60 | +``` |
| 61 | + |
| 62 | +### bytes |
| 63 | + |
| 64 | +The raw bytes of the barcode. |
| 65 | + |
| 66 | +```dart |
| 67 | +Uint8List bytes; |
| 68 | +``` |
| 69 | + |
| 70 | +### location |
| 71 | + |
| 72 | +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. |
| 73 | + |
| 74 | +```dart |
| 75 | +Quadrilateral location; |
| 76 | +``` |
| 77 | + |
| 78 | +### confidence |
| 79 | + |
| 80 | +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. |
| 81 | + |
| 82 | +```dart |
| 83 | +int confidence; |
| 84 | +``` |
| 85 | + |
| 86 | +### angle |
| 87 | + |
| 88 | +The angle at which the barcode is detected if it's not aligned in the image/frame. |
| 89 | + |
| 90 | +```dart |
| 91 | +int angle; |
| 92 | +``` |
| 93 | + |
| 94 | +### moduleSize |
| 95 | + |
| 96 | +The size of the smallest module (dot or line) of the barcode. |
| 97 | + |
| 98 | +```dart |
| 99 | +int moduleSize; |
| 100 | +``` |
| 101 | + |
| 102 | +### isDPM |
| 103 | + |
| 104 | +Indicates whether the barcode is a Dot Peen Marking (DPM), which is a unique type of Datamatrix code. |
| 105 | + |
| 106 | +```dart |
| 107 | +bool isDPM; |
| 108 | +``` |
| 109 | + |
| 110 | +### isMirrored |
| 111 | + |
| 112 | +Indicates whether the barcode image is mirrored. |
| 113 | + |
| 114 | +```dart |
| 115 | +bool isMirrored; |
| 116 | +``` |
0 commit comments