使用 fer2013/imdb 数据集、keras CNN 模型和 openCV 进行实时人脸检测和情绪/性别分类。
使用 fer2013/imdb 数据集、keras CNN 模型和 openCV 进行实时人脸检测和情绪/性别分类。
Real-time face detection and emotion/gender classification using fer2013/IMDB datasets with a keras CNN model and openCV.
For more information please consult the publication
Guided back-prop
Real-time demo:
B-IT-BOTS robotics team :)
python3 video_emotion_color_demo.py
python3 image_gradcam_demo.py
python3 image_emotion_gender_demo.py <image_path>
e.g.
python3 image_emotion_gender_demo.py ../images/test_image.jpg
With a few steps one can get its own face classification and detection running. Follow the commands below:
docker pull ekholabs/face-classifierdocker run -d -p 8084:8084 --name=face-classifier ekholabs/face-classifiercurl -v -F image=@[path_to_image] http://localhost:8084/classifyImage > image.pngDownload the fer2013.tar.gz file from here
Move the downloaded file to the datasets directory inside this repository.
Untar the file:
tar -xzf fer2013.tar
python3 train_emotion_classifier.py
Download the imdb_crop.tar file from here (It's the 7GB button with the tittle Download faces only).
Move the downloaded file to the datasets directory inside this repository.
Untar the file:
tar -xfv imdb_crop.tar
python3 train_gender_classifier.py
暂无开放 Issues,或尚未同步最近议题。