Sunglassify is a desktop application that overlays virtual sunglasses on photos using advanced computer vision techniques. Built with Python, it provides an intuitive interface to upload, process, and save transformed images.
graph TD
A[Upload Photo] --> B[Detect Eyes with Computer Vision Model]
B --> C[Find Coordinates and Angle of Eyes]
C --> D[Adjust Size & Angle of Sunglasses]
D --> E[Overlay Sunglasses onto Original Image]
- GUI with PyQt5: User-friendly interface for seamless interactions.
- Face Detection with Mediapipe: Uses Mediapipe's Face Mesh for precise eye landmark detection.
- Image Processing with OpenCV and Pillow: Powered by OpenCV and Pillow for efficient transformations.
- Save Functionality: Export edited images in various formats.
- Python 3.6+
- pip (Python package installer)
- Clone the Repository:
git clone https://github.com/yourusername/sunglassify.git cd sunglassify - Install Dependencies:
pip install -r requirements.txt
- Run the Application:
python sunglassify.py
Ensure a sunglasses.png image is in the same directory for overlays.
