private ProcessResult RunProcess(Stream uploadStream, string imageName) { imageName = RandomStringBuilder.ChangeNameToRandomStr(imageName); string uploadPath = folderPath + imagePath + imageName; return(SSHProcess.processor.UploadRun(uploadStream, uploadPath, pythonPath, folderPath + processPath, "--path " + imagePath + imageName)); }
private ProcessResult RunProcess(Stream uploadStream, string videoName) { videoName = RandomStringBuilder.ChangeNameToRandomStr(videoName); string uploadPath = folderPath + videoPath + videoName; return(SSHProcess.processor.UploadRun(uploadStream, uploadPath, folderPath + processPath, "--video " + videoPath + videoName)); }
private ProcessResult RunProcess(Stream uploadStream, string imageName) { imageName = RandomStringBuilder.ChangeNameToRandomStr(imageName); string uploadPath = folderPath + imagePath + imageName; string downLoadPath = folderPath + outputPath + imageName; return(SSHProcess.processor.UploadRunDownloadToStr(uploadStream, uploadPath, pythonPath, folderPath + processPath, "--path " + imagePath + imageName + " --output " + outputPath + imageName, downLoadPath)); }
private ProcessResult RunProcess(Stream uploadStream, string imageName) { imageName = RandomStringBuilder.ChangeNameToRandomStr(imageName); string uploadPath = folderPath + imagePath + imageName; ProcessResult processResult = new ProcessResult(); return(SSHProcess.processor.UploadRun(uploadStream, uploadPath, Interpreter, folderPath + processPath, imagePath + imageName)); }