1
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?

Timur Musharapov
  • 163
  • 1
  • 1
  • 13

1 Answers1

9

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.

Miki
  • 40,887
  • 13
  • 123
  • 202