public static string PathForFaceImage(Frame frame, int sequence) { DateTime dt = DateTime.FromBinary(frame.timeStamp); string folderFace = FileSystemStorage.EnsureFolderForFacesAt(frame.cameraID, dt); string faceFileName = FileSystemStorage.FaceImageFileNameOf(frame.GetFileName(), sequence); string facePath = Path.Combine(folderFace, faceFileName); return(facePath); }
public static string PathForFaceImage(Frame frame, int sequence) { DateTime dt = frame.CapturedAt; string folderFace = FileSystemStorage.EnsureFolderForFacesAt(frame.CapturedFrom.Id, dt); string faceFileName = FileSystemStorage.FaceImageFileNameOf(frame.GetFileName(), sequence); string facePath = Path.Combine(folderFace, faceFileName); return(facePath); }