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

fix: cv2.error: OpenCV(3.4.2) 'function not implemented' issue in conda environment files #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SS47816
Copy link

@SS47816 SS47816 commented Sep 12, 2020

Hi,

I experienced a dependency issue while running the object_tracker.py, the cvShowImage function seems to have an error in openCV 3.4.2

cv2.error: OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/highgui/src/window.cpp:632: error: (-2: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 function 'cvShowImage'

I was running the code on Ubuntu 18.04 machine with Nvidia GPU

I fixed this by installing openCV 4.1.0:

conda remove opencv
conda install -c conda-forge opencv=4.1.0

Hence, I modified the conda-cpu.yml and the conda-gpu.yml files to use conda-forge channel with openCV 4.1.0 on the lists.

Hope this will help the rest trying this code.

Best regards,
SS

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

Successfully merging this pull request may close these issues.

None yet

1 participant