takuya-takeuchi / FaceRecognitionDotNet

The world's simplest facial recognition api for .NET on Windows, MacOS and Linux
MIT License
1.23k stars 300 forks source link

FaceLandmark not static #30

Closed turowicz closed 5 years ago

turowicz commented 5 years ago

I'm using FaceRecognition thorugh the static method calls. My images are not on disk therefore using the Create method does not work for me.

Please makeFaceLandmark method static.

cc @takuya-takeuchi

takuya-takeuchi commented 5 years ago

FaceLandmark requires face model data. So if it makes static, we has to pass model file path when calling it. It is non-sence.

I guess you want to avoid to create Image instance because your images are not on strage.

You can use FaceRecognition.LoadImage method. It loads image data from byte[]. If your image come from stream, you can create Image instance w/o saving as file.

turowicz commented 5 years ago

ok