开发者

Identify EAN / UPC barcode numbers from image in PHP / JS?

I'm looking for a way to identify EAN / UPC (primarily EAN) barcode numerals from a camera-captured image in PHP or Javascript. I've found a few libraries for Java but ideally would like one of PHP or JS to manage it. Not sure if feasible, but any advice appreciated!

Edit: tried http://zxing.org/w/decode.jspx with some sample images from iPod Touch camera, with m开发者_开发问答ixed success.


http://tobeytailor.s3.amazonaws.com/get_barcode_from_image/index.html


I did a project where this was a requirement so we ended up using this library. http://sourceforge.net/projects/zbar/

A fellow consultant working with me wrote up an image crop tool that allowed a user to crop an uploaded image down to just the barcode, this was then shoved into a ghetto MQ using sqlite, where a resident agent running on the machine polled sqlite and processing pending records ( transaction_id, path2file, date of trx ) reported back to the application via a web service call the result.

I was the one that did the R&D for this feature request and I don't remember any bar scanning libraries for PHP plus Python isn't so painful to learn, just got to master daemonizing a python script to run as a service then read up on urllib2 for sending the response back to the PHP app. We did it in 48 man hours between two people, add another 15-20 hours to learn enough about Python and it should be doable.


I think u could use some api to help you in your project. the checked answer has some limits in the program language and update data.

We have several different types of EAN code. We can call them Gtin code. It could be 8, 12, 13 or 14 digits long.

You could use this database: https://market.mashape.com/mignify/gtin2product

It's a very user friendly and intelligent API, U can use it to get directly the product information by gtin. Also It could help u to extract the information of a page from E-commerce site.

Hope could help U.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