Issue
I am working on Xamarin Android project which requires some image processing. I tried integrating the latest(Any CPU build) version of OpenCVSharp in to my Xamarin.Android project. The home page of OpenCvsharp Github says OpenCVsharp can run on any platform which supports mono. But when the assemblies are loaded on compilation, it is returning a FileNotFoundException- "Could not load assembly System.Drawing. What is the work around to get it working in mono for android ? Thank you in advance
Solution
OpenCV requires System.Drawing
, and in turn is dependent of GDI+. Thus, it only supports full CLR profile, such as .NET Framework from Microsoft or full Mono on Mac OS X and Linux, where GDI+ is available.
For Xamarin.Android, or any other CLR profiles that lack of GDI+, you have to use alternatives, such as Android native image support,
http://androidapi.xamarin.com/?link=N%3aAndroid.Graphics
Answered By - Lex Li
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.