theAIGuysCode / yolov3_deepsort

Object tracking implemented with YOLOv3, Deep Sort and Tensorflow.
GNU General Public License v3.0
337 stars 183 forks source link

Error by executing tracker #4

Closed conect closed 4 years ago

conect commented 4 years ago

When I execute the tracker on the webcam: python object_tracker.py --video 0 --output ./data/video/results.avi

I receive following error. I already installed pkg-config and libgtk2.0-dev. Could you help me on what to do? Thank you.

File "/home/someone/miniconda3/envs/tracker-gpu/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main sys.exit(main(argv)) File "object_tracker.py", line 141, in main cv2.imshow('output', img) 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'

conect commented 4 years ago

solved it by:

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