2015-11-26 01:55:04 -0600 | commented answer | Under Mac OSX Yosemite 10.10.1, the image I want to display is too large and too long for the window. I would like it to adjust to the window. My previous post was not accurate enough. I have already tested : cv2.namedWindow("Trial", cv2.WINDOW_NORMAL) And it doesn't work either. I do not want to resize my image form the code, because I have a lot of images to process, and their size can vary. |
2015-11-25 11:37:01 -0600 | asked a question | Under Mac OSX Yosemite 10.10.1, the image I want to display is too large and too long for the window. I would like it to adjust to the window. Here is my code : import cv2 import sys image = cv2.imread(fname) if image is None: print 'Failed to load image file:', fname sys.exit(1) cv2.namedWindow("Trial") cv2.imshow("Trial",image) I'm a beginner in opencv, so please, be patient. |