【发布时间】:2020-07-02 04:43:06
【问题描述】:
我目前正在使用 Flask 和 WebUI 模块来创建一个使用 OpenCV 的桌面应用程序。我遇到的一个问题是每次我尝试打开 OpenCV 相机时,都会引发错误。
我调用的函数是:
@app.route('/start-camera')
def startCamera():
global cameraState, video
while cameraState:
ret, frame = video.read()
cv2.imshow('Camera', frame)
return render_template('index.html')
我得到的错误是
进程以退出代码 139 结束(被信号 11:SIGSEGV 中断)
有没有人对如何解决/解决这个问题有任何建议?提前致谢!
【问题讨论】:
标签: python opencv segmentation-fault