Python Code for Showing Image Over Face Like Mustache ,goggles

by Ajay Singh in Circuits > Robots

396 Views, 1 Favorites, 0 Comments

Python Code for Showing Image Over Face Like Mustache ,goggles

How to show .png over Face in Python and OpenCV.png

Dear Learners,


This is all about python and OpenCV. In this program we are simply placing image over the face to make some meaning just like the filters in Instagram's you may have seen .

Every Material has been provided below to keep things simple and short .


Happy Learning !!

Regards,

Ajay Singh

Setup

To perform this Experiment you will require the following steps.

  • Install python
  • Install OpenCV
  • Install NumPy
  • Install Imutils

Just search on google and you will file the installation files or you can refer to my another instructuables of face detection.

Codes Need to Download

beard.png
beard1.png
mustache3.png
skull.png

Please download all the files and keep it in the same folder. and follow these steps :

  • Open Idle and from there open the face_detection.py code
  • change the name of the png file to display on the face .
  • run by pressing f5 and wait for sometime to see the output .

To see the full video how to work on it you can look at this video:

https://www.youtube.com/watch?v=XNRZLK-MpRI

Hope everything is fine and working for you .

bye and have a Great Day.