Skip to content

Commit 2577a17

Browse files
authored
Update README.md
add links to samples; re-wording
1 parent c9ac848 commit 2577a17

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

4.use-case/README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
# Use Case Sample Set
22

3-
This sample set explores some of the most popular real world applications of the `DBR` library that our team has encountered throughout our many years of experience.
3+
This sample set explores some of the most popular real world applications of Dynamsoft's barcode reader library:
44

5-
## Filling a Form Field with the Barcode Scanner
5+
- [fill a form with barcode reading](./1.fill-a-form-with-barcode-reading.html)
6+
- [read driver license](./2.read-a-drivers-license.html)
67

7-
The first sample will demonstrate how to implement one of, if not the most common usage scenario our library encounters: Filling a form or form field based on the barcode result.
8+
## Filling a Form using Barcode Scanner
89

9-
Usually this scenario involves oopening the video scanner on the click of a button, and then once the barcode is scanned, the barcode result would show up in a corresponding form field. In some cases, the form field would come with a tooltip style of button to allow the user to open the scanner on the click of that icon.
10+
The first sample demonstrates how to automatically fill out a form using barcode scanning.
1011

11-
## Filling out Driver's License Info via the Barcode Scanner
12+
Users can click a button to read barcodes from a video, and once a barcode is scanned, the barcode result will be filled to the corresponding form field. Or the form field can come with a tooltip style of button for users to click and open the scanner.
1213

13-
Another very popular scenario is extracting the driver license info that is encoded on the back of driver licenses into a readable text. The text that is normally encoded in the barcode comes as one large string, separated by abbreviations only. The string will in turn require parsing and mapping to have all the info in its corresponding fields.
14+
## Filling Out Driver's License Info via Barcode Scanner
1415

15-
In order to ensure that the scanner picks up only PDF417 barcode types, we first ensure that the `barcodeFormatIds` of the `RuntimeSettings` is set to `BF_PDF417`. This way, the scanner is better configured to pick up the driver license barcodes.
16+
Another popular usage scenario is to scan the barcodes on driver licenses for automatic ID data extraction.
1617

17-
The core text extraction happens in the function `extractInformation`. Please pay special attention to the `driverLicenseFields` variable, which contains all the mapping defintions for the different abbreviations.
18+
With the barcode reader library, you can get a large text string from the driver license PDF417 barcode. You can then parse the string and get the value of corresponding fields.
1819

19-
By following a similar extraction and mapping mechanism, you can easily implement this feature in your own web application.
20+
In this use case, we want the scanner to pick up PDF417 barcode only, so we set `barcodeFormatIds` in `RuntimeSettings` to `BF_PDF417`.
21+
22+
The core text extraction happens in the function `getDLInfo()`. Please pay special attention to the `driverLicenseFields` variable, which contains all the mapping defintions for the different abbreviations.
23+
24+
By following a similar extraction and mapping mechanism, you can easily implement driver license scanning in your own web application.
2025

2126
## Support
2227

23-
If you have any questions, feel free to contact Dynamsoft support via [email](mailto:support@dynamsoft.com) or [live chat](https://www.dynamsoft.com/barcode-reader/overview/) via the "Let's Chat" button.
28+
If you have any questions, feel free to [contact Dynamsoft](https://www.dynamsoft.com/company/contact/).

0 commit comments

Comments
 (0)