Monitoring your emotions in real-time using webcam and trigger alarm sounds when your stress level is high.
It can be used con-currently with Zoom or Google Meet Video Conference.
Simple stress-management tool for WFH.
- Fast.ai library
- Dlib
- OpenCV
- python3.7+
- Install all the above prerequisites and python packages listed in the requirements.txt file
- In the liveVideoFrameRead.py file, set variable
path=
to your project directory. - run
python liveVideoFrameRead.py
, with the following optional tags.
Additional tags:
--save-video
to save webcam video to the output folder
--save-csv
to save expression predictions, their probability tensor to a csv file
--camera_id 1
to set the webcam id, default to 1 for MacBook
--low-fps
to lower frame refresh rate to reduce the amount of real-time computation
Example:
python liveVideoFrameRead.py --save-csv --low-fps
will run webcam at low fps rate and save the prediction results to a CSV file to the output folder.
https://github.com/jy6zheng/FacialExpressionRecognition