Exemple #1
0
        private void RemoveFace(HSPerson person, HSFace face)
        {
            _faceIdToFace.Remove(face.Id);
            _faceNameToFace.Remove(face.ImageFile);

            _personFacesDict[person.Id].Remove(face.Id);
        }
Exemple #2
0
        private void AddFace(HSPerson person, Guid faceId, string faceImageFile)
        {
            // create new face and add to dictionaries
            var face = new HSFace(faceId, faceImageFile);

            _faceIdToFace.Add(faceId, face);
            _faceNameToFace.Add(faceImageFile, face);

            // add face id to face list of the person
            var faceList = _personFacesDict[person.Id];

            faceList.Add(faceId);
        }