Aha, it works! Committed a bunch of code structure improvements to help split up the logical parts into classes. More to do on that still. This version is able to pretty reliably read an EAN13 barcode off of my webcam. Needs more improvements in the way of gathering multiple lines of the barcode for better averaging probably (although testing is required to see if it's necessary).