diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-02 22:09:34 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-02 22:09:34 +0200 |
| commit | 56619248e5032b644ec7a8e215bd59aecad86c73 (patch) | |
| tree | 34be53b86f603ba808e57e273ad81a6a20bf4190 /rpc/img_ops.py | |
| parent | f48c40ce0c6924ac46b2bdc3164308e5a6cf3136 (diff) | |
move sequence loader
Diffstat (limited to 'rpc/img_ops.py')
| -rw-r--r-- | rpc/img_ops.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/img_ops.py b/rpc/img_ops.py index e748af4..cb453c4 100644 --- a/rpc/img_ops.py +++ b/rpc/img_ops.py @@ -12,6 +12,10 @@ def clamp(n,a,b): def lerp(n,a,b): return (b-a)*n+a +def read_sequence(path, module_name=''): + print("> read sequence {}".format(path)) + return sorted([f for f in glob.glob(os.path.join('./sequences/', module_name, path, '*.png'))]) + def process_image(opt, data_opt, im): img = im[:, :, ::-1].copy() processed = False |
