Hi. Im also currently doing something using OpenCV in Unreal.
I got my project to compile by also including the Modules as a private Dependency.
And then I found in a video that the includes for OpenCV should apperently look like this:
#include “PreOpenCVHeaders.h”
#include “OpenCVHelper.h”
#include <ThirdParty/OpenCV/include/opencv2/imgproc.hpp>
#include <ThirdParty/OpenCV/include/opencv2/highgui/highgui.hpp>
#include <ThirdParty/OpenCV/include/opencv2/core.hpp>
#include “PostOpenCVHeaders.h”
You do not need all of the includes, but I still but them in so that people are able to detect the scheme.
I did not find any documentation on using OpenCV with UE. So if you know some good links these would be apprecieated. Currently I am figuring everthing out myself. Wich is more time consuming than I anticipated.