EmotionDetection
Mutli-modal research project that combines text analysis and image processing to determine emotions
Install / Use
/learn @AlmasM/EmotionDetectionREADME
Emotion Detection
Research project that focuses on recognizing emotions using face recognition and NLP. The project is developed by Emory NLP lab.
Note
This repository contains source files from two repositories: face-py-faster-rcnn, which subsequently uses py-faster-rcnn
Outline
- Software requirements
- Installation of Faster R-CNN
- Adjusting to detect in Friends TV show
- Face_recognition package installation
- Run Face_recognition package
Software requirements
- Install
caffeandpycaffe. Detailed installation instructions can be found at Caffe: Installation - Python Packages: cython, opencv-mac, or opencv-ubuntu, and easydict
- Make sure you use virtual environment. Further instructions can be found at pyimagesearch
Installation of Faster R-CNN (Based on face-py-faster-rcnn)
- Follow every step outlined by face-py-faster-rcnn
Note 1: Make sure Step 3 and Step 4 are executed without errors, otherwise, caffe won't run.
Note 2: Face-py-faster-rcnn uses WIDER data set to train the model. The output should be .caffemodel extension
Note 3: Make sure to download the package Faster RCNN package 'recursively'.
- To test the model, the tutorial uses FDDB provided by UMass. So, if you are using pre-trained model, there is no need to download WIDER data set (make sure you adjust code accordingly).
- If all the steps are executed without errors, you can run the code on dataset:
~$ cd rcnn/face-py-faster-rcnn-master/
python ./tools/run_face_detection_on_fddb.py --gpu=0
Installation of Faster R-CNN (Friends TV show)
- Update directory names in the file: run_face_detection_on_fddb.py:
1.1 location of .caffemodel
1.2 data_dir, out_dir
1.3 plt.savefig() in the vis_detections() method
2. Run the code as in Step 3 of Installation of face-py-faster-rcnn
**General Note: **
After updating the directory names, if you get 'asType' error, it means that directory isn't being read properly. In other words, recheck by asserting or printing directories you visit.
Installing Face Recognition package using dlib
- Install dlib using either Method 1 or Method 2.
Method 1
Use procedure outlined by PyImageSearch
Method 2
Make sure you install python, opencv, boost, boost-python, dlib using brew install package_name.
Download dlib from website
Activate virtual environment, and in dlib directory, run python setup.py install
More information can be found in this github
- Install face_recognition package
Make sure dlib is installed without errors, otherwise face_recognition will not run properly. Then, in your bash run
pip install face_recognition
-
More information about face recognition can be found here
-
Convenient explanation and sample explanations are given by Adam Geitgey
Run Face Recognition Package
- Copy get_dir.py file
- Inside the get_dir.py file provide 3 paths.
2.1 rootDir - known faces (i.e. faces of characters: Rachel, Ross, Monica, etc)
2.2 unknownDir - location of pictures where you need to recognize faces
2.3 newDir - location where to store new, evaluated pictures
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
19.1kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
