diff options
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 |
