tesseract.js
tesseract.js copied to clipboard
Tesseract example is not working?
I am trying to use tesseract to translate images. When I use the example given on git it doesn't work. Photo below:
- In the browser nothing text console.
- Here is my code:
Am I missing anything? thanks
It should be working, maybe you just got a slow network or hardware, judge from your log.
I don't think so, because I visit websites like facebook or instagram and even play games and everything is normal. I have tried to run the program many times but it still looks like the picture. :(.
try this snippet:
Tesseract.recognize(
"https://tesseract.projectnaptha.com/img/eng_bw.png",
"eng",
{
logger: (m) => console.log(m),
}
).then((text) => {
console.log("get text", text.text);
});
for me works fine :)
I tried it but nothing changed :( :( @nav1-code
Closing as this issue is >2 years old and we don't have a reproducible example to follow up on. Given that other users were able to run identical code, my guess is that OP's language data cache was corrupted (see ##666).