how to build OpenCV with UI backend? in raspberry pi
I am getting below error,
Traceback (most recent call last): File "/home/pi/ImageRecognizer.py", line 44, in <module> cv2.destroyAllWindows() cv2.error: OpenCV(3.4.1) /home/pi/opencv-3.4.1/modules/highgui/src/window.cpp:630: 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 cvDestroyAllWindows
you'll have to build the whole thing from src, after installing gtk2 or qt dev packages, see here
unfortunately, this also means, that you have to build it on your device (slow), and cannot cross-compile.
after installing gtk2 or qt dev packages, I build again but still facing same issue. Followed the steps from the link provided.