Issue
Environment:
- interpreter: Python 3.9.0
- OS: macOS Big Sur
This simple code is running fine with no errors; however, no image is produced and nothing is displayed, and I'm forced to manually stop the code and interrupt it to exit, otherwise it just seems to run forever? This exact same code used to work fine on my windows laptop. Any clue? The code:
import cv2
CV_cat = cv2.imread('Cat.jpg')
cv2.imshow('displaymywindows', CV_cat)
cv2.waitKey(1500)
Solution
With Ubuntu 18.04 and Anaconda environment I was getting the error with Pycharm as
process finished with exit code 139 (interrupted by signal 11 sigsegv)
Solved it by pip install opencv-python-headless
in addition to pip install opencv-python
Answered By - Sujith R Kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.