FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update the comment about self-host by a362758199 · Pull Request #248 · Dynamsoft/barcode-reader-javascript-samples · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .html  (8) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
<script src="_framework/blazor.webassembly.js"></script>

<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist/dbr.bundle.min.js"></script>
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
<!-- <script src="../../../distributables/dbr.bundle.js"></script> -->

<script>
/** LICENSE ALERT - README
Expand All @@ -48,7 +46,6 @@

// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);

// Defined globally for easy debugging.
let cameraEnhancer, cvRouter;
let videoModuleLoaded = false;
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ <h1>Hello World (Decode via Camera)</h1>

// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);
// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
// Defined globally for easy debugging.
let cameraEnhancer, cvRouter;

Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ <h1>Hello World (Read an Image)</h1>

// Optional. Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);

// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
const resultsContainer = document.querySelector("#results");

let cvRouter; // an instance of CaptureVisionRouter
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ <h1 style="font-size: 1.5em">Read Barcodes from Camera - Debug</h1>

// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);

// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
const init = async () => {
try {
// Create a `CameraEnhancer` instance for camera control and a `CameraView` instance for UI control.
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ <h3>Click each input box to fill in!</h3>

// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);

// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
const inputsContainer = document.getElementById("inputs-container");
const loadingIndicator = document.getElementById("lib-load");
const cameraViewContainer = document.getElementById("camera-view-container");
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h6 id="camera-switch-notification"></h6>
<img hidden id="cross-icon" src="icons/cross-icon.svg" />
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist/dbr.bundle.min.js"></script>
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
<!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
<!-- <script src="../../../../distributables/dbr.bundle.js"></script> -->

<script>
/** LICENSE ALERT - README
Expand All @@ -324,6 +324,8 @@ <h6 id="camera-switch-notification"></h6>

// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
Dynamsoft.Core.CoreModule.loadWasm(["dbr"]);
// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../../distributables/";

const cameraViewContainer = document.getElementById("camera-view-container");
const cameraViewTitle = document.getElementById("camera-view-title");
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1>Read a Driver's License</h1>
</div>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.5.3000/dist/dbr.bundle.min.js"></script>
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
<!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
<!-- <script src="../../../../distributables/dbr.bundle.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-code-parser@2.4.32/dist/dcp.js"></script>
<script>
/** LICENSE ALERT - README
Expand All @@ -69,6 +69,8 @@ <h1>Read a Driver's License</h1>

// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
Dynamsoft.Core.CoreModule.loadWasm(["DBR", "DCP"]);
// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../../distributables/";
Dynamsoft.DCP.CodeParserModule.loadSpec("AAMVA_DL_ID");
Dynamsoft.DCP.CodeParserModule.loadSpec("AAMVA_DL_ID_WITH_MAG_STRIPE");
Dynamsoft.DCP.CodeParserModule.loadSpec("SOUTH_AFRICA_DL");
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ <h3>Scan barcodes to display results as overlays on video</h3>

// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);

// // 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
// Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "../../../distributables/";
const resultsContainer = document.querySelector("#results");

(async () => {
Expand Down

Back | FazBrowse Home | New Git URL