当前位置:网站首页>Halcon installation and testing in vs2017, DLL configuration in vs2017
Halcon installation and testing in vs2017, DLL configuration in vs2017
2022-07-29 07:30:00 【csdndenglu】
One 、 First download halcon, And install
Download first 22.05 edition , The name of the downloaded file is “halcon-22.05.0.0-x64-win64.zip”, The size is 6.34G, After decompressing :
When installing, you will first open the console window , Then open the local web page :
I didn't notice the change of the installation position in the setting , Default install to C Dish up , And after opening, it is traditional Chinese , I have a headache like this , So it was uninstalled later , Re downloaded 18.11 edition “halcon-18.11.4.0-windows.exe”, The size is 1.74G, Installation , The download method is , Browser search halcon Official website , Open this English website HALCON – The power of machine vision: MVTec Software:
Click after entering DOWNLOADS, Will let you login , If you don't have an account, register first :
And then click HALCON DOWNLOADS:
The download address of each version will appear , Click the corresponding version to download :
When the download is complete , install , You can choose to install it in D disc , There are no other special requirements , Just install it according to the default options , After the installation, it's HALCON HDevelop 18.11 Steady (64-bit) and HALCON HDevelop 18.11 Steady XL (64-bit):
The difference between the two , Netizens said :
1.hdevelop Suitable for ordinary resolution images , Less than or equal to 32k x 32k ;
2.hdevelop xl Suitable for large resolution images , Greater than 32k x 32k ;
3. The running speed is the same .
4. Static takes up almost the same volume .
5.xl Resources are expensive .
Be careful : Open will report an error , Put the current month's license Files in license Under the folder, you can open .
Two 、 stay HALCON In the middle of C++ Code
open halcon Then select the icon in the upper left corner , Browse HDevelop The sample program .
I browse the sample program here and report a 21040 The fault of :
When the program opens the routine, it finds this directory “C:\Users\Public\Documents\MVTec\HALCON-18.11-Steady”, and “HALCON-18.11-Steady” The folder does not exist , I have this directory on my computer “C:\Users\Public\Documents\MVTec\HALCON-18.11”. Look at netizens' posts like this and say “ Please download Halcon Switch the assistant to fix , Please keep the default routine directory and do not modify !”. But I put “HALCON-18.11” Copy and paste the folder , Change it to “HALCON-18.11-Steady”, At this time, the routine can be opened . But try Halcon Switch whether the assistant works
After opening the routine :
Then export C++, Click on , file - export
Click export , Generate the file :
3、 ... and 、 stay vs2017 Configuration test in halcon
find halcon The installation directory
stay vs2017 in , New console project ( Only another contains main Function file ), And the exported halcon The exported file opens , Copy and paste the code into vs2017 In the project file :
.h Configuration of directory :
project - attribute -C/C++- routine - Additional include configuration in directory ( Note that this inclusion may be sequential , If the order is wrong, you may not find the definition , Then put what you can't find in front ):
lib To configure :
project - attribute - The linker - routine - Configure in the additional Library Directory
project - attribute - The linker - Input - Configure... In additional dependencies
dll To configure :
dll You can put it directly under the same level directory where the executable file is generated ( It is commonly debug or release Under the table of contents ), however dll Too much is messy , It can be configured to vs in .
project - attribute - The linker - routine - Configure in the additional Library Directory
Be careful , The following style is wrong , Never be clever , If you think the branch is clear, just Branch ( I've suffered a lot , cry ...) , It doesn't matter .
then , Choose the right one , Otherwise an error
You can debug later , The most important thing is this action() function , Can be in main Add a... To the function Sleep Stop it :
.h、lib、dll It can be configured as a relative path , It might be more convenient
边栏推荐
- 【Unity实战100例】Unity万能答题系统之单选多选判断题全部通用
- Can I specify memory parameters in SQL statements?
- Log4qt memory leak, use of heob memory detection tool
- log4qt内存泄露问题,heob内存检测工具的使用
- Introduction to log4j layout
- JS day 4 process control (if statement and switch statement)
- 强连通分量
- 计算程序运行时间 demo
- 【WPF】通过动态/静态资源实现语言切换
- stm32 操作W25Q256 W25Q16 spi flash
猜你喜欢
NFT 的 10 种实际用途
Getting started with JDBC
Synchronous / asynchronous, blocking / non blocking and IO
我,28岁,测试员,10月无情被辞:想给还在学测试 的人提个醒......
关于大龄读博的几点回答?
Some learning and understanding of vintage analysis
Log4qt memory leak, use of heob memory detection tool
Practice of online problem feedback module (XVII): realize the online download function of excel template
Using C language to skillfully realize the chess game -- Sanzi chess
I, 28, a tester, was ruthlessly dismissed in October: I want to remind people who are still learning to test
随机推荐
一篇长文---深入理解synchronized
09 bloom filter
2022年深圳杯A题破除“尖叫效应”与“回声室效应”走出“信息茧房”
jdbc入门
MySQL uses the client and select methods to view the summary of blob type fields
【暑期每日一题】洛谷 P1601 A+B Problem(高精)
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
Leetcode buckle classic problem -- 4. Find the median of two positively ordered arrays
[summer daily question] Luogu p1601 a+b problem (high precision)
Docker最新超详细教程——Docker创建运行MySQL并挂载
Does Flink support sqlserver databases? Get the changes of SQLSERVER database
stm32 操作W25Q256 W25Q16 spi flash
【暑期每日一题】洛谷 P6336 [COCI2007-2008#2] BIJELE
How to use GS_ Expansion expansion node
强连通分量
【Unity实战100例】Unity万能答题系统之单选多选判断题全部通用
WPF simple login page completion case
蓝桥杯A组选数异或
Dilworth 定理
【WPF】通过动态/静态资源实现语言切换