You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce, first we need a camerman.tif. We can obtain one via TestImages.jl
using TestImages, FileIO
img =testimage("cameraman.tif")
save("cameraman.tif", img)
If I start a new temporary environment as follows, I can reproduce.
using Pkg
Pkg.activate(; temp=true)
Pkg.add(["OpenCV", "ImageView", "ImageCore"])
using OpenCV
img = OpenCV.imread("cameraman.tif")
OpenCV.imshow("Cameraman", img)
However, if I load ImageView.jl, then the issue is resolved.
using Pkg
Pkg.activate(; temp=true)
Pkg.add(["OpenCV", "ImageView", "ImageCore"])
using OpenCV, ImageView
img = OpenCV.imread("cameraman.tif")
OpenCV.imshow("Cameraman", img)
Loading ImageView.jl seems to do some initialization which then allows OpenCV.imshow to work. This is confusing though since ImageView.jl uses GTK while OpenCV.imshow appears to be QT based.
My os: Ubuntu 24.04
This code is not working, No Error but it retains the image that was previously on screen on that area. See image for reference:
The text was updated successfully, but these errors were encountered: