response from the image window to kernel is not getting passed
See original GitHub issuehere is a simple part of code … to display a image and then closing it off on pressing the esc or ‘q’
import cv2
img=cv2.imread('/<imagelocation>')
cv2.imshow('image',img)
k=cv2/waitKey(0)
if k == 27 or ord('q'):
cv2.destroyAllWindows()
now the image is shown properly but on pressing ‘q’ or esc , it hangs and then you have to force quit the image , and immediately notebook detects this failure and restart the kernel
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
cv2.imshow() crashes Kernel - python - Stack Overflow
I am running OpenCV through Jupyter Notebooks and whenever I try to run cv2.imshow() the kernel crashes, no ...
Read more >The operating could not be loaded, the kernel is missing or ...
After downloaded x64 ISO to desktop, I used Rufus 2.2 apps to convert ISO to USB drive (8GB) and then; make USB drive...
Read more >The kernel's command-line parameters
The kernel parses parameters from the kernel command line up to “–”; if it doesn't recognize a parameter and it doesn't contain a...
Read more >Image Processing with Python - Data Carpentry
What sort of scientific questions can we answer with image processing ... they are not necessarily created, stored, or transmitted in that format....
Read more >Kernel Died error post installing tensorflow - Apple Developer
Please help me fix this issue and understand why its not getting fixed. At the moment, I can only think of trading Macbook...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey have any one resolved this issue, coz i have same problem. Here is my code.
import cv2 import numpy as np import matplotlib.pyplot as plt 0 img = cv2.imread(‘index.jpeg’,cv2.IMREAD_GRAYSCALE) cv2.imshow(‘image’,img) cv2.waitKey(0) cv2.destroyAllwindows() i am running python3 on ubuntu 16.04, when i run this code the image window and consol gets hanged, non responsive, i have tried different consoles to run the code like ipython, spyder, jupyter notebook, ubuntu terminal same error every time
Just don’t write your message on the first line after the triple quote, it is ment for the language highlighting
You can edit your comment if you made a mistake. I fixed it for you.