Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no, it's not related to your os. (well, apple users always think it is so...)

cv2.namedWindow("Trial") # here's the problem

if you open a namedWindow with default args, it will use cv2.WINDOW_AUTOSIZE , meaning: the window will get adjusted to the image size

what you want instead is:

 cv2.namedWindow("Trial", cv2.WINDOW_NORMAL)

this will do the opposite, resizing the image to your windowsize (you can also resize it now)

no, it's not related to your os. (well, apple users always think it is so...)

cv2.namedWindow("Trial") # here's the problem

if you open a namedWindow with default args, it will use cv2.WINDOW_AUTOSIZE , meaning: the window will get adjusted to the image size

what you want instead is:

 cv2.namedWindow("Trial", cv2.WINDOW_NORMAL)

this will do the opposite, resizing the image to your windowsize (you can also resize it now)now manually(or from code))

no, it's not not related to your os. (well, apple users always think it is so...)

cv2.namedWindow("Trial") # here's the problem

if you open a namedWindow with default args, it will use cv2.WINDOW_AUTOSIZE , meaning: the window will get adjusted to the image size

what you want instead is:

 cv2.namedWindow("Trial", cv2.WINDOW_NORMAL)

this will do the opposite, resizing the image to your windowsize (you can also resize it now manually(or from code))