spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.2k stars 1.59k forks source link

cv2.destroyAllWindows() not close windows ( Spyder 3.2.5/Python3.5.5) but it does in in the shell #7176

Open rnrpereira opened 6 years ago

rnrpereira commented 6 years ago

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

Version and main components

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  None (NOK)
numpy >=1.7      :  1.14.3 (OK)
sphinx >=0.6.6   :  1.7.4 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.12.0 (OK)
psutil >=0.3     :  5.4.5 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  None (NOK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.4.0 (OK)
pylint >=0.25    :  1.8.4 (OK)
ccordoba12 commented 6 years ago

@andfoy, do you have any input to say here?

rnrpereira commented 6 years ago

Hi,

cv2.destroyAllWindows() DOES NOT CLOSE IMAGE WINDOWS when I use under Spider 3.2.8 / Python 3.5.5. ** (windows opened with cv2.imshow('image',image.jpg), for example)

but it works in my python environment running this way: >> python roda.py // roda.py is the script that opens/closes windows (I'm using opencv 3.3.1)

HOWEVER, IF (under Spider 3.2.8) I ADD >=6 cv2.waitKey(1) instructions following cv2.destroyAllWindows(), it works fine (i.e. closes all opened windows)

??

R.

2018-05-23 10:25 GMT-03:00 Carlos Cordoba notifications@github.com:

@andfoy https://github.com/andfoy, do you have any input to say here?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/7176#issuecomment-391345304, or mute the thread https://github.com/notifications/unsubscribe-auth/ACMAd-4kfNcngcwX9fCQoPeMIzD5e-kIks5t1WM6gaJpZM4UJdcC .

-- Rodrigo Neves Romcy Pereira, PhD Associate Professor Brain Institute Federal University of Rio Grande do Norte Natal - RN, Brazil phone: +55 (84)3215-4592 email: rnrpereira@neuro.ufrn.br rnrpereira@neuro.ufrn.br