Added Scanner class that recognised barcodes from grayscale input.