当前位置:网站首页>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;} 边栏推荐
- 用户如何正确去认识程序化交易?
- DMPE-PEG-Mal Maleimide-PEG-DMPE dimyristoylphosphatidylethanolamine-polyethylene glycol-maleimide
- JVM简学笔记
- What is a template engine?What are the common template engines?Introduction to common commands of thymeleaf.
- 通用的双向循环列表的几个比较重要的函数操作
- 跨平台桌面应用 Electron 尝试(VS2019)
- docker安装nacos并且指定容器数据卷,数据库连接等
- 如何灵活运用量化交易接口的优势取长补短?
- 【小白必看】初始C语言(下)
- 量化程序化交易如何去使用以及执行?
猜你喜欢
随机推荐
浅谈ArraryList的浅克隆和深克隆
函数调用约定
常见的数学物理方程
【超级账本开发者系列】专访——肖慧 : 不忘初心,方得始终
名词概念总结(不定期更新~~)
Analysis: Which method is used to build a stock quantitative trading database?
How to create a new project with VS+Qt
正则化原理的简单分析(L1/L2正则化)
浅谈一下量化交易与程序化交易
Stock trading stylized how to understand their own trading system?
C language operator precedence
如何将List<Map>进行分组数值计算合并排序
生产者/消费者问题(线程信号)
DMPE-PEG-Mal Maleimide-PEG-DMPE dimyristoylphosphatidylethanolamine-polyethylene glycol-maleimide
一些需要思考的物理问题
The recycle bin has been showed no problem to empty the icon
光线的数值追踪
Sort method (Hill, Quick, Heap)
【C语言初阶】详解分支语句
JVM简学笔记








