Code Monkey home page Code Monkey logo

pytesseract-streamlit-interface's Introduction

Pytesseract-streamlit-interface

Webapp to retrieve text from images using OpenCV and Pytesseract. The interface is made with Streamlit.

How to install it:

  • clone this repo
  • edit the pytesseract_streamlit/config.py file with the path to your tesseract executable (tesseract_exec_path)
  • create a venv and activate it
  • execute this command inside the folder of the pyproject.toml file:
pip install .
  • with the venv activated, run in the CLI:
python pytesseract_streamlit

How to use it

The steps to obtain text are as followed:

  • load an image using button on the side bar
  • Using OpenCV, the image is processed in order to define ROI: Region Of Interest. This is the parts of the image that will be send to Pytesseract for text detection. They will appear in green with a number as overlay. Tweaking the settings will change their number and shape.
  • You can change Pytesseract page segmentation mode and language to possibly improve text detection relevance. On the left column, you will see text extracted with corresponding ROI number and on the right the cropped image of the ROI. You have a button on top of each column to save text and images as file. By default, it is saved in the "result" directory of the project.

Animation

pytesseract-streamlit-interface's People

Contributors

dependabot[bot] avatar guillaume-fgt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wayward710

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.