private void Save(RawIdentifyResults results)
 {
     this.SaveResults((IEnumerable <CompareResult>)results.Known);
     if (!this._device.SaveUnidentified || results.UnKnownCount < Settings.Default.MinFaceCount)
     {
         return;
     }
     this.SaveLog(CompareRequest.FrameToLogBcLog(results.LastUnKnown));
 }
 private void SaveResults(IEnumerable <CompareResult> analiticResults)
 {
     foreach (CompareResult compareResult in analiticResults)
     {
         try
         {
             if (compareResult.AccessId != -1 || this._device.SaveNonCategory)
             {
                 BcLog log = CompareRequest.FrameToLogBcLog(compareResult.SourceFrame);
                 log.FaceId  = compareResult.FaceId;
                 log.ImageId = compareResult.ImageId;
                 log.Score   = Convert.ToSingle(compareResult.Score);
                 this.SaveLog(log);
                 ++this._device.ResultCount;
             }
         }
         catch (Exception ex)
         {
             this._logger.Error((object)"Error saving - ", ex);
         }
     }
 }