python base64 编解码,转换成Opencv,PIL.Image图片格式

二进制打开图片文件,base64编解码,转成Opencv格式:python # coding: utf-8 import base64 import numpy as np import cv2 img_file = open(r'00.JPG','rb') # 二进制打开图片文件 img_b64encode = base64.b64encode(img_file.read()) # ba
相关文章
相关标签/搜索