16 lines
473 B
Python
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) |