OpenCV + Android + Unity

前端 未结 3 1075
無奈伤痛
無奈伤痛 2021-01-30 03:44

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

3条回答
  •  走了就别回头了
    2021-01-30 03:58

    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.

提交回复
热议问题