Coder Social home page Coder Social logo

suthan97 / teath Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rohankokkula/teath

0.0 0.0 0.0 122 KB

WebApp for Extracting Text from Images and applying threshold with the help of pytesseract and OpenCV.

Home Page: http://teath.herokuapp.com

Shell 2.42% Python 97.58%

teath's Introduction

TEATH - Text Extraction And THresholding

Watch demo

Demonstration on Youtube

A Streamlit-Heroku WebApp for Extracting Text from Images and applying various thresholding methods using Pytesseract and OpenCV.

Ranked 113th Position out of 5042 Participants in HackerEarth's Pride Month Challenge.

Link to Competition

Try the app. It's live here.. http://teath.herokuapp.com

Wanna try on your own and make changes?
Feel free to fork/clone!
Follow these steps.

  1. Clone the repository git clone https://github.com/rohankokkula/teath.git
  2. For Localhost:
    1. pip install -r requirements.txt
    2. Install tesseract executable from https://github.com/UB-Mannheim/tesseract/wiki,
      keep an eye on installation path.
    3. Open app.py, change tesseract_cmd path to installation path's executable file(eg. C:\Users\rohan\AppData\Local\Tesseract-OCR\tesseract.exe)
    4. Run cmd in current folder and enter streamlit run app.py
    5. App will be deployed at localhost:8501(mostly)
  3. For Heroku Deployment:
    1. Create Heroku account and Install Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli#download-and-install
    2. Create APP from Heroku Dashboard.
    3. Go to your APP dashboard settings on heroku website and in the buildpacks URL,
      enter https://github.com/heroku/heroku-buildpack-apt
      Now, Reveal Config vars and add
      KEY: TESSDATA_PREFIX
      VALUE:./.apt/usr/share/tesseract-ocr/4.00/tessdata
    4. Run cmd in current folder and enter heroku login( Logging into your account)
    5. After successful login, follow these steps:
    git add .
    git commit -am "First commit"
    heroku git:remote -a app-name
    git push heroku master
    
    1. App will be deployed at app-name.herokuapp.com

References:

  1. Streamlit: https://docs.streamlit.io/en/stable/api.html
  2. OpenCV Thresholding: https://docs.opencv.org/master/d7/d4d/tutorial_py_thresholding.html
  3. Pytesseract: https://pypi.org/project/pytesseract/
  4. TextBlob: https://pypi.org/project/textblob/
  5. Tesseract deployment on Heroku using Flask: https://towardsdatascience.com/deploy-python-tesseract-ocr-on-heroku-bbcc39391a8d

teath's People

Contributors

rohankokkula avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.