OpenCV 5.0.0-pre
Open Source Computer Vision
|
Prev Tutorial: Using Creative Senz3D and other Intel RealSense SDK compatible depth sensors
Original author | Kumataro |
Compatibility | OpenCV >= 4.10 |
Ubuntu 24.04 |
This tutorial is to use Wayland highgui-backend in Ubuntu 24.04.
Wayland highgui-backend is experimental implementation.
sudo apt install build-essential git cmake
to build OpenCV.sudo apt install libwayland-dev wayland-protocols libxkbcommon-dev
to enable Wayland highgui-backend.sudo apt install ninja-build
(or remove -GNinja
option for cmake command).sudo apt install libwayland-egl1
to enable Wayland EGL library.--depth=1
option is to limit downloading commits. If you want to see more commit history, please remove this option.Run cmake
with -DWITH_WAYLAND=ON
option to configure OpenCV.
If succeeded, Wayland Client/Cursor/Protocols and Xkbcommon versions are shown. Wayland EGL is option.
Run cmake --build
to build, and sudo cmake --install
to install into your system.
Try this code, so you can see name of currentUIFrramework() and OpenCV logo window with Wayland highgui-backend.