当前位置:网站首页>Halcon combined with C # to detect surface defects -- affine transformation (III)
Halcon combined with C # to detect surface defects -- affine transformation (III)
2022-06-12 10:08:00 【Zheng who must run】
The columns in this series are not directed to code , I need to state this , It mainly provides the idea of building visual inspection software , Tell us how to program , How to achieve detection , The code covered in this article is not unique , Just the sample , We can draw inferences from one example .
The previous article discussed the rotation matrix , In this article, we add an offset matrix to the rotation matrix .
But it is a bit troublesome to use the matrix step by step , So today we introduce a function that can complete rotation and offset at the same time

Row1,Column1,Angle1 Are the initial coordinates and angles
Row2,Column2,Angle2 Is the coordinate and angle to be rotated
So modify the code as follows

Run the test
The detection area changes with the position and angle of the template
It will be very simple for us to do the test again , Just process the contents of the detection area ,
Let's take a look at the detection process
1. Camera drawing
2. Template matching
3. Rotate the detection area
4. Call the algorithm to detect the dirt in the area or measure the size
5. Output NG perhaps OK
6. By communication or IO Output results and data
7. Update report
7. Control motion system action, etc
The above process is that we can all winform To realize .
Here I add the code in the manual selection of the image , You can directly copy it to the corresponding camera callback function .
We wrote a test method before , In the next article, we'll put the detection method in ........
边栏推荐
- Spark complex structure data retrieval method
- CLAHE in opencv for 16 bit image enhancement display
- Strange error -- frame detected by contour detection, expansion corrosion, and reversal of opening and closing operation effect
- markdown_ Picture side by side scheme
- 003:what does AWS think is a data lake?
- Pandorabox uses firewall rules to define non internet time
- MySQL 7 affair
- MySQL 4 Database table storage structure & tablespace
- 在线电路仿真以及开源电子硬件设计介绍
- C language recursive folder code
猜你喜欢

tp6调试(trace)

List of computer startup shortcut keys

HALCON联合C#检测表面缺陷——仿射变换(三)

Implementation of fruit mall wholesale platform based on SSM

Example interview -- dongyuhang: harvest love in the club

在线电路仿真以及开源电子硬件设计介绍

【云原生 | Kubernetes篇】Kubernetes 网络策略(NetworkPolicy)

Redis (I) Internal data structure

Li Yang, a scientific and technological innovator and CIO of the world's top 500 group: the success of digital transformation depends on people. Decision makers should always focus on "firewood"

MySQL optimized slow log query
随机推荐
Quickly build oncyber io
日本经济泡沫与房价泡沫
Auto. JS learning notes 5:ui interface foundation of autojs Chapter 1
MySQL optimized slow log query
Clickhouse column basic data type description
链式哈希表
In 2026, the capacity of China's software defined storage market will be close to US $4.51 billion
Code implementation of hash table based on linear detection
Introduction to on-line circuit simulation and open source electronic hardware design
004:aws data Lake solution
redis学习记录:字典(dict)源码分析
原始套接字使用
2021-02-22
JVM (III) Virtual machine performance monitoring & fault handling tool
Basic use of scratch
CEPH performance optimization and enhancement
GNU EFI development environment settings
Crazy temporary products: super low price, big scuffle and new hope
MySQL优化之慢日志查询
《第五项修炼》读书笔记