Ejemplo n.º 1
0
    /// <summary>
    /// Starts group training.
    /// </summary>
    /// <returns><c>true</c>, if group training was started successfully, <c>false</c> otherwise.</returns>
    public bool StartGroupTraining()
    {
        // create the user-group if needed
        if (userGroupId != initedGroupId)
        {
            GetOrGreateUserGroup();
        }
        if (userGroupId != initedGroupId)
        {
            return(false);
        }

        if (faceManager != null)
        {
            return(faceManager.TrainPersonGroup(userGroupId));
        }

        return(false);
    }