Files
x06da/script/test/TestImageStream.py
alexgobbo 75400ca453
2024-09-11 16:17:17 +02:00

16 lines
473 B
Python

img_stream = Stream("img_stream","localhost:9000", SocketType.SUB)
#image = img_stream.addWaveform("image", "image")
add_device(img_stream, True)
img_stream.start()
show_panel(img_stream)
img_stream.waitCacheChange(0)
add_device(img_stream.getChild("image"), True)
#img = RegisterMatrixSource("img", image)
#add_device(img, True)
img = RegisterArraySource("img", image)
img.config.imageWidth = image.shape[0]
img.config.imageHeight = image.shape[1]
add_device(img, True)