当前位置:网站首页>Visual stdio 2017 about the environment configuration of opencv4.1
Visual stdio 2017 about the environment configuration of opencv4.1
2022-07-07 12:37:00 【When will we get ashore?】
Recently, I am also a beginner opencv, It's hard to start everything , There are many problems in the process , Let's record it here today , I also hope it will be helpful to those who study later .
First , In my visual stdio On the right is the solution explorer , Now the file I open is opencv4.
Right click opencv4, Select Properties :
stay opencv4 Property page , We need to pay attention to the following :1. The blogger is in debug Running in mode ,2,x64 Representative is 54 A system of ,3 stay VC++ Directory we need to configure the include directory and Library Directory .
1, Contains the directory
Click edit .
Choose the file path :
Select the following file path :
See the following video for specific operations , The environment can be configured in a few minutes :
【Visual Studio 2022 To configure OpenCV4.5.5- Bili, Bili 】 https://b23.tv/L1X63Uj
The sample code is as follows :
#include <iostream>
//#include<tupian.h>
#include<opencv2\opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc,char** argv)
{
Mat img;
img = imread("C:\\Users\\guoyongbin123\\Desktop\\C++\\opencv4\\opencv4\\Lena.png");// Picture path
if (img.empty())
{
cout << " Please confirm that the image file name is correct " << endl;
return -1;
}
//Mat img1;
namedWindow("test", WINDOW_FREERATIO);
imshow("test", img);
//demo me;
//me.color_demo(img);
waitKey(0);
return 0;
}
over!!!!!!
边栏推荐
- SQL blind injection (WEB penetration)
- Routing strategy of multi-point republication [Huawei]
- ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
- On valuation model (II): PE index II - PE band
- (待会删)yyds,付费搞来的学术资源,请低调使用!
- Attack and defense world - PWN learning notes
- Minimalist movie website
- Tutorial on principles and applications of database system (007) -- related concepts of database
- Day-19 IO stream
- Idea 2021 Chinese garbled code
猜你喜欢
Attack and defense world ----- summary of web knowledge points
[pytorch practice] image description -- let neural network read pictures and tell stories
Solve server returns invalid timezone Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
【统计学习方法】学习笔记——支持向量机(下)
Minimalist movie website
图形对象的创建与赋值
leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
Zhimei creative website exercise
金融数据获取(三)当爬虫遇上要鼠标滚轮滚动才会刷新数据的网页(保姆级教程)
leetcode刷题:二叉树22(二叉搜索树的最小绝对差)
随机推荐
NGUI-UILabel
Niuke website
浅谈估值模型 (二): PE指标II——PE Band
JS to convert array to tree data
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
Sort out the garbage collection of JVM, and don't involve high-quality things such as performance tuning for the time being
图像像素读写操作
MPLS experiment
opencv的四个函数
On valuation model (II): PE index II - PE band
GCC compilation error
SQL lab 21~25 summary (subsequent continuous update) (including secondary injection explanation)
Day-15 common APIs and exception mechanisms
[statistical learning methods] learning notes - Chapter 5: Decision Tree
idm服务器响应显示您没有权限下载解决教程
【统计学习方法】学习笔记——支持向量机(上)
leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
When OSPF specifies that the connection type is P2P, it enables devices on both ends that are not in the same subnet to Ping each other
Financial data acquisition (III) when a crawler encounters a web page that needs to scroll with the mouse wheel to refresh the data (nanny level tutorial)
Sorting, dichotomy