Skip to content

Commit ecf5b6f

Browse files
Merge branch 'main' into preview
2 parents 1c1018c + 3f243bc commit ecf5b6f

File tree

3 files changed

+173
-1
lines changed

3 files changed

+173
-1
lines changed

programming/android/user-guide/ui-configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ DrawingLayer layer = cameraView.getDrawingLayer(DrawingLayer.DBR_LAYER_ID);
4444
layer.setDefaultStyle(DrawingStyleManager.STYLE_BLUE_STROKE);
4545
```
4646

47-
Set the style of the highlight overlays with a use defined style:
47+
Set the style of the highlight overlays with a user defined style:
4848

4949
1. Create colours in the **values/colours.xml** file.
5050

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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+
```

programming/flutter/upgrade.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
layout: default-layout
3+
title: How to update - Dynamsoft Barcode Reader for Android
4+
description: Follow the upgrade instructions to learn to upgrade Barcode Reader SDK Android edition from 10 to 11.
5+
keywords: updates guide, android
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
noTitleIndex: true
9+
pageStartVer: 10.0
10+
---
11+
12+
# How to Upgrade
13+
14+
## From Version 10.x to 11.x
15+
16+
### Update the Libraries
17+
18+
#### Visual Studio for Mac
19+
20+
In the **NuGet Package Manager>Manage Packages for Solution** of your project, search for **Dynamsoft.BarcodeReaderBundle.Maui**. Select the latest version and click **install**.
21+
22+
#### Visual Studio for Windows
23+
24+
You need to add the library via the project file and complete additional steps for the installation.
25+
26+
1. Add the library in the project file:
27+
28+
```xml
29+
<Project Sdk="Microsoft.NET.Sdk">
30+
...
31+
<ItemGroup>
32+
...
33+
<PackageReference Include="Dynamsoft.BarcodeReaderBundle.Maui" Version="{version-number}" />
34+
</ItemGroup>
35+
</Project>
36+
```
37+
38+
2. Open the **Package Manager Console** and run the following commands:
39+
40+
```bash
41+
dotnet build
42+
```
43+
44+
> Note:
45+
>
46+
> - Please view [user guide](user-guide.md#option-1-add-the-library-via-maven) for the correct version number.
47+
> - Windows system have a limitation of 260 characters in the path. If you don't use console to install the package, you will receive error "Could not find a part of the path 'C:\Users\admin\.nuget\packages\dynamsoft.imageprocessing.ios\2.4.300\lib\net7.0-ios16.1\Dynamsoft.ImageProcessing.iOS.resources\DynamsoftImageProcessing.xcframework\ios-arm64\dSYMs\DynamsoftImageProcessing.framework.dSYM\Contents\Resources\DWARF\DynamsoftImageProcessing'"
48+
> - The library only support Android & iOS platform. Be sure that you remove the other platforms like Windows, maccatalyst, etc.
49+
50+
### Update the Template File
51+
52+
You can use the template converter to upgrade your template. View the [online template converter](https://www.dynamsoft.com/tools/template-upgrade/)
53+
54+
## From version 9.x or earlier
55+
56+
Dynamsoft Barcode Reader SDK has been refactored to integrate with DynamsoftCaptureVision (DCV) architecture since version 10. To upgrade from version 9.x or earlier to 11.x, we recommend you to follow the [User Guide](user-guide.md) and re-write your codes. This section highlights only the key changes and necessary actions for upgrading the SDK.

0 commit comments

Comments
 (0)