summaryrefslogtreecommitdiff
path: root/rpc/img_ops.py
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2018-09-05 12:00:28 +0200
committerjules@lens <julescarbon@gmail.com>2018-09-05 12:00:28 +0200
commit9abfa16dc059d042c21f1636ecc8797ef29a030d (patch)
treed0583cb5dae01de1abc57ed8f7587d23242ed6f0 /rpc/img_ops.py
parent0a3c6743543dd3dfcb876f5ce735b72d050e981d (diff)
parent15eb6806b6e216255f33abcb885f6cdbc38a7663 (diff)
Merge branch 'master' of asdf.us:live-cortex
Diffstat (limited to 'rpc/img_ops.py')
-rw-r--r--rpc/img_ops.py4
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