detect barcode http://python.jobbole.com/80448/