Content aware image cropping
Opening the entry
Opening the entry
Pure Javascript OCR for more than 100 Languages
Tesseract.js is a pure JavaScript OCR library that extracts text from images in over 100 languages. It wraps a WebAssembly port of the Tesseract OCR engine and runs in both browsers and Node.js. Developers create a worker, recognize images, and terminate the worker when done.
npm install tesseract.js
import { createWorker } from 'tesseract.js';
(async () => {
const worker = await createWorker('eng');
const ret = await worker.recognize('https://tesseract.projectnaptha.com/img/eng_bw.png');
console.log(ret.data.text);
await worker.terminate();
})();naptha/tesseract.js is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.