from PIL import Image import numpy as np a = np.asarray(Image.open(r'C:\Users\Administrator\Pictures\院徽.jpg').convert('L')).astype('float') depth = 10 ...
分类:
其他好文 时间:
2020-05-06 21:44:04
阅读次数:
74
1 import numpy as np 2 import matplotlib.pyplot as plt 3 import matplotlib 4 matplotlib.rcParams['font.family']='SimHei' 5 matplotlib.rcParams['font.s ...
分类:
编程语言 时间:
2020-05-06 20:12:25
阅读次数:
96
from PIL import Image import numpy as np vec_el = np.pi/2.2 # 光源的俯视角度,弧度值 vec_az = np.pi/4. # 光源的方位角度,弧度值 depth = 10. # (0-100) im = Image.open('C:/Us ...
分类:
其他好文 时间:
2020-05-06 19:47:21
阅读次数:
55
from PIL import Image import numpy as np a = np.asarray(Image.open('C:\\Users\\huanghy\\Desktop\\微信图片_20200425024250.png').convert("L")).astype("float ...
分类:
编程语言 时间:
2020-05-06 19:42:54
阅读次数:
77
numpy库函数基本使用 import numpy as np 1、创建数组的函数(ndarray) 2、ndarray类型的常用属性 3、ndarray类型的型态操作方法 4、ndarray 类型的索引与切片方法 5、ndarray类型的算术运算函数 6、ndarray类型的比较运算函数 7、nd ...
分类:
编程语言 时间:
2020-05-06 18:03:09
阅读次数:
72
python123成绩雷达图 import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['font.family']='SimHei' matplotlib.rcParams['f ...
分类:
编程语言 时间:
2020-05-06 13:46:58
阅读次数:
84
import numpy as np import matplotlib.pyplot as plt labels = np.array(['1','2','3','4','5','6','7','8']) #标签 考试的次数 dataLenth = 8 #数据个数 data = np.array( ...
分类:
其他好文 时间:
2020-05-05 23:52:08
阅读次数:
126
import matplotlib.pyplot as pltimport numpy as npx= np.linspace(0,10,1000)y= np.cos(3*np.pi*x)*np.exp(-x)+0.8plt.plot(x,y,'k',color='r',label="$exp-de ...
分类:
其他好文 时间:
2020-05-05 23:37:31
阅读次数:
61
1 # -*- coding: utf-8 -*- 2 3 import tensorflow as tf 4 from PIL import Image 5 import numpy as np 6 import os 7 8 rt_path = '/home/ubuntu/Documents/中 ...
分类:
其他好文 时间:
2020-05-05 23:26:50
阅读次数:
77
1 from PIL import Image 2 import numpy as np 3 4 a = np.asarray(Image.open('D:\\python_common_exercise\\exercise\\taylor.jpg').convert('L')).astype('f ...
分类:
其他好文 时间:
2020-05-05 10:58:07
阅读次数:
68