进程以 Python OpenCV 中的退出代码 134(被信号 6:SIGABRT 中断)结束 [英] Process finished with exit code 134 (interrupted by signal 6: SIGABRT) in python OpenCV
本文介绍了进程以 Python OpenCV 中的退出代码 134(被信号 6:SIGABRT 中断)结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
# Our operations on the frame come here
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Display the resulting frame
cv2.imshow('frame',gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()
我在 Pycharm IDE 中使用 Python 和 OpenCV.当我尝试使用 OpenCV 打开网络摄像头时,出现以下错误:
I'm using Python and OpenCV in Pycharm IDE. When I try to open the webcam using OpenCV, it gives the following error:
"进程以退出代码 134 结束(被信号 6:SIGABRT 中断)"
这是因为我的内存不足吗?对此有什么解决方案?
Is this happening because I'm running out of memory? What are the solutions for this?
我在 MacBook Pro(操作系统:Mojave)上使用 PyCharm
I'm using PyCharm on MacBook Pro (OS: Mojave)
谢谢!
推荐答案
- 打开/Applications/PyCharm.app/Contents/info.plist,
插入新行:
- Open /Applications/PyCharm.app/Contents/info.plist,
Insert a new line:
- 关键:隐私 - 相机使用
- 类型:字符串
- 值:PyCharm 中的应用程序想要使用相机.
保存.
这篇关于进程以 Python OpenCV 中的退出代码 134(被信号 6:SIGABRT 中断)结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文