oarriaga / face_classification

Real-time face detection and emotion/gender classification using fer2013/imdb datasets with a keras CNN model and openCV.
MIT License
5.61k stars 1.59k forks source link

error on running #113

Open Antwnina opened 5 years ago

Antwnina commented 5 years ago

MacBook-Pro:GitHub userA$ cd face_classification/ MacBook-Pro:face_classification userA$ ls Dockerfile README.md datasets report.pdf trained_models LICENSE REQUIREMENTS.txt images src MacBook-Pro:face_classification userA$ ls -a . .gitignore README.md images trained_models .. Dockerfile REQUIREMENTS.txt report.pdf .git LICENSE datasets src MacBook-Pro:face_classification userA$ cd src/ MacBook-Pro:src userA$ python3 video_emotion_color_demo.py Traceback (most recent call last): File "video_emotion_color_demo.py", line 3, in import cv2 ModuleNotFoundError: No module named 'cv2' MacBook-Pro:src userA$ python3 image_gradcam_demo.py Traceback (most recent call last): File "image_gradcam_demo.py", line 3, in import cv2 ModuleNotFoundError: No module named 'cv2' MacBook-Pro:src userA$ python3 image_emotion_gender_demo.py ../images/test_image.jpg Traceback (most recent call last): File "image_emotion_gender_demo.py", line 3, in import cv2 ModuleNotFoundError: No module named 'cv2' MacBook-Pro:src userA$

billyceline commented 5 years ago

You need to install opencv library, before you run the demo