Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to use Tesseract.js in a React app

I had the same issue, and then I had to dig a bit to have it working using the CDN.

Here is what I did, I hope this can help a bit as a workaround:

  1. add <script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js'></script> in index.html inside <head></head>
  2. add var Tesseract = window.Tesseract; in App.js

Reference : https://github.com/naptha/tesseract.js/issues/134

Tags:

Reactjs

Tesseract.Js

Related

angular 4 how to get url parameters Pip install fails: SSL required ScrollPane not showing as needed, FlowPane content Why is `multiprocessing.Queue.get` so slow? React Native Android Duplicate file error when generating apk Strange sbt bug where I cannot import sbt project due to keys colliding with themselves How to use generics in companion object Warning: Use Cipheriv for counter mode of aes-256-ctr How to remove git from menu context in Documents? Working with promises inside an if/else Node MODULE_NOT_FOUND How to bind to model with Angular Material <mat-button-toggle>?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy