From 280bec6c8f7f12361181ea145503b197173a63d6 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 8 Nov 2022 09:27:48 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index fe3bd7e8b..3cce12cde 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,11 @@ Renders a color wheel on top of a input-video using nanovg (OpenGL) and encodes https://user-images.githubusercontent.com/287266/200169216-1ff25db5-f5e0-49d1-92ba-ab7903168754.mp4 +## optflow-demo and optflow_mt-demo +My take on a optical flow visualization on top of a video. Encoded to VP9. "optflow_mt" is an example on how to use threads to maximize use of both GPU and CPU. + +https://user-images.githubusercontent.com/287266/200512662-8251cf2c-23b3-4376-b664-d3a85b42d187.mp4 + # Instructions You need to build the most recent 4.x branch of OpenCV. @@ -69,3 +74,16 @@ src/video/video-demo bunny.webm ```bash src/nanovg/nanovg-demo bunny.webm ``` + +## Run the optflow-demo: + +```bash +src/optflow/optflow-demo bunny.webm +``` + +## Run the optflow_mt-demo: + +```bash +src/optflow_mt/optflow-demo_mt bunny.webm +``` + From f982f8814a44198d8626d38ba6de069ac8a6ed0d Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 8 Nov 2022 09:29:05 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cce12cde..3a6cd1246 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The author of the example video (which is also used for the demos videos in this * Support for OpenCL 2.0 * If you are on a recent Intel Platform (Gen8 - Gen12) you probably need to install an alternative [compute-runtime](https://github.com/kallaballa/compute-runtime) -There are currently three demos (**the preview videos are scaled down and highly compressed**): +There are currently five demos (**the preview videos are scaled down and highly compressed**): ## tetra-demo Renders a rainbow tetrahedron on blue background using OpenGL and encodes to VP9