| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
ES6 modules allow you to use modern JavaScript features with native import/export syntax. Follow this guide to learn how to implement Dynamsoft Barcode Reader JavaScript SDK (hereafter called "the library") into an ES6 application using the foundational API to decode barcodes from a live camera stream.
In this guide, we will be using dynamsoft-barcode-reader-bundle 11.6.3200.
Note:
If you're looking to integrate DBR-JS into a framework that we don't yet have a sample, don't worry! We have a comprehensive guide that provides detailed instruction and best practices for a seamless integration into any frameworks!
Additionally, we're here to help! Please don't hesitate to contact us for any support or questions you might have.
Open es6.html in a web browser (via http:// or https:// protocol, not file://).
This sample demonstrates:
import {
CoreModule,
LicenseManager,
CaptureVisionRouter,
CameraView,
CameraEnhancer,
MultiFrameResultCrossFilter,
} from "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.3200/dist/dbr.bundle.mjs";const cameraView = await CameraView.createInstance();
const cameraEnhancer = await CameraEnhancer.createInstance(cameraView);
document.querySelector("#camera-view-container").append(cameraView.getUIElement());const cvRouter = await CaptureVisionRouter.createInstance();
cvRouter.setInput(cameraEnhancer);
await cvRouter.startCapturing("ReadSingleBarcode");For more advanced customization options, please check the official documentation.
If you have any questions, feel free to contact Dynamsoft Support.
| Back | FazBrowse Home | New Git URL |