Skip to content

Commit 30c7c6c

Browse files
committed
add example driver's license image
1 parent 984a330 commit 30c7c6c

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

scenarios/read-a-drivers-license/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ A focused demo that decodes and parses barcode data from driver's license images
77
- `index.html` — main demo page (camera + image input UI).
88
- `SampleDriversLicense.jpg` — example license image.
99
- `read_dl.json` — JSON template used by the sample.
10-
- `style.css` — page styles.
1110

1211
## ✨ Features
1312

342 KB
Loading

scenarios/read-a-drivers-license/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1 class="home-page-title">Read a Driver's License</h1>
3737
const parsedResultList = document.querySelector(".parsed-result-list");
3838
const backToScan = document.querySelector(".back-to-scan");
3939

40-
const licenseString = "DLS2eyJoYW5kc2hha2VDb2RlIjoiODAwMC04MDAwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vMTkyLjE2OC44LjEyMi9kbHMvIiwib3JnYW5pemF0aW9uSUQiOiI4MDAwIiwiY2hlY2tDb2RlIjotMTA1NjUzOTM3M30=";
40+
const licenseString = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
4141

4242
(async () => {
4343
await Dynamsoft.License.LicenseManager.initLicense(licenseString, { executeNow: true });
@@ -57,6 +57,11 @@ <h1 class="home-page-title">Read a Driver's License</h1>
5757
"multi_unique": "ReadDriversLicense",
5858
"image": "ReadDriversLicense"
5959
},
60+
scannerViewConfig: {
61+
showFlashButton: true,
62+
showCloseButton: false,
63+
cameraSwitchControl: "toggleFrontBack",
64+
},
6065
onInitReady: () => {
6166
homePage.style.display = "none";
6267
}

scenarios/read-vin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This focused demo decodes and parses VIN barcodes from vehicle images or live ca
55
## Included files
66

77
- `index.html` — main demo page (camera + image/file input UI)
8-
- `SampleVIN.jpg` — example vehicle image with a VIN barcode (if not present, use your own test image)
9-
- `read_vin.json` — JSON template used by the sample. used by the sample
8+
- `SampleVIN.jpg` — example image with a VIN barcode (or you can use your own test image)
9+
- `read_vin.json` — JSON template used by the sample.
1010

1111
## Features
1212

scenarios/read-vin/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1 class="home-page-title">Read VIN</h1>
3636
const parsedResultList = document.querySelector(".parsed-result-list");
3737
const backToScan = document.querySelector(".back-to-scan");
3838

39-
const licenseString = "DLS2eyJoYW5kc2hha2VDb2RlIjoiODAwMC04MDAwIiwibWFpblNlcnZlclVSTCI6Imh0dHBzOi8vMTkyLjE2OC44LjEyMi9kbHMvIiwib3JnYW5pemF0aW9uSUQiOiI4MDAwIiwiY2hlY2tDb2RlIjotMTA1NjUzOTM3M30=";
39+
const licenseString = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
4040

4141
(async () => {
4242
await Dynamsoft.License.LicenseManager.initLicense(licenseString, { executeNow: true });
@@ -57,6 +57,11 @@ <h1 class="home-page-title">Read VIN</h1>
5757
"multi_unique": "ReadVIN",
5858
"image": "ReadVIN"
5959
},
60+
scannerViewConfig: {
61+
showFlashButton: true,
62+
showCloseButton: false,
63+
cameraSwitchControl: "toggleFrontBack",
64+
},
6065
onInitReady: () => {
6166
homePage.style.display = "none";
6267
}

0 commit comments

Comments
 (0)