参考 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte - 云+社区 - 腾讯云 将读取原始图片的r改为rb,解决后如下图: