python图像处理过程中视频显示不成功,只显示can not detect lane。去掉try\catch后,显示问题如图二所示

图片说明图片说明

你把try catch先去掉,看看具体报什么错。系统的报错信息比你的“can not detect lane”更有意义。

肯定是去掉_try,except_会看得清楚点。
主要你的video_path 就不是全路径,很可能是相对路径,根本就不知道。
clip = VideoFieldClip(video_path)
这行代码能不能运行

lines是空的就应该退出了
你需要在drawlines函数里加一下if(lines==Null):return