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

zbar_scan_image always returns 0 #5

Open
matthysdt opened this issue Oct 8, 2015 · 2 comments
Open

zbar_scan_image always returns 0 #5

matthysdt opened this issue Oct 8, 2015 · 2 comments

Comments

@matthysdt
Copy link

Hi, first off, thanks for creating and sharing this project!

I'm stuck at the point where zbar_scan_image is called in the DLL. It always returns a 0.
According to the documentation (see [1]), this means no symbols were found.

However, this very same image file does return symbols when I use the ZBar Console App.
I copied the DLL's that I'm using from my local ZBar installation.

I've been stuck at this point for quite some time, any ideas?

Thank you!

[1] http://zbar.sourceforge.net/api/zbar_8h.html#018800e5739b5de9e241e26cfc85fdeb

@jonasfj
Copy link
Owner

jonasfj commented Oct 8, 2015

Not really... I suspect it might be related to how the image is encoded I've seen better results with console app before...

Honestly, you might want to check out: http://zxingnet.codeplex.com/
I think it's easier to use... this code is from way back when zbar was more actively maintained and there were no .Net libraries for scanning barcodes..

@matthysdt
Copy link
Author

I did manage to get my app going by firing the ZBar console app and intercepting the output, not ideal but it does the job.

Thanks for the link, I'll check it out. For some reason I was under the impression ZXing was only available as Java and I didn't like porting it.

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