Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #4
0
        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));
        }