Skip to content

Commit 96809ac

Browse files
committed
add readme
1 parent 88f134d commit 96809ac

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

README.md

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,63 @@
1-
# dbr-browser-samples
1+
# Dynamsoft Barcode Reader samples for the web
2+
3+
This repository contains multiple samples that demonstrates how to use the [Dynamsoft Barcode Reader JavaScript Edition](https://www.dynamsoft.com/barcode-reader/sdk-javascript/).
4+
5+
## Hello World samples
6+
7+
Get the basic features of the library working with plain/native JavaScript or within a framework like [Angular](https://angular.io/), [React](https://reactjs.org/) or [Vue](https://vuejs.org/), etc.
8+
9+
* Simplest Implementation: Minimum necessary JavaScript code to get the BarcodeScanner (video) up and running.
10+
* Read an Existing Image: Decode barcodes using images that are stored locally, whether on mobile or desktop.
11+
* Hello World in Angular: Decode video stream in an Angular Application from a USB-connected or built-in camera (mobile or desktop).
12+
* Hello World in React: Decode video stream in a React Application from a USB-connected or built-in camera (mobile or desktop).
13+
* Hello World in Vue: Decode video stream in a Vue Application from a USB-connected or built-in camera (mobile or desktop).
14+
15+
## Customize Camera UI
16+
17+
* Use the Default Camera UI: Show the default camera UI to decode video stream from a USB-connected or built-in camera (mobile or desktop).
18+
* Hide Built-in Controllers: Hide built-in UI elements (camera selection, resolution selection, etc.) and show only the video stream.
19+
* Use External Controllers: Use custom controllers to manipulate the Camera UI.
20+
* Enlarge the Video Stream: Enlarge the video stream temporarily to read a barcode.
21+
22+
## Settings
23+
24+
How to configure different settings of the library.
25+
26+
* Formats and Count: Set the barcode formats and control the number of barcodes to read per image/frame.
27+
* Localization and Binarization: Set how localization and binarization are done during barcode decoding.
28+
* Blurry or Small codes: Set DeblurModes and ScaleUpModes for decoding blurry or small barcodes.
29+
* Deformed or Incomplete codes: Set DeformationResistingModes or BarcodeComplementModes for decoding deformed or incomplete barcodes.
30+
* Define or Detect the Region: Set the region of interest manually or regionPredetectionModes to speed up the reading process.
31+
* Try All Settings: Try all available settings.
32+
33+
## Real-World
34+
35+
Real-world usage of the library.
36+
37+
* Read Video and Fill a Form: Read barcodes to fill a form.
38+
* Read a Driver's License: Read the PDF417 barcode on a driver's license (AAMVA compliant) and parse it.
39+
40+
> NOTE
41+
>
42+
> The library requires a license to work, the APIs organizationID and handshakeCode specify how to acquire a license.
43+
>
44+
> If nothing is specified, a 7-day (public) trial license will be used by default which is the case in this sample.
45+
> Note that network connection is required for this license acquisition to work.
46+
>
47+
> When using your own license, please uncomment the following lines in the code and fill in your own information.
48+
>
49+
> For more information, please refer to https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license.
50+
>
51+
> ``` javascript
52+
> // Dynamsoft.DBR.BarcodeReader.organizationID = "YOUR-ORGANIZATION-ID";
53+
> // Dynamsoft.DBR.BarcodeReader.handshakeCode = "A-SPECIFIC-HANDSHAKECODE";
54+
> // Dynamsoft.DBR.BarcodeReader.sessionPassword = "PASSWORD-TO-PROTECT-YOUR-LICENSE"; // Important field to protect your license.
55+
> // Dynamsoft.DBR.BarcodeReader.licenseServer = ["YOUR-OWN-MAIN-LTS", "YOUR-OWN-STANDBY-LTS"]; // Ignore this line if you are using Dynamsoft-hosting LTS
56+
> ```
57+
> The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
58+
>
59+
> ``` javascript
60+
> // Dynamsoft.DBR.BarcodeReader.productKeys = "YOUR-PRODUCT-KEY";
61+
> ```
62+
63+
If you have any questions with these samples, feel free to submit an issue or [contact us](https://www.dynamsoft.com/company/contact/).

0 commit comments

Comments
 (0)