Generating movie barcodes with OpenCV and Python