当前位置:网站首页>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!!!!!!
边栏推荐
- About web content security policy directive some test cases specified through meta elements
- [statistical learning methods] learning notes - improvement methods
- 2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
- Learning and using vscode
- [learn micro services from 0] [02] move from single application to service
- Tutorial on principles and applications of database system (009) -- conceptual model and data model
- 利用棧來實現二進制轉化為十進制
- Connect to blog method, overload, recursion
- Charles: four ways to modify the input parameters or return results of the interface
- 【PyTorch实战】用PyTorch实现基于神经网络的图像风格迁移
猜你喜欢
H3C HCl MPLS layer 2 dedicated line experiment
Solve server returns invalid timezone Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
Day-15 common APIs and exception mechanisms
浅谈估值模型 (二): PE指标II——PE Band
解密GD32 MCU产品家族,开发板该怎么选?
The left-hand side of an assignment expression may not be an optional property access.ts(2779)
金融数据获取(三)当爬虫遇上要鼠标滚轮滚动才会刷新数据的网页(保姆级教程)
Tutorial on principles and applications of database system (010) -- exercises of conceptual model and data model
Preorder, inorder and postorder traversal of binary tree
On valuation model (II): PE index II - PE band
随机推荐
ENSP MPLS layer 3 dedicated line
Day-20 file operation, recursive copy, serialization
Realize all, race, allsettled and any of the simple version of promise by yourself
BGP actual network configuration
SQL Lab (36~40) includes stack injection, MySQL_ real_ escape_ The difference between string and addslashes (continuous update after)
通讯协议设计与实现
leetcode刷题:二叉树21(验证二叉搜索树)
opencv的四个函数
普乐蛙小型5d电影设备|5d电影动感电影体验馆|VR景区影院设备
浅谈估值模型 (二): PE指标II——PE Band
SQL lab 26~31 summary (subsequent continuous update) (including parameter pollution explanation)
Tutorial on the principle and application of database system (008) -- exercises on database related concepts
NGUI-UILabel
Simple implementation of call, bind and apply
利用栈来实现二进制转化为十进制
leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
[statistical learning method] learning notes - support vector machine (I)
Error in compiling libssl
[statistical learning methods] learning notes - Chapter 4: naive Bayesian method
【从 0 开始学微服务】【00】课程概述