Reputation: 163
import cv2 as cv cv.NamedWindow("window_a", cv.CV_WINDOW_AUTOSIZE)
AttributeError: 'module' object has no attribute 'NamedWindow'
What is the analogue of this function in OpenCV 3?
Upvotes: 1
Views: 12308
Reputation: 41775
Read the doc and check the tutorials:
cv2.namedWindow('name')
By default, the flag is cv2.WINDOW_AUTOSIZE. But if you specify flag to be cv2.WINDOW_NORMAL, you can resize window.
Upvotes: 9