摘要: 1 import tensorflow as tf 2 import matplotlib.pyplot as plt 3 4 image_raw_data = tf.gfile.GFile("./picture.jpg", "rb").read() 5 with tf.Session() as sess: 6 """ 7 图像编码解码处理 8 ... 阅读全文
posted @ 2018-08-14 20:00 章朔 阅读(1904) 评论(0) 推荐(0) 编辑
摘要: 使用语句: 读取图像时报错如下: 原因: 0x92 即 10010010,UTF8 中编码一个字符的第一个字节(start byte)只可能是 0xxxxxxx、110xxxxx、1110xxx、11110xxx……而后面的字节只可能是 10xxxxxx。也就是说 0x92 只能作为后面的字节,却出 阅读全文
posted @ 2018-08-14 15:44 章朔 阅读(22202) 评论(0) 推荐(1) 编辑