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 f
Check this JavaScript barcode scanner It's open source and free
Also you can check this JavaScript library https://github.com/EddieLa/BarcodeReader
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.