https://github.com/tusharthakur8267/ocr_sentiment_analysis_text_summarization
This project extracts text from images using OCR, analyzes sentiment (positive, negative, neutral), and summarizes text for quick insights. It utilizes Python, Tesseract-OCR, NLP libraries, and Flask/FastAPI for deployment.
https://github.com/tusharthakur8267/ocr_sentiment_analysis_text_summarization
flask image-processing nlp opencv pil python sentiment-analysis spacy tesser
Last synced: 25 days ago
JSON representation
This project extracts text from images using OCR, analyzes sentiment (positive, negative, neutral), and summarizes text for quick insights. It utilizes Python, Tesseract-OCR, NLP libraries, and Flask/FastAPI for deployment.
- Host: GitHub
- URL: https://github.com/tusharthakur8267/ocr_sentiment_analysis_text_summarization
- Owner: tusharthakur8267
- Created: 2025-03-18T03:47:04.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-15T06:54:33.000Z (29 days ago)
- Last Synced: 2025-04-15T07:40:39.029Z (29 days ago)
- Topics: flask, image-processing, nlp, opencv, pil, python, sentiment-analysis, spacy, tesser
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OCR Sentiment Analysis & Text Summarization
Overview
This project performs Optical Character Recognition (OCR), Sentiment Analysis, and Text Summarization on input text. It extracts text from images, analyzes the sentiment, and generates a summary.
Features
Extract text from images using OCR
Perform Sentiment Analysis (Positive, Negative, Neutral)
Summarize extracted text for quick insights
Technologies Used
Python
Tesseract-OCR (for text extraction)
NLTK / TextBlob (for sentiment analysis)
Hugging Face Transformers / Gensim (for text summarization)
Flask / FastAPI (for API deployment)
OpenCV / PIL (for image processing)
Installation
Prerequisites
Ensure you have Python 3.x installed.
Steps
Clone the repository:
"git clone https://github.com/tusharthakur8267/OCR_Sentiment_Analysis_Text_Summarization.git"
Install dependencies:
pip install -r requirements.txt
Install Tesseract-OCR (if not already installed):
Windows: Download from Tesseract GitHub
Linux: Install using
sudo apt install tesseract-ocr
Mac:
brew install tesseract
Usage
Run the script:
python main.py
For API usage:
uvicorn app:app --reload
Upload an image or input text, and get results for:
Extracted Text
Sentiment Analysis
Text Summary
Example
Input Image:
Extracted Text:
This is an amazing project!
Sentiment Analysis:
Positive
Summary:
Amazing project!
Contribution
Feel free to fork this repo, create a branch, and submit a pull request. Contributions are welcome!