Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MishraVikas1 opened this issue Mar 17, 2016 · 1 comment
Open

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

MishraVikas1 opened this issue Mar 17, 2016 · 1 comment

Comments

@MishraVikas1
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants