Open Source Computer Vision Library | 开源的计算机视觉库
帮助文档:https://docs.opencv.org/4.x/index.html
- OpenCV是一个完整的计算机视觉处理框架。
OpenCV的安装
# 方式一:cmd命令行安装
pip3 install opencv-python
# 方式二:从镜像源下载:
pip3 install opencv - python - i https://pypi. tuna. tsinghua. edu.cn/simple
# 检验是否成功安装(不报错即成功):
python
import cv2
print(cv2.__version__)
exit() # 4.10.0
OpenCV的主要模块
- Main modules:
- core. Core functionality(基础数据结构和基本操作)
- imgproc. Image Processing(各种图像处理操作)
- imgcodecs. Image file reading and writing(图像文件读写)
- videoio. Video I/O(视频文件读写)
- highgui. High-level GUI(图形用户界面)
- video. Video Analysis(视频分析)
- calib3d. Camera Calibration and 3D Reconstruction(相机校准和3D重建)
- features2d. 2D Features Framework(二维图像特征的提取、描述和匹配)
- objdetect. Object Detection(检测图像或视频中的特定目标)
- dnn. Deep Neural Network module(加载和运行各种深度学习模型)
- ml. Machine Learning(包含传统的机器学习算法)
- flann. Clustering and Search in Multi-Dimensional Spaces(在多维空间中进行快速的聚类和搜索操作)
- photo. Computational Photography(计算摄影,如修复污损)
- stitching. Images stitching(图像拼接)
- gapi. Graph API(图形 API,构建高效的计算机视觉流水线的图形化编程接口)