{"id":15028219,"url":"https://github.com/codecwang/opencv-python-tutorial","last_synced_at":"2025-04-13T18:37:34.028Z","repository":{"id":37346317,"uuid":"151193107","full_name":"CodecWang/opencv-python-tutorial","owner":"CodecWang","description":"📖 OpenCV-Python image processing tutorial for beginners","archived":false,"fork":false,"pushed_at":"2023-07-11T11:22:35.000Z","size":10313,"stargazers_count":3064,"open_issues_count":14,"forks_count":961,"subscribers_count":102,"default_branch":"master","last_synced_at":"2025-04-06T15:09:19.161Z","etag":null,"topics":["image-processing","opencv","opencv-python"],"latest_commit_sha":null,"homepage":"https://codec.wang/docs/opencv","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodecWang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-10-02T03:03:31.000Z","updated_at":"2025-04-06T13:57:38.000Z","dependencies_parsed_at":"2022-07-12T05:30:32.793Z","dependency_job_id":"dce4af47-8c72-420d-90c2-40f34d7a496a","html_url":"https://github.com/CodecWang/opencv-python-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodecWang%2Fopencv-python-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodecWang%2Fopencv-python-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodecWang%2Fopencv-python-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodecWang%2Fopencv-python-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodecWang","download_url":"https://codeload.github.com/CodecWang/opencv-python-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248762274,"owners_count":21157704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-processing","opencv","opencv-python"],"created_at":"2024-09-24T20:07:49.890Z","updated_at":"2025-04-13T18:37:34.007Z","avatar_url":"https://github.com/CodecWang.png","language":"TypeScript","readme":"# 面向初学者的 OpenCV-Python 教程\n\n![](http://cos.codec.wang/opencv-python-tutorial-amend-new-cover.png)\n\n## 访问\n\n1. 可直接访问博客专栏：http://codec.wang/#/opencv/\n\n2. 使用 Docker 访问：\n\n```bash\ndocker run -d -p 8080:80 codecwang/opencv-python-tutorial\n```\n\n3. 源码构建：\n\n本教程网站由[Docusaurus 2](https://docusaurus.io)构建，如感兴趣，可直接克隆代码自行构建：\n\n```bash\n# 克隆仓库\ngit clone git@github.com:CodecWang/opencv-python-tutorial.git\n\n# 安装依赖\nnpm install\n# 本地调试\nnpm start\n# 构建\nnpm build\n```\n\n## 目录\n\n### 入门篇\n\n| 标题                                                                                                             | 简介                                     |\n| :--------------------------------------------------------------------------------------------------------------- | :--------------------------------------- |\n| [简介与安装](http://codec.wang/#/opencv/start/01-introduction-and-installation)                                  | 了解和安装 OpenCV-Python                 |\n| [番外篇：代码性能优化](http://codec.wang/#/opencv/start/extra-01-code-optimization)                              | 度量运行时间/提升效率的几种方式          |\n| [基本元素：图片](http://codec.wang/#/opencv/start/02-basic-element-image)                                        | 图片的载入/显示和保存                    |\n| [番外篇：无损保存和 Matplotlib 使用](http://codec.wang/#/opencv/start/extra-02-high-quality-save-and-matplotlib) | 高保真保存图片、Matplotlib 库的简单使用  |\n| [打开摄像头](http://codec.wang/#/opencv/start/03-open-camera)                                                    | 打开摄像头捕获图片/录制视频/播放本地视频 |\n| [番外篇：滑动条](http://codec.wang/#/opencv/start/extra-03-trackbar)                                             | 滑动条的使用                             |\n| [图像基本操作](http://codec.wang/#/opencv/start/04-basic-operations)                                             | 访问像素点/ROI/通道分离合并/图片属性     |\n| [颜色空间转换](http://codec.wang/#/opencv/start/05-changing-colorspaces)                                         | 颜色空间转换/追踪特定颜色物体            |\n| [阈值分割](http://codec.wang/#/opencv/start/06-image-thresholding)                                               | 阈值分割/二值化                          |\n| [番外篇：Otsu 阈值法](http://codec.wang/#/opencv/start/extra-04-otsu-thresholding)                               | 双峰图片/Otsu 自动阈值法                 |\n| [图像几何变换](http://codec.wang/#/opencv/start/07-image-geometric-transformation)                               | 旋转/平移/缩放/翻转                      |\n| [番外篇：仿射变换与透视变换](http://codec.wang/#/opencv/start/extra-05-warpaffine-warpperspective)               | 基于 2×3 的仿射变换/基于 3×3 的透视变换  |\n| [绘图功能](http://codec.wang/#/opencv/start/08-drawing-function)                                                 | 画线/画圆/画矩形/添加文字                |\n| [番外篇：鼠标绘图](http://codec.wang/#/opencv/start/extra-06-drawing-with-mouse)                                 | 用鼠标实时绘图                           |\n| [挑战篇：画动态时钟](http://codec.wang/#/opencv/start/challenge-01-draw-dynamic-clock)                           | /                                        |\n| [挑战篇：PyQt5 编写 GUI 界面](http://codec.wang/#/opencv/start/challenge-02-create-gui-with-pyqt5)               | /                                        |\n\n### 基础篇\n\n| 标题                                                                                             | 简介                                   |\n| :----------------------------------------------------------------------------------------------- | :------------------------------------- |\n| [图像混合](http://codec.wang/#/opencv/basic/09-image-blending)                                   | 算数运算/混合/按位运算                 |\n| [番外篇：亮度与对比度](http://codec.wang/#/opencv/basic/extra-07-contrast-and-brightness)        | 调整图片的亮度和对比度                 |\n| [平滑图像](http://codec.wang/#/opencv/basic/10-smoothing-images)                                 | 卷积/滤波/模糊/降噪                    |\n| [番外篇：卷积基础 - 图片边框](http://codec.wang/#/opencv/basic/extra-08-padding-and-convolution) | 了解卷积/滤波的基础知识/给图片添加边框 |\n| [边缘检测](http://codec.wang/#/opencv/basic/11-edge-detection)                                   | Canny/Sobel 算子                       |\n| [番外篇：图像梯度](http://codec.wang/#/opencv/basic/extra-09-image-gradients)                    | 了解图像梯度和边缘检测的相关概念       |\n| [腐蚀与膨胀](http://codec.wang/#/opencv/basic/12-erode-and-dilate)                               | 形态学操作/腐蚀/膨胀/开运算/闭运算     |\n| [轮廓](http://codec.wang/#/opencv/basic/13-contours)                                             | 寻找/绘制轮廓                          |\n| [番外篇：轮廓层级](http://codec.wang/#/opencv/basic/extra-10-contours-hierarchy)                 | 了解轮廓间的层级关系                   |\n| [轮廓特征](http://codec.wang/#/opencv/basic/14-contour-features)                                 | 面积/周长/最小外接矩\\(圆\\)/形状匹配    |\n| [番外篇：凸包及更多轮廓特征](http://codec.wang/#/opencv/basic/extra-11-convex-hull)              | 计算凸包/了解更多轮廓特征              |\n| [直方图](http://codec.wang/#/opencv/basic/15-histograms)                                         | 计算绘制直方图/均衡化                  |\n| [模板匹配](http://codec.wang/#/opencv/basic/16-template-matching)                                | 图中找小图                             |\n| [霍夫变换](http://codec.wang/#/opencv/basic/17-hough-transform)                                  | 提取直线/圆                            |\n| [挑战任务：车道检测](http://codec.wang/#/opencv/basic/challenge-03-lane-road-detection)          | /                                      |\n\n\u003e 如果您觉得写的不错的话，欢迎打赏，我会努力写出更好的内容！✊🤟\n\n![](http://cos.codec.wang/wechat_alipay_pay_pic.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecwang%2Fopencv-python-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecwang%2Fopencv-python-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecwang%2Fopencv-python-tutorial/lists"}