numpy.frombuffer+cv2.imdecode读取内存中的图像
nparr = np.frombuffer(image, np.uint8)
img_decode = cv2.imdecode(nparr, 1)
DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
原创
2020-11-26 00:05:56 ·
2028 阅读 ·
0 评论