
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
tesseract.js-core
Advanced tools

Core part of tesseract.js, which compiles original tesseract from C to JavaScript WebAssembly.
build-scripts folderjavascript folderthird_party folder
CMakeLists.txt to build with emscriptenltrresultiterator.h and ltrresultiterator.cpp to add WordChoiceIterator classsrc/arch_see folder, which is used instead of src/arch for the simd-enabled build
src/textord/colfind.cpp to prevent this from printing to consolesrc/ccmain/thresholder.cpp, src/ccmain/thresholder.h, src/api/baseapi.cpp, and include/tesseract/baseapi.h to add option for rotating images using exif orientation tagEM_ASM_ARGS to src/ccmain/control.cpp for progress logging (and added <emscripten.h> header)To run the browser examples, launch a web server in the root of the repo (i.e. run http-server). Then navigate to the pages in examples/web/minimal/ in your browser.
To run the node examples, navigate to examples/node/minimal/ and then run e.g. node index.wasm.js.
The "benchmark" examples behave similarly, except that they take longer to run and report runtime instead of recognition text. All other examples are experimental and should not be expected to run.
As we leverage git-submodule to manage dependencies, remember to add recursive when cloning the repository:
$ git clone --recursive https://github.com/naptha/tesseract.js-core
To build tesseract-core.js by yourself, please install docker and run:
$ bash build-with-docker.sh
The genreated files will be stored in root path.
ocrad.js is a JavaScript port of the OCRAD OCR engine. It is a pure JavaScript library that can be used in the browser or in Node.js. Compared to tesseract.js-core, ocrad.js is simpler and may be easier to integrate for basic OCR tasks, but it may not be as powerful or accurate as Tesseract.
node-tesseract-ocr is a Node.js wrapper for the Tesseract OCR engine. It provides a simple interface for performing OCR on images. While it offers similar functionalities to tesseract.js-core, it is specifically designed for Node.js and may not be suitable for browser environments.
FAQs
Tesseract C++ API in Pure Javascript
The npm package tesseract.js-core receives a total of 327,640 weekly downloads. As such, tesseract.js-core popularity was classified as popular.
We found that tesseract.js-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.