1 Star 13 Fork 3

Mr.Huang/Ultra-Fast-Lane-Detection超快车道线检测

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
video_Test.py 501 Bytes
一键复制 编辑 原始数据 按行查看 历史
import cv2
import numpy as np
video_path=r'E:\pythonprojectnew\graduation\CarLaneDetection-master\resources\v2.mp4'
cap = cv2.VideoCapture(video_path)
fourcc = cv2.VideoWriter_fourcc(*'MJPG')
vout = cv2.VideoWriter('test' + '.avi', fourcc, 30.0, (1920, 1080))
while(1):
# get a frame
ret, frame = cap.read()
# show a frame
cv2.imshow("capture", frame)
if cv2.waitKey(30) & 0xFF == ord('q'):
break
vout.write(frame)
vout.release()
cap.release()
cv2.destroyAllWindows()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Mr-Huangparkour/ultra-fast-lane-detection.git
git@gitee.com:Mr-Huangparkour/ultra-fast-lane-detection.git
Mr-Huangparkour
ultra-fast-lane-detection
Ultra-Fast-Lane-Detection超快车道线检测
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385