From 1cdb76c8e330a7e042edccc0dc90a9adf5d85ba5 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Thu, 3 Jul 2025 13:14:48 +0200 Subject: [PATCH] Include opencv2/videoio.hpp In my configuration with bazel, when building the Java bindings, it is not like building C++ and including videio/videoio.hpp triggers: error this is a compatibility header which should not be used inside the OpenCV library --- modules/videoio/misc/java/src/cpp/videoio_converters.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/misc/java/src/cpp/videoio_converters.hpp b/modules/videoio/misc/java/src/cpp/videoio_converters.hpp index d1ec43e2be..d1bfe6e0f4 100644 --- a/modules/videoio/misc/java/src/cpp/videoio_converters.hpp +++ b/modules/videoio/misc/java/src/cpp/videoio_converters.hpp @@ -4,7 +4,7 @@ #include #include "opencv_java.hpp" #include "opencv2/core.hpp" -#include "opencv2/videoio/videoio.hpp" +#include "opencv2/videoio.hpp" class JavaStreamReader : public cv::IStreamReader {