From 1a5c392e1dd71012411253ad8fdaa6f10f578414 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Mon, 16 Dec 2019 12:10:07 +0200 Subject: [PATCH] fix add_frame() --- python/ftl/ftlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ftl/ftlstream.py b/python/ftl/ftlstream.py index 75aa4406d..d54a43589 100644 --- a/python/ftl/ftlstream.py +++ b/python/ftl/ftlstream.py @@ -106,7 +106,7 @@ class FTLStreamWriter: if codec == ftl.codec_t.PNG: if ftl.is_float_channel(channel): # scaling always same (???) - data = data.astype(np.float) / 1000.0 + data = (data * 1000).astype(np.uint16) params = [cv.IMWRITE_PNG_COMPRESSION, 9] retval, data = cv.imencode(".png", data, params) -- GitLab