namedWindow(...,cv2.WINDOW_NORMAL) returns object as no attribute error (Bug #4408)


Added by Dale Matt over 9 years ago. Updated over 9 years ago.


Status:New Start date:2015-06-14
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:python bindings
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty: HW Platform:x86
Pull request:

Description

Related to issue #3968
Using windows8, python 2.7, opencv version=$Rev: 4557 $

Running this code:
import numpy as np
import cv2
img=cv2.imread([jpg file],0)
cv2.namedWindow('image',cv2.WINDOW_NORMAL)

Returns this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object as no attribute 'WINDOW_NORMAL'

I've tried CV_WINDOW_NORMAL and get the same error


History

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5021

Also available in: Atom PDF