Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
All requests | > | Bar code read code in PHP | > | Request new recommendation | > | Featured requests | > | No recommendations | ||
by Upul Suresh - 2 months ago (2015-12-03) barcode read
+2 | Can I get bar code reader code in PHP using computer camera or smart phone camera? |
3. by Larry Wakeman - 2 months ago (2015-12-04) Reply
Actually, most bar-code readers are what is known as a wedge reader, placed between a terminal and the terminal port on the computer (I am that old). They take the bar-code and convert it to a printable ASCII string. The user would put focus on the text box and swipe. Some conversion is nice but a JavaScript decoder would be nice (or AJAX to a php routine to decode it). I use a Cue-Cat that was created by Radio Shack and still available on e-bay and the like though I got mine with the Readerware application. I have seen documentation on the web about how to decode the string.
2. by Manuel Lemos - 2 months ago (2015-12-04) Reply
I don't know of a pure PHP class to do that. In general you need to scan the image in the browser side with JavaScript. Then you need to scan the image and decode it.
There is a JavaScript solution in JSClasses for scanning an image and decoding the barcode.
I guess at least the part of decoding could be ported to PHP to be done on the server side.
4. by Dave Smith - 2 months ago (2015-12-05) in reply to comment 2 by Manuel Lemos Comment
That is an interesting script. If it actually works then the requester should just forget about php and implement the jquery solution.
1. by Dave Smith - 2 months ago (2015-12-03) Reply
There is a php extension available at github.com/mkoppanen/php-zbarcode
There is currently a featured request here from several months ago for a reader which does not look like any interest has been taken on it. I am not sure how it would be done purely in a class, so it looks like only the extension is available.
Recommend package | |
|