Timur  Musharapov
Timur Musharapov

Reputation: 163

object has no attribute 'NamedWindow'

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

Answers (1)

Miki
Miki

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

Related Questions