APEX Plug-in to scan barcodes using Dynamsoft Barcode Reader v9.
Run the following code to start scanning:
(async () => {
if (DBRExtension.reader) {
await DBRExtension.open(); // open the camera
DBRExtension.startScanning(); // start a loop to read barcodes from camera frames
}else{
alert("The barcode scanner is still initializing.");
}
})();
Run the following code to stop scanning:
DBRExtension.stopScanning();
DBRExtension.close();
Run the following code to get the barcode results of the last successful scan:
DBRExtension.getResults();
- styles. CSS styles for the container.
- license. License for Dynamsoft Barcode Reader. You can apply your license here.
- Barcode result container. Specify the ID for the container of the barcode result.
- template. Specify the runtime settings for Dynamsoft Barcode Reader.