Skip to content

Commit c26c125

Browse files
committed
fix
1 parent 2009595 commit c26c125

31 files changed

+182
-53
lines changed

barcode-reader/general/avoid-incorrect-barcode-results.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ needAutoGenerateSidebar: false
88

99
# How to avoid incorrect barcode results?
1010

11-
- One method is to raise the value of [minResultConfidence](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minresultconfidence) of the `RuntimeSettings` to a value of 50 or higher. It is set to 30 by default.
12-
- If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the [minBarcodeTextLength](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minbarcodetextlength) property of the `RuntimeSettings`, the SDK can ignore results that are consistently coming out shorter than expected.
11+
- One method is to raise the value of [minResultConfidence](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interfaces/simplified-barcode-reader-settings.html#minresultconfidence) of the `SimplifiedBarcodeReaderSettings` to a value of 50 or higher. It is set to 30 by default.
12+
- If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the [minBarcodeTextLength](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interfaces/simplified-barcode-reader-settings.html#minbarcodetextlength) property of the `SimplifiedBarcodeReaderSettings`, the SDK can ignore results that are consistently coming out shorter than expected.
1313

1414
---
1515

barcode-reader/general/dbr-supports-pdf.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ The **only exceptions** are the **JavaScript edition** and the **Mobile edition*
1414
### Do I need an extra license to read PDF files?
1515
No. **Reading from PDF files does not require any additional license**. It is fully included in the standard SDK license.
1616

17+
### How to scan specific pages of a pdf file?
18+
hen processing PDF files, you can use the **[`set_pages()`](https://www.dynamsoft.com/capture-vision/docs/server/programming/python/api-reference/utility/directory-fetcher.html?product=dbr&lang=python#set_pages)** method to specify which pages should be scanned.
19+
This helps improve performance by avoiding unnecessary page processing.
20+
- DirectoryFetcher
21+
```python
22+
23+
# Example DirectoryFetcher: process only page 1 and page 3
24+
# (page index follows the SDK's page numbering rules)
25+
fetcher = DirectoryFetcher()
26+
fetcher.set_directory("PATH_TO_YOUR_FOLDER")
27+
fetcher.set_pages([1, 3])
28+
29+
cvr.set_input(fetcher)
30+
```
31+
- FileFetcher
32+
```python
33+
34+
# Example FileFetcher: process only page 1 and page 3
35+
# (page index follows the SDK's page numbering rules)
36+
fetcher = FileFetcher()
37+
fetcher.set_file("PATH_TO_YOUR_PDF")
38+
fetcher.set_pages([1, 3])
39+
40+
cvr.set_input(fetcher)
41+
```
42+
1743
### Additional Note: Multithreading Limitation
1844
Please be aware that **PDF decoding does not support multithreading**.
1945
Even if your application uses multiple threads, PDF files will still be processed **single-threaded** due to the way PDF pages are handled internally.

barcode-reader/general/scan-specific-page.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
379 KB
Loading
195 KB
Loading

barcode-reader/mobile/configuration/reduce-battery-consumption.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ If you're noticing high battery consumption while using Dynamsoft Barcode Reader
1919
If scanning is only needed occasionally, be sure to stop the camera and barcode processing once the task is complete.
2020
Call the appropriate method to stop capturing:
2121

22-
- **Android**: [`stopCapturing`]({{ site.dcvb_android_api }}capture-vision-router/multiple-file-processing.html#stopcapturing)
23-
- **iOS**: [`stopCapturing`]({{ site.dcvb_ios_api }}capture-vision-router/multiple-file-processing.html#stopcapturing)
22+
- **Android**: [`stopCapturing`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/ios/api-reference/capture-vision-router/multiple-file-processing.html?product=dbr&lang=objectivec-swift#stopcapturing)
23+
- **iOS**: [`stopCapturing`](http://dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/capture-vision-router/multiple-file-processing.html?product=dbr&lang=android#stopcapturing)
2424

2525
This ensures that system resources like the camera and CPU are properly released, reducing battery drain.
2626

@@ -32,8 +32,8 @@ In continuous scanning mode, you can reduce the scanning frequency to conserve e
3232

3333
- **Property**: `minImageCaptureInterval`
3434
- **Class**:
35-
- Android: [`SimplifiedCaptureVisionSettings`]({{ site.dcvb_android_api }}capture-vision-router/auxiliary-classes/simplified-capture-vision-settings.html)
36-
- iOS: [`DSSimplifiedCaptureVisionSettings`]({{ site.dcvb_ios_api }}capture-vision-router/auxiliary-classes/simplified-capture-vision-settings.html)
35+
- Android: [`SimplifiedCaptureVisionSettings`](https://dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/capture-vision-router/settings.html?product=dbr&lang=android#gettemplatenames)
36+
- iOS: [`DSSimplifiedCaptureVisionSettings`](https://dynamsoft.com/capture-vision/docs/mobile/programming/ios/api-reference/capture-vision-router/settings.html?product=dbr&lang=objectivec-swift#stopcapturing)
3737

3838
Setting a **higher interval** reduces how often frames are fetched and processed, leading to:
3939

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
## How to use Debug Mode in Barcode Scanner X?
2+
3+
If you are experiencing app crashes in your own application or you’ve come across some barcode(s) that you can’t read and you have exhausted all of the other troubleshooting methods, Debug Mode of the [BarcodeScannerX](https://www.dynamsoft.com/barcode-reader/sdk-mobile/#appDemo) demo app can help offer one last effort to resolve these issues.
4+
5+
This next section will explain how to toggle on debug mode on the demo app, and will then dive into how to collect crash logs and/or image samples.
6+
7+
1. From the home screen, go to Advanced Scan.
8+
9+
<img src="../assets/any_codes.png" alt="Home screen" width="50%" height="50%">
10+
11+
2. Tap the settings icon at the top-right corner.
12+
13+
<img src="../assets/any_codes_setting.png" alt="Advanced scan" width="50%" height="50%">
14+
15+
3. Tap Debug Mode to see the drop-down list.
16+
17+
<img src="../assets/debug_mode.jpg" alt="Debug mode" width="50%" height="50%">
18+
19+
### Debug Mode - Crash Logger
20+
21+
If you are encountering an app crash caused by Dynamsoft Barcode Reader or Dynamsoft Camera Enhancer SDK, you need to use the Crash Logger.
22+
23+
1. Toggle on Crash Logger
24+
25+
<img src="../assets/crash_toggle_on.jpg" alt="Crash toggle on" width="50%" height="50%">
26+
27+
2. After Crash Logger is toggled on, please go ahead and scan codes until you reproduce the crash issue.
28+
29+
3. After the app crashes, re-open BarcodeScannerX app and go to Advanced Scan -> settings. Tap the "Share" button to share the log files with the [Dynamsoft support team](https://www.dynamsoft.com/contact/?ver=latest).
30+
31+
<img src="../assets/crash_share.jpg" alt="Crash share" width="50%" height="50%">
32+
33+
### Debug Mode - Image Cropper
34+
35+
If you are having trouble reading barcodes, you should use the Image Cropper to capture some sample image(s) or frame(s) and send them to the Dynamsoft Support Team:
36+
37+
1. Toggle on Image Cropper
38+
39+
<img src="../assets/image_cropper_toggle.jpg" alt="Image crop toggle on" width="50%" height="50%">
40+
41+
2. After Image Cropper is toggled on, an image crop icon will show up at the bottom left of Advanced Scan
42+
43+
<img src="../assets/crop.jpg" alt="crop" width="50%" height="50%">
44+
45+
3. Tap the image crop icon to crop and share the original frames with the [Dynamsoft support team](https://www.dynamsoft.com/contact/?ver=latest). Our support team will investigate the video frames and get back to you with a solution as soon as possible.
46+
47+
## How to Enable QR Code Model 1 in Barcode Scanner X?
48+
49+
Nowadays, most QR codes are QR code Model 2. BarcodeScannerX, by default, only support QR code Model 2. If you want to test QR code Model 1 on BarcodeScannerX, here is what you can do:
50+
51+
1. Visit Dynamsoft barcode reader <a href="https://demo.dynamsoft.com/barcode-reader/" target="_blank">online demo</a>.
52+
2. Click on Advanced Settings
53+
54+
<div align="left">
55+
<p><img src="../assets/advanced-settings.jpg" width="40%" alt="advanced settings"></p>
56+
</div>
57+
58+
3. Check **EnableQRCodeModel1**.(You can modify any other settings as you like)
59+
4. Save the template.
60+
61+
<div align="left">
62+
<p><img src="../assets/save-template.jpg" width="40%" alt="save template"></p>
63+
</div>
64+
65+
5. Send the template to <a href="https://www.dynamsoft.com/contact/?ver=latest" target="_blank">Dynamsoft support team</a>.
66+
6. We will generate and send a link to you.
67+
7. Click **Import Template** in the Advanced Scan settings of BarcodeScannerX. Then input the link.
68+
8. Now you can scan QR code Model 1!

barcode-reader/mobile/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ Welcome to the FAQ for Dynamsoft Barcode Reader on mobile platforms. Browse the
2020
## Configuration
2121

2222
- [Driver's License Extraction](configuration/drivers-license-extraction.html)
23-
- [No Camera Enhancer](configuration/no-camera-enhancer.html)
23+
- [How can I use AVCaptureSession, CameraX or third-party camera modules with Dynamsoft Barcode Reader - Android?](configuration/no-camera-enhancer.html)
2424
- [Proguard Instructions](configuration/proguard.html)
2525
- [Reduce Battery Consumption](configuration/reduce-battery-consumption.html)
2626
- [App Size Impact](configuration/app-size-impact.html)
2727

2828
## Scan Settings
2929

30-
- [Disable Continuous Scanning](scan-setting/disable-continuous-scanning.html)
30+
- [How can I implement continuous barcode scanning and one-off barcode scanning?](scan-setting/disable-continuous-scanning.html)
3131
- [Enable QR Code Model 1](scan-setting/how-to-enable-qr-model-one.html)
3232
- [Template Support](scan-setting/template-support.html)
3333

@@ -43,6 +43,6 @@ Welcome to the FAQ for Dynamsoft Barcode Reader on mobile platforms. Browse the
4343

4444
## Debugging & Troubleshooting
4545

46-
- [Using Debug Mode](debug/debug-mode.html)
4746
- [Page Freeze Issues](debug/page-freeze.html)
4847
- [Troubleshooting Failed Image Decoding](debug/troubleshooting-failed-image.html)
48+
- [How to use Debug Mode in Barcode Scanner X?](debug/debug-mode.html)

barcode-reader/mobile/scan-setting/disable-continuous-scanning.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Dynamsoft Barcode Reader (DBR) supports both **one-off scanning** and **continuo
1717
### Android
1818

1919
- **[All Samples](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/samples/index.html?ver=latest){:target="\_blank"}**
20-
- **[Hello World (One-off Scanning)](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/samples/helloworld.html?ver=latest){:target="\_blank"}**
21-
- **[GeneralSettings (Continuous Scanning)](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/android/samples/general.html){:target="\_blank"}**
20+
- **[Hello World (One-off Scanning)](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/BarcodeScannerAPISamples/ScanSingleBarcode)**
21+
- **[GeneralSettings (Continuous Scanning)](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/android/FoundationalAPISamples/GeneralSettings)**
2222

2323
### iOS
2424

2525
- **[All Samples](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/objectivec-swift/samples/index.html?ver=latest){:target="\_blank"}**
26-
- **[Hello World (One-off Scanning)](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/objectivec-swift/samples/helloworld.html?ver=latest){:target="\_blank"}**
27-
- **[GeneralSettings (Continuous Scanning)](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/objectivec-swift/samples/general.html?ver=latest){:target="\_blank"}**
26+
- **[Hello World (One-off Scanning)](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/ios/BarcodeScannerAPISamples/ScanSingleBarcode)**
27+
- **[GeneralSettings (Continuous Scanning)](https://github.com/Dynamsoft/barcode-reader-mobile-samples/tree/main/ios/FoundationalAPISamples/GeneralSettings)**
2828

2929
---
3030

barcode-reader/mobile/scan-setting/template-support.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ needAutoGenerateSidebar: true
1414

1515
Before a barcode reader instance can be created, a one-time license validation needs to occur when the app initializes (or whenever the license is set before the reader instance is created). Occasionally, this process may take a second to complete and could cause the UI to appear frozen.
1616

17-
A common cause is calling [`LicenseManager.initLicense()`]({{ site.dcvb_ios_api }}license/license-manager.html#initlicense) multiple times in the same process. For example, if you call `initLicense` in both the `AppDelegate` and the `ViewController`, a conflict might occur.
17+
A common cause is calling [`LicenseManager.initLicense()`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/ios/api-reference/license/license-manager.html?product=dbr&lang=objectivec-swift#initlicense) multiple times in the same process. For example, if you call `initLicense` in both the `AppDelegate` and the `ViewController`, a conflict might occur.
1818

1919
**Recommendation**: Call `initLicense` only once, ideally in the `AppDelegate`.
2020

@@ -29,8 +29,8 @@ In the **Barcode Scanner X** app:
2929

3030
Once you have the template file, you can use it in your app with either:
3131

32-
- [`initSettings`]({{ site.dcvb_android_api }}capture-vision-router/settings.html)
33-
- [`initSettingsFromFile`]({{ site.dcvb_android_api }}capture-vision-router/settings.html)
32+
- [`initSettings`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/capture-vision-router/settings.html?product=dbr&lang=android#gettemplatenames)
33+
- [`initSettingsFromFile`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/capture-vision-router/settings.html?product=dbr&lang=android#gettemplatenames)
3434

3535

3636
---

0 commit comments

Comments
 (0)