From 03289e7bfcfb98ac13da4b2d671260cd570d7b23 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 09:51:02 +0100 Subject: [PATCH 01/10] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 7ae8d69c4..6ebc7e3f6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Viz2D -Viz2D is a 2D visualization library based on OpenCV. -It features OpenGL/OpenCL/VAAPI interoperability. -It should be included in OpenCV-contrib once it is ready. +Viz2D is a 2D visualization library based on OpenCV. It features OpenCL/ OpenGL and OpenCL/API interoperability and a GUI based on nanogui. It should be included in OpenCV-contrib once it is ready. # Demos The goal of the demos is to show how to use Viz2D in conjunction with interop options on Linux to create programs that run mostly (the part the matters) on the GPU. Until the [necessary changes](https://github.com/opencv/opencv/pulls/kallaballa) are pulled into the official repository you need to build my fork of OpenCV 4.x. From fc2af9ed494a1db98f17e81ef808770f7209bcce Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 10:00:07 +0100 Subject: [PATCH 02/10] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ebc7e3f6..874481bb5 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,13 @@ The goal of the demos is to show how to use Viz2D in conjunction with interop op * [nanovg](https://github.com/inniyah/nanovg) * [nanogui](https://github.com/mitsuba-renderer/nanogui) -There are currently eight demos. The shader-demo, font-demo and optflow-demo can be compiled using emscripten but for now you have to figure out how to do it yourself :). +There are currently eight demos. The shader-demo, font-demo, optflow-demo and beauty-demo can be compiled to WebAssembly using Emscripten but for now you have to figure out how to do it yourself :). + +## Online Demos +https://viel-zu.org/opencv/shader +https://viel-zu.org/opencv/font +https://viel-zu.org/opencv/optflow +https://viel-zu.org/opencv/beauty ## tetra-demo Renders a rainbow tetrahedron on blue background using OpenGL, applies a glow effect using OpenCV (OpenCL) and encodes on the GPU (VAAPI). From d2a91d82e5a199edea78c119ead0d5e48bb92780 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 10:00:28 +0100 Subject: [PATCH 03/10] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 874481bb5..7b9fd7085 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ The goal of the demos is to show how to use Viz2D in conjunction with interop op There are currently eight demos. The shader-demo, font-demo, optflow-demo and beauty-demo can be compiled to WebAssembly using Emscripten but for now you have to figure out how to do it yourself :). ## Online Demos -https://viel-zu.org/opencv/shader -https://viel-zu.org/opencv/font -https://viel-zu.org/opencv/optflow -https://viel-zu.org/opencv/beauty +* https://viel-zu.org/opencv/shader +* https://viel-zu.org/opencv/font +* https://viel-zu.org/opencv/optflow +* https://viel-zu.org/opencv/beauty ## tetra-demo Renders a rainbow tetrahedron on blue background using OpenGL, applies a glow effect using OpenCV (OpenCL) and encodes on the GPU (VAAPI). From 7b98bed41021a0f0f80b5d57d7d94fc19748d8cd Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 10:02:22 +0100 Subject: [PATCH 04/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7b9fd7085..e66b5d14a 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ The goal of the demos is to show how to use Viz2D in conjunction with interop op There are currently eight demos. The shader-demo, font-demo, optflow-demo and beauty-demo can be compiled to WebAssembly using Emscripten but for now you have to figure out how to do it yourself :). ## Online Demos +Please note that the following online demos are slower and/or have less features than the native versions. * https://viel-zu.org/opencv/shader * https://viel-zu.org/opencv/font * https://viel-zu.org/opencv/optflow From 823dd4d50983913cffa56558c151f5cf62907788 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 10:09:50 +0100 Subject: [PATCH 05/10] Restructuring --- README.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index e66b5d14a..266416374 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,24 @@ # Viz2D Viz2D is a 2D visualization library based on OpenCV. It features OpenCL/ OpenGL and OpenCL/API interoperability and a GUI based on nanogui. It should be included in OpenCV-contrib once it is ready. -# Demos -The goal of the demos is to show how to use Viz2D in conjunction with interop options on Linux to create programs that run mostly (the part the matters) on the GPU. Until the [necessary changes](https://github.com/opencv/opencv/pulls/kallaballa) are pulled into the official repository you need to build my fork of OpenCV 4.x. - +# Attribution * The author of the bunny video is **(c) copyright Blender Foundation | www.bigbuckbunny.org**. * The author of the dance video is **GNI Dance Company** ([Original video](https://www.youtube.com/watch?v=yg6LZtNeO_8)) * The author of the video used in the beauty-demo video is **Kristen Leanne** ([Original video](https://www.youtube.com/watch?v=hUAT8Jm_dvw&t=11s)) +# Demos +The goal of the demos is to show how to use Viz2D in conjunction with interop options on Linux to create programs that run mostly (the part the matters) on the GPU. Until the [necessary changes](https://github.com/opencv/opencv/pulls/kallaballa) are pulled into the official repository you need to build my fork of OpenCV 4.x. + +There are currently eight demos. The shader-demo, font-demo, optflow-demo and beauty-demo can be compiled to WebAssembly using Emscripten but for now you have to figure out how to do it yourself :). + +## Online Demos + +Please note that the following online demos are slower and/or have less features than the native versions. +* https://viel-zu.org/opencv/shader +* https://viel-zu.org/opencv/font +* https://viel-zu.org/opencv/optflow +* https://viel-zu.org/opencv/beauty + # Requirements * Support for OpenCL 1.2 * Support for cl_khr_gl_sharing and cl_intel_va_api_media_sharing OpenCL extensions. @@ -20,15 +31,6 @@ The goal of the demos is to show how to use Viz2D in conjunction with interop op * [nanovg](https://github.com/inniyah/nanovg) * [nanogui](https://github.com/mitsuba-renderer/nanogui) -There are currently eight demos. The shader-demo, font-demo, optflow-demo and beauty-demo can be compiled to WebAssembly using Emscripten but for now you have to figure out how to do it yourself :). - -## Online Demos -Please note that the following online demos are slower and/or have less features than the native versions. -* https://viel-zu.org/opencv/shader -* https://viel-zu.org/opencv/font -* https://viel-zu.org/opencv/optflow -* https://viel-zu.org/opencv/beauty - ## tetra-demo Renders a rainbow tetrahedron on blue background using OpenGL, applies a glow effect using OpenCV (OpenCL) and encodes on the GPU (VAAPI). From d8942668cbd96beb707648436f96af8eef577732 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 10:16:54 +0100 Subject: [PATCH 06/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 266416374..b998b5c77 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Viz2D -Viz2D is a 2D visualization library based on OpenCV. It features OpenCL/ OpenGL and OpenCL/API interoperability and a GUI based on nanogui. It should be included in OpenCV-contrib once it is ready. +Viz2D is a 2D visualization library based on OpenCV. It features OpenCL/ OpenGL and OpenCL/VAAPI interoperability and a GUI based on nanogui. It should be included in OpenCV-contrib once it is ready. # Attribution * The author of the bunny video is **(c) copyright Blender Foundation | www.bigbuckbunny.org**. From b02dbd2580dd9c511f597c146e144fcefcde6c9c Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 10:18:50 +0100 Subject: [PATCH 07/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b998b5c77..01bd0109b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Viz2D -Viz2D is a 2D visualization library based on OpenCV. It features OpenCL/ OpenGL and OpenCL/VAAPI interoperability and a GUI based on nanogui. It should be included in OpenCV-contrib once it is ready. +Viz2D is a 2D visualization library based on OpenCV. It features OpenCL/ OpenGL, OpenCL/VAAPI interoperability and a GUI based on nanogui. It should be included in OpenCV-contrib once it is ready. # Attribution * The author of the bunny video is **(c) copyright Blender Foundation | www.bigbuckbunny.org**. From 326fce4df82b44e2a679d0a5a6433ab2714c943d Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 13:13:30 +0100 Subject: [PATCH 08/10] Removed obsolete note --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01bd0109b..70db20632 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Pedestrian detection using HOG with a linear SVM, non-maximal suppression and tr https://user-images.githubusercontent.com/287266/222980241-d631f7e5-e7a3-446e-937e-bce34e194bd1.mp4 ## beauty-demo -Face beautification using face landmark detection (OpenCV/OpenCL), nanovg (OpenGL) for drawing masks and multi-band (OpenCV/OpenCL) blending to put it all together. Note: There are sometimes little glitches because face landmark detection is not very accurate and has rather few points. +Face beautification using face landmark detection (OpenCV/OpenCL), nanovg (OpenGL) for drawing masks and multi-band (OpenCV/OpenCL) blending to put it all together. https://user-images.githubusercontent.com/287266/222982914-ff5be485-4aec-4d6b-9eef-378f6b10d773.mp4 From d2a789c6b7e1157cedf8dadacff6b2596152dd73 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 13:14:25 +0100 Subject: [PATCH 09/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70db20632..ba7cffe85 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Pedestrian detection using HOG with a linear SVM, non-maximal suppression and tr https://user-images.githubusercontent.com/287266/222980241-d631f7e5-e7a3-446e-937e-bce34e194bd1.mp4 ## beauty-demo -Face beautification using face landmark detection (OpenCV/OpenCL), nanovg (OpenGL) for drawing masks and multi-band (OpenCV/OpenCL) blending to put it all together. +Face beautification using face landmark detection (OpenCV/OpenCL), nanovg (OpenGL) for drawing masks and multi-band (CPU) blending to put it all together. https://user-images.githubusercontent.com/287266/222982914-ff5be485-4aec-4d6b-9eef-378f6b10d773.mp4 From 807df5c28f60ed46ae3ae3e91e29e0e7c7c01a11 Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Tue, 7 Mar 2023 13:15:25 +0100 Subject: [PATCH 10/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba7cffe85..bb2bb737b 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Pedestrian detection using HOG with a linear SVM, non-maximal suppression and tr https://user-images.githubusercontent.com/287266/222980241-d631f7e5-e7a3-446e-937e-bce34e194bd1.mp4 ## beauty-demo -Face beautification using face landmark detection (OpenCV/OpenCL), nanovg (OpenGL) for drawing masks and multi-band (CPU) blending to put it all together. +Face beautification using face landmark detection (OpenCV/OpenCL), nanovg (OpenGL) for drawing masks and multi-band blending (CPU) to put it all together. https://user-images.githubusercontent.com/287266/222982914-ff5be485-4aec-4d6b-9eef-378f6b10d773.mp4