Skip to content

Commit 833e2ae

Browse files
update to v10.4.2000
1 parent e3d2fbf commit 833e2ae

File tree

169 files changed

+5412
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+5412
-177
lines changed

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
License Notice
22

3-
This folder contains code samples ("Sample Code") for use with Dynamsoft Barcode Reader, a commercial software development kit licensed by Dynamsoft. The Sample Code may be modified and included in your end user software under the terms of the Dynamsoft Software License Agreement https://www.dynamsoft.com/barcode-reader/license-agreement/ ("Commercial License"). Except as expressly stated in the Commercial License, no other rights are granted in the Sample Code. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3+
This folder contains code samples ("Sample Code") for use with Dynamsoft Barcode Reader, a commercial software development kit licensed by Dynamsoft. The Sample Code may be modified and included in your end user software under the terms of the Dynamsoft Software License Agreement https://www.dynamsoft.com/company/license-agreement/ ("Commercial License"). Except as expressly stated in the Commercial License, no other rights are granted in the Sample Code. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44

5-
Copyright © 2003–2022 Dynamsoft. All rights reserved.
5+
Copyright © 2003–2024 Dynamsoft. All rights reserved.

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ This repository contains multiple samples that demonstrate how to use the [Dynam
2323
- Supported ABI: **arm64** and **x86_64**.
2424
- Development Environment: Xcode 13 and above (Xcode 14.1+ recommended), CocoaPods 1.11.0+
2525

26+
## Add the SDKs
27+
28+
- [Android](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/user-guide.html)
29+
- [iOS](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/objectivec-swift/user-guide.html?lang=swift#add-the-sdk)
30+
2631
## Samples
2732

2833
### Barcode Reader Samples
@@ -33,8 +38,10 @@ This repository contains multiple samples that demonstrate how to use the [Dynam
3338
| `DecodeWithCameraX` | The video streaming barcode scanner sample, but using **CameraX** as the input source. | Java(Android)/Kotlin |
3439
| `DecodeWithAVCaptureSession` | The video streaming barcode scanner sample, but using **AVCaptureSession** as the input source. | Objective-C/Swift |
3540
| `DecodeFromAnImage` | The sample shows how to pick an image from the album for barcode decoding. | Java(Android)/Kotlin/Objective-C/Swift |
41+
| `DecodeMultipleBarcodes` | The sample shows how to efficiently decode multiple barcodes. | Java(Android)/Swift |
3642
| `GeneralSettings` | Displays general barcode decoding settings and camera settings like barcode formats, expected barcode count and scan region settings. The default scan mode is continuous scanning. | Java(Android)/Swift |
3743
| `PerformanceSettings` | Parameter configuration guide on improving the speed, read-rate and accuracy of barcode reading. The sample includes the code of image decoding from the album. | Java(Android)/Swift |
44+
| `LocateAnItemWithBarcode` | The sample shows you how to locate an target barcode from multiple barcodes. | Java(Android)/Swift |
3845
| `TinyBarcodeDecoding` | The sample to tell you how to process the tiny barcodes. Including zoom and focus control. | Java(Android)/Swift |
3946

4047
### Capture Vision Samples
@@ -43,20 +50,10 @@ The following samples aggregate multiple products under `DynamsoftCaptureVision`
4350

4451
> Note: Move to the [DynamsoftCaptureVison samples repo](https://github.com/Dynamsoft/capture-vision-mobile-samples) to view the following samples.
4552
46-
| Sample Name | Description | Programming Language(s) | Products |
47-
| ----------- | ----------- | ----------------------- | -------- |
48-
| `DriversLicenseScanner` | Scan the PDF417 barcodes on a drivers' license and extract the drivers information. | Java(Android)/Swift | [DynamsoftBarcodeReader](https://www.dynamsoft.com/barcode-reader/overview/)<br> [DynamsoftCodeParser](https://www.dynamsoft.com/code-parser/docs/core/introduction/) |
49-
| `VINScanner` | Scan the vin barcode or text and extract the vehicle information. | Java(Android)/Swift | [DynamsoftBarcodeReader](https://www.dynamsoft.com/barcode-reader/overview/) <br> [DynamsoftLabelRecognizer](https://www.dynamsoft.com/label-recognition/overview/)<br> [DynamsoftCodeParser](https://www.dynamsoft.com/code-parser/docs/core/introduction/) |
50-
51-
### How to build (For iOS Editions)
52-
53-
1. Enter the sample folder, install DBR SDK through `pod` command
54-
55-
```bash
56-
pod install
57-
```
58-
59-
2. Open the generated file `[SampleName].xcworkspace`
53+
| Sample Name | Description | Programming Language(s) |
54+
| ----------- | ----------- | ----------------------- |
55+
| `DriversLicenseScanner` | Scan the PDF417 barcodes on a drivers' license and extract the drivers information. | Java(Android)/Swift |
56+
| `VINScanner` | Scan the vin barcode or text and extract the vehicle information. | Java(Android)/Swift |
6057

6158
## License
6259

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/app/local_dependencies.gradle
5+
/.idea
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild
10+
.cxx
11+
local.properties
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
plugins {
2+
id 'com.android.application'
3+
}
4+
5+
android {
6+
namespace 'com.dynamsoft.dbr.decodemultiplebarcodes'
7+
compileSdk 33
8+
9+
defaultConfig {
10+
applicationId "com.dynamsoft.dbr.decodemultiplebarcodes"
11+
minSdk 21
12+
targetSdk 33
13+
versionCode 1
14+
versionName "1.0"
15+
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
compileOptions {
26+
sourceCompatibility JavaVersion.VERSION_1_8
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
}
29+
30+
}
31+
32+
dependencies {
33+
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.4.2000'
34+
35+
implementation 'androidx.appcompat:appcompat:1.6.1'
36+
implementation 'com.google.android.material:material:1.9.0'
37+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
38+
testImplementation 'junit:junit:4.13.2'
39+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
40+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
41+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.dynamsoft.dbr.generalsettings;
2+
3+
import android.content.Context;
4+
5+
import androidx.test.platform.app.InstrumentationRegistry;
6+
import androidx.test.ext.junit.runners.AndroidJUnit4;
7+
8+
import org.junit.Test;
9+
import org.junit.runner.RunWith;
10+
11+
import static org.junit.Assert.*;
12+
13+
/**
14+
* Instrumented test, which will execute on an Android device.
15+
*
16+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
17+
*/
18+
@RunWith(AndroidJUnit4.class)
19+
public class ExampleInstrumentedTest {
20+
@Test
21+
public void useAppContext() {
22+
// Context of the app under test.
23+
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24+
assertEquals("com.dynamsoft.dbr.generalsettings", appContext.getPackageName());
25+
}
26+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools" >
4+
5+
<application
6+
android:allowBackup="true"
7+
android:dataExtractionRules="@xml/data_extraction_rules"
8+
android:fullBackupContent="@xml/backup_rules"
9+
android:icon="@drawable/dbr_icon"
10+
android:label="@string/app_name"
11+
android:supportsRtl="true"
12+
android:theme="@style/Theme.GeneralSettings"
13+
tools:targetApi="31" >
14+
<activity
15+
android:name=".ResultActivity"
16+
android:exported="false"
17+
android:theme="@style/Theme.GeneralSettings" />
18+
<activity
19+
android:name=".MainActivity"
20+
android:exported="true"
21+
android:screenOrientation="portrait"
22+
android:theme="@style/Theme.GeneralSettings"
23+
tools:ignore="LockedOrientationActivity" >
24+
<intent-filter>
25+
<action android:name="android.intent.action.MAIN" />
26+
27+
<category android:name="android.intent.category.LAUNCHER" />
28+
</intent-filter>
29+
</activity>
30+
</application>
31+
32+
</manifest>
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"CaptureVisionTemplates": [
3+
{
4+
"Name": "ReadMultipleBarcodes",
5+
"ImageROIProcessingNameArray": [
6+
"roi-read-barcodes-read-rate"
7+
],
8+
"Timeout": 650,
9+
"MaxParallelTasks":4
10+
}
11+
],
12+
"TargetROIDefOptions": [
13+
{
14+
"Name": "roi-read-barcodes-read-rate",
15+
"TaskSettingNameArray": [
16+
"task-read-barcodes-read-rate"
17+
]
18+
}
19+
],
20+
"BarcodeFormatSpecificationOptions": [
21+
{
22+
"Name": "bfs1-read-rate-first",
23+
"BarcodeFormatIds": [
24+
"BF_PDF417",
25+
"BF_QR_CODE",
26+
"BF_DATAMATRIX",
27+
"BF_AZTEC",
28+
"BF_MICRO_QR",
29+
"BF_MICRO_PDF417",
30+
"BF_DOTCODE"
31+
],
32+
"MirrorMode": "MM_BOTH"
33+
},
34+
{
35+
"Name": "bfs2-read-rate-first",
36+
"BarcodeFormatIds": [
37+
"BF_ALL"
38+
],
39+
"MirrorMode": "MM_NORMAL"
40+
}
41+
],
42+
"BarcodeReaderTaskSettingOptions": [
43+
{
44+
"Name": "task-read-barcodes-read-rate",
45+
"ExpectedBarcodesCount" : 999,
46+
"BarcodeFormatIds" : [ "BF_DEFAULT" ],
47+
"LocalizationModes": [
48+
{
49+
"Mode" : "LM_CONNECTED_BLOCKS"
50+
},{
51+
"Mode" : "LM_LINES"
52+
}
53+
],
54+
"DeblurModes":
55+
[
56+
{
57+
"Mode": "DM_BASED_ON_LOC_BIN"
58+
},
59+
{
60+
"Mode": "DM_THRESHOLD_BINARIZATION"
61+
},
62+
{
63+
"Mode": "DM_DIRECT_BINARIZATION"
64+
}
65+
],
66+
"BarcodeFormatSpecificationNameArray": [
67+
"bfs1-read-rate-first",
68+
"bfs2-read-rate-first"
69+
],
70+
"SectionImageParameterArray": [
71+
{
72+
"Section": "ST_REGION_PREDETECTION",
73+
"ImageParameterName": "ip-read-barcodes-read-rate"
74+
},
75+
{
76+
"Section": "ST_BARCODE_LOCALIZATION",
77+
"ImageParameterName": "ip-read-barcodes-read-rate"
78+
},
79+
{
80+
"Section": "ST_BARCODE_DECODING",
81+
"ImageParameterName": "ip-read-barcodes-read-rate"
82+
}
83+
],
84+
"TextResultOrderModes" :
85+
[
86+
{
87+
"Mode" : "TROM_POSITION"
88+
},
89+
{
90+
"Mode" : "TROM_FORMAT"
91+
},
92+
{
93+
"Mode" : "TROM_CONFIDENCE"
94+
}
95+
]
96+
}
97+
],
98+
"ImageParameterOptions": [
99+
{
100+
"Name": "ip-read-barcodes-read-rate",
101+
"TextDetectionMode": {
102+
"Mode": "TTDM_LINE",
103+
"Direction": "UNKNOWN",
104+
"Sensitivity": 3
105+
},
106+
"IfEraseTextZone": 1,
107+
"ScaleDownThreshold" : 100000
108+
}
109+
]
110+
}

0 commit comments

Comments
 (0)