1、捕获摄像头和实时显示 2、从摄像头内抓拍图片 ...
分类:
编程语言 时间:
2017-08-20 00:43:19
阅读次数:
318
安装matplotlib该工具,花费了我半天时间才能安装成功(是在window7 64位 Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32)。现将自己安装过程种遇到的种种问题记录下来 ...
分类:
编程语言 时间:
2017-08-19 23:30:07
阅读次数:
149
注:Pandas(Python Data Analysis Library) 是基于 NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。此外,Pandas 纳入了大量库和一些标准的数据模型,提供了高效地操作大型数据集所需的工具。 相比较于 Numpy,Pandas 使用一个二维的数据结构 ...
分类:
其他好文 时间:
2017-08-19 21:21:04
阅读次数:
862
import tensorflow as tfimport numpy as np ##save to file#rember to define the same dtype and shape when restore# W = tf.Variable([[1,2,3],[3,4,5]],dty ...
分类:
其他好文 时间:
2017-08-19 15:57:39
阅读次数:
212
import tensorflow as tfimport numpy as np #create datax_data = np.random.rand(100).astype(np.float32)y_data = x_data*0.1+0.3 ####create tensorflow str ...
分类:
其他好文 时间:
2017-08-19 15:56:37
阅读次数:
211
import tensorflow as tfimport numpy as np def add_layer(inputs,in_size,out_size,n_layer,activation_function=None): # add one more layer and return the ...
分类:
其他好文 时间:
2017-08-19 15:05:59
阅读次数:
256
import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt def add_layer(inputs,in_size,out_size,activation_function=None): Weights = tf ...
分类:
其他好文 时间:
2017-08-19 15:04:32
阅读次数:
237
low、high、size三个参数。默认high是None,如果只有low,那范围就是[0,low)。如果有high,范围就是[low,high)。 ...
分类:
其他好文 时间:
2017-08-19 12:50:53
阅读次数:
268
from numpy import * from random import _inst import numpy as np import matplotlib.pyplot as plt def fileMat(filename): file = open(filename, "r") cont... ...
分类:
编程语言 时间:
2017-08-18 23:55:07
阅读次数:
498
0 NumPy数组 NumPy数组:NumPy数组是一个多维数组对象,称为ndarray。其由两部分组成: 实际的数据 描述这些数据的元数据 NumPy数组属性: ndim(纬数,x,y 2),shape(纬度,2*3),reshape(纬度),size:元素个数,dtype:元素数据类型,item ...
分类:
编程语言 时间:
2017-08-18 19:57:28
阅读次数:
415