Skip to content

With this program you can add a pixel glass on your face (it supports multiple faces)

License

Notifications You must be signed in to change notification settings

MobinMithun/PixelGlassOnFace_OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Glass On Face (OpenCV)

forthebadge made-with-python

Are you tired of boring faces? Do you wish you could add some extra coolness to your photos? Well, fear not, my friend, for the Pixel-Glass-on_Face_OpenCV is here to save the day! 🦸‍♀️

This repository is all about adding some serious swag to your photos by overlaying stylish sunglasses on your face. Get ready to turn heads and make jaws drop with your newfound coolness. 🕶️

Usage

  1. Input: Feed the photo with your boring, sunglass-less image.
image_path = '/content/drive/MyDrive/ColabNotebooks/mob.jpg'
sunglass_path = '/content/drive/MyDrive/ColabNotebooks/glass.png'
  1. Output: Abracadabra! Your image is now blessed with the coolest sunglasses ever. 😎

Input Image Input Image Input Image

Features

  • Face Detection: This code can spot faces like a hawk, ensuring no one is left without a pair of glass.
  • Automatic Sizing: It resizes the sunglasses to fit each face perfectly, because one size doesn't fit all (except for coolness).
  • Alpha Channel Support: Transparency? No problem! The code handles alpha channels like a pro.
  • Multi-Face Support: Got a group photo? The code will make sure everyone looks equally cool.

Requirements

  • Python 3.X
  • OpenCV (!pip install opencv-python)
  • NumPy (!pip install numpy)
  • Pillow (!pip install pillow)
  • IPython (!pip install ipython)

Contributing

Contributions are welcome! If you have any ideas to make this repisatory even cooler (pun intended), feel free to submit a pull request. Together, we can make the world a more fashionable place, one pair of sunglasses at a time. 😎🌍

About

With this program you can add a pixel glass on your face (it supports multiple faces)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published