- 博客(4)
- 资源 (2)
- 收藏
- 关注
转载 python语言对图片的读取、保存、显示、裁剪、像素遍历、添加坐标
from PIL import Imageimport sysimg = Image.open("e:/pic/222.jpg")#img.show(img)#显示读取的图片#img.save("e:/pic/222.png")#保存别的格式#用image模块,可以用getpixel获得像素值,可以遍历整个图片像素width=img.size[0]height=img.size...
2019-10-14 10:03:57 941
转载 python中的绝对路径写法——反斜线与正斜线辨析
转自:http://withwsf.github.io/2015/12/30/Python%E5%9C%A8Windows%E7%8E%AF%E5%A2%83%E4%B8%8B%E5%A4%84%E7%90%86%E6%96%87%E4%BB%B6%E8%B7%AF%E5%BE%84%E9%97%AE%E9%A2%98%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/W...
2019-10-14 09:55:15 787
原创 Tensorflow中废弃API及其代替(不定期更新中)
Tensorflow中废弃API及其代替 废弃API 代替 tf.sub tf.subtract tf.mul tf.multiply tf.neg tf.negative
2019-10-13 16:44:09 293
原创 使用tensorflow的Saver功能时出错
版本信息:Anaconda 5.2.0(清华镜像);Python3.6.5 ;源码为:#tf.train.Saverw = tf.Variable([[0.5,1.0]])x = tf.Variable([[2.0],[1.0]])y = tf.matmul(w, x)init_op = tf.global_variables_initializer()saver = tf...
2019-10-13 16:18:46 821
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人