I\'m using opencv 2.4.2, python 2.7 The following simple code created a window of the correct name, but its content is just blank and doesn\'t show the image:
You must use cv2.waitKey(0) after cv2.imshow("window",img). Only then will it work.
cv2.waitKey(0)
cv2.imshow("window",img)
import cv2 img=cv2.imread('C:/Python27/03323_HD.jpg') cv2.imshow('Window',img) cv2.waitKey(0)