# AI-Facial-Emotion-Detection
This is an application created using Artificial Intelligence to detect emotions from group facial expressions
<img src="./figs/example2.png" width="300" class="center">
1. Emotion of detected face
2. Graph of aggregated results
3. Bounding box
4. Majority label
## Workflow
- Haarcascade-frontal is used to detect faces
- These are cropped out and fed into the a trained CNN model for inference
- Highest probability label is the outputted as the corresponding emotion
- After detection for all faces, the group label is decided by the majority emotion
## There are 4 emotions categorized in 3 states: negative, neutral and positive
* 0: "Angry" - negative
* 1: "Happy" - positive
* 2: "Neutral" - neutral
* 3: "Fear" - negative
The graph is meant as a visual indicator of the general emotional state of the crowd
# Usage
The script for detection is main.py, it has 2 uses:
* Record emotions using webcam
* Print a graph and metrics from a prexisting recording
## Recording
* Run main.py and press 1 when prompted in the terminal to record. This will make use the default webcam.
* To quit recording press 'esc'. This will save the emotion graph values to the graphs folder
## Plotting
* Run main.py and press 2 when prompted in the terminal to record
* Provide the path to the graph you wish to plot/run stats on
* Input L to list options or input the number of the desired command in the terminal
## Options
1. plot Graph
2. show all stats
3. show engagement percentage
4. show positive engagement percentage
5. show negative engagement percentage
6. show neutral percentage
7. show mean
8. show maximum positive enagement time
9. show maximum negative engagement time
10. show maximum engagement time, regardless of classification
11. show maximum y value
12. show minimum y value
q - quit

Meta.Qing
- 粉丝: 2w+
最新资源
- PID控制算法.ppt
- Flash动画技术入门.doc
- photoshop基础学习教程教案初学者入门.ppt
- 2023年计算机等级考试二级语言试题及答案.doc
- Linux-tcpdump命令详细讲解.doc
- 单片机89C52控制直流电机论文参考.doc
- PLC应用技术项目化教程课件.ppt
- GB_T_34058_2017_电子商务信用_B2B网络交易卖方信用评价指标.pdf
- xx大酒店监控系统集成方案.docx
- 第1章matlab环境认识与基本操作.ppt
- 2022网络搞笑的经典语句.docx
- ENVI遥感图像处理方法.doc
- 2022通信工程项目建议书.docx
- SQL-入门新手教程(重要).doc
- PLC-S7-300具体应用举例.ppt
- Excel中打印图表的技巧【会计实务操作教程】.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


