Skip to content

FaceRecognition.Create working on memory (taking byte[] as parameter) #147

@ADD-eNavarro

Description

@ADD-eNavarro

Hello Takeuchi-san.

I have created a face recognition system using your wonderful work, thank you very much.
Only, my enterprise works with microservices, and in order to implement the f.r. system into one I would need to work independently of the file system. There, I stumble upon FaceRecognition.Create, which only takes a folder path as input.
I've been looking into it and basically what Create does is deserialize all 4 model files using DlibDotNet. Deserialize method in DlibDotNet.Dnn.LossMmod.cs and .Dnn.LossMetric.cs both take a file, check if it exists and turn it into a byte array, then they do the proper deserializing.
I was wondering, could it be possible to create an overload for these Deserialize methods that takes directly a byte array, and extend that up to the Create method, so that FaceRecognition.Create(byte[] resnetModel, byte[] faceDetector, byte[] 5faceLandmarks, byte[] 68faceLandmarks) could be used as an overload (along with the already existing method print)?
I really love your work and would like to keep using it as you publish it, without internal tinkering.

Thank you again.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions