private void CreateBodyDateToDB(DateTime startTime) { using (var session = documentStore.OpenSession()) { DetectFaceInfo detectFaceInfo = new DetectFaceInfo(); string id = GetDetectFaceInfoID(startTime); session.Store(detectFaceInfo, id); session.SaveChanges(); } }
public static void faceDetect(string pngPath) { DetectResult detectResult = faceService.Detection_DetectImg(pngPath); DetectFaceInfo faceInfo=new DetectFaceInfo(detectResult,pngPath); }
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); } }