Ask Your Question

Revision history [back]

opencv not loading image on termux

i successful, installed opecv4 in termux on my samsung tab s5e. wrote this little script to load and save an image: when i run it, i have this output. i install termux -x-packages and re-run cmake but no sucess

python load.py --image 20190629_080028.jpg Traceback (most recent call last): File "load.py", line 9, in <module> cv2.imshow("image", image) cv2.error: OpenCV(4.0.0) /data/data/com.termux/files/home/opencv/modules/highgui/src/window.cpp:625: 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 'cvShowImage'