Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesseract example is not working? #453

Closed
phamvanlinh20111993 opened this issue Jun 6, 2020 · 5 comments
Closed

Tesseract example is not working? #453

phamvanlinh20111993 opened this issue Jun 6, 2020 · 5 comments
Labels

Comments

@phamvanlinh20111993
Copy link

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.
    image
  • Here is my code:
    image
    Am I missing anything? thanks
@jeromewu
Copy link
Member

jeromewu commented Jun 6, 2020

It should be working, maybe you just got a slow network or hardware, judge from your log.

@phamvanlinh20111993
Copy link
Author

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. :(.

@nav1-code
Copy link

nav1-code commented Jun 25, 2020

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 :)

@phamvanlinh20111993
Copy link
Author

I tried it but nothing changed :( :( @nav1-code

@Balearica
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants