reading barcode from an image using javascript

十年热恋 提交于 2019-11-27 09:15:55

问题


I need a javascript code that will read/ extract barcode from an image. for example, the image may be embedded in a web page and i wan to pass the image to the Javascript function.

The function should read/parse the image and extract the barcode from the image.


回答1:


Check this JavaScript barcode scanner It's open source and free

Also you can check this JavaScript library https://github.com/EddieLa/BarcodeReader




回答2:


There is QuaggaJS library (open source) for reading barcodes, all done in JavaScript.

It currently supports EAN, CODE 128, CODE 39, EAN 8, UPC-A, UPC-C, and CODABAR

I suspect it will meet your needs.



来源:https://stackoverflow.com/questions/6869445/reading-barcode-from-an-image-using-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!