Git Product home page Git Product logo

rahulj15 / image-pdf-ocr-translation-app Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 101 KB

This project is a versatile Optical Character Recognition (OCR) and translation tool designed to process both images and PDF documents and leveraging NLP to translate the text into different languages and give users an option to summarize the contents of a document in their prefered language

Home Page: https://adaptxt.streamlit.app/

Python 100.00%
api image-processing ocr-recognition translation easyocr extractive-summarization google-translate-api summarization tf-idf

image-pdf-ocr-translation-app's Introduction

Character Recognition,Translation and Summarization Model

https://adaptxt.streamlit.app/

Overview:

This project is an end-to-end Optical Character Recognition (OCR) and translation model designed to extract text from images and PDFs, and then translate it into multiple languages. The implementation is done in Python using the Tesseract OCR engine, OpenCV for image processing, Googletrans for translation, and Streamlit for the frontend.

Key Features:

  1. OCR Processing:

    • Utilizes Tesseract OCR to extract text from images and PDFs.
    • Implements image preprocessing techniques, including conversion to grayscale, removal of table lines, and noise reduction, to enhance OCR accuracy.
  2. Translation:

    • Translates extracted text into five different languages (Hindi, French, Spanish, Mandarin, English) using the Googletrans API.
  3. PDF Support:

    • Supports PDF extraction, recognizing text from each page and translating it.
  4. User Interaction:

    • Allows the user to choose the target language for translation.

Frontend with Streamlit:

  • Implements a user-friendly interface using Streamlit for easy interaction with the OCR and translation model.
  • Users can upload images or PDFs, and the application displays the recognized text along with translation options.
  • Provides a dropdown menu for selecting the target language, enhancing user customization.
  • Streamlit simplifies the deployment process, making the application accessible through a web browser.

Dependencies:

Usage:

  1. Access the OCR and translation model through the Streamlit web interface.
  2. Upload images or PDFs using the provided file upload functionality.
  3. The application processes the input, displays the recognized text, and allows translation into the user-selected language.

How to Run:

  • Ensure the required libraries are installed using:
    pip install pillow
    pip install pytesseract
    pip install opencv-python
    pip install googletrans
    pip install pyPDF2
    pip install streamlit
    pip install nltk
  • Make sure Tesseract OCR is properly installed on your system.

image-pdf-ocr-translation-app's People

Contributors

inecodes avatar rahulj15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

inecodes

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.