当前位置:网站首页>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!!!!!!
边栏推荐
- What is an esp/msr partition and how to create an esp/msr partition
- Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
- Inverted index of ES underlying principle
- An error occurred when vscade tried to create a file in the target directory: access denied [resolved]
- 广州市召开安全生产工作会议
- leetcode刷题:二叉树27(删除二叉搜索树中的节点)
- Cenos openssh upgrade to version 8.4
- (待会删)yyds,付费搞来的学术资源,请低调使用!
- Customize the web service configuration file
- The IDM server response shows that you do not have permission to download the solution tutorial
猜你喜欢
Routing strategy of multi-point republication [Huawei]
Day-14 common APIs
SQL lab 26~31 summary (subsequent continuous update) (including parameter pollution explanation)
Solve server returns invalid timezone Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
[play RT thread] RT thread Studio - key control motor forward and reverse rotation, buzzer
leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
Attack and defense world - PWN learning notes
Session
[statistical learning method] learning notes - logistic regression and maximum entropy model
idm服务器响应显示您没有权限下载解决教程
随机推荐
leetcode刷题:二叉树27(删除二叉搜索树中的节点)
leetcode刷题:二叉树19(合并二叉树)
[learn micro services from 0] [02] move from single application to service
Will the filing free server affect the ranking and weight of the website?
About web content security policy directive some test cases specified through meta elements
The road to success in R & D efficiency of 1000 person Internet companies
NPM instal reports agent or network problems
Niuke website
H3C HCl MPLS layer 2 dedicated line experiment
JS to convert array to tree data
【深度学习】图像多标签分类任务,百度PaddleClas
Static routing assignment of network reachable and telent connections
Sorting, dichotomy
Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
leetcode刷题:二叉树23(二叉搜索树中的众数)
visual stdio 2017关于opencv4.1的环境配置
[statistical learning method] learning notes - logistic regression and maximum entropy model
[Q&A]AttributeError: module ‘signal‘ has no attribute ‘SIGALRM‘
Object. Simple implementation of assign()