Skip to content

Commit 7a7149b

Browse files
update to internal commit 7cafc349
1 parent 293dfe4 commit 7a7149b

File tree

12 files changed

+204
-45
lines changed

12 files changed

+204
-45
lines changed

_includes/sidelist-programming/programming-android.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<li lang="android" ><a href="{{ site.android }}user-guide/configure-barcode-scanner.html" class="otherLinkColour">Configure Barcode Scanner</a>
77
<ul lang="android" >
88
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-barcode-formats.html" class="otherLinkColour">Specify Barcode Format</a></li>
9-
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-multi-barcodes.html" class="otherLinkColour">Enable Multiple Barcodes Scanning</a></li>
9+
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-multi-barcodes.html" class="otherLinkColour">Switch Single & Multiple Scanning Modes</a></li>
1010
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-improve-performance.html" class="otherLinkColour">Improve the Performance</a></li>
1111
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-customize-ui.html" class="otherLinkColour">Customize the Scanner UI</a></li>
1212
<li lang="android" ><a href="{{ site.android }}user-guide/scanner-additional-settings.html" class="otherLinkColour">Add Addtional Settings</a></li>

_includes/sidelist-programming/programming-oc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/configure-barcode-scanner.html" class="otherLinkColour">Configure Barcode Scanner</a>
88
<ul lang="objectivec-swift" >
99
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-barcode-formats.html" class="otherLinkColour">Specify Barcode Format</a></li>
10-
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-multi-barcodes.html" class="otherLinkColour">Enable Multiple Barcodes Scanning</a></li>
10+
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-multi-barcodes.html" class="otherLinkColour">Switch Single & Multiple Scanning Modes</a></li>
1111
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-improve-performance.html" class="otherLinkColour">Improve the Performance</a></li>
1212
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-customize-ui.html" class="otherLinkColour">Customize the Scanner UI</a></li>
1313
<li lang="objectivec-swift" ><a href="{{ site.oc }}user-guide/scanner-additional-settings.html" class="otherLinkColour">Add Addtional Settings</a></li>

programming/android/index.md

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,67 @@ permalink: /programming/android/
1212

1313
Dynamsoft Barcode Reader (DBR) SDK Android Edition is a barcode reading tool designed specifically for Android developers.
1414

15-
You can either get a quick start with the [BarcodeScanner APIs](api-reference/barcode-scanner/index.md) or experience a highly customizable development with the [foundational APIs](api-reference/index.md). Furthermore, DBR provides a powerful [parameter]({{ site.dcvb_parameters}}file/index.html?lang=android) system in order to cope with various scenarios.
15+
You can either get a quick start with the [BarcodeScanner component](api-reference/barcode-scanner/index.md) or experience a highly customizable development with the [foundational APIs](api-reference/index.md). Furthermore, DBR provides a powerful [parameter]({{ site.dcvb_parameters}}file/index.html?lang=android) system in order to cope with various scenarios.
1616

17-
## Using the SDK
17+
## Develop with BarcodeScanner
1818

19-
### System Requirements
19+
If you are looking for a barcode scanning library with following features, the BarcodeScanner will be your best choice:
2020

