Is it possible to use openCV C/C++ code in a shared or portable project?

Hello together,

is it possible to use the openCV C/C++ (windows download) code in a shared or a portable project?

I tried to use the android native openCV in an android project with java binding and it works, but I also need it in windows phone and iOS. It would be very
handsome, if I could use one library for all three project (iOS, WindowsPhone, Android).

Best Answer

Answers

  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    Portable Class Libraries are specifically .NET assemblies, so that's not going to work.

    Generally, what you would do is write an interface that your PCL will use, then have each of your platform-specific projects create a concrete instance and inject that into the PCL.

  • Patrick2016Patrick2016 CHMember
    edited May 2016

    Okey and in a Shared Project?
    I want to implement my opencv code one time (in the shared part) and not in each plattform. If I do it with the dependency service I have to implement the code in each plattform and add the opencv library for each project seperatly.

Sign In or Register to comment.