download.png (22.1 KB)
I have a sample dotcode that will be lazer printed onto an item. I do not seem to be able to scan it with the following config and code as follows:
const config = new Barcode.Configuration(
“308b67a2-cfcb-4674-8c6f-d91e5f5cf9a8”,
“64c2e9bef0dd574375555df9f9759436”,
null,
null
);
const api = new Barcode.BarcodeApi(config);
async function recognizeBarcode(api) {
const request = new Barcode.PostBarcodeRecognizeFromUrlOrContentRequest();
request.image = fs.readFileSync(“testfule.png”);
request.type = Barcode.DecodeBarcodeType.All;
request.preset = Barcode.PresetType.HighPerformance;
request.fastScanOnly = false;
const result = await api.postBarcodeRecognizeFromUrlOrContent(request);
return result.body.barcodes;
}
Please assist if there are any changes needed or if it is currently not possible to do so