Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codecwang/opencv-python-tutorial

📖 OpenCV-Python image processing tutorial for beginners
https://github.com/codecwang/opencv-python-tutorial

image-processing opencv opencv-python

Last synced: 4 days ago
JSON representation

📖 OpenCV-Python image processing tutorial for beginners

Awesome Lists containing this project

README

        

# 面向初学者的 OpenCV-Python 教程

![](http://cos.codec.wang/opencv-python-tutorial-amend-new-cover.png)

## 访问

1. 可直接访问博客专栏:http://codec.wang/#/opencv/

2. 使用 Docker 访问:

```bash
docker run -d -p 8080:80 codecwang/opencv-python-tutorial
```

3. 源码构建:

本教程网站由[Docusaurus 2](https://docusaurus.io)构建,如感兴趣,可直接克隆代码自行构建:

```bash
# 克隆仓库
git clone [email protected]:CodecWang/opencv-python-tutorial.git

# 安装依赖
npm install
# 本地调试
npm start
# 构建
npm build
```

## 目录

### 入门篇

| 标题 | 简介 |
| :--------------------------------------------------------------------------------------------------------------- | :--------------------------------------- |
| [简介与安装](http://codec.wang/#/opencv/start/01-introduction-and-installation) | 了解和安装 OpenCV-Python |
| [番外篇:代码性能优化](http://codec.wang/#/opencv/start/extra-01-code-optimization) | 度量运行时间/提升效率的几种方式 |
| [基本元素:图片](http://codec.wang/#/opencv/start/02-basic-element-image) | 图片的载入/显示和保存 |
| [番外篇:无损保存和 Matplotlib 使用](http://codec.wang/#/opencv/start/extra-02-high-quality-save-and-matplotlib) | 高保真保存图片、Matplotlib 库的简单使用 |
| [打开摄像头](http://codec.wang/#/opencv/start/03-open-camera) | 打开摄像头捕获图片/录制视频/播放本地视频 |
| [番外篇:滑动条](http://codec.wang/#/opencv/start/extra-03-trackbar) | 滑动条的使用 |
| [图像基本操作](http://codec.wang/#/opencv/start/04-basic-operations) | 访问像素点/ROI/通道分离合并/图片属性 |
| [颜色空间转换](http://codec.wang/#/opencv/start/05-changing-colorspaces) | 颜色空间转换/追踪特定颜色物体 |
| [阈值分割](http://codec.wang/#/opencv/start/06-image-thresholding) | 阈值分割/二值化 |
| [番外篇:Otsu 阈值法](http://codec.wang/#/opencv/start/extra-04-otsu-thresholding) | 双峰图片/Otsu 自动阈值法 |
| [图像几何变换](http://codec.wang/#/opencv/start/07-image-geometric-transformation) | 旋转/平移/缩放/翻转 |
| [番外篇:仿射变换与透视变换](http://codec.wang/#/opencv/start/extra-05-warpaffine-warpperspective) | 基于 2×3 的仿射变换/基于 3×3 的透视变换 |
| [绘图功能](http://codec.wang/#/opencv/start/08-drawing-function) | 画线/画圆/画矩形/添加文字 |
| [番外篇:鼠标绘图](http://codec.wang/#/opencv/start/extra-06-drawing-with-mouse) | 用鼠标实时绘图 |
| [挑战篇:画动态时钟](http://codec.wang/#/opencv/start/challenge-01-draw-dynamic-clock) | / |
| [挑战篇:PyQt5 编写 GUI 界面](http://codec.wang/#/opencv/start/challenge-02-create-gui-with-pyqt5) | / |

### 基础篇

| 标题 | 简介 |
| :----------------------------------------------------------------------------------------------- | :------------------------------------- |
| [图像混合](http://codec.wang/#/opencv/basic/09-image-blending) | 算数运算/混合/按位运算 |
| [番外篇:亮度与对比度](http://codec.wang/#/opencv/basic/extra-07-contrast-and-brightness) | 调整图片的亮度和对比度 |
| [平滑图像](http://codec.wang/#/opencv/basic/10-smoothing-images) | 卷积/滤波/模糊/降噪 |
| [番外篇:卷积基础 - 图片边框](http://codec.wang/#/opencv/basic/extra-08-padding-and-convolution) | 了解卷积/滤波的基础知识/给图片添加边框 |
| [边缘检测](http://codec.wang/#/opencv/basic/11-edge-detection) | Canny/Sobel 算子 |
| [番外篇:图像梯度](http://codec.wang/#/opencv/basic/extra-09-image-gradients) | 了解图像梯度和边缘检测的相关概念 |
| [腐蚀与膨胀](http://codec.wang/#/opencv/basic/12-erode-and-dilate) | 形态学操作/腐蚀/膨胀/开运算/闭运算 |
| [轮廓](http://codec.wang/#/opencv/basic/13-contours) | 寻找/绘制轮廓 |
| [番外篇:轮廓层级](http://codec.wang/#/opencv/basic/extra-10-contours-hierarchy) | 了解轮廓间的层级关系 |
| [轮廓特征](http://codec.wang/#/opencv/basic/14-contour-features) | 面积/周长/最小外接矩\(圆\)/形状匹配 |
| [番外篇:凸包及更多轮廓特征](http://codec.wang/#/opencv/basic/extra-11-convex-hull) | 计算凸包/了解更多轮廓特征 |
| [直方图](http://codec.wang/#/opencv/basic/15-histograms) | 计算绘制直方图/均衡化 |
| [模板匹配](http://codec.wang/#/opencv/basic/16-template-matching) | 图中找小图 |
| [霍夫变换](http://codec.wang/#/opencv/basic/17-hough-transform) | 提取直线/圆 |
| [挑战任务:车道检测](http://codec.wang/#/opencv/basic/challenge-03-lane-road-detection) | / |

> 如果您觉得写的不错的话,欢迎打赏,我会努力写出更好的内容!✊🤟

![](http://cos.codec.wang/wechat_alipay_pay_pic.png)