当前位置:网站首页>Introduction to OpenCV and build the environment
Introduction to OpenCV and build the environment
2022-08-09 16:17:00 【Nicolas0311】
1. OpenCV is an open source library for computer vision. The main algorithms involve image processing and machine learning related methods.It was contributed by Intel Corporation, and Russian engineers contributed most of the C/C++ code.Used in most image processing related applications, BSD license, can be used for free in commercial and research fields, the current SDK supported languages include Java, Python, IOS and Android versions.
2. The OpenCV3.0 version constitutes a module, which can be viewed at this address: OpenCV: OpenCV modules
https://docs.opencv.org/3.0.0/index.html
3. Use the environment to build the preparation work
3.1, install VS2015
3.2, install OpenCV3.0 version
3.3, new console application
int main(int argc, char** args){return 0;}3.4, add header file directory, add library file directory, add additional link library, add dynamic library to exe directory
Add header file:
D:\opencv3.1\opencv\build\include
D:\opencv3.1\opencv\build\include\opencv
D:\opencv3.1\opencv\build\include\opencv2
Add library file
D:\opencv3.1\opencv\build\x64\vc14\lib
Add additional link library
Opencv_world310.lib
Add dynamic library to exe directory
Opencv_world310.dll, opencv_ts310.dll
3.5, add sample code
#include #include #include #include using namespace cv;using namespace std;int main(int argc, char** args){Mat image = imread("lena.jpg", IMREAD_GRAYSCALE);if (image.empty()){cout << "could not find the image resource..." << std::endl;return -1;}namedWindow("My Image", CV_WINDOW_AUTOSIZE);imshow("My Image", image);waitKey(0); return 0;} 边栏推荐
猜你喜欢

贝塞尔函数

How to create a new project with VS+Qt

DBCO-PEG-DSPE, Phospholipid-Polyethylene Glycol-Dibenzocyclooctyne, Reaction Without Copper Ion Catalysis

MySQL学习笔记

Arduino 飞鼠 空中鼠标 陀螺仪体感鼠标

Analysis of the common methods and scopes of the three servlet containers

【超级账本开发者系列】专访——肖慧 : 不忘初心,方得始终

Use tensorboard remotely on the server

docker安装单机版redis、集群版redis

双摄像头系列原理深度剖析【转载】
随机推荐
.Net Core 技巧小结
My MySQL database was attacked and deleted for ransom, forcing me to use all my might to recover data
流程控制学习
Qt对话框中show和exec的区别
Analysis: Which method is used to build a stock quantitative trading database?
PAT1027 打印沙漏
突然想分析下房贷利率及利息计算
VS2010: devenv.sln solution save dialog appears
量化程序化交易如何去使用以及执行?
MySql中什么是索引?常用的索引有哪些种类?索引在什么情况下会失效?
xshell7连接工具下载
ASP.Net Core实战——使用Swagger
CV复习:过拟合、欠拟合
[Mysql]--Transaction, transaction isolation level, dirty read, non-repeatable read, phantom read analysis
OpenSSF's open source software risk assessment tool: Scorecards
How can I know if quantitative programmatic trading is effective?
如何通过股票量化交易接口实现盈利稳定?
Several important functions of singly linked list (including insertion, deletion, reversal, etc.)
focal loss原理及简单代码实现
多线程学习