当前位置:网站首页>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!!!!!!
边栏推荐
- BGP actual network configuration
- Vxlan static centralized gateway
- [pytorch practice] use pytorch to realize image style migration based on neural network
- Static vxlan configuration
- Processing strategy of message queue message loss and repeated message sending
- leetcode刷题:二叉树24(二叉树的最近公共祖先)
- [play RT thread] RT thread Studio - key control motor forward and reverse rotation, buzzer
- Several methods of checking JS to judge empty objects
- 图像像素读写操作
- 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)
猜你喜欢

leetcode刷题:二叉树27(删除二叉搜索树中的节点)
![[deep learning] image multi label classification task, Baidu paddleclas](/img/dd/6f213a396e8bb240a6872e4c03afab.png)
[deep learning] image multi label classification task, Baidu paddleclas

图形对象的创建与赋值

Sorting, dichotomy

About IPSec

Charles: four ways to modify the input parameters or return results of the interface
![[play RT thread] RT thread Studio - key control motor forward and reverse rotation, buzzer](/img/5f/75549fc328d7ac51f8b97eef2c059d.png)
[play RT thread] RT thread Studio - key control motor forward and reverse rotation, buzzer

SQL Lab (41~45) (continuous update later)

Aike AI frontier promotion (7.7)

The IDM server response shows that you do not have permission to download the solution tutorial
随机推荐
Attack and defense world - PWN learning notes
BGP actual network configuration
"Series after reading" my God! It's so simple to understand throttling and anti shake~
[learn micro services from 0] [02] move from single application to service
[疑难杂症]pip运行突然出现ModuleNotFoundError: No module named ‘pip‘
Simple network configuration for equipment management
Tutorial on the principle and application of database system (011) -- relational database
Several methods of checking JS to judge empty objects
解决 Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
The hoisting of the upper cylinder of the steel containment of the world's first reactor "linglong-1" reactor building was successful
NGUI-UILabel
【PyTorch实战】用PyTorch实现基于神经网络的图像风格迁移
Processing strategy of message queue message loss and repeated message sending
RHSA first day operation
Charles: four ways to modify the input parameters or return results of the interface
浅谈估值模型 (二): PE指标II——PE Band
Connect to blog method, overload, recursion
Common knowledge of one-dimensional array and two-dimensional array
Airserver automatically receives multi screen projection or cross device projection