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
This commit is contained in:
Vincent Rabaud 2025-07-03 13:14:48 +02:00
parent d75323f8a5
commit 1cdb76c8e3

View File

@ -4,7 +4,7 @@
#include <jni.h> #include <jni.h>
#include "opencv_java.hpp" #include "opencv_java.hpp"
#include "opencv2/core.hpp" #include "opencv2/core.hpp"
#include "opencv2/videoio/videoio.hpp" #include "opencv2/videoio.hpp"
class JavaStreamReader : public cv::IStreamReader class JavaStreamReader : public cv::IStreamReader
{ {