Why i can't find cv2.WINDOW_NORMAL? (Bug #3968)


Added by pengfei Fu over 10 years ago. Updated over 10 years ago.


Status:Cancelled Start date:2014-10-23
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected version:2.4.0 - 2.4.8 Operating System:Linux
Difficulty: HW Platform:x86
Pull request:

Description

if i use it, python will report:
Traceback (most recent call last):
File "./ri3.py", line 13, in <module>
cv2.namedWindow("image",cv2.WINDOW_NORMAL)
AttributeError: 'module' object has no attribute 'WINDOW_NORMAL'

my cv2.__version__ is $Rev: 4557
my os is Debian 3.2.60-1+deb7u3
thanks


History

Updated by pengfei Fu over 10 years ago

pengfei Fu wrote:

if i use it, python will report:
Traceback (most recent call last):
File "./ri3.py", line 13, in <module>
cv2.namedWindow("image",cv2.WINDOW_NORMAL)
AttributeError: 'module' object has no attribute 'WINDOW_NORMAL'

my cv2.__version__ is $Rev: 4557
my os is Debian 3.2.60-1+deb7u3
thanks

Sorry,in fact, the version of my opencv is 2.3,so i think this is new feature for 2.4.
i have download the src and install it on debian, though ipp can't link correct, but after i finish it use WITH_IPP=OFF,all is ok.
thanks.

Updated by Steven Puttemans over 10 years ago

If you use older versions, the correct command would be CV_WINDOW_NORMAL. However indeed since 2.4.9 it changed to WINDOW_NORMAL.

  • Status changed from New to Cancelled

Updated by pengfei Fu over 10 years ago

ok,now the version is

print cv2.__version__

3.0.0-dev
the version in debian sources is too old.
thanks

Steven Puttemans wrote:

If you use older versions, the correct command would be CV_WINDOW_NORMAL. However indeed since 2.4.9 it changed to WINDOW_NORMAL.

Also available in: Atom PDF