Medilab-plus is a web application that uses machine learning to diagnose skin diseases from uploaded images. The application can currently classify three types of skin conditions:
- Acne Vulgaris
- Atopic Dermatitis
- Scabies
- Real-time skin disease classification from uploaded images
- Provides symptoms and treatment information for diagnosed conditions
- User-friendly web interface
- Backend: Flask (Python)
- Machine Learning: Keras with TensorFlow
- Frontend: HTML, CSS, Bootstrap
- Image Processing: OpenCV
app.py: Main Flask applicationtrain.py: Script for training the CNN modelpredic.py: Script for making predictionsdata/: Directory containing training and validation datasetsmodels/: Directory for storing trained modelsstatic/: Static assets (CSS, JS, images)templates/: HTML templatesuploads/: Directory for uploaded images
The project uses a Convolutional Neural Network (CNN) with:
- 2 convolutional layers
- Max pooling layers
- Dropout for regularization
- Softmax activation for multiclass classification
- Python 3.6+ (Python 3.7 recommended for 2019 compatibility)
- pip package manager
- Clone the repository:
git clone https://github.com/yourusername/Medilab-plus.git
cd Medilab-plus- Install 2019 compatible dependencies:
pip install -r requirements-2019.txt- Run the application:
python app.py- Access the application at http://127.0.0.1:3000
For production deployment with better security:
- Install updated dependencies:
pip install -r requirements-deploy.txt- Copy environment file:
cp .env.example .env- Run the application:
python app.pyThe project is ready for deployment on Render's free tier:
- Push your code to GitHub
- Connect to Render.com
- Use the included
render.yamlandbuild.shfiles - See
DEPLOYMENT.mdfor detailed instructions
Live Demo: Once deployed, your app will be available at https://your-app-name.onrender.com
- Railway: $5 free credit monthly
- PythonAnywhere: Free tier for Python apps
- Heroku: Requires payment (free tier discontinued)
- 2019 Compatibility: Use
requirements-2019.txtfor immediate setup without code changes - Modern Versions: Use
requirements-modern.txtfor latest features but requires code migration - Security: 2019 versions may have known vulnerabilities; consider modern versions for production
- Models: Pre-trained models from 2019 should work with both setups
requirements.txt- Default 2019 compatible versionsrequirements-2019.txt- Explicit 2019 versions with exact version numbersrequirements-modern.txt- Latest compatible versions (requires code changes)MIGRATION.md- Guide for upgrading to modern versions
To train a new model:
python train.pyAdd the -d or --development flag for a quick test with fewer epochs:
python train.py -d