当前位置:网站首页>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!!!!!!
边栏推荐
- opencv的四个函数
- Decrypt gd32 MCU product family, how to choose the development board?
- How much does it cost to develop a small program mall?
- The left-hand side of an assignment expression may not be an optional property access.ts(2779)
- [statistical learning method] learning notes - support vector machine (I)
- 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
- 2022聚合工艺考试题模拟考试题库及在线模拟考试
- leetcode刷题:二叉树23(二叉搜索树中的众数)
- Static vxlan configuration
- 基于NeRF的三维内容生成
猜你喜欢

2022危险化学品生产单位安全生产管理人员考题及在线模拟考试

In the small skin panel, use CMD to enter the MySQL command, including the MySQL error unknown variable 'secure_ file_ Priv 'solution (super detailed)

30. Feed shot named entity recognition with self describing networks reading notes

Learning and using vscode

什么是ESP/MSR 分区,如何建立ESP/MSR 分区

Customize the web service configuration file

JS to convert array to tree data
![[pytorch practice] write poetry with RNN](/img/91/a6d3f348ff099b7c44eb185921b1b6.png)
[pytorch practice] write poetry with RNN

Tutorial on principles and applications of database system (009) -- conceptual model and data model

SQL lab 26~31 summary (subsequent continuous update) (including parameter pollution explanation)
随机推荐
【PyTorch实战】图像描述——让神经网络看图讲故事
Polymorphism, final, etc
NGUI-UILabel
Solutions to cross domain problems
Day-20 file operation, recursive copy, serialization
【从 0 开始学微服务】【00】课程概述
[爬虫]使用selenium时,躲避脚本检测
通讯协议设计与实现
[pytorch practice] image description -- let neural network read pictures and tell stories
【统计学习方法】学习笔记——提升方法
Cookie
浅谈估值模型 (二): PE指标II——PE Band
Learning and using vscode
ENSP MPLS layer 3 dedicated line
[疑难杂症]pip运行突然出现ModuleNotFoundError: No module named ‘pip‘
【统计学习方法】学习笔记——逻辑斯谛回归和最大熵模型
visual stdio 2017关于opencv4.1的环境配置
OSPF exercise Report
How to use PS link layer and shortcut keys, and how to do PS layer link
ps链接图层的使用方法和快捷键,ps图层链接怎么做的