yeahdongcn / RSBarcodes

1D and 2D barcodes scanner and generators for iOS7 with delightful controls.
MIT License
383 stars 59 forks source link

Unable to scan Generated Barcode for EAN-13 family #35

Open MishraVikas1 opened 8 years ago

MishraVikas1 commented 8 years ago

Barcode generation is working pretty fine. But when I scan this generated barcode, no scanner is able to scan this. Please suggest something asap.

yeahdongcn commented 8 years ago

I tried to generate one: 6901234567892 and it works as expected, the sample app could recognize it.

[CodeGen genCodeWithContents:@"6901234567892" machineReadableCodeObjectType:AVMetadataObjectTypeEAN13Code];

Could you provide your code?

One possible problem may you scale the image to fill the image view, you have to scale it aspect. static inline UIImage resizeImage(UIImage source, float scale) will be helpful.