Python CV2视频在Python流程被杀死后无法播放
我使用CV2捕获显示器,当我通过Pycharm或Ctrl + C停止脚本时,我可以播放视频,如果我杀死了Python过程,我将无法播放视频。
你知道为什么会发生这种情况吗?我认为您如何结束脚本无关紧要(使用CTRL + C或杀死Python过程),但看起来我错了。
先感谢您
I use CV2 to capture my monitor, when I stop the script via Pycharm or CTRL + C, I can play the video, if instead I kill the Python process, I am not able to play the video.
Do you know why this happens maybe? I thought that it does not matter how you end script (with CTRL + C or by killing the python process), but looks like I am wrong.
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的!您杀死了该过程的情况是错误的,因为程序没有时间来创建可以运行的可用剪辑形式。
尝试通过#PyCharm停止或制作停止代码。
谢谢。
yes! you are doing it wrong that you killed the process since there is no time left for program to create usable form of clip which you can run.
try to use stop via #PYCHARM or make a stop code.
thanks.