Esempio n. 1
0
 /// <summary>
 /// Updates the name of the enrolled face.
 /// </summary>
 /// <param name="face">The face to rename.</param>
 /// <param name="newName">The new name.</param>
 /// <returns>A task that represents the asynchronous operation.  The task result contains the result of the operation.</returns>
 public Task <StatusCode> UpdateEnrolledFaceName(KnownFace face, string newName)
 {
     if (face == null)
     {
         throw new ArgumentNullException(nameof(face));
     }
     return(UpdateEnrolledFaceName(face.FaceId, face.Name, newName));
 }
Esempio n. 2
0
 /// <summary>
 /// Erases the enrollment (name) record for the face.
 /// </summary>
 /// <param name="face">The face.</param>
 /// <returns>A task that represents the asynchronous operation.  The task result contains the result of the operation.</returns>
 public Task <StatusCode> EraseEnrolledFace(KnownFace face)
 {
     if (face == null)
     {
         throw new ArgumentNullException(nameof(face));
     }
     return(EraseEnrolledFace(face.FaceId));
 }
Esempio n. 3
0
 /// <summary>
 /// Updates an existing enrolled face
 /// </summary>
 /// <param name="faceToUpdate">An existing face to merge final enrollment into.</param>
 /// <param name="observedFaceId">The ID of a specific observed face to enroll (0 for next one we see)</param>
 /// <param name="saveToRobot">Save the robot's NVStorage when done (NOTE: will (re)save everyone enrolled!)</param>
 /// <param name="sayName">Play say-name/celebration animations on success before completing</param>
 /// <param name="useMusic">Starts special music during say-name animations (will leave music playing)</param>
 /// <returns>A task that represents the asynchronous operation; the task result contains the result from the robot.</returns>
 public Task <StatusCode> UpdateEnrolledFace(KnownFace faceToUpdate, int observedFaceId, bool saveToRobot = true, bool sayName = true, bool useMusic = true)
 {
     if (faceToUpdate == null)
     {
         throw new ArgumentNullException(nameof(faceToUpdate));
     }
     return(SetFaceToEnroll(faceToUpdate.Name, observedFaceId, faceToUpdate.FaceId, saveToRobot, sayName, useMusic));
 }
 public KnownFaceResult(string imgId, KnownFace knownFace)
 {
     ImgId     = imgId;
     KnownFace = knownFace;
 }