Here is the code:
Server:
import cv2 import numpy as np import imagezmq image_hub = imagezmq.ImageHub() while True: # show streamed images until Ctr