Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-02

QR Code

23 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog
to Felipe Monteiro de Carvalho

2011/2/18 Felipe Monteiro de Carvalho

Show quoted text 8 lines
2011/2/17 silvioprog : > Is there any example with QR Code(*) in Lazarus? Generating or reading? -- Felipe Monteiro de Carvalho

Generating.

(Hm..., it's possible generate QR Code with this project?: http://sourceforge.net/projects/tpsystools/)

Thanks.

*Silvio Cl?cio* *Blog.* blog.silvioprog.com.br *Twitter.* twitter.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110218/438d997f/attachment-0001.html>

Reply by email

Felipe Monteiro de Carvalho
to Bo Berglund
Bo Berglund wrote
The reading is done by the QR reader devices, which output the data in plain format.

It doesn't have to be a "reader device", the QR code can be read from any raster image, if you have an appropriate library to read it.

Felipe Monteiro de Carvalho

Reply by email

silvioprog
to Bo Berglund: On Thu, 17 Feb 2011 20:22:29 -0200, silvioprog Do you mean software that can print QR…

2011/2/18 Bo Berglund

Show quoted text 17 lines
On Thu, 17 Feb 2011 20:22:29 -0200, silvioprog wrote: >Hi guys, > >Is there any example with QR Code(*) in Lazarus? > Do you mean software that can print QR labels that are readable by QR readers? The reading is done by the QR reader devices, which output the data in plain format. -- Bo Berglund Developer in Sweden

Please, see this project (decoder for M$-Delphi):

www.partitek.com/PtBarcodeDec.rar

My test:

http://imagebin.org/138592

But, I need a QR Code generator.

*Silvio Cl?cio* *Blog.* blog.silvioprog.com.br *Twitter.* twitter.com/silvioprog *LazSolutions.* code.google.com/p/lazsolutions -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110218/14b2832c/attachment.html>

Reply by email

silvioprog
to Vladimir Zhirov

2011/2/18 Vladimir Zhirov

Show quoted text 9 lines
silvioprog wrote: > Generator (for JS and Ruby): > http://la.ma.la/misc/qrcode/ > I not found for Lazarus (or Delphi). :/ There is also http://code.google.com/p/zxing/ for Java/C#/C++, but not for Delphi or Lazarus. Maybe it can be used as a starting point for conversion.

Thanks Vladimir. ;)

Please, see: http://code.google.com/p/zxing/issues/detail?id=724

*Silvio Cl?cio* *Blog.* blog.silvioprog.com.br *Twitter.* twitter.com/silvioprog *LazSolutions.* code.google.com/p/lazsolutions -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110218/48e1d94a/attachment.html>

Reply by email

Zelimir Ikovic
to silvioprog

http://sourceforge.net/search/?q=qrcode&sort=num_downloads_week&sortdir=desc&limit=25

--- On Fri, 2/18/11, silvioprog wrote:

From: silvioprog
Subject: Re: [Lazarus] QR Code
To: "Lazarus mailing list"
Received: Friday, February 18, 2011, 12:50 PM

2011/2/18 Vladimir Zhirov

silvioprog wrote 5 lines
Generator (for JS and Ruby): http://la.ma.la/misc/qrcode/ I not found for Lazarus (or Delphi). :/

There is also http://code.google.com/p/zxing/

for Java/C#/C++, but not for Delphi or Lazarus.

Maybe it can be used as a starting point for conversion. Thanks Vladimir. ;)
Please, see:?http://code.google.com/p/zxing/issues/detail?id=724

Silvio Cl?cio Blog. blog.silvioprog.com.br Twitter. twitter.com/silvioprog LazSolutions.?code.google.com/p/lazsolutions -----Inline Attachment Follows----- --

Reply by email

silvioprog
to silvioprog: 2011/2/18 Vladimir Zhirov Thanks Vladimir. ;) Please, see:…

Hi guys,

CGI Test:

http://174.122.19.91/~silviopr/cgi-bin/qrcode/perl/qr_img.cgi?d=FreePascal-Lazarus&e=H

Source (CGI/PHP):

http://174.122.19.91/~silviopr/cgi-bin/qrcode.zip

Reader for several mobiles (use your mobile cam, I tested with Sony-Ericson W200a with sucess! ^^):

http://174.122.19.91/~silviopr/cgi-bin/KaywaReader.jar

I will try convert (the generator) from PHP to Object Pascal. When I finish I will implement in LazSolutions <http://code.google.com/p/lazsolutions>.

Thanks to all. ^^

*Silvio Cl?cio* *Blog.* blog.silvioprog.com.br *Twitter.* twitter.com/silvioprog *LazSolutions.* code.google.com/p/lazsolutions -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110218/6a791faf/attachment.html>

Reply by email

Bo Berglund
to silvioprog
silvioprog wrote 18 lines
Hi guys, CGI Test: http://174.122.19.91/~silviopr/cgi-bin/qrcode/perl/qr_img.cgi?d=FreePascal-Lazarus&e=H Source (CGI/PHP): http://174.122.19.91/~silviopr/cgi-bin/qrcode.zip Reader for several mobiles (use your mobile cam, I tested with Sony-Ericson W200a with sucess! ^^): http://174.122.19.91/~silviopr/cgi-bin/KaywaReader.jar I will try convert (the generator) from PHP to Object Pascal. When I finish I will implement in LazSolutions <http://code.google.com/p/lazsolutions>.

Any success in conversion of the QR *generator*?
I have been trawling the web for OP/Delphi/FPC gereation code unsuccessfully...

