isseu / emotion-recognition-neural-networks

Emotion recognition using DNN with tensorflow
MIT License
835 stars 308 forks source link

OpenCV Error #15

Open learnTech2022 opened 7 years ago

learnTech2022 commented 7 years ago

Hi, I am trying to implement Emotion recognition using DNN with TensorFlow. And i have successfully trained the model using the data as mentioned.

But when i try to run this $ python emotion_recognition.py poc I am getting below error :


[+] Building CNN
2017-06-19 17:18:55.833946: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-06-19 17:18:55.833974: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-06-19 17:18:55.833991: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp, line 583
Traceback (most recent call last):
  File "emotion_recognition.py", line 101, in <module>
    import poc
  File "/Users/krishna/tf_emotion_recogn/poc.py", line 80, in <module>
    cv2.imshow('Video', frame)
cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp:583: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage```

OpenCV library version is
```opencv-python==3.2.0.7```

Operating system
```OS X EI Capitan 10.11.6 ```

Any help would be appreciated
Thanks
Hale-Lee commented 7 years ago

I guess you haven't installed the opencv with full extension. so you can install libgtk2.0-dev and pkg-config and re-make the opencv.