Ruby QR code decoder?

277 views
Skip to first unread message

ckundo

unread,
Oct 31, 2009, 6:17:20 PM10/31/09
to Ruby on Rails: Talk
I'd like to use be able to decode QR codes that people submit to my
rails app. I'm using phonegap for iPhone, so I need to create a work-
around for a native QR code reader. The best I can come up with is
having someone take a picture of the code and submit it, then have
ruby parse it.*

I've searched this forum and online, and all I can find is the zxing
library for Java. Question is:

a) is there a rails plugin or a ruby gem that can decode a qr code
image
or b) is it possible to run a java command from ruby?

Thanks for any guidance.

Cameron

*yes, I will be looking into obj-c eventually, but want to prototype
asap

Eric

unread,
Oct 31, 2009, 8:52:44 PM10/31/09
to Ruby on Rails: Talk
i don't mean to be a jerk, but "asap?" really?

http://www.ruby-forum.com/topic/198410

-eric

ckundo

unread,
Nov 1, 2009, 3:09:09 PM11/1/09
to Ruby on Rails: Talk
Eric: Why so incredulous? My point is that I'd rather prototype
something quickly for user testing before I try learn a completely new
language.

To anyone else interested: I found out how to execute java using %x|
java ...| . I think latency would be an issue in the scenario I'm
describing, but I'm going to give it a shot.

Cameron

On Oct 31, 7:52 pm, Eric <ericgh...@gmail.com> wrote:
> i don't mean to be a jerk, but "asap?" really?
>
> http://www.ruby-forum.com/topic/198410
>
> -eric
>
> On Oct 31, 3:17 pm, ckundo <cku...@gmail.com> wrote:
>
> > I'd like to use be able to decodeQRcodes that people submit to my
> > rails app. I'm using phonegap for iPhone, so I need to create a work-
> > around for a nativeQRcodereader. The best I can come up with is
> > having someone take a picture of thecodeand submit it, then have

Eric

unread,
Nov 1, 2009, 5:12:43 PM11/1/09
to Ruby on Rails: Talk
Just that in 10 months of asap you could have implemented any of:

http://stackoverflow.com/questions/231741/qr-code-2d-barcode-coding-and-decoding-algorithms

Nothing personal, just sayin'. And yeah, there seem to be any number
of system call solutions.

-eric

Marnen Laibow-Koser

unread,
Nov 1, 2009, 6:00:40 PM11/1/09
to rubyonra...@googlegroups.com
Eric wrote:
> Just that in 10 months of asap you could have implemented any of:
>
> http://stackoverflow.com/questions/231741/qr-code-2d-barcode-coding-and-decoding-algorithms
>
> Nothing personal, just sayin'. And yeah, there seem to be any number
> of system call solutions.

Or use JRuby and RJB.

>
> -eric

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.

ckundo

unread,
Nov 2, 2009, 8:13:01 PM11/2/09
to Ruby on Rails: Talk
Thanks, I'll give those a shot.

Cameron

On Nov 1, 6:00 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> Eric wrote:
> > Just that in 10 months of asap you could have implemented any of:
>
> >http://stackoverflow.com/questions/231741/qr-code-2d-barcode-coding-a...

ckundo

unread,
Nov 2, 2009, 8:13:19 PM11/2/09
to Ruby on Rails: Talk
Eric, I think I see the confusion. Check http://www.ruby-forum.com/topic/198410,
you'll see that the timestamps are borked (see your reply from 10
months ago). In any event, thanks for the link.

On Nov 1, 5:12 pm, Eric <ericgh...@gmail.com> wrote:
> Just that in 10 months of asap you could have implemented any of:
>
> http://stackoverflow.com/questions/231741/qr-code-2d-barcode-coding-a...

Marnen Laibow-Koser

unread,
Nov 2, 2009, 8:27:05 PM11/2/09
to rubyonra...@googlegroups.com
ckundo wrote:
> Eric, I think I see the confusion. Check
> http://www.ruby-forum.com/topic/198410,
> you'll see that the timestamps are borked (see your reply from 10
> months ago). In any event, thanks for the link.

There is nothing wrong with the timestamps. They're just European-style
DMY.

remedy fetterman

unread,
Sep 5, 2013, 3:06:41 AM9/5/13
to rubyonra...@googlegroups.com
Hi, friends. I happen to come to this thread. I am an barcode expert. I
know good barcode site(http://www.onbarcode.com/) where you can find
various qr code decoders.

mariah lewis

unread,
Dec 2, 2013, 10:32:51 PM12/2/13
to rubyonra...@googlegroups.com
i know a resource about qr code decoder,recommended by friend !
http://www.keepautomation.com/products/net_barcode_reader/barcode_qrcode.html
Reply all
Reply to author
Forward
0 new messages