From 49bc03b143682b12ba346ce79f854c2f5aedf07d Mon Sep 17 00:00:00 2001 From: channingss Date: Tue, 25 Feb 2020 19:28:44 +0800 Subject: [PATCH] change video code format to support chrome, but unsupport safari --- demo/mask_detection/mask_detection.py | 2 +- demo/mask_detection/web/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/mask_detection/mask_detection.py b/demo/mask_detection/mask_detection.py index 7ef6767c..3929def9 100644 --- a/demo/mask_detection/mask_detection.py +++ b/demo/mask_detection/mask_detection.py @@ -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 diff --git a/demo/mask_detection/web/index.php b/demo/mask_detection/web/index.php index bd79f1c1..ba323ce5 100644 --- a/demo/mask_detection/web/index.php +++ b/demo/mask_detection/web/index.php @@ -1,5 +1,5 @@ -- GitLab