From: Gentoo bentoo overlay
Subject: [PATCH] Drop OpenCV 4.7 version constraint to allow OpenCV 5

Upstream requires OpenCV 4.7 but the source only uses stable APIs from the
core and imgproc modules and already guards cv::stackBlur via CV_MAJOR_VERSION
(src/QtCV.h). OpenCV 5's config rejects the explicit "4.7" request due to a
major-version mismatch. The minimum-version check is redundant because the
in-tree CV_MAJOR_VERSION guards already cover pre-4.7 OpenCV.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,7 +91,7 @@ find_package(Wayland REQUIRED COMPONENTS Client)
 find_package(PlasmaWaylandProtocols REQUIRED)
 find_package(LayerShellQt REQUIRED)
 find_package(KPipeWire)
-find_package(OpenCV 4.7 REQUIRED core imgproc)
+find_package(OpenCV REQUIRED core imgproc)
 find_package(PkgConfig REQUIRED)

 set_package_properties(KPipeWire PROPERTIES DESCRIPTION
