-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update dcv bundle to 2.4.2000 (#20)
- Loading branch information
1 parent
e2e3c37
commit 36436ec
Showing
4 changed files
with
6 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -11,12 +11,6 @@ Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMD | |
* LICENSE ALERT - THE END | ||
*/ | ||
|
||
// Dynamsoft Image Processing and Label Recognizer resource path optimized for VIN Scanning | ||
Dynamsoft.Core.CoreModule.engineResourcePaths.dip = | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist"; | ||
Dynamsoft.Core.CoreModule.engineResourcePaths.dlr = | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/"; | ||
|
||
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding. | ||
Dynamsoft.Core.CoreModule.loadWasm(["DBR", "DLR", "DCP"]); | ||
|
||
|
This file contains 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ <h3 id="scan-title"></h3> | |
Results: | ||
<div id="result-image-container"></div> | ||
<div id="results"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-bundle@2.2.3000/dist/dcv.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-bundle@2.4.2000/dist/dcv.bundle.min.js"></script> | ||
<script> | ||
/** LICENSE ALERT - README | ||
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below. | ||
|
@@ -38,21 +38,17 @@ <h3 id="scan-title"></h3> | |
* LICENSE ALERT - THE END | ||
*/ | ||
|
||
// Dynamsoft Image Processing and Label Recognizer resource path optimized for VIN Scanning | ||
Dynamsoft.Core.CoreModule.engineResourcePaths.dip = | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist"; | ||
Dynamsoft.Core.CoreModule.engineResourcePaths.dlr = | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/"; | ||
|
||
// Optional. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding. | ||
Dynamsoft.Core.CoreModule.loadWasm(["DBR", "DLR", "DCP"]); | ||
|
||
let cameraView, cameraEnhancer, cvRouter; // Global variables for easy debugging | ||
const init = async () => { | ||
// [Optional] - Create custom UI for CameraView | ||
// Ref: https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/user-guide/index.html#customize-the-ui | ||
cameraView = await Dynamsoft.DCE.CameraView.createInstance(document.getElementById("camera-view-container")); | ||
cameraView = await Dynamsoft.DCE.CameraView.createInstance(); | ||
cameraEnhancer = await Dynamsoft.DCE.CameraEnhancer.createInstance(cameraView); // Create a `CameraEnhancer` instance for camera control and a `CameraView` instance for UI control. | ||
document.getElementById("camera-view-container").append(cameraView.getUIElement()); | ||
|
||
cvRouter = await Dynamsoft.CVR.CaptureVisionRouter.createInstance(); // Create a `CaptureVisionRouter` instance and set `CameraEnhancer` instance as its image source. | ||
|
||
cameraView.setVideoFit("cover"); | ||
|