Skip to content

Commit 6b4ba5c

Browse files
update faq about dist folder contents in dynamsoft-barcode-reader-bundle
1 parent 54d3ff4 commit 6b4ba5c

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

programming/javascript/faq/what-is-in-the-dist-folder-of-dbrb.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,31 @@ When you install or extract the `dynamsoft-barcode-reader-bundle` package (from
1212

1313
Below are the common files you'll find and their purposes.
1414

15-
---
1615

1716
## 1. dbr.bundle.js
1817

19-
**Description:**
20-
2118
- The main bundled JavaScript file for the barcode reader SDK
2219
- Include this in your web page to use the SDK without separate imports
2320

24-
---
2521

2622
## 2. dbr.bundle.mjs (ES Module)
2723

28-
**Description:**
29-
3024
- An ES Module version of the bundled SDK
3125
- Useful when using modern build tools like Webpack, Vite, or Rollup
3226

33-
---
27+
## 3. dbr.bundle.d.ts
3428

35-
## 3. TypeScript Definition Files
29+
- Type definitions for TypeScript support
30+
- Provides autocompletion and improves developer experience in TypeScript projects
3631

37-
**Files:** `dbr.bundle.d.ts` / `dbr.bundle.esm.d.ts`
3832

39-
**Description:**
33+
## 4. dbr.bundle.worker.js
4034

41-
- Type definitions for TypeScript support
42-
- Provides autocompletion and improves developer experience in TypeScript projects
35+
- Used for handling CPU-intensive barcode scanning and recognition tasks. Runs in a background thread without blocking the main thread UI
4336

44-
---
37+
- Communicates with the main thread through message passing
4538

46-
## 4. WebAssembly Engine Files
39+
## 5. WebAssembly Engine Files
4740

4841
`dynamsoft-barcode-reader-bundle` requires WASM and Worker scripts to work together in order to achieve highly efficient decoding capabilities.
4942

@@ -57,15 +50,14 @@ Below are the common files you'll find and their purposes.
5750
> The dbr-bundle dynamically selects the most suitable WebAssembly variant based on the current browser environment, in order to maximize browser performance as much as possible. This means that in most cases, only one set of `*.wasm` + `*.wasm.js` files will actually be used at runtime.
5851
> For details about the different WASM variants, please refer to [What Is Adaptive WebAssembly (Wasm) Loading and How Does It Work?](adaptive-wasm-loading.md).
5952
60-
---
6153

62-
## 5. Other Auxiliary Resources
54+
## 6. Other Auxiliary Resources
6355

6456
These folders collectively compose the runtime environment for a JavaScript-based barcode scanner application, providing all necessary assets for ML-based scanning, data parsing, result rendering, and user interaction.
6557

6658
| Folder | Purpose |
6759
|------|---------|
68-
| `models` | Contains pre-trained machine learning models used for barcode detection and recognition. These models enable the scanner to identify and decode various barcode formats from images and video streams in real-time. |
69-
| `parser-resources` | Stores resources required for data parsing and interpretation. |
70-
| `templates` | Contains preset CaptureVisionTemplates used for different barcode scanning scenarios. |
71-
| `ui` | Preset ui in `.html` files. |
60+
| `models/` | Contains pre-trained machine learning models used for barcode detection and recognition. These models enable the scanner to identify and decode various barcode formats from images and video streams in real-time. |
61+
| `parser-resources/` | Stores resources required for data parsing and interpretation. |
62+
| `templates/` | Contains preset CaptureVisionTemplates used for different barcode scanning scenarios. |
63+
| `ui/` | Preset ui in `.html` files. |

0 commit comments

Comments
 (0)