当前位置:网站首页>[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
边栏推荐
- DL deep learning experiment management script
- 华为设备配置BGP/MPLS IP 虚拟专用网
- Differences between the four MQ
- Huawei equipment is configured with bgp/mpls IP virtual private network
- Technical dry goods: how to select the most suitable RDMA network card
- 2020-12-24
- 力扣(LeetCode)161. 相隔为 1 的编辑距离(2022.06.10)
- The data center is evolving towards the "four high" trend, and the OCP network card and the whole cabinet will be delivered into the mainstream of the future data center
- go MPG
- Electrolytic solution for ThinkPad X1 carbon battery
猜你喜欢

Restoration of binary tree -- number restoration

JVM tuning V: JVM tuning tools and tuning practice

Visual (Single) Object Tracking -- SiamRPN

Electrolytic solution for ThinkPad X1 carbon battery

高斯白噪声(white Gaussian noise,WGN)

博途仿真时出现“没有针对此地址组态任何硬件,无法进行修改”解决办法

Vins fusion GPS fusion part

Share 𞓜 jointly pre training transformers on unpaired images and text

Share | defend against physically realizable image classification attacks

Share | guide language image pre training to achieve unified visual language understanding and generation
随机推荐
Conversion relationship between coordinate systems (ECEF, LLA, ENU)
Visual (Single) Object Tracking -- SiamRPN
Real time update of excellent team papers
Carrier coordinate system inertial coordinate system world coordinate system
华为设备配置BGP/MPLS IP 虚拟专用网地址空间重叠
Pytoch machine learning GPU usage (conversion from CPU to GPU)
华为设备配置BGP/MPLS IP 虚拟专用网
About custom comparison methods of classes and custom methods of sort functions
Detailed explanation of network security bypass network card
Ican uses fast r-cnn to get an empty object detection result file
JVM tuning 6: GC log analysis and constant pool explanation
KD-Tree and LSH
Temporary website English Writing
[Transformer]MViTv1:Multiscale Vision Transformers
Huawei equipment configuration MCE
Batch naming picture names
Reverse thinking: making cartoon photos real
华为设备配置通过GRE接入虚拟专用网
Minor problems encountered in installing the deep learning environment -- the jupyter service is busy
lower_ Personal understanding of bound function