我如何解决“以退出代码139完成的过程(信号11:SIGSEGV中断)”,如何解决?在opencv-cv2(Pycharm& macOS)中吗? [英] How can I solve "process finished with exit code 139 (interrupted by signal 11: SIGSEGV)" in opencv - cv2 ( Pycharm & macOS)?
本文介绍了我如何解决“以退出代码139完成的过程(信号11:SIGSEGV中断)”,如何解决?在opencv-cv2(Pycharm& macOS)中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在学习OpenCV,但是遇到一些困难,cv2导入是可以的,但是 cv2.imshow
I am learning OpenCV but I meet some difficulties, cv2 import is fine but it got error with cv2.imshow
from cv2 import cv2
img = cv2.imread('image.jpg', 0)
cv2.imshow('1', img)
cv2.waitKey(100)
cv2.destroyAllWindows()
它将得到结果:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
我的跟踪树太长,因此我将其放在以下链接中:
https://justpaste.it/1tf4q
My trace tree is too long so I put it in the link below: https://justpaste.it/1tf4q
推荐答案
I遇到了同样的问题,并找到了该问题的链接: https://github.com/ opencv / opencv / issues / 18079
I'm faced the same issue and found a link to the issue: https://github.com/opencv/opencv/issues/18079
现在我将OpenCV从4.4.40降级到4.3.0.36,并且对我有用。
For now I downgraded OpenCV from 4.4.40 to 4.3.0.36 and it worked for me.
这篇关于我如何解决“以退出代码139完成的过程(信号11:SIGSEGV中断)”,如何解决?在opencv-cv2(Pycharm& macOS)中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文