Face detection and recognition and emotion detection - part 2
Channel: Student Helper
Date: 2021-10-16

This is a program for face detection, recognition, and emotion detection. It's for big data or for special business or human life cases.


You place images of the people you want to detect in a folder (the name of each person must be clear in the image file) then specify a video on your PC (check this video https://youtu.be/m97X0WOcymM) or on YouTube and you process it using a simple command. The outcome is a "frames_info" pkl file which holds information for the people who  appeared in your video, and their emotions.

In case someone who isn't in the folder appeared in your video, his (her) face will be automatically added to the folder but without a name. According to your use case, you then may want to rename those images, and rerun the program again.



This program also has the feature of replaying the video with a rectangle on each face, and it shows the names and their emotions.



I developed based on the work of someone else. It took me some time though.
For researchers who want to change the code, contact me, I can provide you with the code for free.
For researchers who are interested in using the program, same.
For business people, we discuss how we can do something together by God's will.

Telegram : @diraniyoussef

Next in the development, I shall make it real-time and faster in processing.


Enjoy...


Attributions of images of PM Mr. Imran Khan :

By Heinrich Böll Stiftung from Berlin, Deutschland - http://en.wikipedia.org/wiki/File:Konferenz_Pakistan_und_der_Westen_-_Imran_Khan_(4155877864).jpg, CC BY-SA 2.5, https://commons.wikimedia.org/w/index.php?curid=15660061

By Khamene.ir - http://english.khamenei.ir/d/2019/04/22/4/17053.jpg, CC BY 4.0, https://commons.wikimedia.org/w/index.php?curid=78281092

By Chatham House - Imran Khan, CC BY 2.0, https://commons.wikimedia.org/w/index.php?curid=26224243

By Imran Ghazali - Allowed By - http://www.insaf.pk/News/tabid/60/articleType/ArticleView/articleId/602/Imran-Khan-tears-off-his-nomination-papers.aspx, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=5820593

By Stephan Röhl for Heinrich Böll Stiftung - originally posted to Flickr as Konferenz: Pakistan und der Westen - Imran Khan, CC BY-SA 2.0, https://commons.wikimedia.org/w/index.php?curid=10538501

By government.ru - http://m.government.ru/en/all/34579/, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=74276445

By khamenei.ir - http://farsi.khamenei.ir/photo-album?id=42310, CC BY 4.0, https://commons.wikimedia.org/w/index.php?curid=78371086

By Zeeshansamikhan - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=51445538