Medical Report Analyzer
A web application that provides medical report analysis, symptoms analysis, and medicine information using AI. The application supports both English and Bengali (বাংলা) languages.
Features
Medical Report Analysis
- Upload medical reports (JPG, PDF)
- Extract and analyze test results
- Get health insights and suggestions
Symptoms Analysis
- Describe symptoms in detail
- Get potential conditions and urgency level
- Receive immediate steps and precautions
Medicine Information
- Get detailed medicine analysis
- View usage, side effects, and precautions
- Personalized information based on age and gender
- Dosage schedule analysis
Bilingual Support
- Toggle between English and Bengali
- Instant translation of analysis results
Technologies Used
- Python/Flask (Backend)
- JavaScript/HTML/CSS (Frontend)
- Tailwind CSS (Styling)
- Ollama with deepseek-r1:14b model (AI Analysis)
- Tesseract OCR (Text Extraction)
- Google Translate API (Translation)
Prerequisites
- Python 3.8 or higher
- Tesseract OCR installed
- Ollama with deepseek-r1:14b model
Installation
- Clone the repository:
git clone <repository-url>
cd medical-report-analyzer
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venvScriptsactivate
- Install dependencies:
pip install -r requirements.txt
Install Tesseract OCR:
- Windows: Download and install from Tesseract GitHub
- Linux:
sudo apt-get install tesseract-ocr
- Mac:
brew install tesseract
Install and run Ollama:
- Follow instructions at Ollama
- Pull the model:
ollama pull deepseek-r1:14b
Configuration
- Set Tesseract path in
app.py
:
pytesseract.pytesseract.tesseract_cmd = r'C:Program FilesTesseract-OCRtesseract.exe' # Adjust path as needed
- Ensure Ollama is running with the deepseek-r1:14b model:
ollama run deepseek-r1:14b
Running the Application
- Start the Flask server:
python app.py
- Open a web browser and navigate to:
http://localhost:5000
Usage
Analyzing Medical Reports
- Click “Report Analysis” tab
- Upload JPG or PDF file
- View analysis results
- Optionally translate to Bengali
Analyzing Symptoms
- Click “Symptoms Analysis” tab
- Describe symptoms in detail
- Click “Analyze Symptoms”
- View analysis and recommendations
Getting Medicine Information
- Click “Medicine Info” tab
- Enter patient age and gender
- Input medicine name and dosage schedule
- Click “Analyze Medicine”
- View detailed medicine analysis
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Medical Report Analyzer
Project Details
- TanvirHafiz/Medical-report-analyzer
- MIT License
- Last Updated: 3/1/2025
Recomended MCP Servers
A MCP server for svg-png conversion tool
An experimental open-source attempt to make GPT-4 fully autonomous.
A simple Joern MCP Server.

A powerful MCP server extension providing web search and content extraction capabilities. Integrates DuckDuckGo search functionality and URL...
A Model-Context Protocol Server for YouTube
An Model Context Protocol (MCP) Server for Transactional Email Provider MailPace
MCP Server implementation for Xcode integration
Provide LLMs hosted, clean markdown documentation of libraries and frameworks
MCP (Model Context Protocol) Server for the PI API
本项目通过将 MCP 协议转换为 MQTT 协议,我们能够利用强大的大型语言模型(LLMs),就能轻松操控您的智能家居、机器人或其他硬件设备。