标签: python-3.x opencv
我有以下代码:
cap = cv2.VideoCapture("/full/path/to/video.mp4")
当我在具有Python 3.6和3.7的MacOS 10.11.6上运行该程序时,程序会停止并显示错误消息Process finished with exit code 132 (interrupted by signal 4: SIGILL)。 路径有效(使用os.path.isfile检查),并使用打开视频流 VideoCapture(0)不会引发错误。
Process finished with exit code 132 (interrupted by signal 4: SIGILL)
os.path.isfile
VideoCapture(0)