File tree 8 files changed +16
-9
lines changed
blazor/hello-world-blazor/BlazorApp/wwwroot
locate-an-item-with-barcode
8 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 29
29
< script src ="_framework/blazor.webassembly.js "> </ script >
30
30
31
31
< script src ="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist/dbr.bundle.min.js "> </ script >
32
- <!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
33
- <!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
34
32
35
33
< script >
36
34
/** LICENSE ALERT - README
48
46
49
47
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
50
48
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" ] ) ;
51
-
52
49
// Defined globally for easy debugging.
53
50
let cameraEnhancer , cvRouter ;
54
51
let videoModuleLoaded = false ;
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ <h1>Hello World (Decode via Camera)</h1>
35
35
36
36
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
37
37
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" ] ) ;
38
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
39
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
38
40
// Defined globally for easy debugging.
39
41
let cameraEnhancer , cvRouter ;
40
42
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ <h1>Hello World (Read an Image)</h1>
35
35
36
36
// Optional. Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
37
37
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" ] ) ;
38
-
38
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
39
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
39
40
const resultsContainer = document . querySelector ( "#results" ) ;
40
41
41
42
let cvRouter ; // an instance of CaptureVisionRouter
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ <h1 style="font-size: 1.5em">Read Barcodes from Camera - Debug</h1>
47
47
48
48
// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
49
49
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" ] ) ;
50
-
50
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
51
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
51
52
const init = async ( ) => {
52
53
try {
53
54
// Create a `CameraEnhancer` instance for camera control and a `CameraView` instance for UI control.
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ <h3>Click each input box to fill in!</h3>
83
83
84
84
// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
85
85
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" ] ) ;
86
-
86
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
87
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
87
88
const inputsContainer = document . getElementById ( "inputs-container" ) ;
88
89
const loadingIndicator = document . getElementById ( "lib-load" ) ;
89
90
const cameraViewContainer = document . getElementById ( "camera-view-container" ) ;
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ <h6 id="camera-switch-notification"></h6>
308
308
< img hidden id ="cross-icon " src ="icons/cross-icon.svg " />
309
309
< script src ="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist/dbr.bundle.min.js "> </ script >
310
310
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
311
- <!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
311
+ <!-- <script src="../../../../ distributables/dbr.bundle.js"></script> -->
312
312
313
313
< script >
314
314
/** LICENSE ALERT - README
@@ -324,6 +324,8 @@ <h6 id="camera-switch-notification"></h6>
324
324
325
325
// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
326
326
Dynamsoft . Core . CoreModule . loadWasm ( [ "dbr" ] ) ;
327
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
328
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../../distributables/";
327
329
328
330
const cameraViewContainer = document . getElementById ( "camera-view-container" ) ;
329
331
const cameraViewTitle = document . getElementById ( "camera-view-title" ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ <h1>Read a Driver's License</h1>
51
51
</ div >
52
52
< script src ="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist/dbr.bundle.min.js "> </ script >
53
53
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
54
- <!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
54
+ <!-- <script src="../../../../ distributables/dbr.bundle.js"></script> -->
55
55
< script src ="https://cdn.jsdelivr.net/npm/dynamsoft-code-parser@2.4.32/dist/dcp.js "> </ script >
56
56
< script >
57
57
/** LICENSE ALERT - README
@@ -69,6 +69,8 @@ <h1>Read a Driver's License</h1>
69
69
70
70
// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
71
71
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" , "DCP" ] ) ;
72
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
73
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../../distributables/";
72
74
Dynamsoft . DCP . CodeParserModule . loadSpec ( "AAMVA_DL_ID" ) ;
73
75
Dynamsoft . DCP . CodeParserModule . loadSpec ( "AAMVA_DL_ID_WITH_MAG_STRIPE" ) ;
74
76
Dynamsoft . DCP . CodeParserModule . loadSpec ( "SOUTH_AFRICA_DL" ) ;
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ <h3>Scan barcodes to display results as overlays on video</h3>
64
64
65
65
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
66
66
Dynamsoft . Core . CoreModule . loadWasm ( [ "DBR" ] ) ;
67
-
67
+ // // If the network is unstable or you prefer to self-host the SDK, uncomment the line below to define the root path of the engine files
68
+ // Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
68
69
const resultsContainer = document . querySelector ( "#results" ) ;
69
70
70
71
( async ( ) => {
You can’t perform that action at this time.
0 commit comments