vmware workstation 15 pro, fedora workstation 34 1.2, install opencv, nng,
import cv2
from pynng import Pair1
import numpy as np
address = 'tcp://0.0.0.0:50000'
with Pair1(listen = address, polyamorous = True) as svr :
while(True) :
msg = svr.recv_msg()
frame = np.frombuffer(msg.bytes, dtype = np.uint8)
frame = cv2.imdecode(frame, cv2.IMREAD_UNCHANGED)
cv2.namedWindow('window', cv2.WINDOW_GUI_NORMAL)
cv2.imshow('window', frame)
if cv2.waitKey(1) == 27:
break
cv2.destroyAllWindows()
in top command, systemd-oomd Occupy CPU wildly.