Skip to content

Update the comment about self-host #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]/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
2 changes: 2 additions & 0 deletions foundational-api-samples/hello-world/hello-world.html
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
3 changes: 2 additions & 1 deletion foundational-api-samples/hello-world/read-an-image.html
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
3 changes: 2 additions & 1 deletion foundational-api-samples/others/debug/public/index.html
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
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
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/[email protected]/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
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/[email protected]/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/[email protected]/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
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