Open LiuYFxixi opened 3 months ago
Want to append my two bits here too! I have the same issue with this tutorial and other tutorials where this dependency exists. The requested GTK package, libgtk2.0-dev, is already installed and I use cvNamedWindow in my OpenCV apps regularly. So I don't know what the resolution is other than to use the Ultralytics site (on YOLO8) for continuing tutorials.
If the author of this repository has limited resources to fix the issues, then further pursuit of his tutorials will come to a halt for me. I've tried five different YOLOv8 tutorials from his site and only one worked (and that too with minor workarounds). I sincerely appreciate his work and the limitations are purely mine. Thanks.
Regards.
Update:
Currently, completing some Ultralytics published YOLOv8 tutorials on Raspberry Pi 5 without any issue:
OS: Debian GNU/Linux 12 (bookworm) aarch64
Host: Raspberry Pi 5 Model B Rev 1.0
Ultralytics provides a script to convert to NCNN models, which is recommended for RPi5.
I will try to install Ubuntu 24.04 on another RPi5 board and repeat the steps recommended by Ultralytics.
Regards.
cv2.error: OpenCV(4.10.0) /io/opencv/modules/highgui/src/window.cpp:1284: 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 'cvNamedWindow' how can i solve this problem in ubuntu? I tried the above method, but the problem still hasn't been solved