Is there a plugin/webservice to read QR codes - php

I want to generate/read the data to/from a QR code. I don't want to develop a QR generator/reader of my own.
Are there any plugins/webservice etc which I can use readily at my website??
I'm using PHP.

We have used this:
http://phpqrcode.sourceforge.net/
for a voucher system for a British newspaper. It works very well and has good documentation.

Related

convert image to embroidery formate in php or java or jquery

Is any simple or any other way to convert simple image to embroidery formate like (in image below) in PHP or Java or jQuery ? :
Or any service tools available or any API is there ?
I make a website for a printer company they provided all printing items and the also provided t-shirt embroidery printing.
So I must give up them to online t-sirt demo of embroidered t-shirt.
I search tools for it from a day but not success yet..
I am currently working on the open source project Embroidermodder, as part of this application we will soon be working on bitmap to embroidery. It is a complex process, we have the preliminary work done for generating stitches from an outline. In our next major release we should be capable of doing something like this.

How to Scan QR code using webcam and php or javascript

I am trying to implement QR code. i've successfully implement it using phpqrcode. However I don't know about how to decode the QR code using webcam and php or javascript. I've tried to search it on google, but can't find any solution for this. Anyone could help me? Thank you so much
you could use this jquery webcam plugin and then send the image to php-zbarcode. It uses zbar which can read qrcodes. Note that the plugin requires flash.
There is also jsqrcode which you could use to scan and interpret the QR Code, however this requires HTML5 for displaying the webcam output, and flash for capturing.
Here is a previous question pertaining to javascript-only solutions

PHP log-log graph generation

I sampled a small wikipedia collection from 2008 and trying generate a graph similar to this: http://en.wikipedia.org/wiki/File:Wikipedia-n-zipf.png
from the processing I did. I have word frequencies and ranks of words. How can I generate the graph on the fly from the data I collected? Thanks.
If I am understanding your question correctly, you want to generate PNG charts on the fly?
This Page lists a few great chart engines for PHP. If you want to generate graphics using PHP for word frequencies, my personal favorite is PCHART It is a really nice library to generate charts like that.
Google Chart is completely free and doesn't use as much server power, but you have much less control over caching, styling, etc. The key difference here is that the actual image generation is done by Google.
If you want it to look exactly like that, you can use any of them and use the most basic settings to get what you need.
I think you want to use the google chart api / graph tools.
You can find it here
Line charts documentation and examples

How can you read QR Codes in PHP?

Is there a plain PHP implementation for decoding QR codes?
I have a faux-smartphone. One of those phones that parades as a smartphone but that I can't download any apps for, and I want to create an email service to where I can take a picture of a QR code, MMS it to this email, and the email returns what the QR code contains.
However, the only libraries I've been able to find are in Python (and probably C++), neither of which I can access on my limited hosting environment.
Is there a way to read QR codes using only PHP?
There is only one pure PHP QR code decoder. It's working with GD library, but can use also ImageMagick. This PHP QR code reader is ported from ZXing.
https://github.com/khanamiryan/php-qrcode-detector-decoder
I'm not aware of any pure php decoder. Decoding images like this is pretty processor intensive and doing it in a purely interpreted language is challenging.
zxing (http://code.google.com/p/zxing/) provides a decoder implementation in both Java and C++. In theory, it should be possible to link the C++ library as a php extension, though I don't know anything of the mechanics of that. I've done it for Ruby ...
Moreover, zxing does have an online decoder at http://zxing.org/w/decode.jspx. My thinking is that from PHP you can take the image and post it to the webservice and retrieve the decoded data. I don't know the mechanics of making remote web service calls from PHP and how different hosting environments might limit that, though, but it seems reasonable?
If you have the possibility to use a phpextension, php-zbarcode at https://github.com/mkoppanen/php-zbarcode can read qrcodes. It's a wrapper for ZBar from http://zbar.sourceforge.net, which in turn is a LGPL C library for decoding barcodes.
To decode your QR code you have to upload image of QR code and it will show you text inside that code image.
http://www.phpgang.com/how-to-decode-qr-code_344.html
Very easy to do tutorial I hope it helps.
Here is a good example & you can generate online direct QR code too...
there is also php library to implement QR code in your project.
http://phpqrcode.sourceforge.net/

JavaScript QR Code Reader - can it be done? Or, Remote Service?

I'm doing a bit of preliminary research on an upcoming project and I have a quick question that I figure I'll throw up here while I look elsewhere, in case anyone has any experience with this.
The question is simple: is it possible to read a QR code using JavaScript? Is there a remote service to which I can pass a bitmap object from a camera and do it that way? Are there currently any libraries that allow this?
The project is going to be deployed to various mobile devices and we'd like to try to use Appcelerator to make it work. I know Appcelerator does expose the Camera API on its host devices, but whatever we do with it has to be able to parse QR codes. Is this something that can be done?
Thanks in advance!
myk
I bet it's possible, but it would be a challenge. Someone's written an AS3 library for reading QR codes. I'd start by reading up on image manipulation in Canvas.
If you go down the remote API route, Kaywa have an API you may be able to use.
You can use the getUserMedia API to get video from the webcam and you could put it into a canvas element and use the canvas to read the pixels and decode a QR code.
I don't know of a library to decode QR codes but here is one library that can do bar codes.
There's a javascript library already, however the comments are mostly in Japanese and there's no documentation.
Because of memory limits for JavaScript on mobile devices, it's likely to take too long for practical use, if it is possible with purely JS.
I don't know exactly how the Appcelerator API works with external native libraries, but your best bet is to pass the image data to the native code (Objective-C or Java) and then use a lower-level library (like iphone-qrcode) to parse the QR code, then pass the result back to the JS execution context.
This has the added advantage of working offline, which a remote service could not do.
If you want a proof-of-concept, then here it is - a motion tracker written in pure Javascript.
However, support for it is not widespread right now. Only FF and the latest Webkit builds support it afaik.
Just noticed that you wanted this for a mobile device. Then absolutely go with a remote service. It will be really taxing even on the most high end devices assuming they even support it, which I highly doubt.

Categories