当前位置:网站首页>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
边栏推荐
- 状态机dp(简单版)
- Some learning and understanding of vintage analysis
- CFdiv1+2-Bash and a Tough Math Puzzle-(线段树单点区间维护gcd+总结)
- 【暑期每日一题】洛谷 P6461 [COCI2006-2007#5] TRIK
- 分析25个主要DeFi协议的路线图 预见DeFi未来的七大趋势
- 【Unity实战100例】Unity万能答题系统之单选多选判断题全部通用
- 2-统一返回类DTO对象
- ef core 读取text类型慢_ef core读取大字符串字段慢
- 状态机dp三维
- Leetcode 209. subarray with the smallest length (2022.07.28)
猜你喜欢

I, 28, a tester, was ruthlessly dismissed in October: I want to remind people who are still learning to test
Scala higher order (10): exception handling in Scala

Paper reading (62):pointer networks

WPF simple login page completion case

Android面试题 | 怎么写一个又好又快的日志库?

Docker's latest super detailed tutorial - docker creates, runs, and mounts MySQL

我,28岁,测试员,10月无情被辞:想给还在学测试 的人提个醒......

QT基础第二天(2)qt基础部件:按钮类,布局类,输出类,输入类,容器等个别举例

女研究生做“思维导图”与男友吵架!网友:吵架届的“内卷之王”....

1 - background project construction
随机推荐
@RequestMapping 用法详解
【暑期每日一题】洛谷 P6408 [COCI2008-2009#3] PET
js第四天流程控制(if语句和switch语句)
【WPF】通过动态/静态资源实现语言切换
thinkphp6 实现数据库备份
How does MySQL convert rows to columns?
[summer daily question] Luogu p6336 [coci2007-2008 2] bijele
[summer daily question] Luogu P6500 [coci2010-2011 3] zbroj
logback简介及引入方法
Dilworth 定理
小D的刺绣
Description of rollingfileappender attribute in logback
Segger's hardware anomaly analysis
do end用法的妙处
jdbc入门
【暑期每日一题】洛谷 P6336 [COCI2007-2008#2] BIJELE
Can the subset of the array accumulate K
[summer daily question] Luogu p4413 [coci2006-2007 2] R2
MySQL uses the client and select methods to view the summary of blob type fields
Explanation of suffix automata (SAM) + Luogu p3804 [template] suffix automata (SAM)
