当前位置:网站首页>Opencvshare4 and vs2019 configuration
Opencvshare4 and vs2019 configuration
2022-06-13 02:26:00 【An unforgettable squirrel】
0 、 Preface
What I have been studying before is opencvSharp3 and vs2015, But there is not much information on the Internet . Find information today , I found that a man used opencvSharp4 and vs2019, It seems that the process inside is the same as the original opencv2 The more similar . I'm fed up with trying to collect all kinds of variable types , Decided to turn sharp4; But in my original vs2015 above ,sharp4 It can not be used normally , Decide to uninstall 15, loading 19.
1 、vs2015 uninstall
The computer has been reinstalled several times ,vs2015 You can't uninstall directly for a long time , Deleting the installation directory directly will obviously leave more garbage . I found a software on the Internet :
VisualStdioUninstaler
Successfully completed the unloading work . It should be noted that , The software needs to be opened by administrator ; You may fake death during operation , Reopening after closing can speed up unloading .( You also need to manually delete the installation directory )
( This software is specially uninstalled vs2013 and 2015 Of , On my computer vs2010 Although the opening is abnormal , But it can still be used normally )
2、vs2019 install
Found one vs2019 Offline installation package for , Taobao sold a temporary online disk account , download .
install , Considering my poor computer space , Only installed 【.net Desktop development 】, As follows :

Found in use ,.net Desktop development is traditional WPF; And general Windows Platform development should correspond to winform. in fact , My previous code is mainly based on winform Of , Simple use of discovery , In fact, there is little difference between the main concepts . But in terms of volume ,.net Volume 5G, General purpose Windows Platform volume 15G+, It is meaningful to learn something new .
3、 The first of cv project
(1) establish WPF application

(2) Interface design and response function
From assets - Control One of them Button To the interface , take xaml In file Content="Button" It is amended as follows Content=" Open the picture "
Check button , Click the lightning symbol on the right :

stay Click Double click the function , Generate response function
private void Button1_Click(object sender, RoutedEventArgs e)
{
}
Add a simple test function , Add the following :
private void Button1_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Hello");
Console.WriteLine("Hello");
}
Run the test , It is found that the original debugging skills can still be used , Happy .
(3)opencvSharp4 add to
First you need to use NuGet Add reference

Enter... In the browse column opencvSharp4 , install opencvSharp4 and OpencvSharp4.runtime.win

Add a reference to the top of the source code
using OpenCvSharp;
Modify the key response function
Mat img = Cv2.ImRead("y.png");
Cv2.ImShow("y.png",img);
among y.png I have put it in advance debug Under the table of contents . The operation interface is as follows :

(4) The system generates directories
Don't add opencv Under the circumstances ,debug The catalog file is as follows (y.png Put the picture in advance for me ):

add to opencv after debug The catalog file is as follows :

complete .
边栏推荐
- Huawei equipment is configured with dual reflectors to optimize the backbone layer of the virtual private network
- I didn't expect that the index occupies several times as much space as the data MySQL queries the space occupied by each table in the database, and the space occupied by data and indexes. It is used i
- Is space time attention all you need for video understanding?
- Paper reading - jukebox: a generic model for music
- GMM Gaussian mixture model
- 【LeetCode-SQL】1532. Last three orders
- Huawei equipment is configured with CE dual attribution
- Hstack, vstack and dstack in numpy
- [keras] train py
- SQLserver2008 拒绝了对对象 '****' (数据库 '****',架构 'dbo')的 SELECT 权限
猜你喜欢

Laravel 权限导出

Fast Color Segementation

Chapter7-12_ Controllable Chatbot

Gadgets: color based video and image cutting
![[reading some papers] introducing deep learning into the public horizon alexnet](/img/4b/6d9bafe48094ff6451efb211d83371.jpg)
[reading some papers] introducing deep learning into the public horizon alexnet

Paper reading - beat tracking by dynamic programming
![[open source] libinimini: a minimalist ini parsing library for single chip computers](/img/99/f2ded6c189bd45ea6c1e9f86fd64c1.jpg)
[open source] libinimini: a minimalist ini parsing library for single chip computers
![[programming idea] communication interface of data transmission and decoupling design of communication protocol](/img/cd/896d1bcad556ffcbf1007bc984afeb.jpg)
[programming idea] communication interface of data transmission and decoupling design of communication protocol

Build MySQL environment under mac

Understand speech denoising
随机推荐
Bluetooth module: use problem collection
Think: when do I need to disable mmu/i-cache/d-cache?
Sqlserver2008 denied select permission on object'***** '(database'*****', schema'dbo')
Deep learning the principle of armv8/armv9 cache
[programming idea] communication interface of data transmission and decoupling design of communication protocol
[pytorch] kaggle large image dataset data analysis + visualization
About the fact that I gave up the course of "Guyue private room course ROS manipulator development from introduction to actual combat" halfway
CCF 201409-1: adjacent number pairs (100 points + problem solving ideas)
Gadgets: color based video and image cutting
STM32 sensorless brushless motor drive
Introduction to armv8/armv9 - learning this article is enough
Queuing theory, game theory, analytic hierarchy process
Mac使用Docker安装Oracle
SQL Server 删除数据库所有表和所有存储过程
Laptop touch pad operation
json,xml,txt
STM32 IIC protocol controls pca9685 steering gear drive board
微信云开发粗糙理解
Uniapp preview function
Armv8-m (Cortex-M) TrustZone summary and introduction