Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ddanakim0304/Sunglassify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sunglassify 😎

image

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.

ezgif-3-6643745efe

Algorithm

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]
Loading

Features

  • 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.

Installation

Prerequisites

  • Python 3.6+
  • pip (Python package installer)

Steps

  1. Clone the Repository:
    git clone https://github.com/yourusername/sunglassify.git
    cd sunglassify
    
  2. Install Dependencies:
    pip install -r requirements.txt
    
  3. Run the Application:
    python sunglassify.py

Ensure a sunglasses.png image is in the same directory for overlays.

About

Add pixel sunglasses to your photo! (PyQt5, Mediapipe, OpenCV, Pillow)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages