openCV模块应用之解析传输的图片

通过:

img = cv2.imdecode(np.fromstring(str_image, np.uint8), 1)

可以将字节流图片生成图像Mat,供cv2应用

原文地址:https://www.cnblogs.com/zwq-/p/13886388.html