Bo Berglund Developer in Sweden

Reply by email

silvioprog
to Bo Berglund

2011/5/13 Bo Berglund :

Any success in conversion of the QR *generator*? I have been trawling the web for OP/Delphi/FPC gereation code unsuccessfully...

I gave up on converting, the QRCode code is very complex, and I'm without time to make the conversion from PHP to Pascal.

I'm using the QRCode in PHP version.

Thx.

-- Bo Berglund Developer in Sweden
Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Juha gmail
to silvioprog

silvioprog kirjoitti perjantai, 13. toukokuuta 2011 13:52:58:

I gave up on converting, the QRCode code is very complex, and I'm without time to make the conversion from PHP to Pascal. I'm using the QRCode in PHP version.

How about converting from Java? There was a Java version , right? Java is easier to port than PHP, unless some exotic library is used.

Juha

Reply by email

silvioprog
to Juha gmail

2011/5/13 Juha (gmail) :

How about converting from Java? There was a Java version , right? Java is easier to port than PHP, unless some exotic library is used. Juha

An interesting project in JavaScript.

http://en.sourceforge.jp/projects/jpqr/devel/

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Tommi Prami
to Bo Berglund: On Fri, 18 Feb 2011 21:40:35 -0200, silvioprog Any success in conversion of the QR…
Bo Berglund wrote 26 lines
On Fri, 18 Feb 2011 21:40:35 -0200, silvioprog wrote: > Hi guys, > > CGI Test: > > http://174.122.19.91/~silviopr/cgi-bin/qrcode/perl/qr_img.cgi?d=FreePascal-Lazarus&e=H > > Source (CGI/PHP): > > http://174.122.19.91/~silviopr/cgi-bin/qrcode.zip > > Reader for several mobiles (use your mobile cam, I tested with Sony-Ericson > W200a with sucess! ^^): > > http://174.122.19.91/~silviopr/cgi-bin/KaywaReader.jar > > I will try convert (the generator) from PHP to Object Pascal. When I finish > I will implement in LazSolutions<http://code.google.com/p/lazsolutions>. > Any success in conversion of the QR *generator*? I have been trawling the web for OP/Delphi/FPC gereation code unsuccessfully...

Hello,

I made simple Unit to use command line tool to generate Bar-codes including Qr-code, it is better than nothing. Original code is made with C/C++ I think.

Would be good to have both directions tough, and native code, if possible.

Here is the cOpenSource commandline tool I've used : http://sourceforge.net/projects/zint/

I can donate my unit if someone is needing it and even better helping to maintain it :)

-TP-

Reply by email

Bo Berglund
to Bo Berglund: On Fri, 13 May 2011 08:10:36 -0300, silvioprog but it is a decoder rather than a coder...…
Bo Berglund wrote 16 lines
On Fri, 13 May 2011 08:10:36 -0300, silvioprog wrote: >2011/5/13 Juha (gmail) : >> How about converting from Java? There was a Java version , right? >> Java is easier to port than PHP, unless some exotic library is used. >> >> Juha > >An interesting project in JavaScript. > >http://en.sourceforge.jp/projects/jpqr/devel/ > Yes, but it is a decoder rather than a coder...

I posted on the Codegear Delphi forum as well and got this link in a reply:
http://www.java4less.com/barcodedelphi/barcodesdelphi.php?info=features

It is a commercial component package with limited licensing, but better than nothing...

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Tommi Prami: I made simple Unit to use command line tool to generate Bar-codes including Qr-code, it…
Tommi Prami wrote 20 lines
> Any success in conversion of the QR *generator*? > I have been trawling the web for OP/Delphi/FPC gereation code > unsuccessfully... > > Hello, I made simple Unit to use command line tool to generate Bar-codes including Qr-code, it is better than nothing. Original code is made with C/C++ I think. Would be good to have both directions tough, and native code, if possible. Here is the cOpenSource commandline tool I've used : http://sourceforge.net/projects/zint/ I can donate my unit if someone is needing it and even better helping to maintain it :)

Thanks for this pointer!
THe zint project contains an exe file that can be used via the command line to generate barcodes including QR. I have downloaded the exe and manual and tested a bit and it seems to work OK.

The sources are also available (C++) but they operate with the Qt graphics library so I guess there is a bit of a hurdle converting to native FPC...

Bo Berglund Developer in Sweden

Reply by email

Juha gmail
to Bo Berglund

Bo Berglund kirjoitti maanantai, 16. toukokuuta 2011 12:48:10:

The sources are also available (C++) but they operate with the Qt graphics library so I guess there is a bit of a hurdle converting to native FPC...

No, the backend code seems to be pure C.
You can convert the headers and use it with FPC, or you could even convert the C-code to Pascal. The code looks clear considering it is C.

Juha

Reply by email

José Mejuto
to Juha gmail

Hello Lazarus-List,

Monday, May 16, 2011, 12:22:54 PM, you wrote:

Jg> Bo Berglund kirjoitti maanantai, 16. toukokuuta 2011 12:48:10:

> The sources are also available (C++) but they operate with the Qt > graphics library so I guess there is a bit of a hurdle converting to > native FPC...

Jg> No, the backend code seems to be pure C.
Jg> You can convert the headers and use it with FPC, or you could even convert the Jg> C-code to Pascal. The code looks clear considering it is C.

I'm trying to do it in order to test a c to pascal helper I'm working on (it is not a conversor but a helper).

If somebody starts to port to pascal I'll stop as this code is quite larger and for sure my tests will be better with a smaller piece of code.

Best regards, Jos?

Reply by email