To scan a barcode correctly, the barcode has some requirements for scanning. In addition to data checksum, data type, quiet zone, the barcode size is also need to be concerned. Form my experience, I can read barcode images from several image formats or directly read all barcode images from a single file. I ever googled a barcode scanning solution
for my barcode recognition project. Guess it help.