OpenCV例程赏析

①SITF特征检测匹配(目标查找)例程:…\opencv\sources\samples\python2\find_obj.py(asift.py)

#!/usr/bin/env python

‘’’
Feature-based image matching sample.

Note, that you will need the https://github.com/opencv/opencv_contrib repo for SIFT and SURF

USAGE
find_obj.py [–feature=<sift|surf|orb|akaze|brisk>[-flann]] [ ]

–feature - Feature to use. Can be sift, surf, orb or brisk. Append ‘-flann’
to feature name to use Flann-based matcher instead bruteforce.

Press left mouse button on a feature point to see its matching point.
‘’’

②图像缩略放大例程:…\opencv\sources\samples\python2\brows

#!/usr/bin/env python

‘’’
browse.py

Sample shows how to implement a simple hi resolution image navigation

Usage

browse.py [image filename]

‘’’

③camshift物体跟踪:…\opencv\sources\samples\python2\camshif

#!/usr/bin/env python

‘’’
Camshift tracker

This is a demo that shows mean-shift based tracking
You select a color objects such as your face and it tracks it.
This reads from video camera (0 by default, or the camera number the user enters)

http://www.robinhewitt.com/research/track/camshift.html

Usage:

camshift.py [<video source>]To initialize tracking, select the object with mouse

Keys:

ESC   - exit
b     - toggle back-projected probability visualization

‘’’

④一致增强滤波:…\opencv\sources\samples\python2\coherence.py

#!/usr/bin/env python

‘’’
Coherence-enhancing filtering example

inspired by
Joachim Weickert “Coherence-Enhancing Shock Filters”
http://www.mia.uni-saarland.de/Publications/weickert-dagm03.pdf
‘’’

⑤轮廓例子:…\opencv\sources\samples\python2\contours.py

#!/usr/bin/env python

‘’’
This program illustrates the use of findContours and drawContours.
The original image is put up along with the image of drawn contours.

Usage:
contours.py
A trackbar is put up which controls the contour level from -3 to 3
‘’’

⑥反褶积(反卷积/反滤波):…\opencv\sources\samples\python2\deconvolution.py

