https://github.com/naptha/tesseract.js Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} naptha / tesseract.js Public * * Notifications * Fork 1.8k * Star 26.3k Pure Javascript OCR for more than 100 Languages tesseract.projectnaptha.com/ License Apache-2.0 license 26.3k stars 1.8k forks Star Notifications * Code * Issues 110 * Pull requests 21 * Actions * Projects 1 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 16 branches 50 tags Code Latest commit @jeromewu jeromewu Update FUNDING.yml ... adcb5b8 Aug 28, 2021 Update FUNDING.yml adcb5b8 Git stats * 627 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github Update FUNDING.yml Aug 28, 2021 docs Correct some typing errors in api.md Jun 11, 2020 examples Update example/recognize.js Mar 9, 2020 scripts updated server.js Oct 3, 2020 src Merge pull request #508 from stonefruit/add-language-constant Dec 15, 2020 tests Update FS tests Sep 15, 2020 .eslintrc Optimize eslint Oct 14, 2020 .gitignore Add *.swp to gitignore Oct 3, 2019 .gitpod.Dockerfile Update gitpod configuration Mar 19, 2020 .gitpod.yml Update gitpod configuration Mar 19, 2020 .npmignore Ignore .nyc_output when publishing Aug 25, 2019 LICENSE.md Create LICENSE.md Oct 12, 2016 README.md Merge pull request #491 from bertyhell/patch-1 Oct 27, 2020 package-lock.json Release v2.1.5 Aug 2, 2021 package.json Release v2.1.5 Aug 2, 2021 View code [ ] Version 2 is now available and under development in the master branch, read a story about v2: Why I refactor tesseract.js v2? Check the support/1.x branch for version 1 Major changes in v2 Installation CDN Node.js Documentation Use tesseract.js the way you like! Contributing Development Online Setup with a single Click Building Static Files Contributors Code Contributors Financial Contributors Individuals Organizations README.md Tesseract.js Lint & Test CodeQL Gitpod Ready-to-Code Financial Contributors on Open Collective npm version Maintenance License Code Style Downloads Total Downloads Month Version 2 is now available and under development in the master branch, read a story about v2: Why I refactor tesseract.js v2? Check the support/1.x branch for version 1 Tesseract.js is a javascript library that gets words in almost any language out of images. (Demo) Image Recognition fancy demo gif Video Real-time Recognition Tesseract.js Video Tesseract.js wraps an emscripten port of the Tesseract OCR Engine. It works in the browser using webpack or plain script tags with a CDN and on the server with Node.js. After you install it, using it is as simple as: import Tesseract from 'tesseract.js'; Tesseract.recognize( 'https://tesseract.projectnaptha.com/img/eng_bw.png', 'eng', { logger: m => console.log(m) } ).then(({ data: { text } }) => { console.log(text); }) Or more imperative import { createWorker } from 'tesseract.js'; const worker = createWorker({ logger: m => console.log(m) }); (async () => { await worker.load(); await worker.loadLanguage('eng'); await worker.initialize('eng'); const { data: { text } } = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png'); console.log(text); await worker.terminate(); })(); Check out the docs for a full explanation of the API. Major changes in v2 * Upgrade to tesseract v4.1.1 (using emscripten 1.39.10 upstream) * Support multiple languages at the same time, eg: eng+chi_tra for English and Traditional Chinese * Supported image formats: png, jpg, bmp, pbm * Support WebAssembly (fallback to ASM.js when browser doesn't support) * Support Typescript Installation Tesseract.js works with a After including the script the Tesseract variable will be globally available. Node.js Tesseract.js currently requires Node.js v6.8.0 or higher # For v2 npm install tesseract.js yarn add tesseract.js # For v1 npm install tesseract.js@1 yarn add tesseract.js@1 Documentation * Examples * Image Format * API * Local Installation * FAQ Use tesseract.js the way you like! * Offline Version: https://github.com/jeromewu/tesseract.js-offline * Electron Version: https://github.com/jeromewu/ tesseract.js-electron * Custom Traineddata: https://github.com/jeromewu/ tesseract.js-custom-traineddata * Chrome Extension #1: https://github.com/jeromewu/ tesseract.js-chrome-extension * Chrome Extension #2: https://github.com/fxnoob/image-to-text * Firefox Extension: https://github.com/gnonio/korporize * With Vue: https://github.com/jeromewu/tesseract.js-vue-app * With Angular: https://github.com/jeromewu/ tesseract.js-angular-app * With React: https://github.com/jeromewu/tesseract.js-react-app * Typescript: https://github.com/jeromewu/tesseract.js-typescript * Video Real-time Recognition: https://github.com/jeromewu/ tesseract.js-video Contributing Development To run a development copy of Tesseract.js do the following: # First we clone the repository git clone https://github.com/naptha/tesseract.js.git cd tesseract.js # Then we install the dependencies npm install # And finally we start the development server npm start The development server will be available at http://localhost:3000/ examples/browser/demo.html in your favorite browser. It will automatically rebuild tesseract.dev.js and worker.dev.js when you change files in the src folder. Online Setup with a single Click You can use Gitpod(A free online VS Code like IDE) for contributing. With a single click it will launch a ready to code workspace with the build & start scripts already in process and within a few seconds it will spin up the dev server so that you can start contributing straight away without wasting any time. Open in Gitpod Building Static Files To build the compiled static files just execute the following: npm run build This will output the files into the dist directory. Contributors Code Contributors This project exists thanks to all the people who contribute. [ Contribute]. [6874747073] Financial Contributors Become a financial contributor and help us sustain our community. [ Contribute] Individuals [6874747073] Organizations Support this project with your organization. Your logo will show up here with a link to your website. [Contribute] [6874747073] [6874747073] [6874747073] [6874747073] [6874747073] [6874747073] [6874747073] [6874747073] [6874747073] [6874747073] About Pure Javascript OCR for more than 100 Languages tesseract.projectnaptha.com/ Topics javascript ocr deep-learning webassembly tesseract Resources Readme License Apache-2.0 license Stars 26.3k stars Watchers 477 watching Forks 1.8k forks Releases 33 Tesseract.js v2.1.5 Latest Aug 2, 2021 + 32 releases Sponsor this project * open_collective opencollective.com/tesseractjs * tidelift tidelift.com/funding/github/npm/tesseract.js * https://etherscan.io/address/ 0x74ace8c74535d6dac03ebdc708ca2fba54796ef2 Packages 0 No packages published Used by 6.1k * @CompostInTraining * @vanguard227 * @Karimzhon * @Lucasmouchague * @Zhoufy1996 * @Radhwen91 * @LitRHap * @DucLong06 + 6,103 Contributors 56 * @jeromewu * @bijection * @antimatter15 * @dependabot[bot] * @nisarhassan12 * @loderunner * @mikewesthad * @zzarcon * @hemanth * @monkeywithacupcake * @rowasc + 45 contributors Languages * JavaScript 96.2% * HTML 3.6% * Dockerfile 0.2% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.