Enroll specified face (VeriLook)

General information about Neurotechnology and its software

Enroll specified face (VeriLook)

Postby micklepick » Mar 29, 2018 09:36

Hi! I"m using VeriLook Extended SDK.
Code: Select all
NBiometricClient client = new NBiometricClient();
NImage image = NImage.FromMemory(img);//img is byte array
NFace face = client.DetectFaces(image);

And after detecting i want user to specify what face to enroll into template and ignore other detected faces. How can I achive this?
Because
Code: Select all
client.CreateTemplate()

creates templates for all faces in face object.
micklepick
 
Posts: 6
Joined: Mar 29, 2018 09:21

Re: Enroll specified face (VeriLook)

Postby MartynasV » Mar 29, 2018 14:13

micklepick wrote:Hi! I"m using VeriLook Extended SDK.
Code: Select all
NBiometricClient client = new NBiometricClient();
NImage image = NImage.FromMemory(img);//img is byte array
NFace face = client.DetectFaces(image);

And after detecting i want user to specify what face to enroll into template and ignore other detected faces. How can I achive this?
Because
Code: Select all
client.CreateTemplate()

creates templates for all faces in face object.

Hello micklepick,

Here:
Code: Select all
                    var faceAll = biometricClient.DetectFaces(image); // Detect multiple faces in image
                    var face = NFace.FromImageAndAttributes(image, new NLAttributes() { BoundingRect = faceAll.Objects[0].BoundingRect }); // Create new NFace object with only one face marked(by specifying bounding rectangle)
                    var subject = new NSubject();
                    subject.Faces.Add(face);
                    var status = biometricClient.CreateTemplate(subject); // Extract template from only that one face(detection won't be run)
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 393
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania

Re: Enroll specified face (VeriLook)

Postby micklepick » Mar 29, 2018 14:29

Thanks! Works like magic)
micklepick
 
Posts: 6
Joined: Mar 29, 2018 09:21


Return to Public

Who is online

Users browsing this forum: No registered users and 1 guest

cron