cv2.imshow() doesn't work correctly without a named window (Bug #2146)
I'm using opencv 2.4.2, python 2.7 and installed the bindings from here
The following code created a window of the correct size, but its contents is just blank (grey):
img = cv2.imread(r'D:\opencv\samples\c\box.png') #cv2.namedWindow("gray", 1) cv2.imshow("gray", img) cv2.waitKey()
It only works as expected with a named window being created first, which was not the case in previous versions. This stops certain samples from working for me as well, such as stereo_match.py.