Closed Kumataro closed 2 weeks ago
While this was happening, I noticed that the CPU usage was 100%.
However, even if I called namedWindow() in advance and the image was displayed correctly, the CPU usage was 100%.
I also created an additional patch to reduce CPU usage, but this issue was not resolved. For the above reasons, CPU usage does not seem to be the cause.
To reuse the result of getInstance() repeatedly looks like better efficient implementation. However, it defined as static shared_ptr member variable in CvWlCore. If it reaches out of scope, cv_wl_core::~cv_wl_core() is called and all windows will be destroyed.
System Information
OpenCV version: 4.x branch ( https://github.com/opencv/opencv/commit/2cd330486ec4597eab49c1575fc4a6603f205a6a ) Operating System / Platform: Ubuntu 24.04 Compiler & compiler version: GCC 13.2
Detailed description
We can use
imshow()
with window which is not created bynamedWindow()
.https://docs.opencv.org/4.x/d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563
It works well with GTK3 highgui-backed. However it doesn't work well with Wayland highgui-backend.
Steps to reproduce
opencv-log.png is copied from opencv/docs folder.
Issue submission checklist