Ask Your Question

Revision history [back]

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.

click to hide/show revision 2
retagged

updated 2015-11-25 11:38:54 -0600

berak gravatar image

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.