File tree Expand file tree Collapse file tree 5 files changed +14
-5
lines changed
Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments