zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.

Home Page:https://zxing-js.github.io/library/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wait on scan

Webcom-tlc opened this issue · comments

Hello everybody,
sorry my english but it is not my language.
Is there a way I can give some time between one scan and another?

Thank you all for help

You can configure delay using an argument timeBetweenScansMillis passed to the Reader.

const reader = new BrowserBarcodeReader(1000);

https://github.com/zxing-js/library/blob/master/src/browser/BrowserBarcodeReader.ts#L16