diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 14:19:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-26 14:19:09 +0200 |
| commit | 3936a9968558681aff5028d28bb25dcf343c7ed9 (patch) | |
| tree | 06c79361ba32377d476d9d6f15b296bd4d20e9ea /run.py | |
| parent | 34ff74aae6117c2cc5cee89b3cfa0d93499dba42 (diff) | |
dataset
Diffstat (limited to 'run.py')
| -rw-r--r-- | run.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -188,7 +188,7 @@ def dilate_frames(moduleNetwork, tensorOutput, frames, dilate): new_frames += [nextFrame] return new_frames -def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint=None): +def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint=None, dataset="unknown"): print('writing {}'.format(outputPath)) print('frames: {}'.format(len(frames))) writer = FFMPEG_VideoWriter(outputPath, (1024, 512), 25) @@ -199,7 +199,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint if inputSecond is not None: writer.write_frame(inputSecond) writer.close() - + if endpoint is not None: os.system(["curl", "-X", "POST", |
