Skip to content

Commit 2c39f7f

Browse files
update to 11.0.3000
1 parent 2435026 commit 2c39f7f

File tree

598 files changed

+17313
-10943
lines changed

Some content is hidden

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

598 files changed

+17313
-10943
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository contains multiple samples that demonstrate how to use the [Dynam
1616

1717
### iOS
1818

19-
- Supported OS: **iOS 11.0** or higher (iOS 13 and higher recommended).
19+
- Supported OS: **iOS 13.0** or higher.
2020
- Supported ABI: **arm64** and **x86_64**.
2121
- Development Environment: Xcode 13 and above (Xcode 14.1+ recommended), CocoaPods 1.11.0+
2222

@@ -49,6 +49,8 @@ High-level customization is available via the foundational APIs. These samples s
4949
| `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 |
5050
| `LocateAnItemWithBarcode` | Input an ID with barcode text and detect it from multiple barcodes under the screen. | Java(Android)/Swift |
5151
| `TinyBarcodeDecoding` | The sample to tell you how to process the tiny barcodes. Including zoom and focus control. | Java(Android)/Swift |
52+
| `DriversLicenseScanner` | The sample shows how to scan the PDF417 barcode on a driver's license and extract driver's information. | Java(Android)/Swift |
53+
| `Debug` | The sample shows how to capture original video frames for debugging. | Java(Android)/Swift |
5254

5355
- API Reference
5456
- [Android](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/api-reference/)
@@ -62,7 +64,6 @@ The following samples aggregate multiple products under `DynamsoftCaptureVision`
6264
6365
| Sample Name | Description | Programming Language(s) |
6466
| ----------- | ----------- | ----------------------- |
65-
| `DriversLicenseScanner` | Scan the PDF417 barcodes on a drivers' license and extract the drivers information. | Java(Android)/Swift |
6667
| `VINScanner` | Scan the vin barcode or text and extract the vehicle information. | Java(Android)/Swift |
6768

6869
## License

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plugins {
44

55
android {
66
namespace 'com.dynamsoft.scanmultiplebarcodes'
7-
compileSdk 33
7+
compileSdk 34
88

99
defaultConfig {
1010
applicationId "com.dynamsoft.scanmultiplebarcodes"
1111
minSdk 21
12-
targetSdk 33
12+
targetSdk 34
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -28,7 +28,7 @@ android {
2828
}
2929

3030
dependencies {
31-
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.4.3002'
31+
implementation 'com.dynamsoft:barcodereaderbundle:11.0.3000'
3232

3333
implementation 'androidx.appcompat:appcompat:1.6.1'
3434
implementation 'com.google.android.material:material:1.9.0'

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/java/com/dynamsoft/scanmultiplebarcodes/MainActivity.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
import androidx.annotation.Nullable;
1414
import androidx.appcompat.app.AppCompatActivity;
1515

16-
/**
17-
* @author: dynamsoft
18-
* Time: 2024/9/29
19-
* Description:
20-
*/
2116
public class MainActivity extends AppCompatActivity {
2217
private ActivityResultLauncher<BarcodeScannerConfig> launcher;
2318

@@ -43,9 +38,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
4338
launcher = registerForActivityResult(new BarcodeScannerActivity.ResultContract(), result -> {
4439
if (result.getResultStatus() == BarcodeScanResult.EnumResultStatus.RS_FINISHED && result.getBarcodes() != null) {
4540
StringBuilder content = new StringBuilder();
46-
content.append("Count: ").append(result.getBarcodes().length).append("\n");
41+
content.append("Count: ").append(result.getBarcodes().length).append("\n\n");
4742
for (BarcodeResultItem barcode : result.getBarcodes()) {
48-
content.append("Result: format: ").append(barcode.getFormatString()).append("\n").append("content: ").append(barcode.getText()).append("\n\n");
43+
content.append("format: ").append(barcode.getFormatString()).append("\n").append("content: ").append(barcode.getText()).append("\n\n");
4944
}
5045
textView.setText(content.toString());
5146
} else if(result.getResultStatus() == BarcodeScanResult.EnumResultStatus.RS_CANCELED ){

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
android:gravity="center"
66
android:orientation="vertical">
77

8-
98
<Button
109
android:id="@+id/btn_navigate"
1110
android:layout_width="wrap_content"
@@ -16,12 +15,11 @@
1615
android:layout_marginHorizontal="16dp"
1716
android:layout_width="match_parent"
1817
android:layout_height="wrap_content">
19-
2018
<TextView
2119
android:id="@+id/tv_result"
2220
android:layout_width="wrap_content"
2321
android:layout_height="wrap_content"
24-
android:text=""
22+
android:textIsSelectable="true"
2523
android:textSize="20sp" />
2624
</ScrollView>
2725

android/BarcodeScannerAPISamples/ScanMultipleBarcodes/src/main/res/values-night/themes.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

android/BarcodeScannerAPISamples/ScanSingleBarcode/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plugins {
44

55
android {
66
namespace 'com.dynamsoft.scansinglebarcode'
7-
compileSdk 33
7+
compileSdk 34
88

99
defaultConfig {
1010
applicationId "com.dynamsoft.scansinglebarcode"
1111
minSdk 21
12-
targetSdk 33
12+
targetSdk 34
1313
versionCode 1
1414
versionName "1.0"
1515
}
@@ -27,7 +27,7 @@ android {
2727
}
2828

2929
dependencies {
30-
implementation 'com.dynamsoft:dynamsoftbarcodereaderbundle:10.4.3002'
30+
implementation 'com.dynamsoft:barcodereaderbundle:11.0.3000'
3131

3232
implementation 'androidx.appcompat:appcompat:1.6.1'
3333
implementation 'com.google.android.material:material:1.9.0'
Lines changed: 82 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,105 @@
11
{
2-
"CaptureVisionTemplates": [
3-
{
4-
"Name": "ReadSingleBarcode",
5-
"ImageROIProcessingNameArray": [
6-
"roi_read_single_barcode"
7-
],
8-
"Timeout": 200,
9-
"MaxParallelTasks":0
10-
}
11-
],
12-
"TargetROIDefOptions": [
13-
{
14-
"Name": "roi_read_single_barcode",
15-
"TaskSettingNameArray": [
16-
"task_read_single_barcode"
17-
]
18-
}
19-
],
202
"BarcodeReaderTaskSettingOptions": [
213
{
4+
"ExpectedBarcodesCount": 1,
225
"Name": "task_read_single_barcode",
23-
"ExpectedBarcodesCount":1,
24-
"LocalizationModes": [
25-
{
26-
"Mode": "LM_SCAN_DIRECTLY",
27-
"ScanDirection": 2
28-
},
29-
{
30-
"Mode": "LM_CONNECTED_BLOCKS"
31-
}
32-
],
33-
"DeblurModes":[
34-
{
35-
"Mode": "DM_BASED_ON_LOC_BIN"
36-
},
37-
{
38-
"Mode": "DM_THRESHOLD_BINARIZATION"
39-
},
40-
{
41-
"Mode": "DM_DEEP_ANALYSIS"
42-
}
43-
],
44-
"SectionImageParameterArray": [
6+
"SectionArray": [
457
{
8+
"ImageParameterName": "ip_read_single_barcode",
469
"Section": "ST_REGION_PREDETECTION",
47-
"ImageParameterName": "ip_read_single_barcode"
10+
"StageArray": [
11+
{
12+
"Stage": "SST_PREDETECT_REGIONS"
13+
}
14+
]
4815
},
4916
{
17+
"ImageParameterName": "ip_read_single_barcode",
5018
"Section": "ST_BARCODE_LOCALIZATION",
51-
"ImageParameterName": "ip_read_single_barcode"
19+
"StageArray": [
20+
{
21+
"LocalizationModes": [
22+
{
23+
"Mode": "LM_SCAN_DIRECTLY",
24+
"ScanDirection": 2
25+
},
26+
{
27+
"Mode": "LM_CONNECTED_BLOCKS"
28+
}
29+
],
30+
"Stage": "SST_LOCALIZE_CANDIDATE_BARCODES"
31+
},
32+
{
33+
"Stage": "SST_LOCALIZE_BARCODES"
34+
}
35+
]
5236
},
5337
{
38+
"ImageParameterName": "ip_read_single_barcode",
5439
"Section": "ST_BARCODE_DECODING",
55-
"ImageParameterName": "ip_read_single_barcode"
40+
"StageArray": [
41+
{
42+
"Stage": "SST_RESIST_DEFORMATION"
43+
},
44+
{
45+
"Stage": "SST_COMPLEMENT_BARCODE"
46+
},
47+
{
48+
"Stage": "SST_SCALE_BARCODE_IMAGE"
49+
},
50+
{
51+
"DeblurModes": [
52+
{
53+
"Mode": "DM_BASED_ON_LOC_BIN"
54+
},
55+
{
56+
"Mode": "DM_THRESHOLD_BINARIZATION"
57+
},
58+
{
59+
"Mode": "DM_DEEP_ANALYSIS"
60+
}
61+
],
62+
"Stage": "SST_DECODE_BARCODES"
63+
}
64+
]
5665
}
5766
]
5867
}
5968
],
69+
"CaptureVisionTemplates": [
70+
{
71+
"ImageROIProcessingNameArray": [
72+
"roi_read_single_barcode"
73+
],
74+
"MaxParallelTasks": 0,
75+
"Name": "ReadSingleBarcode",
76+
"Timeout": 200
77+
}
78+
],
6079
"ImageParameterOptions": [
6180
{
62-
"Name": "ip_read_single_barcode",
63-
"TextDetectionMode": {
64-
"Mode": "TTDM_LINE",
65-
"Direction": "UNKNOWN",
66-
"Sensitivity": 3
67-
},
68-
"IfEraseTextZone": 1,
69-
"BinarizationModes": [
81+
"ApplicableStages": [
7082
{
71-
"Mode": "BM_LOCAL_BLOCK",
72-
"BlockSizeX": 39,
73-
"BlockSizeY": 39,
74-
"EnableFillBinaryVacancy": 0
83+
"BinarizationModes": [
84+
{
85+
"BlockSizeX": 39,
86+
"BlockSizeY": 39,
87+
"EnableFillBinaryVacancy": 0,
88+
"Mode": "BM_LOCAL_BLOCK"
89+
}
90+
],
91+
"Stage": "SST_BINARIZE_IMAGE"
7592
}
93+
],
94+
"Name": "ip_read_single_barcode"
95+
}
96+
],
97+
"TargetROIDefOptions": [
98+
{
99+
"Name": "roi_read_single_barcode",
100+
"TaskSettingNameArray": [
101+
"task_read_single_barcode"
76102
]
77103
}
78104
]
79-
}
105+
}

android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/java/com/dynamsoft/scansinglebarcode/MainActivity.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
import androidx.annotation.Nullable;
1313
import androidx.appcompat.app.AppCompatActivity;
1414

15-
/**
16-
* @author: dynamsoft
17-
* Time: 2024/9/29
18-
* Description:
19-
*/
2015
public class MainActivity extends AppCompatActivity {
2116
private ActivityResultLauncher<BarcodeScannerConfig> launcher;
2217

@@ -39,7 +34,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
3934
// You can use the following code to specify the barcode format. If you are using a template file, the "BarcodeFormat" can also be specified via the template file.
4035
//config.setBarcodeFormats(EnumBarcodeFormat.BF_ONED | EnumBarcodeFormat.BF_QR_CODE);
4136
// If you have a customized template file, please put it under "src\main\assets\Templates\" and call the following code.
42-
//config.setTemplateFilePath("ReadSingleBarcode.json");
37+
//config.setTemplateFile("ReadSingleBarcode.json");
4338
// The following settings will display a scan region on the view. Only the barcode in the scan region can be decoded.
4439
//config.setScanRegion(new DSRect(0.15f, 0.3f, 0.85f, 0.7f, true));
4540
// Uncomment the following line to disable the beep sound.

android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/layout/activity_main.xml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
android:layout_height="wrap_content"
1313
android:text="Start Scanning" />
1414

15-
<TextView
16-
android:id="@+id/tv_result"
17-
android:layout_width="wrap_content"
18-
android:layout_height="wrap_content"
19-
android:textSize="28sp"
20-
android:text=""/>
15+
<ScrollView
16+
android:layout_marginHorizontal="16dp"
17+
android:layout_width="match_parent"
18+
android:layout_height="wrap_content">
19+
<TextView
20+
android:id="@+id/tv_result"
21+
android:layout_width="wrap_content"
22+
android:layout_height="wrap_content"
23+
android:textIsSelectable="true"
24+
android:textSize="20sp" />
25+
</ScrollView>
2126
</LinearLayout>

android/BarcodeScannerAPISamples/ScanSingleBarcode/src/main/res/values-night/themes.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)