当前位置:网站首页>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!!!!!!
边栏推荐
- Day-17 connection set
- Multi row and multi column flex layout
- ES底层原理之倒排索引
- leetcode刷题:二叉树26(二叉搜索树中的插入操作)
- 【从 0 开始学微服务】【03】初探微服务架构
- 利用栈来实现二进制转化为十进制
- About web content security policy directive some test cases specified through meta elements
- H3C HCl MPLS layer 2 dedicated line experiment
- leetcode刷题:二叉树20(二叉搜索树中的搜索)
- SQL lab 1~10 summary (subsequent continuous update)
猜你喜欢
普乐蛙小型5d电影设备|5d电影动感电影体验馆|VR景区影院设备
visual stdio 2017关于opencv4.1的环境配置
SQL Lab (32~35) contains the principle understanding and precautions of wide byte injection (continuously updated later)
ENSP MPLS layer 3 dedicated line
图形对象的创建与赋值
The hoisting of the upper cylinder of the steel containment of the world's first reactor "linglong-1" reactor building was successful
OSPF exercise Report
Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
2022A特种设备相关管理(锅炉压力容器压力管道)模拟考试题库模拟考试平台操作
解决 Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
随机推荐
The left-hand side of an assignment expression may not be an optional property access.ts(2779)
【统计学习方法】学习笔记——第五章:决策树
30. Feed shot named entity recognition with self describing networks reading notes
【PyTorch实战】用RNN写诗
Utiliser la pile pour convertir le binaire en décimal
RHSA first day operation
Simple network configuration for equipment management
Airserver automatically receives multi screen projection or cross device projection
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
Preorder, inorder and postorder traversal of binary tree
[statistical learning method] learning notes - support vector machine (Part 2)
SQL lab 11~20 summary (subsequent continuous update) contains the solution that Firefox can't catch local packages after 18 levels
leetcode刷题:二叉树23(二叉搜索树中的众数)
Session
SQL blind injection (WEB penetration)
[pytorch practice] write poetry with RNN
An error occurred when vscade tried to create a file in the target directory: access denied [resolved]
Niuke website
leetcode刷题:二叉树21(验证二叉搜索树)
Day-18 hash table, generic