Python opencv(1) 显示图像
2016-06-27 01:10
393 查看
基本练习,调用opencv库函数显示图像
运行结果屏幕截图如下
哈哈,是不是很酷炫!
>>> import cv2 >>> fn="baboon.jpg" >>> if __name__=='__main__': ... print 'http://blog.csdn.net/myhasp1' ... print 'myhasp1@qq.com' ... print ... print 'loading %s ...' % fn ... img = cv2.imread(fn) ... cv2.imshow('preview',img) ... cv2.waitKey() ... cv2.destroyAllWindows() ...
运行结果屏幕截图如下
哈哈,是不是很酷炫!
相关文章推荐
- selenium+python测试
- python 学习简记《编程导论》CH2&CH3
- python设计模式大全
- Python教程之全局变量用法
- Python使用smtplib模块发送电子邮件的流程详解
- 详解Python中的__getitem__方法与slice对象的切片操作
- 解析Python中的__getitem__专有方法
- Python中的字符串查找操作方法总结
- 深入解析Python中的descriptor描述器的作用及用法
- 总结网络IO模型与select模型的Python实例讲解
- Python的string模块中的Template类字符串模板用法
- Python中的字符串替换操作示例
- python基础(__init__(self) 和super().__init())
- Python random模块
- python解析邮件
- day03_Python的函数
- python urllib使用
- python 模块的使用
- Python Class 重要基础知识篇
- Python-开发之路-面向对象-进阶