
numpy
-牧野-
这个作者很懒,什么都没留下…
展开
-
使用Python和OpenCV通过网址URL获取图片
在OpenCV中通过图片的URL地址获取图片:# -*- coding: utf-8 -*-import numpy as npimport urllibimport cv2# URL到图片def url_to_image(url): # download the image, convert it to a NumPy array, and then read原创 2018-01-25 20:36:34 · 11015 阅读 · 2 评论 -
Pythond 读写HDF5文件
HDF(Hiearchical Data Format)是一种针对大量数据进行组织和存储的文件格式,可以存储不同类型的图像和数码数据的文件格式,并且可以在不同类型的机器上传输。HDF是美国国家高级计算应用中心(National Center for Supercomputing Application,NCSA)为了满足各种领域研究需求而研制的一种能高效存储和分发科学数据的新型数据格式。它的通原创 2018-01-29 09:35:58 · 11211 阅读 · 2 评论 -
python 绘图---2D、3D散点图、折线图、曲面图
python中绘制2D曲线图需要使用到Matplotlib,Matplotlib 是一个 Python 的 2D绘图库,它以各种硬拷贝格式和跨平台的交互式环境生成出版质量级别的图形,通过 Matplotlib,开发者可以仅需要几行代码,便可以生成绘图,直方图,功率谱,条形图,错误图,散点图等。1. 绘制折线图plt.plot() 可以用于绘制折线图。只传入一维的散点(n个)p1原创 2018-01-29 11:55:08 · 56992 阅读 · 3 评论 -
Python 把二进制mnist数据库转换为图片
mnist数据库可以通过caffe里的get_mnist.sh文件下载,路径是: caffe-master/data/mnist/get_mnist.sh,get_mnist.sh内容如下:#!/usr/bin/env sh# This scripts downloads the mnist data and unzips it.DIR="$( cd "$(dirname "$0")"原创 2018-01-29 19:23:03 · 1684 阅读 · 0 评论