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

cvWaitKey not Supported on Mac (classify_webcam.py) #18

Open
DennisFaucher opened this issue May 13, 2019 · 1 comment
Open

cvWaitKey not Supported on Mac (classify_webcam.py) #18

DennisFaucher opened this issue May 13, 2019 · 1 comment

Comments

@DennisFaucher
Copy link

DennisFaucher commented May 13, 2019

Traceback (most recent call last):
File "classify_webcam.py", line 68, in
a = cv2.waitKey(1) # waits to see if esc is pressed
cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp:654: 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 cvWaitKey

Going to try "brew install opencv3 --with-python" to fix

[Edit: "brew install opencv3" did not solve the issue, but also running "pip3 uninstall opencv-python; pip3 install opencv-python" did solve the problem]

@saugaatallabadi
Copy link

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

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