推荐阅读31个Python实战项目教你掌握图像处理,PDF开放下载opencv_contrib扩展模块中文教程pdf,限时领取
最近在B站看到一个视频关于OpenCV 中的60 种,图像处理,总结的非常棒,因此分享给小伙伴们!
项目:https://github.com/dyh/opencv_tools
接下来我们详细看一下这个项目中到底包含了哪些内容。
一分钟视频:
图像色彩
image_color.py
图像变换
image_transformation.py
图像滤波器
image_filtering.py
提取直线、轮廓、区域
image_outline.py
图像增强-白平衡等
image_enhancement.py
运行环境
python 3.6+,pip 20+
pip install -r requirements.txt
Pillow==8.0.1
numpy==1.19.4
opencv-python==4.4.0.46
six==1.15.0
matplotlib==3.3.3
cycler==0.10.0
kiwisolver==1.3.1
pkg-resources==0.0.0
pyparsing==2.4.7
python-dateutil==2.8.1
如何运行
克隆代码
进入目录
创建 python 虚拟环境
激活虚拟环境
升级pip
安装软件包
在 main.py 文件中,设置要处理的图片路径 file_path,例如
运行程序
程序将在 output 目录下输出60张图片
是不是非常的实用
利用现有的工具提高效果,如果对你有帮助,可以给我来三连!