serratus / quaggaJS

An advanced barcode-scanner written in JavaScript
https://serratus.github.io/quaggaJS/
MIT License
5.08k stars 978 forks source link

pass the scanned barcode as text in input text #499

Open dimkoug opened 1 year ago

dimkoug commented 1 year ago

When i use the live locator example the output is an image , how to send the scanned barcode to a text field ?

L30-stack commented 1 year ago

Quagga.onDetected(callback)

Registers a callback(data) function which is triggered whenever a barcode- pattern has been located and decoded successfully. The passed data object contains information about the decoding process including the detected code which can be obtained by calling data.codeResult.code