OpenCV OpenCV入门介绍 | 九七的OpenCV

OpenCV OpenCV入门介绍

一、定义介绍

  OpenCV(Open Source Computer Vision Library,开源计算机视觉库)首先是一个库,它不是一个软件,也不是一种语言。OpenCV这个库本身是由C++编写而成的。OpenCV是一个跨平台的库,它可以运行在Linux、Windows、Android和Mac OS操作系统上,并且具有C++、Python、Java、MATLAB接口。OpenCV主要用于计算机视觉和机器学习,OpenCV包含了很多和这两个方面相关的函数和算法实现。
官网:https://opencv.org/

二、功能作用

OpenCV根据功能分成了很多模块:
核心功能
图像处理
视频分析
摄像机标定与三维重建
二维特征框架
目标检测
高级GUI
视频I/O
还有一些其他的辅助型模块,诸如FLANN等

以下是官网给出的模块介绍
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
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

Extra modules:
alphamat. Alpha Matting
aruco. ArUco Marker Detection
bgsegm. Improved Background-Foreground Segmentation Methods
bioinspired. Biologically inspired vision models and derivated tools
ccalib. Custom Calibration Pattern for 3D reconstruction
cnn_3dobj. 3D object recognition and pose estimation API
cudaarithm. Operations on Matrices
cudabgsegm. Background Segmentation
cudacodec. Video Encoding/Decoding
cudafeatures2d. Feature Detection and Description
cudafilters. Image Filtering
cudaimgproc. Image Processing
cudalegacy. Legacy support
cudaobjdetect. Object Detection
cudaoptflow. Optical Flow
cudastereo. Stereo Correspondence
cudawarping. Image Warping
cudev. Device layer
cvv. GUI for Interactive Visual Debugging of Computer Vision Programs
datasets. Framework for working with different datasets
dnn_objdetect. DNN used for object detection
dnn_superres. DNN used for super resolution
dpm. Deformable Part-based Models
face. Face Analysis
freetype. Drawing UTF-8 strings with freetype/harfbuzz
fuzzy. Image processing based on fuzzy mathematics
hdf. Hierarchical Data Format I/O routines
hfs. Hierarchical Feature Selection for Efficient Image Segmentation
img_hash. The module brings implementations of different image hashing algorithms.
intensity_transform. The module brings implementations of intensity transformation algorithms to adjust image contrast.
julia. Julia bindings for OpenCV
line_descriptor. Binary descriptors for lines extracted from an image
mcc. Macbeth Chart module
optflow. Optical Flow Algorithms
ovis. OGRE 3D Visualiser
phase_unwrapping. Phase Unwrapping API
plot. Plot function for Mat data
quality. Image Quality Analysis (IQA) API
rapid. silhouette based 3D object tracking
reg. Image Registration
rgbd. RGB-Depth Processing
saliency. Saliency API
sfm. Structure From Motion
shape. Shape Distance and Matching
stereo. Stereo Correspondance Algorithms
structured_light. Structured Light API
superres. Super Resolution
surface_matching. Surface Matching
text. Scene Text Detection and Recognition
tracking. Tracking API
videostab. Video Stabilization
viz. 3D Visualizer
wechat_qrcode. WeChat QR code detector for detecting and parsing QR code.
xfeatures2d. Extra 2D Features Framework
ximgproc. Extended Image Processing
xobjdetect. Extended object detection
xphoto. Additional photo processing algorithms

三、使用方法

  OpenCV库有多种语言的接口,因此,诸如Python、C++等都可以使用OpenCV库。

使用步骤:

  1. 下载库
  2. 安装库
  3. 给你的编译器配置OpenCV环境
  4. 编写代码

来自:九七的OpenCV(转载请注明出处)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Nines~

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值