![](/img/trans.png)
[英]Pycharm - Process finished with exit code 134 (interrupted by signal 6: SIGABRT) error
[英]Process finished with exit code 134 (interrupted by signal 6: SIGABRT) in python OpenCV
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 打开网络摄像头时,出现以下错误:
“进程以退出代码 134 结束(被信号 6:SIGABRT 中断) ”
发生这种情况是因为我的内存不足吗? 对此有哪些解决方案?
我在 MacBook Pro(操作系统:Mojave)上使用 PyCharm
谢谢!
插入一个新行:
保存。
通过在 vs code(visual studio code)中运行 python 脚本将执行程序而没有任何警告或错误。
在任何文本编辑器中打开 /Applications/PyCharm.app/Contents/info.plist。 在 dict & plist 标签前添加这两行:
<key>Privacy - Camera Usage</key>
<string>An application in PyCharm wants to use the camera.</string>
</dict>
</plist>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.