Can I read barcodes from existing files?
Yes, the JavaScript SDK supports reading from a file in local memory. This can be achieved via the Caputure
class.
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
let results = await router.capture("blob:https://demo.dynamsoft.com/afb84bd2-e8cb-4b96-92b6-36dc89783692", "ReadSingleBarcode");
let count = results.items.length;
for(let i = 0; i < count; i++) {
//...
}
this article shows how to read barcodes from existing images and a list of supported input types.