21-
- Supported OS: Android 5.0 (API Level 21) or higher.
22-
- Supported ABI: **armeabi-v7a**, **arm64-v8a**, **x86** and **x86_64**.
23-
- Development Environment: Android Studio 2022.2.1 or higher.
21+
- Minimal Code: High-level APIs achieve full functionality with one line of code.
22+
- Ready-to-Use UI: Pre-integrated components and UI enable quick setup.
23+
- Common Customization: Configuration objects simplify typical algorithm and UI setups.
24+
25+
| | Develop with BarcodeScanner APIs | Develop with Foundational APIs |
26+
| -- | ------------------------------ | ------------------------------ |
27+
| Code | 15+ lines | 60+ lines |
28+
| UI | Preset | Full customizable |
29+
| Decode from Live Video |||
30+
| Decode from a Image | X ||
31+
| Performance Customization |||
32+
| Camera Control | Limited ||
33+
| Intermediate Results | X ||
34+
35+
BarcodeScanner supports 2 different Scanning Modes
36+
37+
- Single Barcode Scanning Mode
38+
1. Scans any number of barcodes but returns only one result.
39+
2. Speed prioritized.
40+
3. Requires user to select one as the result when scanned multiple barcodes.
41+
- Multiple Barcodes Scanning Mode
42+
1. Scans multiple barcodes and returns all scanned results.
43+
2. Read-rate prioritized.
44+
3. Interactions like editing results, manual input, etc. are not available. Please refer to the [BatchBarcodeScanner](https://www.dynamsoft.com/use-cases/batch-barcode-scanning/){:target="_blank"} for these features.
45+
46+
<div align="center">
47+
<p><img src="../assets/single-vs-multiple.png" width="70%" alt="barcode-scanner"></p>
48+
<p>Single vs Multiple</p>
49+
</div>
2450

25-
### User Guide
51+
> Note: If you are looking for a solution to scan large batches of barcodes, please refer to the [`BatchBarcodeScanner`](https://www.dynamsoft.com/use-cases/batch-barcode-scanning/){:target="_blank"}. The `BatchBarcodeScanner` has much higher ability on scanning large number of barcodes. It also provides you a highly interactable UI for result previewing, editing, saving, reusing and sharing.
2652
27-
- [Build your First APP](user-guide.md)
2853
- [Configure your barcode scanner](user-guide/configure-barcode-scanner.md)
29-
- [Build your APP with foundational APIs](foundational-guide.md).
54+
- [View BarcodeScanner API References](./api-reference/barcode-scanner/index.md)
55+
- [Check out BarcodeScanner Samples on GitHub](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/BarcodeScannerAPISamples)
56+
57+
## Develop with Foundational APIs
58+
59+
If you are looking for a fully customizable barcode decoding library, you are welcome to use the Foundational APIs.
60+
61+
- [Build your APP with foundational APIs](foundational-guide.md)
3062
- [Explore Features](user-guide/explore-features/index.md)
63+
- [View Foundation API References](./api-reference/index.md)
64+
- [Check out Foundational API Samples on GitHub](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/FoundationalAPISamples)
3165

32-
### Samples and Demos
66+
## System Requirements
3367

34-
- [Samples & Demos](samples/index.md)
68+
- Supported OS: Android 5.0 (API Level 21) or higher.
69+
- Supported ABI: **armeabi-v7a**, **arm64-v8a**, **x86** and **x86_64**.
70+
- Development Environment: Android Studio 2022.2.1 or higher.
3571

36-
### API Reference
72+
## Download Demo App
3773

38-
- [BarcodeScanner APIs](./api-reference/barcode-scanner/index.md)
39-
- [Foundation APIs](./api-reference/index.md)
74+
- [View in Google Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.demo.dynamsoftbarcodereaderdemo&pli=1){:target="_blank"}
75+
- [Download APK](https://download2.dynamsoft.com/dbr/android/DynamsoftBarcodeReaderDemoAndroid.apk){:target="_blank"}
4076

4177
## Release Notes
4278

programming/android/user-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ There are two ways in which you can include the `dynamsoftbarcodereaderbundle` l
5151
}
5252
```
5353
2.
54-
```kts
54+
```kotlin
5555
dependencyResolutionManagement {
5656
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
5757
repositories {
@@ -79,7 +79,7 @@ There are two ways in which you can include the `dynamsoftbarcodereaderbundle` l
7979
}
8080
```
8181
2.
82-
```kts
82+
```kotlin
8383
dependencies {
8484
implementation("com.dynamsoft:dynamsoftbarcodereaderbundle:10.4.3001")
8585
}
@@ -120,7 +120,7 @@ There are two ways in which you can include the `dynamsoftbarcodereaderbundle` l
120120
}
121121
```
122122
2.
123-
```kts
123+
```kotlin
124124
val camerax_version = "1.1.0"
125125
dependencies {
126126
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar"))))

programming/android/user-guide/configure-barcode-scanner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ needAutoGenerateSidebar: true
1414
When developing with [`BarcodeScannerActivity`](../api-reference/barcode-scanner/barcode-scanner-activity.md), you can add configurations via the [`BarcodeScannerConfig`](../api-reference/barcode-scanner/barcode-scanner-config.md) class. These articles will guide you on how to configure the settings.
1515

1616
- [Specify Barcode Formats](scanner-barcode-formats.md)
17-
- [Enable Multiple Barcodes Scanning](scanner-multi-barcodes.md)
17+
- [Switch Single & Multiple Scanning Modes](scanner-multi-barcodes.md)
1818
- [Improve the Performance](scanner-improve-performance.md)
1919
- [Customize Scanner UI](scanner-customize-ui.md)
2020
- [Add Additional Settings](scanner-additional-settings.md)

programming/android/user-guide/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ Develop a barcode scanner by using the ready-to-use UI, `BarcodeScannerActivity`
1919

2020
- [Build your First APP](../user-guide.md)
2121
- [Configure your barcode scanner](configure-barcode-scanner.md)
22+
- [Specify Barcode Formats](scanner-barcode-formats.md)
23+
- [Switch Single & Multiple Scanning Modes](scanner-multi-barcodes.md)
24+
- [Improve the Performance](scanner-improve-performance.md)
25+
- [Customize Scanner UI](scanner-customize-ui.md)
26+
- [Add Additional Settings](scanner-additional-settings.md)
2227

2328
## Build Your APP with Foundational API
2429

programming/android/user-guide/scanner-multi-barcodes.md

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ needGenerateH3Content: true
88
noTitleIndex: true
99
---
1010

11-
# Scan multiple barcodes
11+
# Switch Scanning Modes
1212

13-
This article will show you how to configure your barcode scanner to scan multiple barcodes.
13+
This article will show you how to switch between the single barcode scanning mode and the multiple barcodes scanning mode.
1414

15-
## Enable multi-barcode scanning
15+
## How to Switch Scanning Modes
1616

1717
You can use method `setScanningMode` to switch between single-barcode and multi-barcode scanning modes.
1818

@@ -26,9 +26,9 @@ BarcodeScannerConfig config = new BarcodeScannerConfig();
2626
config.setScanningMode(EnumScanningMode.SM_MULTIPLE);
2727
```
2828

29-
## Configure the auto-stop conditions
29+
## Configure the Auto-Stop Conditions
3030

31-
There are two automatic stop conditions for multi-code scanning:
31+
For multi-barcode scanning, there are two automatic stop conditions:
3232

3333
- The number of successfully decoded barcodes reaches the `expectedBarcodesCount`.
3434
- There are no new decoding results for N consecutive frames. The value of N can be set using `setMaxConsecutiveStableFramesToExit`.
@@ -49,3 +49,42 @@ If there are at least 10 barcodes decoded, it will stop scanning. Otherwise, it
4949
- [`setScanningMode`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setscanningmode)
5050
- [`setExpectedBarcodesCount`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setexpectedbarcodescount)
5151
- [`setMaxConsecutiveStableFramesToExit`]({{ site.dbr_android_api }}barcode-scanner/barcode-scanner-config.html#setmaxconsecutivestableframestoexit)
52+
53+
## Comparisons
54+
55+
If you are looking for a solution to scan large batches of barcodes, please refer to the [`BatchBarcodeScanner`](https://www.dynamsoft.com/use-cases/batch-barcode-scanning/){:target="_blank"}. The `BatchBarcodeScanner` has much higher ability on scanning large number of barcodes. It also provides you a highly interactable UI for result previewing, editing, saving, reusing and sharing.
56+
57+
<table style = "text-align:left">
58+
<thead>
59+
<tr>
60+
<th nowrap="nowrap"></th>
61+
<th nowrap="nowrap">BarcodeScanner Single Mode</th>
62+
<th nowrap="nowrap">BarcodeScanner Multi Mode</th>
63+
<th nowrap="nowrap">BatchBarcodeScanner</th>
64+
</tr>
65+
</thead>
66+
<tr>
67+
<td style="vertical-align:text-top">Dependencies</td>
68+
<td style="vertical-align:text-top">DynamsoftBarcodeReaderBundle</td>
69+
<td style="vertical-align:text-top">DynamsoftBarcodeReaderBundle</td>
70+
<td style="vertical-align:text-top">DynamsoftBatchBarcodeReaderBundle</td>
71+
</tr>
72+
<tr>
73+
<td style="vertical-align:text-top">Scan Ability</td>
74+
<td style="vertical-align:text-top">Decodes at lease one barcode that available on the latest frame.</td>
75+
<td style="vertical-align:text-top">Decodes all barcodes that available on the latest frame.</td>
76+
<td style="vertical-align:text-top">Decodes all barcodes that available on the latest frame. (TTL Overlap Mode)<br>or<br>Decodes all barcodes that available on the first frame. (TTS Ovarlap Mode)<br>or<br>Decodes all barcodes that ever exists while capturing. (Panorama Mode)</td>
77+
</tr>
78+
<tr>
79+
<td style="vertical-align:text-top">Result</td>
80+
<td style="vertical-align:text-top">Always returns one barcode result. If decoded more than one barcodes, users will be asked to select one.</td>
81+
<td style="vertical-align:text-top">All decoded barcodes</td>
82+
<td style="vertical-align:text-top">All decoded barcodes as well as a PanoramicImage that highlighting all these barcodes on it.</td>
83+
</tr>
84+
<tr>
85+
<td style="vertical-align:text-top">Result Editor</td>
86+
<td style="vertical-align:text-top">Not available</td>
87+
<td style="vertical-align:text-top">Not available</td>
88+
<td style="vertical-align:text-top">Supports the following operations<br>1. Extend the current result with all kinds of available image source.<br>2. Manual input new results or edit the existing results<br>3. Save as history<br>4. Export as file (.png, .csv, etc.)</td>
89+
</tr>
90+
</table>
369 KB
Loading

programming/objectivec-swift/index.md

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,64 @@ Dynamsoft Barcode Reader (DBR) SDK iOS Edition is a barcode reading tool designe
1515

1616
You can either get a quick start with the [BarcodeScanner APIs](api-reference/barcode-scanner/index.md) or experience a highly customizable development with the [foundational APIs](api-reference/index.md). Furthermore, DBR provides a powerful [parameter]({{ site.dcvb_parameters}}file/index.html?lang=objc,swift) system in order to cope with various scenarios.
1717

18-
## Using the SDK
18+
## Develop with BarcodeScanner
19+
20+
If you are looking for a barcode scanning library with following features, the BarcodeScanner will be your best choice:
21+
22+
- Minimal Code: High-level APIs achieve full functionality with one line of code.
23+
- Ready-to-Use UI: Pre-integrated components and UI enable quick setup.
24+
- Common Customization: Configuration objects simplify typical algorithm and UI setups.
25+
26+
| | Develop with BarcodeScanner APIs | Develop with Foundational APIs |
27+
| -- | ------------------------------ | ------------------------------ |
28+
| Code | 15+ lines | 60+ lines |
29+
| UI | Preset | Full customizable |
30+
| Decode from Live Video |||
31+
| Decode from a Image | X ||
32+
| Performance Customization |||
33+
| Camera Control | Limited ||
34+
| Intermediate Results | X ||
35+
36+
BarcodeScanner supports 2 different Scanning Modes
37+
38+
- Single Barcode Scanning Mode
39+
1. Scans any number of barcodes but returns only one result.
40+
2. Speed prioritized.
41+
3. Requires user to select one as the result when scanned multiple barcodes.
42+
- Multiple Barcodes Scanning Mode
43+
1. Scans multiple barcodes and returns all scanned results.
44+
2. Read-rate prioritized.
45+
3. Interactions like editing results, manual input, etc. are not available. Please refer to the [BatchBarcodeScanner](https://www.dynamsoft.com/use-cases/batch-barcode-scanning/){:target="_blank"} for these features.
46+
47+
<div align="center">
48+
<p><img src="../assets/single-vs-multiple.png" width="70%" alt="barcode-scanner"></p>
49+
<p>Single vs Multiple</p>
50+
</div>
51+
52+
> Note: If you are looking for a solution to scan large batches of barcodes, please refer to the [`BatchBarcodeScanner`](https://www.dynamsoft.com/use-cases/batch-barcode-scanning/){:target="_blank"}. The `BatchBarcodeScanner` has much higher ability on scanning large number of barcodes. It also provides you a highly interactable UI for result previewing, editing, saving, reusing and sharing.
1953
20-
### System Requirements
54+
- [Configure your barcode scanner](user-guide/configure-barcode-scanner.md)
55+
- [View BarcodeScanner API References](./api-reference/barcode-scanner/index.md)
56+
- [Check out BarcodeScanner Samples on GitHub](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/ios/BarcodeScannerAPISamples)
2157

22-
- Supported OS: iOS 11+ (iOS 13+ recommended).
23-
- Supported ABI: arm64 and x86_64.
24-
- Development Environment: Xcode 13+ (Xcode 14.1+ recommended).
58+
## Develop with Foundational APIs
2559

26-
### User Guide
60+
If you are looking for a fully customizable barcode decoding library, you are welcome to use the Foundational APIs.
2761

28-
- [Build your First APP](user-guide.md)
29-
- [Configure your barcode scanner](user-guide/configure-barcode-scanner.md)
30-
- [Build your APP with foundational APIs](foundational-guide.md).
62+
- [Build your APP with foundational APIs](foundational-guide.md)
3163
- [Explore Features](user-guide/explore-features/index.md)
64+
- [View Foundation API References](./api-reference/index.md)
65+
- [Check out Foundational API Samples on GitHub](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/ios/FoundationalAPISamples)
3266

33-
### Samples and Demos
67+
## System Requirements
3468

35-
- [Samples & Demos](samples/index.md)
69+
- Supported OS: iOS 11+ (iOS 13+ recommended).
70+
- Supported ABI: arm64 and x86_64.
71+
- Development Environment: Xcode 13+ (Xcode 14.1+ recommended).
3672

37-
### API Reference
73+
## Download Demo App
3874

39-
- [BarcodeScanner APIs](./api-reference/barcode-scanner/index.md)
40-
- [Foundation APIs](./api-reference/index.md)
75+
- [View in Apple Store](https://apps.apple.com/us/app/dynamsoft-barcode-scanner-demo/id1120581630){:target="_blank"}
4176

4277
## Release Notes
4378

programming/objectivec-swift/user-guide/configure-barcode-scanner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ needAutoGenerateSidebar: true
1414
When developing with [`BarcodeScannerViewController`](../api-reference/barcode-scanner/barcode-scanner-view-controller.md), you can add configurations via the [`BarcodeScannerConfig`](../api-reference/barcode-scanner/barcode-scanner-config.md) class. This page will guide you on how to configure the settings.
1515

1616
- [Specify Barcode Formats](scanner-barcode-formats.md)
17-
- [Enable Multiple Barcodes Scanning](scanner-multi-barcodes.md)
17+
- [Switch Single & Multiple Scanning Modes](scanner-multi-barcodes.md)
1818
- [Improve the Performance](scanner-improve-performance.md)
1919
- [Customize Scanner UI](scanner-customize-ui.md)
2020
- [Add Additional Settings](scanner-additional-settings.md)

0 commit comments

Comments
 (0)