openCV for Python(一)——基础记录
来源:互联网 发布:前田阳菜 pk 樱井知香 编辑:程序博客网 时间:2024/06/05 20:41
本篇文章用于记录,经常使用的一些零碎的东西。
有些从大神博客上看到的做个记录,方便以后查询。
环境:Python2.7+opencv2.4.13
import cv2import numpy as npimg = cv2.imread("file path")#image's shape:(rows, cols, channels)img.shape #image typeimg.dtype# warning: opencv loads images in BGR mode, but matplotlib displays them in RGB modefrom matplotlib import pyplot as plt# load a gray imageimg = cv2.imread(imgFile,0)plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')# hide tick values on X and Y axisplt.xticks([]), plt.yticks([])plt.show()
References
- http://www.aiuxian.com/article/p-2146936.html
0 0
- openCV for Python(一)——基础记录
- python OpenCV基础(一)
- 学习opencv记录(一)
- OpenCV函数记录(一)
- python学习(一)——基础
- Python学习笔记(一)——Python基础
- Python 机器学习基础(一)——Python
- python学习笔记(一)——python语言基础
- Python学习(一)——学习资源记录
- python OpenCV 安装 (一)
- openCV for python 学习(一):环境搭建与图片显示
- opencv for python学习一之保存视频
- python opencv错误记录
- opencv for python
- OpenCV for Python 安装
- Python 基础(一)
- Python基础(一)
- Python基础(一)
- 【POJ】[2367]Genealogical tree
- 搜索引擎中开发diversity功能时遇到的一个问题。
- 遍历二叉树
- 350. Intersection of Two Arrays II*
- MarginLayoutParams--一个可以在代码中直接设置margin的方法
- openCV for Python(一)——基础记录
- HDU1023——Train Problem II(卡特兰数)
- 【Unity】整理新版动画使用
- 【数据结构】后缀数组
- ORACLEインポート・エクスポート・バックアップ
- 单调栈:(修筑绿化带)
- spring 事务管理的理解
- TabLayout的简单使用
- 笔试题:一个整数的“真数”,是将它的各个位相加得到的和。写一个函数完成一个数组按真数大小排序