How to scan barcodes using different orientations