This project is focused on employing machine learning techniques to detect diabetic retinopathy using fundus images of the retina. Diabetic retinopathy is a severe complication of diabetes affecting the eyes, potentially leading to blindness if not addressed.
The technologies utilized in this project include:
- Python: Backend programming language.
- Flask: Web framework for the application.
- TensorFlow/Keras: Deep learning library used for model development and predictions.
- JSON: Data format for storing remedies associated with different stages of retinopathy.
- HTML/CSS/JS: Frontend development for user interaction.
The project consists of a Flask-based web application that serves as an interface for diabetic retinopathy detection. It involves the following functionalities:
-
Model Loading: Load a pre-trained machine learning model capable of detecting retinopathy from fundus images.
-
Image Processing: Process uploaded fundus images for prediction.
-
Prediction and Remedies: Provide predictions on the severity of diabetic retinopathy and suggest remedies based on the prediction outcome.
Ensure the following requirements are met:
- Python: Ensure Python 3.x is installed on your system.
-
Clone the Repository:
git clone https://github.com/your-username/your-project.git cd diabetic_retinopathy
-
Install Dependencies:
pip install -r requirements.txt
-
Prepare Model and Files:
- Place your trained model file (
model.h5
) in a folder namedmodel
within your project directory. - Ensure the
remedies.json
file contains remedies associated with different stages of retinopathy.
- Place your trained model file (
-
Run the Flask Application:
python app.py
-
Access the Application:
- Open a web browser and visit http://localhost:5000 (or the address specified in your Flask code if modified) to access the Diabetic Retinopathy Detection application.
- Use the provided interface to upload fundus images and view the predictions and suggested remedies.
-
Troubleshooting:
- If any issues occur, ensure proper file paths in your Flask code for loading the model (
'model/model.h5'
) and the remedies JSON file ('remedies.json'
). - Check the console or terminal for error messages that might help identify problems.
- If any issues occur, ensure proper file paths in your Flask code for loading the model (