Python OpenCV视频捕获提供了中止陷阱 [英] Python opencv video capture giving abort trap

查看:197
本文介绍了Python OpenCV视频捕获提供了中止陷阱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近有一台新的Mac(macOS 10.14),并尝试使用openCV和python2.7.15运行视频捕获方法.

I recently got a new Mac (macOS 10.14) and am trying to run the video capture method with openCV and python2.7.15.

import cv2
cv2.VideoCapture(0)

我收到以下错误消息:

Abort trap: 6

我不知道为什么会这样,它在我的旧计算机上运行良好,我猜可能是有摄像头权限的东西?任何帮助将不胜感激.

I have no idea why this is happening, it worked fine on my old computer, my guess is something with camera permissions maybe? Any help would be greatly appreciated.

推荐答案

在更新到macOS 10.14(Mojave)之后,我遇到了相同的错误.

I have encountered the same error after update to macOS 10.14(Mojave).

我用otool进行调试,得到了: mac os错误

I used otool to debug, got this : mac os error

图片上报告的这些文件来自:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework

These file reported on picture is from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreMediaIO.framework

将iterm更新为内部版本3.2.4beta1"后,隐私问题"得到解决

after update iterm to "Build 3.2.4beta1", the "privacy problem" solved

这篇关于Python OpenCV视频捕获提供了中止陷阱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