Skip to content

Commit 504526f

Browse files
Merge pull request #324 from dynamsoft-docs/preview
Preview
2 parents 780a8e6 + 4d6a4c9 commit 504526f

File tree

12 files changed

+203
-45
lines changed

12 files changed

+203
-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
@@ -3,7 +3,8 @@ layout: default-layout
33
title: Main Page - Dynamsoft Barcode Reader for Android
44
description: This is the main page of Dynamsoft Barcode Reader for Android SDK.
55
keywords: android
6-
needAutoGenerateSidebar: false
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
78
breadcrumbText: Android
89
permalink: /programming/android/
910
---
@@ -14,29 +15,64 @@ Dynamsoft Barcode Reader (DBR) SDK Android Edition is a barcode reading tool des
1415

1516
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.
1617

17-
## Using the SDK
18+
| | Develop with BarcodeScanner APIs | Develop with Foundational APIs |
19+
| -- | ------------------------------ | ------------------------------ |
20+
| Code | 15+ lines | 60+ lines |
21+
| UI | Preset | Full customizable |
22+
| Decode from Live Video |||
23+
| Decode from a Image | X ||
24+
| Performance Customization |||
25+
| Camera Control | Limited ||
26+
| Intermediate Results | X ||
1827

19-
### System Requirements
28+
## Develop with BarcodeScanner APIs
2029

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.
30+
`BarcodeScanner` is a component with the following features:
31+
32+
- Minimal Code: High-level APIs achieve full functionality with one line of code.
33+
- Ready-to-Use UI: Pre-integrated components and UI enable quick setup.
34+
- Common Customization: Configuration objects simplify typical algorithm and UI setups.
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+
46+
<div align="center">
47+
<p><img src="../assets/single-vs-multiple.png" width="100%" alt="barcode-scanner"></p>
48+
</div>
2449

25-
### User Guide
50+
> 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.
2651
2752
- [Build your First APP](user-guide.md)
28-
- [Configure your barcode scanner](user-guide/configure-barcode-scanner.md)
29-
- [Build your APP with foundational APIs](foundational-guide.md).
53+
- [Configure Your Barcode Scanner](user-guide/configure-barcode-scanner.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>
426 KB
Loading

programming/objectivec-swift/index.md

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default-layout
33
title: Main Page - Dynamsoft Barcode Reader for iOS
44
description: This is the main page of Dynamsoft Barcode Reader for iOS SDK.
55
keywords: objective-c, oc, swift
6-
needAutoGenerateSidebar: false
6+
needAutoGenerateSidebar: true
77
needGenerateH3Content: true
88
breadcrumbText: iOS
99
permalink: /programming/objectivec-swift/
@@ -15,29 +15,63 @@ 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 APIs | Develop with Foundational APIs |
19+
| -- | ------------------------------ | ------------------------------ |
20+
| Code | 15+ lines | 60+ lines |
21+
| UI | Preset | Full customizable |
22+
| Decode from Live Video |||
23+
| Decode from a Image | X ||
24+
| Performance Customization |||
25+
| Camera Control | Limited ||
26+
| Intermediate Results | X ||
1927

20-
### System Requirements
28+
## Develop with BarcodeScanner APIs
2129

22-
- Supported OS: iOS 11+ (iOS 13+ recommended).
23-
- Supported ABI: arm64 and x86_64.
24-
- Development Environment: Xcode 13+ (Xcode 14.1+ recommended).
30+
`BarcodeScanner` is a component with the following features:
31+
32+
- Minimal Code: High-level APIs achieve full functionality with one line of code.
33+
- Ready-to-Use UI: Pre-integrated components and UI enable quick setup.
34+
- Common Customization: Configuration objects simplify typical algorithm and UI setups.
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+
46+
<div align="center">
47+
<p><img src="../assets/single-vs-multiple.png" width="100%" alt="barcode-scanner"></p>
48+
</div>
2549

26-
### User Guide
50+
> 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.
2751
2852
- [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).
53+
- [Configure your Barcode Scanner](user-guide/configure-barcode-scanner.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/ios/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)
3162
- [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/ios/FoundationalAPISamples)
3265

33-
### Samples and Demos
66+
## System Requirements
3467

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

37-
### API Reference
72+
## Download Demo App
3873

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

4276
## Release Notes
4377

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)