diff options
Diffstat (limited to 'run.py')
| -rw-r--r-- | run.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env python2.7 import os +from subprocess import call import sys import getopt import numpy @@ -201,7 +202,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint writer.close() if endpoint is not None: - os.system(["curl", + call(["curl", "-X", "POST", "-F", "module=morph", "-F", "activity=morph", @@ -210,7 +211,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint "-F", "datatype=video", "-F", "file=@" + outputPath, endpoint - ]); + ]) def tensor_to_image(np_val): |
