takuya-takeuchi / FaceRecognitionDotNet

The world's simplest facial recognition api for .NET on Windows, MacOS and Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run application on Ubuntu 20

arnab77in opened this issue · comments

Hi,

I have installed FaceRecognition and dlib library into Ubuntu 20 OS. but when trying face verification below error comes
"The type initializer for 'Gdip' threw an exception."

Arnab Chakraborty
Ph : 983056740

From documentation I got to know that "System.Drawing.Common" is not supported in linux. In place of that Microsoft is suggesting to use [ImageSharp]/[SkiaSharp]/[Microsoft.Maui.Graphics]

please advice

Thanks for you answer. I have installed libgdiplus. after that I have installed Mono repository to get the latest libgdiplus. but either way the same error is Coming. "The type initializer for 'Gdip' threw an exception."
Have you installed in Ubuntu 20.4 and checked the "FaceCompare" feature?
I am using .net core 3.1 for the project

At least, FRDN works on Ubuntu 20.04.
I tried to work it on Hyper-V.
#204 (comment)

I have remove System.Drawing.Common from all projects and included Aspose.Drawing as all the same Namespace are available in that. but unfortunately result is same.

Can you please take a drive and test it in a Linux Machine. That will be very helpful

Thanks

@arnab77in
I tested examples/FaceDetection on Ubuntu 20.04.
And I upgrade it from netcoreapp2.0 to netcoreapp3.1.

image

It works fine.
At least, this program loads jpeg file and it should use Bitmap class.
So libgdiplus looks like to work fine.

But I found that this VM does not install libgdiplus.

image

It is weird.