Hi,
the barcode scanner linked above is the best solution. It scans the numbero of the barcode or the string of the qr code.
Be aware of the fact that you can only use camera functionality for MOBILE NATIVE APPS. If you try to use it on a hybrid or web app it will log an error because it’s not implemented.
Hope it helps!