当前位置:网站首页>[opencv learning problems] 1 Namedwindow() and imshow() show two windows in the picture
[opencv learning problems] 1 Namedwindow() and imshow() show two windows in the picture
2022-06-11 05:05:00 【Skill code brother】
1、 Environment configuration
Win10 Family Chinese
VS2017 Community2017
OpenCV 3.4.4
2、 Problem description
Running with the following code will bring up two windows , A non interactive window with pictures , A gray interactive window
int showImage(int argc, char** argv)
{
// display picture
cv::Mat img = cv::imread(argv[1], -1);
if (img.empty())return -1;
cv::namedWindow("Example1", cv::WINDOW_AUTOSIZE);
cv::imshow("Example1", img);
cv::waitKey(0);
cv::destroyWindow("Example1");
return 0;
}
The source code is very simple and can be run , No problem
3. Solution
project 》 attribute 》 The linker 》 Input 》 Additional dependency
Will configure opencv Delete a dependency added when
opencv_worldxxx.lib
opencv_worldxxxd.lib
Reprinted from :
https://blog.csdn.net/u014284965/article/details/88172045
边栏推荐
- oh my zsh正确安装姿势
- codesys 獲取系統時間
- Take stock of the AI black technologies in the Beijing Winter Olympic Games, and Shenzhen Yancheng Technology
- [Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection
- go MPG
- The central rural work conference has released important signals. Ten ways for AI technology to help agriculture can be expected in the future
- What is the difference between a wired network card and a wireless network card?
- Top 100 video information of station B
- Google drive download failed, network error
- Pytoch machine learning GPU usage (conversion from CPU to GPU)
猜你喜欢

Simple knowledge distillation

Sealem finance builds Web3 decentralized financial platform infrastructure

Carrier coordinate system inertial coordinate system world coordinate system

华为设备配置通过GRE接入虚拟专用网
![[entry level basics] node basic knowledge summary](/img/91/39aff1ade1f37f54b61a454e32d487.jpg)
[entry level basics] node basic knowledge summary

The central rural work conference has released important signals. Ten ways for AI technology to help agriculture can be expected in the future

KD-Tree and LSH

Oh my Zsh correct installation posture

Tianchi - student test score forecast

Target detection - personal understanding of RCNN series
随机推荐
The central rural work conference has released important signals. Ten ways for AI technology to help agriculture can be expected in the future
[Transformer]AutoFormerV2:Searching the Search Space of Vision Transformer
Pytoch machine learning GPU usage (conversion from CPU to GPU)
go MPG
Top 100 video information of station B
Detailed explanation of network security bypass network card
C语言试题三(程序选择题——含知识点详解)
New library goes online | cnopendata immovable cultural relic data
【Markdown语法高级】 让你的博客更精彩(三:常用图标模板)
Network security construction in 5g Era
Unzip Imagenet after downloading
Huawei equipment is configured with bgp/mpls IP virtual private network address space overlap
Share 𞓜 jointly pre training transformers on unpaired images and text
New product pre-sale: 25g optical network card based on Intel 800 series is coming
Vins fusion GPS fusion part
免费数据 | 新库上线 | CnOpenData全国文物商店及拍卖企业数据
Learning summary 01- machine learning
What is a smart network card? What is the function of the smart network card?
[Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection
Topological sorting