I am looking for a way to use OpenCV in a Unity project and my target platform is an Android device.
I know that some assets exists on Unity asset store but I DO NOT want to use them as I find them way too expensive.
I manage to use use opencv in Unity as a C++ native pluggins by precompiling OpenCV in dlls using this tutorial, but dll means Windows Desktop so it doesn't help me much to build my project for Android.
I also found opencv jar archive, I know they can be easily imported into Unity, but I don't know how to do the next step: that is how to access OpenCV stuff from Unity C# scripts.
So, if anyone knows how to configure even a dummy hello world project using OpenCV in Unity editor for build to Android, or even has hints, I would take any infos about that.
Thanks in advance.
PS: I know this question is some sort of vague, and trust me it is not a LMGFY question as on google there is a lot of question like this and no real answer, so please don't rush -1 vote.
UPDATE
Using this tutorial, I managed to build opencv for Android using Android studio, but still I don't know how to use OpenCV from C# scripting. For example, how to create a cv::Mat?
So what I managed to do:
- Build OpenCV and run some native code using Android studio (so from Java).
- Build the Unity native example (one single C function) and call it from a C#script.
But I still can't figure out how to build some C++ code with OpenCV dependencies and call this code from a C# script.