This is a Streamlit-based web application for detecting various skin conditions from uploaded images using a YOLO model. The application provides tailored skincare advice, recommended products, and prevention tips for detected conditions.
- Skin Condition Detection: Detects common skin conditions like acne, wrinkles, dry skin, oily skin, eyebags, and more.
- Skincare Advice: Provides actionable advice, recommended products, and prevention tips for each detected condition.
- Interactive UI: Upload an image and view detection results with bounding boxes and confidence scores.
- Supports YOLO Models: Utilizes custom-trained YOLO models for skin condition detection.
🎯 Check out my streamlit app: https://facecare.streamlit.app/
- Python 3.9+
pip
package manager
git clone https://github.com/your-username/skin-condition-detection.git
cd skin-condition-detection
pip install -r requirements.txt
If deploying on Streamlit Cloud, create a packages.txt
file and include:
libgl1
streamlit run app.py
- Upload a
.jpg
,.jpeg
,.png
, or.webp
file. - The app will display:
- Original image with detections.
- Skincare advice for detected conditions.
.
├── app.py # Main application file
├── requirements.txt # Python dependencies
├── packages.txt # Additional packages for deployment (optional)
├── skincond.pt # YOLO model for skin condition detection
└── README.md # Project documentation
This project uses a custom-trained YOLO model (skincond.pt
) to detect six skin conditions:
- Acne
- Dry Skin
- Eyebags
- Normal Skin
- Oily Skin
- Wrinkles
- Push the repository to GitHub.
- Connect the repository to Streamlit Cloud.
- Ensure the
packages.txt
file is included with the following:libgl1
Include the following in your Dockerfile
:
RUN apt-get update && apt-get install -y libgl1
Uploaded via Streamlit interface.
Condition: Acne
Advice: Keep your skin clean, avoid harsh scrubbing, and avoid touching your face frequently.
Recommended Products:
- Salicylic Acid Cleanser
- Benzoyl Peroxide Cream
- Non-comedogenic Moisturizer
Prevention Tips:
- Wash your face twice daily with a mild cleanser.
- Avoid oily makeup products.
- Maintain a balanced diet with less sugar and processed foods.
Contributions are welcome! Please follow these steps:
- Fork this repository.
- Create a new branch.
- Commit your changes.
- Submit a pull request.
This project is licensed under the MIT License.
Developed by Pyae Linn.