imshow() freeze on in cv2 w/ Python (Bug #2121)


Added by wonko the sane over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-07-02
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:python bindings
Target version:2.4.2
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Using imshow causes the new window to open and freeze immediately.
Windows 7 64bit, python 2.7.2 32bit, opencv 2.4.1

Example:

import cv2
cv2.namedWindow('test')

creates frozen window, can't put image into it (i.e. with:)

img = cv2.imread('testfile.bmp')
cv2.imshow('test', img)

Causes no error in the interpreter.


Associated revisions

Revision af9cd79e
Added by Roman Donchenko about 11 years ago

Merge pull request #2121 from ilya-lavrenov:tapi_perf

History

Updated by wonko the sane over 12 years ago

My apologies, I most likely did not understand the workings of the function. I am not sure if this is a bug or not, but the image is being displayed after a sending a waitKey().

Updated by Andrey Pavlenko over 12 years ago

This is misunderstanding: HighGui named windows processe events during waitKey() call, they should be frozen until you call waitKey().

  • Status changed from Open to Cancelled

Also available in: Atom PDF