#!/usr/bin/env python'''
Wiener deconvolution.Sample shows how DFT can be used to perform Weiner deconvolution [1]
of an image with user-defined point spread function (PSF)Usage:deconvolution.py  [--circle][--angle <degrees>][--d <diameter>][--snr <signal/noise ratio in db>][<input image>]Use sliders to adjust PSF paramitiers.Keys:SPACE - switch btw linear/cirular PSFESC   - exitExamples:deconvolution.py --angle 135 --d 22  ../data/licenseplate_motion.jpg(image source: http://www.topazlabs.com/infocus/_images/licenseplate_compare.jpg)deconvolution.py --angle 86 --d 31  ../data/text_motion.jpgdeconvolution.py --circle --d 19  ../data/text_defocus.jpg(image source: compact digital photo camera, no artificial distortion)[1] http://en.wikipedia.org/wiki/Wiener_deconvolution
'''

⑦边缘检测:…\opencv\sources\samples\python2\edge.py

#!/usr/bin/env python'''
Video capture sample.Sample shows how VideoCapture class can be used to acquire video
frames from a camera of a movie file. Also the sample provides
an example of procedural video generation by an object, mimicking
the VideoCapture interface (see Chess class).'create_capture' is a convenience function for capture creation,
falling back to procedural video in case of error.Usage:video.py [--shotdir <shot path>] [source0] [source1] ...'sourceN is an- integer number for camera capture- name of video file- synth:<params> for procedural videoSynth examples:synth:bg=../data/lena.jpg:noise=0.1synth:class=chess:bg=../data/lena.jpg:noise=0.1:size=640x480Keys:ESC    - exitSPACE  - save current frame to <shot path> directory'''

⑧人脸检测:…\opencv\sources\samples\python2\facedetect.py

#!/usr/bin/env python'''
Video capture sample.Sample shows how VideoCapture class can be used to acquire video
frames from a camera of a movie file. Also the sample provides
an example of procedural video generation by an object, mimicking
the VideoCapture interface (see Chess class).'create_capture' is a convenience function for capture creation,
falling back to procedural video in case of error.Usage:video.py [--shotdir <shot path>] [source0] [source1] ...'sourceN is an- integer number for camera capture- name of video file- synth:<params> for procedural videoSynth examples:synth:bg=../data/lena.jpg:noise=0.1synth:class=chess:bg=../data/lena.jpg:noise=0.1:size=640x480Keys:ESC    - exitSPACE  - save current frame to <shot path> directory'''

⑨floodfill图片分割:…\opencv\sources\samples\python2\floodfill.py

#!/usr/bin/env python

‘’’
Floodfill sample.

Usage:
floodfill.py []

Click on the image to set seed point

Keys:
f - toggle floating range
c - toggle 4/8 connectivity
ESC - exit
‘’’

⑩霍夫圆/线变换检测:…\opencv\sources\samples\python2\houghcircles.py(houghlines.py)

#!/usr/bin/python

‘’’
This example illustrates how to use cv.HoughCircles() function.

Usage:
houghcircles.py [<image_name>]
image argument defaults to …/data/board.jpg
‘’’

OpenCV例程赏析相关推荐

  1. 【youcans 的 OpenCV 例程200篇】158. 阈值处理之固定阈值法

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  2. 【youcans 的 OpenCV 例程200篇】157. 霍夫变换直线检测

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  3. 【youcans 的 OpenCV 例程200篇】152. 边缘检测之 LoG 算子

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  4. 【youcans 的 OpenCV 例程200篇】150. 边缘检测梯度算子

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  5. 【youcans 的 OpenCV 例程200篇】149. 图像分割之边缘模型

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  6. 【youcans 的 OpenCV 例程200篇】147. 图像分割之孤立点检测

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  7. 【youcans 的 OpenCV 例程200篇】144. 基于灰度形态学的纹理分割

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  8. 【youcans 的 OpenCV 例程200篇】135. 形态学重建之粒度测定

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程20 ...

  9. 【youcans 的 OpenCV 例程200篇】127. 形态算法之细化

    欢迎关注 『youcans 的 OpenCV 例程 200 篇』 系列,持续更新中 欢迎关注 『youcans 的 OpenCV学习课』 系列,持续更新中 [youcans 的 OpenCV 例程 2 ...

最新文章

  1. 2018-4-15狼群算法以及改进的总结
  2. 计算机视觉研究生文献和复现哪个更重要?
  3. 计算机高校应用现状的参考文献,【计算机应用论文】高校计算机实验室管理思考探索(共4094字)...
  4. 手把手教你使用ECharts绘制可视化图表
  5. 教你如何用手机查看哪些人在蹭你家的WIFI,然后将他们屏蔽!
  6. 服务器上的此文件夹中具有更多项目,清理或删除“可恢复的项目”文件夹中的项目...
  7. ubuntu下解压缩zip,tar,tar.gz和tar.bz2文件
  8. 长在华人第一学霸家族的他,到底有多牛?
  9. php中用for循环制作矩形,PHP中for循环语句的几种变型
  10. Mysql经常使用命令
  11. vue请求封装,Store-状态管理部分(文档笔记)
  12. php 将前端网页输出成unicdoe编码
  13. shell脚本如何获取当前时间
  14. 【数据可视化】使用pyecharts绘制南丁格尔玫瑰图和水平堆叠条形图
  15. linux串口结构termios,Termios--串口设置
  16. app营销实训报告_市场营销模拟软件实训报告
  17. 软考中级哪个含金量高?我该如何选择?
  18. 计算机ip地址无法修改密码,修改wifi密码网址进不去怎么办?
  19. IObit Uninstaller pro:完全卸载程序,自动清除残余及注册表
  20. 【C刷题记录】地月折纸——对数使用

热门文章

  1. 解锁SaaS黄金十年——谁将率先成为SaaS行业巨兽?
  2. 315消费者权益日 | 知识竞赛答题功能大升级
  3. 用C++写一个自己的QQ(九、界面交互)
  4. 验证外星语词典(2022-5-17)每日一练
  5. 5G电力专网架构及关键技术
  6. maven多模块依赖版本不一致问题
  7. There is no known eureka server; cluster server list is empty
  8. 【速学java】 java后台框架 springmvc整合mybatis框架源码
  9. 2020年国富如荷和北京文理研修学院在北京达成战略合作
  10. 酷狗mv采集php,PHP酷狗音乐采集类