由以下函数代替该功能:

def cv_imread(file_path):
    cv_img=cv2.imdecode(np.fromfile(file_path,dtype=np.uint8),-1)
    return cv_img
def cv_imwrite(filename,src):
    cv2.imencode('.jpg',src)[1].tofile(filename)



版权声明:本文为qq_40250862原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_40250862/article/details/81316366