コード例 #1
0
 private void CreateBodyDateToDB(DateTime startTime)
 {
     using (var session = documentStore.OpenSession())
     {
         DetectFaceInfo detectFaceInfo = new DetectFaceInfo();
         string id = GetDetectFaceInfoID(startTime);
         session.Store(detectFaceInfo, id);
         session.SaveChanges();
     }
 }
コード例 #2
0
 public static void faceDetect(string pngPath)
 {
     DetectResult detectResult = faceService.Detection_DetectImg(pngPath);
       DetectFaceInfo faceInfo=new DetectFaceInfo(detectResult,pngPath);
 }
コード例 #3
0
        private void DetectImages(List<string> fileNames)
        {
            foreach (var fileName in fileNames)
            {
                DetectResult detectResult = new DetectResult();
                detectResult = faceService.Detection_DetectImg(savePath + "\\" + fileName);

                DetectFaceInfo detectFaceInfo = new DetectFaceInfo(detectResult, fileName);
                DetectFaceInfos.Add(detectFaceInfo);
                MoveFile(savePath + "\\" + fileName);
                SaveDataToDB(detectResult, fileName);
            }
        }