Step three: barcode detection