# javascript-barcode-ocr **Repository Path**: huoxd/javascript-barcode-ocr ## Basic Information - **Project Name**: javascript-barcode-ocr - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JavaScript Barcode Reader and Tesseract.js OCR The repository shows how to use Dynamsoft JavaScript barcode reader and Tesseract.js to read 1D barcode. ## Installation ``` npm install tesseract.js dynamsoft-node-barcode dynamsoft-javascript-barcode ``` ## Usage ### Browser Start the server: ``` npx http-server . ``` Visit `http://127.0.0.1:8080/web/index.htm`. ![JavaScript Barcode OCR web](http://www.codepool.biz/wp-content/uploads/2020/02/javascript-barcode-ocr-web.png) ### Node.js Run the command ``` node ./node/index.js ``` ![JavaScript barcode OCR node](http://www.codepool.biz/wp-content/uploads/2020/02/javascript-barcode-ocr-node.png) ## Tesseract Language Trained Data https://github.com/naptha/tessdata ## Reference - https://github.com/naptha/tesseract.js/blob/master/docs/api.md - https://github.com/jeromewu/tesseract.js-offline - https://github.com/dynamsoft-dbr/javascript-barcode ## Blog [How to Empower JavaScript Barcode Scan with Tesseract.js OCR](https://www.codepool.biz/javascript-barcode-scan-ocr-text.html)