Open mxochicale opened 2 years ago
From
# https://nrsyed.com/2018/07/05/multithreading-with-opencv-python-to-improve-video-processing-performance/
# https://github.com/nrsyed/computer-vision/tree/master/multithread
got this error:
File "/home/mxochicale/repositories/mxochicale/code/pyside6/threading/thread_demo.py", line 109, in noThreading if not grabbed or cv2.waitKey(1) == ord("q"): ^^^^^^^^^^^^^^ cv2.error: OpenCV(4.7.0) /io/opencv/modules/highgui/src/window.cpp:1338: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa 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'
tried
sudo apt-get install pkg-config
sudo apt-get install libgtk2.0-dev
sudo apt install libgtk-3-dev
but don't work.
Opening this one to add few examples of MultiThreading in Python
References (might be better ones)