data = np.full((300,300), 125)
buffer = cv2.imencode(".jpg", data)[1].tobytes()
dst = cv2.imdecode(np.frombuffer(buffer, np.uint8), -1)
data = np.full((300,300), 125)
buffer = cv2.imencode(".jpg", data)[1].tobytes()
dst = cv2.imdecode(np.frombuffer(buffer, np.uint8), -1)