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.