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

Implementing #6

Closed
Figgy15 opened this issue Jan 27, 2014 · 1 comment
Closed

Implementing #6

Figgy15 opened this issue Jan 27, 2014 · 1 comment

Comments

@Figgy15
Copy link

Figgy15 commented Jan 27, 2014

Hello...

Great library here. Glad you were able to make something like this that can be implemented with Rails. I was hoping you could help me with an issue I"m having. I installed the gem file into my project and have installed the C Library on my mac. Question is where to I implement the code? IN my Gemfile I have gem 'zbar'. :require => 'zbar'. Now where would be a good place to implement the rest of the code ->

ZBar::Image.from_jpeg(File.read('test.jpg')).process
=> [#<Zbar::Symbol:0x10147c668
@addon="",
@DaTa="9876543210128",
@location= [...],
@quality=15,
@Symbology="EAN-13">]

Any help would be greatly appreciated. I'm a newbie to Rails lol.

@willglynn
Copy link
Owner

Well, you need to get images into the Rails app somehow. I'm not sure what you're trying to accomplish exactly, but probably you'll want something like Paperclip or some other file uploading tool. Once you've got an image available to your application, ZBar can scan it for barcodes.

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