Smile Detection Based on Deep Learning

Logix_Quest
2 min readAug 21, 2020

--

Smile detection is one of the most important and trending projects of deep learning for beginners especially. Here, we’re going to make it more simple. Here, cascade classifier is being used which is pre-trained. It will help to detect smile in pic, successfully. So let’s see code.

Firstly, we’ll import open CV library.

importing libraries

Secondly —

We’ll use image that will be used for detection of smile. We’re going to use cascade classifier. It’ll detect smile and make a rectangle there. So, let’s have a look on code.

smile detection

This code completes here. Now let’s have a look on result. I’ll use different images for detection. You can also choose them just by providing their right path.

Results —

result 1

So readers! here is a project to detect smile easily using cascade classifier. If you like my article, don’t forget to clap.

Thank you.

--

--

Logix_Quest
Logix_Quest

No responses yet