Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCV Error #15

Open
learnTech2022 opened this issue Jun 19, 2017 · 1 comment
Open

OpenCV Error #15

learnTech2022 opened this issue Jun 19, 2017 · 1 comment

Comments

@learnTech2022
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants