未验证 提交 c9ac718b 编写于 作者: Z Zeyu Chen 提交者: GitHub

change video code format to support chrome, but unsupport safari

change video code format to support chrome, but unsupport safari
......@@ -32,7 +32,7 @@ name = "./result/1-mask_detection.mp4"
width = 1280
height = 720
fps = 30
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
fourcc = cv2.VideoWriter_fourcc(*'vp90')
writer = cv2.VideoWriter(name, fourcc, fps, (width, height))
maskIndex = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册