There is a ubuntu touch project that show you a proof of concept of barcode reader. It's a QtQuick port of the ZXing multi-format 1D/2D barcode image processing library
based on the great work of https://sourceforge.net/p/qzxing/ and https://github.com/dplanella/qzxing