Last active
December 3, 2023 20:00
-
-
Save jeromewu/6a58b641680fbf73f41ada0b9202ac9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Typical usage of tesseract.js | |
const { TesseractWorker } = Tesseract; | |
const worker = new TesseractWorker(); | |
const image = 'https://tesseract.projectnaptha.com/img/eng_bw.png'; | |
worker.recognize(image) | |
.then(({ text }) => { | |
console.log(text); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to install?