当前位置:网站首页>Win10+opencv3.2+vs2015 configuration
Win10+opencv3.2+vs2015 configuration
2022-07-29 05:50:00 【Scientific Caizi】
I checked some information about win10+opencv3.0(2.xx)+vs Configuration article , Prepare to use this as a sample to configure a new vs2015+opencv3.2+win10, But they all failed , Finally, some of my own groping , Finally, the correct configuration method is obtained ( The configuration method of the latest version is much simpler ).
The first step is to configure the system environment variables . System environment , Click Edit , Then create a new system variable . And the value of this environment variable is yours opencv Unzip the placed file cv14.bin The path of . Like me opencv The unzipped file is placed in d Make a dish opencv In file , The value of all the environment variables is :D:\opencv\opencv\build\x64\vc14\bin.
The second step : The system environment variables are configured , It's right there vs2015 And then configure , No need to restart the computer ( I kiss measuring ).vc++,win32 Console program , You can select an empty item ( You may not choose ). Then find the attribute manager in the view , Expand the contents , stay debug|X64 Right click in options ( Or double click ), Then select add new item property sheet , Then name yourself (opencv The official website is named opencv_debug And opencv_release, Keep consistent with it here , You can also name other names )
In general properties --->vc++ Catalog ---> Contains the directory , edit , Fill in include opencv In the document include Documents and include Under the document opencv,opencv2 Path to file ( Directly click on the following “···”, You can browse directly )
Then add a opencv In the document build--->X64--->vc14--->lib That's the way
The third step : Select the input item in the linker of this property sheet , Add dependency , Manual input opencv_world320d.lib That's all right. .
In this step, remember not to add additional library directories in linker routine , Otherwise, an error will be reported —— Unable to open opencv_world320.lib.( But some blog posts mentioned 3.0 It seems that the previous one can be in the linker ——》 Add something to the routine , stay 3.2 It doesn't seem to work , After adding, run and directly report an error , I kiss measuring )
It's almost about configuration , Just find an online program to test later . This is simply attached ( Change it imaread The image address in ):
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
Mat image = imread("E:\\picture\\27b58PICm6Q_1024.jpg");
namedWindow(" The test image ");
imshow(" test ", image);
waitKey(6000);
return 0;
}
If you encounter any problems in your configuration , You can leave me a message , I also want to learn more
边栏推荐
- Fantom (FTM) prices will soar by 20% in the next few days
- 超简单集成HMS ML Kit 实现parental control
- 数组的基础使用--遍历循环数组求出数组最大值,最小值以及最大值下标,最小值下标
- DAY13:文件上传漏洞
- Build msys2 environment with win10
- PHP如何生成二维码?
- 机器学习让文字识别更简单:Kotlin+MVVM+华为ML Kit
- DAY4:MySQL 数据库的建立及简单实用
- Training log 4 of the project "construction of Shandong University mobile Internet development technology teaching website"
- Shanzhai coin Shib has a US $548.6 million stake in eth whale's portfolio - traders should be on guard
猜你喜欢
Day14: upload labs customs clearance tutorial
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
Performance comparison | FASS iSCSI vs nvme/tcp
DAY15:文件包含漏洞靶场手册(自用 file-include 靶场)
熊市下PLATO如何通过Elephant Swap,获得溢价收益?
Common prompt pop-up box of uniapp
与开源项目同步开发& CodeReview & Pull Request & fork怎么拉取原始仓库
Okaleido Tiger 7.27日登录Binance NFT,首轮已获不俗成绩
极致通缩和永动机模型,将推动 PlatoFarm 爆发
July 28 ens/usd Value Forecast: ENS attracts huge profits
随机推荐
Go|gin quickly use swagger
Get the number of daffodils
极致通缩和永动机模型,将推动 PlatoFarm 爆发
熊市下PLATO如何通过Elephant Swap,获得溢价收益?
Bare metal cloud FASS high performance elastic block storage solution
How to survive in the bear market of encryption market?
超简单集成HMS ML Kit 人脸检测实现可爱贴纸
DeFi 2.0的LaaS协议,重振DeFi赛道发展的关键
Crypto巨头们ALL IN元宇宙,PlatoFarm或能突围
识变!应变!求变!
What is nmap and how to use it
Shanzhai coin Shib has a US $548.6 million stake in eth whale's portfolio - traders should be on guard
XDFS&中国日报社在线协同编辑平台典型案例
运动健康深入人心,MOVE PROTOCOL引领品质生活
与张小姐的春夏秋冬(1)
Elastic box flex
Training log 4 of the project "construction of Shandong University mobile Internet development technology teaching website"
Fantom (FTM) 在 FOMC会议之前飙升 45%
sql-server 数据表的简单操作
datax安装