Barcode detection using OpenCV