Just a sample code
import cv2 as cv
img = cv.imread('book.jpg')
cv.imshow('img', img)
cv.waitKey(0)
As soon as the window opens, it closes, I am not able to even see the images properly.
I thought it was happening because I was using WSL (Linux) but the same thing is happening for me in windows too.
The same thing works fine on my friends computer. What could be the issue here?