Blog

Learn About Our Meetup

4500+ Members

[P] How I made a meme face using ML

video: https://youtu.be/kwpb4TeZguo

repo: https://github.com/Suji04/Meme_with_ML

This is a fun project I made while learning about object detection with haar cascades. Like, everyone, I too like the thug life memes. But to make a meme face of your friend you have to add the pixelated glasses on your own. I wrote a python program that automatically finds the eyes and places the pixelated glasses on them. I first tried with a haar cascade that can find the eyes but that didn’t produce good results after placing the glasses. After that, I tried a face detecting haar cascade. My idea was…I don’t have to find the eyes I just have to know where the eyes lie on the face. I divided the face(a rectangle) into 4 parts by 3 horizontal lines. The eyes generally lie on the 2nd part from the top. So the program just places the glasses on the 2nd part of the face. To my surprise, this simple idea produced better results than the former one!

submitted by /u/nerdy_wits
[link] [comments]

Next Meetup

 

Days
:
Hours
:
Minutes
:
Seconds

 

Plug yourself into AI and don't miss a beat

 


Toronto AI is a social and collaborative hub to unite AI innovators of Toronto and surrounding areas. We explore AI technologies in digital art and music, healthcare, marketing, fintech, vr, robotics and more. Toronto AI was founded by Dave MacDonald and Patrick O'Mara.