Barcode detector from http://www.pyimagesearch.com/2014/11/24/detecting-barcodes-images-python-opencv