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.
我需要一个javascript代码,它将从图像中读取/提取条形码。例如,图像可以嵌入网页中,我想将图像传递给Javascript函数。
The function should read/parse the image and extract the barcode from the image.
该函数应该读取/解析图像并从图像中提取条形码。
2 个解决方案
#1
66
Check this JavaScript barcode scanner It's open source and free
检查这个JavaScript条形码扫描仪它是开源的,免费的
Also you can check this JavaScript library https://github.com/EddieLa/BarcodeReader
您也可以查看此JavaScript库https://github.com/EddieLa/BarcodeReader
#2
12
There is QuaggaJS library (open source) for reading barcodes, all done in JavaScript.
有用于阅读条形码的QuaggaJS库(开源),所有这些都是用JavaScript完成的。
It currently supports EAN, CODE 128, CODE 39, EAN 8, UPC-A, UPC-C, and CODABAR
它目前支持EAN,CODE 128,CODE 39,EAN 8,UPC-A,UPC-C和CODABAR
I suspect it will meet your needs.
我怀疑它会满足你的需求。
#1
66
Check this JavaScript barcode scanner It's open source and free
检查这个JavaScript条形码扫描仪它是开源的,免费的
Also you can check this JavaScript library https://github.com/EddieLa/BarcodeReader
您也可以查看此JavaScript库https://github.com/EddieLa/BarcodeReader
#2
12
There is QuaggaJS library (open source) for reading barcodes, all done in JavaScript.
有用于阅读条形码的QuaggaJS库(开源),所有这些都是用JavaScript完成的。
It currently supports EAN, CODE 128, CODE 39, EAN 8, UPC-A, UPC-C, and CODABAR
它目前支持EAN,CODE 128,CODE 39,EAN 8,UPC-A,UPC-C和CODABAR
I suspect it will meet your needs.
我怀疑它会满足你的需求。