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
This is just to add on to Pierre's answer, I wanted to comment but I don't have enough reputation. I followed his answer using the latest version of OpenCV(4.0.1) and there were a few extra things I needed to do.
First, replace the import with #include
. The other import statement points to old code.
Then go to the project's properties and select C/C++->Language. Set the language standard to C++ 11 and set Enable Run-Time Type Information to yes.
Then go to Code Generation and set Enable C++ Exceptions to yes.
After that, you should be all set.