-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9225cec
commit 8a9c4f6
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Face Detection, Recognition and Expression Recognition | ||
|
||
The repo contains the code for running the All-in-one face detection/recognition + expression recognition | ||
|
||
## Installation | ||
|
||
Requires several libraries to get the demo running. | ||
|
||
1. Caffe + PyCaffe [Installation](http://caffe.berkeleyvision.org/installation.html) | ||
2. Tensorflow for Face expression [Installation](https://www.tensorflow.org/install/pip) | ||
3. OpenCV | ||
|
||
|
||
## Usage | ||
|
||
1. Download the model files from [here] (https://drive.google.com/file/d/1Y3KXEX3BsuZYtgQUXCYjC_4WD-irdYsP/view?usp=sharing) | ||
2. Untar the contents and place the content in the models directory | ||
3. Place the images that you want to be identified in the data directory. Then run | ||
|
||
``` Python | ||
python utils/generate_train_features.py | ||
``` | ||
|
||
4. Next, run | ||
``` Python | ||
python demo.py | ||
``` | ||
|
||
A window will open and will start detecting the faces | ||
|
||
5. Experimental feature. | ||
For detecting the facial expressions, modify utils/MTCNN.py and change EXPRESSION_DETECTION_ENABLED = True and restart the demo.py | ||
|
||
|
||
|
||
|
||
## Contributing | ||
For major changes, please open an issue first to discuss what you would like to change. |