[go: up one dir, main page]

CN118566248A - Chip patch precision visual detection method - Google Patents

Chip patch precision visual detection method Download PDF

Info

Publication number
CN118566248A
CN118566248A CN202310292097.7A CN202310292097A CN118566248A CN 118566248 A CN118566248 A CN 118566248A CN 202310292097 A CN202310292097 A CN 202310292097A CN 118566248 A CN118566248 A CN 118566248A
Authority
CN
China
Prior art keywords
chip
template
image
ink dot
ink
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310292097.7A
Other languages
Chinese (zh)
Inventor
王翔龙
程涛
王雄
刘燕军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhenhuaxing Intelligent Technology Co ltd
Original Assignee
Shenzhen Zhenhuaxing Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhenhuaxing Intelligent Technology Co ltd filed Critical Shenzhen Zhenhuaxing Intelligent Technology Co ltd
Priority to CN202310292097.7A priority Critical patent/CN118566248A/en
Publication of CN118566248A publication Critical patent/CN118566248A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • G01N2021/0106General arrangement of respective parts
    • G01N2021/0112Apparatus in one mechanical, optical or electronic block
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • G01N2021/95638Inspecting patterns on the surface of objects for PCB's

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a chip patch precision visual detection method which comprises a chip identification and positioning system, wherein the chip identification and positioning system comprises an image display assembly, a template assembly and an ink dot interface assembly. An image display component for displaying the acquired image and setting a template, ink points, a range of search areas on the image and displaying the identified search results; the template component is provided with a template selection, a template training, a template storage and a template loading; and the ink dot interface component is used for analyzing the ink dots according to the positions, the ranges, the sizes and the closing values of the ink dots in the a, and displaying the frames of the ink dots on the image display component. The chip patch precision visual detection method overcomes the defects of traditional manual visual inspection and machine centering, and realizes the detection of the chip with high precision, high speed and high reliability.

Description

一种芯片贴片精度视觉检测方法A visual inspection method for chip placement accuracy

技术领域Technical Field

本发明涉及芯片贴片检测技术领域,具体的说是涉及一种芯片贴片精度视觉检测方法。The present invention relates to the technical field of chip patch detection, and in particular to a chip patch accuracy visual detection method.

背景技术Background Art

随着电子行业对高密度、高可靠、小型化、低成本的追求,高集成度及各种新型电子器件一般都采用表面贴片封装形式。表面贴装技术应运而生。是一门涉及元器件、组装设备、焊接方法和组装辅助材料等内容,用来将电子元器件贴装到印刷电路板上的综合技术,它被认为是电子组装技术上的一次革命。装配线主要由丝印机、贴片机和焊接机组成,而贴片机是其中最关键的设备,也是技术含量最高的设备,其价格通常要占到装配线总价的,因而历来是技术研究的重点。全自动贴片机是用于芯片生产线上把芯片准确地放置到目标框架上的一种设备,是芯片自动化生产线上必备的关键设备之一。当今流行的高性能贴片机有一个共同的特点都采用了基于机器视觉技术的辅助定位系统。由于机器视觉在提高检测精度、增强可检测性等方面具有独到的优越性,己日益广泛应用于表面贴装元件、表面贴装产品质量检测等领域。现在,几乎所有的高精度贴片机系统中都利用视觉子系统来代替传统的机械定位。通过该子系统感知目标原始位置信息并处理,得到机器需要的反馈信息,为精确地贴装元件提供正确的校正数据。With the pursuit of high density, high reliability, miniaturization and low cost in the electronics industry, high integration and various new electronic devices generally adopt surface mount packaging. Surface mount technology came into being. It is a comprehensive technology involving components, assembly equipment, welding methods and assembly auxiliary materials, which is used to mount electronic components on printed circuit boards. It is considered a revolution in electronic assembly technology. The assembly line is mainly composed of screen printing machines, mounters and welding machines, and the mounter is the most critical equipment and the equipment with the highest technical content. Its price usually accounts for the total price of the assembly line, so it has always been the focus of technical research. The fully automatic mounter is a device used to accurately place the chip on the target frame on the chip production line. It is one of the key equipment necessary for the chip automation production line. Today's popular high-performance mounters have a common feature that they all use auxiliary positioning systems based on machine vision technology. Because machine vision has unique advantages in improving detection accuracy and enhancing detectability, it has been increasingly widely used in surface mount components, surface mount product quality inspection and other fields. Now, almost all high-precision placement machine systems use visual subsystems to replace traditional mechanical positioning. Through this subsystem, the original position information of the target is sensed and processed, and the feedback information required by the machine is obtained, providing correct correction data for accurate placement of components.

目前国外在领域内,技术上己经基本成熟,设备的发展也己成套,并逐步向智能化、高度集中管理的方向发展。目前国外的中高档贴片机生产厂商都对核心技术实行了严密封锁政策。目前这些公司的产品占据了国内的大部分市场。但是,这些产品价格偏贵,只有实力雄厚的企业才能负担得起,而一些中小客户则无法或不愿负担此昂贵的设备。At present, the technology in foreign countries has basically matured in this field, and the development of equipment has also been completed, and it has gradually developed in the direction of intelligentization and highly centralized management. At present, foreign mid-to-high-end placement machine manufacturers have implemented a strict blockade policy on core technologies. At present, the products of these companies occupy most of the domestic market. However, these products are expensive, and only strong companies can afford them, while some small and medium-sized customers cannot or are unwilling to afford such expensive equipment.

高速视觉识别技术作为贴片机的关键技术之一,决定了贴片机的贴装能力,直接影响着贴片机的贴装精度和速度。因此,研究基于机器视觉的贴片机的检测系统将有助于发展和丰富视觉定位的基础理论和方法,为国内发展具有自主知识版权的高性能封装设备提供一定的基础理论和单元技术。As one of the key technologies of the placement machine, high-speed visual recognition technology determines the placement capability of the placement machine and directly affects the placement accuracy and speed of the placement machine. Therefore, the study of the detection system of the placement machine based on machine vision will help to develop and enrich the basic theory and methods of visual positioning, and provide certain basic theories and unit technologies for the development of high-performance packaging equipment with independent intellectual property rights in China.

机械运动系统的快速精密定位是一项综合技术,其基础是机器视觉系统。机器视觉系统提供运动目标的位置,由光学照明系统、光学成像系统、摄像器件、图像处理软件等部分组成,其中高精度的图像处理方法对机器视觉系统的精度起着决定性的作用。The rapid and precise positioning of mechanical motion systems is a comprehensive technology, and its basis is the machine vision system. The machine vision system provides the position of the moving target and is composed of optical lighting system, optical imaging system, camera device, image processing software and other parts. Among them, high-precision image processing methods play a decisive role in the accuracy of the machine vision system.

机器视觉系统中,视觉信息的处理技术主要依赖于图像处理方法,它包括图像增强、平滑滤波、图像分割、形态学分析、边缘锐化、边缘检测、特征提取、模板匹配、傅里叶变换等图像识别与理解内容。经过这些处理后,输出图像的质量得到相当程度的改善,既改善了图像的视觉效果,又便于计算机对图像进行分析、处理和识别。In machine vision systems, visual information processing technology mainly relies on image processing methods, which include image enhancement, smoothing filtering, image segmentation, morphological analysis, edge sharpening, edge detection, feature extraction, template matching, Fourier transform and other image recognition and understanding contents. After these processes, the quality of the output image is improved to a considerable extent, which not only improves the visual effect of the image, but also facilitates the computer to analyze, process and recognize the image.

一般来说,机器视觉图像处理软件主要用于以下三个方面表面检测、图像测量、图像识别。根据不同的应用目的,各系统侧重使用的图像处理方法也不尽相同。图像处理方法很多,没有特定哪类专用于机器视觉检测,但是显然很多方法并不能满足机器视觉检测的需要。适合机器视觉检测的图像处理方法是强调目标特征应用、实时性的图像处理方法,以及基于工业控制计算机的视觉检测系统和其中的方法集成。Generally speaking, machine vision image processing software is mainly used in the following three aspects: surface inspection, image measurement, and image recognition. Depending on the application purpose, each system focuses on different image processing methods. There are many image processing methods, and there is no specific type dedicated to machine vision inspection, but it is obvious that many methods cannot meet the needs of machine vision inspection. Image processing methods suitable for machine vision inspection are those that emphasize target feature application and real-time image processing methods, as well as visual inspection systems based on industrial control computers and the integration of methods therein.

贴片机是将各种电子元器件准确地拾取并贴放到目标框架上的集光、机、电、计算机视觉、自动化技术于一体的精密制造装备,它通过移动吸头用一定的方式准确地拾取表面贴装元器件并放到目标框架上的指定位置。高精度自动贴片机的定位方式有机械定位、视觉定位、激光定位等几种。视觉定位采用高倍数成像系统及图像处理技术,使定位精度和贴片效率显著提高,是目前占主导地位的定位方式。目前的全自动贴片机主要是应用机器视觉技术,通过图像处理、模式识别方法,对芯片图像进行分析和处理,完成芯片的识别定位和缺陷检测,识别定位是给出运动控制参数,确定芯片的精确位置,缺陷检测则要完成墨点、缺角、崩边、划痕、紧邻芯片等检测。芯片的定位,可以把芯片位置的精确信息传递给运动控制模块,使控制模块能够在实时状态下调整控制参数。根据视觉检测与运动控制之间的联系,贴片机视觉检测系统构成如图1所示。The placement machine is a precision manufacturing equipment that integrates optics, machinery, electricity, computer vision, and automation technology to accurately pick up and place various electronic components on the target frame. It uses a certain method to accurately pick up surface mount components and place them on the specified position on the target frame by moving the suction head. There are several positioning methods for high-precision automatic placement machines, including mechanical positioning, visual positioning, and laser positioning. Visual positioning uses a high-magnification imaging system and image processing technology to significantly improve positioning accuracy and placement efficiency. It is currently the dominant positioning method. The current fully automatic placement machine mainly uses machine vision technology to analyze and process chip images through image processing and pattern recognition methods to complete chip identification and positioning and defect detection. Identification and positioning is to give motion control parameters and determine the precise position of the chip. Defect detection requires the completion of ink spots, missing corners, broken edges, scratches, and adjacent chips. The positioning of the chip can pass the precise information of the chip position to the motion control module, so that the control module can adjust the control parameters in real time. According to the connection between visual inspection and motion control, the structure of the placement machine visual inspection system is shown in Figure 1.

图1中,光源、镜头、摄像机、图像采集卡属于图像采集装置,主要功能是完成芯片图像的采集,并送入控制计算机工业控制计算机是图像的处理装置,主要完成芯片图像的处理和分析,处理结果转换成运动控制参数,传递给运动控制部分运动控制部分根据传递来的控制参数生成运动控制指令并控制芯片台运动,使芯片到达目标位置。工业控制计算机的图像处理部分具体就是利用数字图像处理技术,对采集的图像进行预处理、边缘检测和图像分割等必要的前期处理,以方便针对具体的被检测目标进行特殊的元件定位方法。元件定位方法主要是针对贴片元件的封装形式的复杂多样性,总结规律对各种封装类型的元件设计出具有针对性的定位方法,以满足贴片机视觉系统高速、高精度的要求。In Figure 1, the light source, lens, camera, and image acquisition card belong to the image acquisition device, whose main function is to complete the acquisition of chip images and send them to the control computer. The industrial control computer is an image processing device, which mainly completes the processing and analysis of chip images, converts the processing results into motion control parameters, and transmits them to the motion control part. The motion control part generates motion control instructions based on the transmitted control parameters and controls the movement of the chip stage to make the chip reach the target position. The image processing part of the industrial control computer specifically uses digital image processing technology to perform necessary preliminary processing such as preprocessing, edge detection, and image segmentation on the acquired images, so as to facilitate the special component positioning method for the specific detected target. The component positioning method is mainly aimed at the complexity and diversity of the packaging forms of the patch components. The rules are summarized to design targeted positioning methods for components of various packaging types to meet the high-speed and high-precision requirements of the patch machine vision system.

在贴片机设备中,吸嘴头吸取到指定类型的芯片后,需要首先对芯片进行缺陷检测,在检测到芯片完好无损的情况下,再对芯片进行定位,为下一步的精确贴装做准备。早期发展的贴片机都采用人工目测和机械对中的方式来实现芯片的检测与定位,其检测定位的精度与效率已经远远达不到贴片机的贴装需求,一方面,利用人工目测这种原始的方法容易受到很多主观因素的影响,比如个体的检测标准、身体心理状态、眼睛的疲劳程度,这些都导致了检测结果的不稳定性和不可靠性,而且芯片集成度的增加和微型化给人工检测带来不可避免的困扰,一些微小的缺陷已经不能用人眼检测出来,同时芯片输出端数的增加也使得人工目测的效率很低,跟不上自动化生产线的快速发展,劳动成本较高;另一方面,机械对中定位是一种接触性的机械定位方式,其适用的芯片类型有限,采用机械夹持头去接触芯片本身,可能会对芯片的引脚产生损坏,定位系统的基准也容易受到接触状态的影响,导致机械的定位精度低,而且机械的移动需要消耗一定是时间,其定位的速度和效率也不可观。In the placement machine equipment, after the nozzle head picks up the specified type of chip, it is necessary to first perform defect inspection on the chip. If the chip is found to be intact, the chip is then positioned to prepare for the next step of precise placement. Early developed placement machines all used manual visual inspection and mechanical centering to detect and locate chips. The accuracy and efficiency of their detection and positioning are far from meeting the placement requirements of placement machines. On the one hand, the primitive method of manual visual inspection is easily affected by many subjective factors, such as individual detection standards, physical and psychological conditions, and eye fatigue, which all lead to instability and unreliability of the detection results. In addition, the increase in chip integration and miniaturization bring inevitable troubles to manual detection. Some minor defects can no longer be detected by the human eye. At the same time, the increase in the number of chip output terminals also makes manual visual inspection very inefficient, which cannot keep up with the rapid development of automated production lines and has high labor costs. On the other hand, mechanical centering positioning is a contact-based mechanical positioning method, which is applicable to a limited number of chip types. Using a mechanical clamping head to contact the chip itself may damage the chip pins. The reference of the positioning system is also easily affected by the contact state, resulting in low mechanical positioning accuracy. In addition, the movement of the machine requires a certain amount of time, and its positioning speed and efficiency are not impressive.

随着计算机技术数字图像处理技术的发展,机器视觉应运而生并得到了广泛的应用,其主要功能为对目标的跟踪、识别和检测,主要应用领域为安防监控、质量检测和用于替代处理人类难以到达场所飞智能机器人。机器视觉是一种用机器替代人眼和人脑的技术,它是一门涉及面很广的综合技术,起源于二十世纪五十年代,通过光学装置和非接触式传感器来获取目标图像,并对目标图像进行处理以获得所需特征信息,除此之外,机器视觉还可以将所得的信息传递给控制单元,从而驱动执行机构做出相应的动作达到控制指导作用。由此可见,机器视觉系统包括光源、相机、镜头、图像采集卡、计算机软硬件及相关外部设备,分别实现图像采集功能、判断识别功能和自动控制功能。机器视觉克服了传统人工目测和机器对中的种种弊端,作为一种高精度、高速度、高可靠性的技术被运用在贴片机检测与定位系统中,成为了高性能贴片机必备的系统之一。同时在表面贴装技术生产线中,还有多处使用到机器视觉技术的地方,比如对PCB板的基准点和芯片位置进行定位、对贴装后PCB板的焊接质量检测、对贴片机中固定相机及飞行相机的参数校正,降低了设备机械设计的难度,概括而言,机器视觉在表面贴装生产线中的主要作用为元件抓取与贴放、检测目标、目标识别、导航及轨迹控制,这些在丝印机、贴片机和自动光学检测设备都可以得到充分体现。在本发明的研究中所用到的课题组自主研究的贴片机整机中,其检测与定位系统正是基于机器视觉而设计的,贴片机的机器视觉系统示意图如图2所示。With the development of computer technology and digital image processing technology, machine vision has emerged and has been widely used. Its main functions are tracking, identifying and detecting targets. Its main application areas are security monitoring, quality inspection and intelligent robots used to replace places that are difficult for humans to reach. Machine vision is a technology that uses machines to replace human eyes and brains. It is a comprehensive technology with a wide range of applications. It originated in the 1950s. It uses optical devices and non-contact sensors to obtain target images and processes the target images to obtain the required feature information. In addition, machine vision can also transmit the obtained information to the control unit, thereby driving the actuator to make corresponding actions to achieve control and guidance. It can be seen that the machine vision system includes light sources, cameras, lenses, image acquisition cards, computer hardware and software, and related external devices, which respectively realize image acquisition functions, judgment and recognition functions, and automatic control functions. Machine vision overcomes the various drawbacks of traditional manual visual inspection and machine alignment. As a high-precision, high-speed, and high-reliability technology, it is used in the detection and positioning system of placement machines and has become one of the necessary systems for high-performance placement machines. At the same time, in the surface mount technology production line, there are many places where machine vision technology is used, such as positioning the reference point and chip position of the PCB board, detecting the welding quality of the PCB board after mounting, and correcting the parameters of the fixed camera and the flying camera in the mounter, which reduces the difficulty of the mechanical design of the equipment. In summary, the main role of machine vision in the surface mount production line is component capture and placement, detection target, target recognition, navigation and trajectory control, which can be fully reflected in the screen printer, the mounter and the automatic optical inspection equipment. In the whole mounter machine independently studied by the research group used in the research of the present invention, its detection and positioning system is designed based on machine vision, and the schematic diagram of the machine vision system of the mounter is shown in Figure 2.

在图2贴片机的机器视觉系统中,PCB12固定于PCB支撑板11上,芯片13贴装于PCB12上,贴片头18固定于XYZθ四轴运动模组上,贴片头18上固定有吸嘴17,吸嘴17吸取元件15,通过XYZθ四轴运动模组驱动贴片头18做XYZθ四轴方向的移动,贴片头18带动吸嘴17及元件15移动,视觉定位系统19控制所述上视相机14和下视相机16。In the machine vision system of the placement machine in Figure 2, PCB12 is fixed on the PCB support plate 11, the chip 13 is mounted on the PCB12, the placement head 18 is fixed on the XYZθ four-axis motion module, and a suction nozzle 17 is fixed on the placement head 18. The suction nozzle 17 sucks the component 15, and the placement head 18 is driven by the XYZθ four-axis motion module to move in the XYZθ four-axis direction. The placement head 18 drives the suction nozzle 17 and the component 15 to move, and the visual positioning system 19 controls the upward camera 14 and the downward camera 16.

图像采集设备有两个,分别是视野向下的基准相机(又称下视相机16)和视野向上的固定相机(又称上视相机14),这两个相机分别属于两个视觉子系统,也就是基准点定位视觉子系统和芯片检测定位视觉子系统,这两个子系统在贴片机的工作过程中起到至关重要的作用,其精度和速度制约着贴片机的工作效率。There are two image acquisition devices, namely a reference camera with a downward field of view (also known as a downward-looking camera 16) and a fixed camera with an upward field of view (also known as an upward-looking camera 14). These two cameras belong to two visual subsystems, namely the reference point positioning visual subsystem and the chip detection and positioning visual subsystem. These two subsystems play a vital role in the working process of the placement machine, and their accuracy and speed restrict the working efficiency of the placement machine.

(1)基准点定位系统是利用安装在贴片头上的基准相机采集基准点图像,基准相机随着贴片头运动,从而可以到达不同位置的基准点上方,对采集到的图像进行处理分析后获得基准点在贴片机机器坐标系中的位置,从而确定PCB板的位置,完成PCB板的定位,进而得到待贴装芯片的准确坐标位置。(1) The reference point positioning system uses a reference camera installed on the placement head to collect reference point images. The reference camera moves with the placement head and can reach above the reference points at different positions. After processing and analyzing the collected images, the position of the reference points in the placement machine coordinate system is obtained, thereby determining the position of the PCB board, completing the positioning of the PCB board, and then obtaining the accurate coordinate position of the chip to be mounted.

(2)检测与定位系统是利用安装在贴片机机座上的固定相机采集芯片图像,固定相机不能移动,所以对芯片图像的采集需要由安装在贴片头上的吸嘴头吸取芯片后,随着贴片头运动到固定相机的上方才可实现,对芯片图像进行处理分析后完成对芯片的检测并获取芯片的定位信息,在确认芯片完好的情况下将芯片的位姿信息反馈给计算机,从而对芯片实现吸取误差补偿,为后续的精确贴装做好准备。本发明研究芯片的检测与定位系统,在对芯片的贴装过程中,对芯片的检测与定位是必不可少的过程,也是关键的环节,首先芯片本身的完好无损是可以贴装的前提,如果芯片出现焊球过大、过小,焊球位置不正确或者漏焊、焊球冗余的情况,后续的工作将变得毫无意义,其次,在确定芯片没有缺陷后,由于在吸嘴头吸取芯片的过程中,吸嘴头吸取的位置与芯片的中心不可能重合,且芯片难免会和贴片机的机器坐标轴产生偏转角度,如果不对芯片的位姿进行补偿并转正,最后贴装在PCB板上将是错误的位置,导致贴装工作的失败。(2) The detection and positioning system uses a fixed camera installed on the base of the placement machine to collect chip images. The fixed camera cannot move, so the chip image can only be collected by the nozzle installed on the placement head after the chip is sucked up and the placement head moves to the top of the fixed camera. After the chip image is processed and analyzed, the chip detection is completed and the chip positioning information is obtained. When the chip is confirmed to be intact, the chip posture information is fed back to the computer, thereby realizing the chip suction error compensation and preparing for the subsequent precise placement. The present invention studies a chip detection and positioning system. In the process of chip mounting, chip detection and positioning are indispensable processes and also key links. Firstly, the integrity of the chip itself is a prerequisite for mounting. If the chip has solder balls that are too large or too small, the solder balls are not in the correct position, or there is solder leakage or redundant solder balls, subsequent work will become meaningless. Secondly, after determining that the chip has no defects, during the process of the nozzle head sucking the chip, the position sucked by the nozzle head cannot coincide with the center of the chip, and the chip will inevitably produce a deflection angle with the machine coordinate axis of the mounter. If the chip posture is not compensated and corrected, it will be mounted on the PCB board in the wrong position, resulting in failure of the mounting work.

在对芯片检测与定位系统的工作流程进行介绍以后可以发现,除了系统的机械结构设计和软硬件选择,芯片检测与定位中的图像处理方法是重中之重,方法的精度、速度和鲁棒性将直接影响检测与定位的精度、速度和可适用范围,因此本发明主要对芯片的检测与定位方法进行研究,在本贴片机的检测与定位系统中,需要对芯片进行示教过程和检测过程,其中示教过程是在无任何先验数据的情况下对完整无缺陷的芯片进行一系列的方法流程后获取芯片的数据信息,保存在数据库中作为检测过程的标准数据;检测过程是设计一套方法对待检测的芯片获取需要检测的数据,并将其与标准数据相比较,在确定芯片各项数据都在标准范围内,对芯片再设计相应的方法完成定位过程。示教过程与检测过程所涉及的方法一致,本发明所研究的方法同时适用于这两个过程。After introducing the workflow of the chip detection and positioning system, it can be found that in addition to the mechanical structure design and software and hardware selection of the system, the image processing method in chip detection and positioning is of paramount importance. The accuracy, speed and robustness of the method will directly affect the accuracy, speed and applicable scope of detection and positioning. Therefore, the present invention mainly studies the detection and positioning method of the chip. In the detection and positioning system of this chip mounter, it is necessary to perform a teaching process and a detection process on the chip. The teaching process is to obtain the data information of the chip after a series of method processes are performed on the complete and defect-free chip without any prior data, and save it in the database as the standard data of the detection process; the detection process is to design a set of methods to obtain the data to be detected from the chip to be detected, and compare it with the standard data. After determining that the various data of the chip are within the standard range, the corresponding method is designed for the chip to complete the positioning process. The teaching process is consistent with the method involved in the detection process, and the method studied by the present invention is applicable to both processes.

发明内容Summary of the invention

针对现有技术中的不足,本发明要解决的技术问题在于提供了一种芯片贴片精度视觉检测方法,本发明的目的是:完成芯片的识别定位和缺陷检测,识别定位是确定芯片的位置,给出满足一定精度要求的芯片的中心位置坐标和旋转角度等结果参数,缺陷检测则要完成墨点、缺角等检测。在vc++6.0环境下实现的芯片识别和定位系统的方法流程、系统功能及实现效果进行介绍和评估。In view of the deficiencies in the prior art, the technical problem to be solved by the present invention is to provide a visual inspection method for chip placement accuracy. The purpose of the present invention is to complete chip identification and positioning and defect detection. Identification and positioning is to determine the position of the chip and give the result parameters such as the center position coordinates and rotation angle of the chip that meet certain accuracy requirements. Defect detection is to complete the detection of ink dots, missing corners, etc. The method flow, system functions and implementation effects of the chip identification and positioning system implemented in the vc++6.0 environment are introduced and evaluated.

为解决上述技术问题,本发明通过以下方案来实现:本发明的一种芯片贴片精度视觉检测方法,包括芯片识别和定位系统,所述芯片识别和定位系统包括:To solve the above technical problems, the present invention is implemented by the following scheme: A chip patch accuracy visual detection method of the present invention includes a chip recognition and positioning system, and the chip recognition and positioning system includes:

a、图像显示组件,用于显示已获取的图像并在该图像上设置模板、墨点、搜索区域的范围以及显示标识出的搜索结果;a. An image display component, used to display the acquired image and set the template, ink dots, the range of the search area on the image and display the identified search results;

b、模板组件,所述模板组件具有选取模板、训练模板、保存以及装载模板;b. Template component, which has functions of selecting template, training template, saving and loading template;

c、墨点界面组件,根据所述a中的墨点的位置、范围、大小、闭值进行墨点分析,再把墨点的边框显示在所述图像显示组件上;c. an ink dot interface component, which performs ink dot analysis according to the position, range, size and closed value of the ink dot in a, and then displays the border of the ink dot on the image display component;

所述芯片贴片精度视觉检测方法包括以下步骤:The chip placement accuracy visual detection method comprises the following steps:

步骤一,在已经捕获的图像上指定搜索区域,根据设置的相似度和模板进行比较分析;Step 1: Specify the search area on the captured image and perform comparative analysis based on the set similarity and template;

步骤二,把步骤一的分析结果标注在所述图像显示组件上,并将计算出来的结果角度标注边框、结果角度标注边框的中心坐标用十字标出;Step 2, marking the analysis result of step 1 on the image display component, and marking the calculated result angle with a border and the center coordinates of the result angle with a cross;

步骤三,墨点分析可选时,根据模板范围和墨点的位置计算出墨点相对位置,在每一结果上再根据墨点的相对位置、墨点的搜索范围、墨点的大小、墨点的阂值进行墨点分析,判断是否有墨点,当墨点存在,把墨点的边框显示在图像显示组件上;Step 3: When ink dot analysis is optional, the relative position of the ink dot is calculated according to the template range and the position of the ink dot. On each result, ink dot analysis is performed according to the relative position of the ink dot, the search range of the ink dot, the size of the ink dot, and the threshold of the ink dot to determine whether there is an ink dot. If the ink dot exists, the border of the ink dot is displayed on the image display component.

步骤四,程序最终提供出搜索到的每个芯片在图像上的中心坐标、角度以及是否有墨点;Step 4: The program finally provides the center coordinates, angle, and whether there is an ink dot for each chip found on the image;

步骤五,设定墨点参数和搜索参数:Step 5: Set ink dot parameters and search parameters:

所述墨点参数包括墨点模式、灰度闭值、斑点大小,当芯片亮度较高而墨点亮度较低时墨点模式为黑点白背景,当芯片亮度较低而墨点亮度较高时墨点模式为白点黑背景,灰度闭值用于分割图像以进行连通域分析,斑点大小用于过滤掉不符合墨点大小的连通域;The ink dot parameters include ink dot pattern, grayscale closed value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot pattern is black dots with white background. When the chip brightness is low and the ink dot brightness is high, the ink dot pattern is white dots with black background. The grayscale closed value is used to segment the image for connected domain analysis, and the spot size is used to filter out connected domains that do not meet the ink dot size.

所述搜索参数至少包括搜索个数、相似分数、搜索角度,搜索个数用于限定在当前场景中最多搜索的芯片数目,相似分数用于限定芯片与模板的最小相似程度,搜索角度用于限定符合搜索条件的芯片的角度范围;The search parameters include at least the number of searches, the similarity score, and the search angle. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions.

步骤六,根据步骤五中设定的墨点参数和搜索参数,以实施芯片特征匹配,所述芯片特征匹配包括特征一和特征二,特征一是单芯片的形状特征匹配,特征二是单芯片的角点特征匹配;Step 6, implementing chip feature matching according to the ink dot parameters and search parameters set in step 5, wherein the chip feature matching includes feature 1 and feature 2, wherein feature 1 is shape feature matching of a single chip, and feature 2 is corner feature matching of a single chip;

所述形状特征匹配是根据单芯片的长、宽、面积并通过连通域分析获得,其是对滤波后的单芯片图像进行直方图波形分析,当存在某一闭值使得根据该闭值对图像进行二值化后存在封闭的连通域,则选取这些连通域中最大的一个,该连通域就表示了芯片的内部区域,计算该连通域的长、宽、面积、中心,作为单芯片的形状特征;The shape feature matching is obtained based on the length, width and area of the single chip and through connected domain analysis, which is to perform histogram waveform analysis on the filtered single chip image. When there is a closed value that results in a closed connected domain after binarization of the image according to the closed value, the largest one of these connected domains is selected. The connected domain represents the internal area of the chip, and the length, width, area and center of the connected domain are calculated as the shape feature of the single chip.

所述角点特征匹配是提取单芯片图像中的角点以进行匹配。The corner point feature matching is to extract the corner points in the single chip image for matching.

进一步的,所述芯片贴片精度视觉检测方法还包括模板处理,所述模板处理包括模板图像的获取、模板图像的预处理、模板选取是否得当判断、模板训练;Furthermore, the chip placement accuracy visual inspection method further includes template processing, and the template processing includes acquiring a template image, preprocessing the template image, determining whether the template selection is appropriate, and template training;

所述模板图像的获取是通过使用鼠标在已加载的芯片图像上拖曳出矩形选取得到;The template image is obtained by dragging a rectangle on the loaded chip image with a mouse;

所述模板图像的预处理是获得模板图像后、提取模板特征前,先要对模板图像进行预处理,所述模板图像的预处理采用滤波处理以消除芯片图像中的噪声;The template image preprocessing is to preprocess the template image after obtaining the template image and before extracting the template features. The template image preprocessing adopts filtering processing to eliminate the noise in the chip image.

所述模板选取是否得当判断是当模板图像经过滤波处理后,要对模板图像是否选取得当进行判断;The judgment of whether the template is properly selected is to judge whether the template image is properly selected after the template image is filtered;

所述模板训练是当模板选取得当时,进行模板训练,该模板训练是模板特征的提取,该模板特征的提取是指所述芯片特征匹配。The template training is to perform template training when the template is selected. The template training is to extract the template features. The template feature extraction refers to the chip feature matching.

更进一步的,所述模板选取是否得当判断是基于团块分析的多目标分割方法,所选择的模板至少包括一个完整的芯片区域以提取其形状特征;Furthermore, the judgment of whether the template selection is appropriate is based on a multi-objective segmentation method of cluster analysis, and the selected template includes at least a complete chip area to extract its shape features;

首先对滤波后的模板图像进行直方图波形分析,当存在某一波谷的灰度值使得根据该闭值对图像进行二值化后存在封闭的连通域,白色被一个黑色包围,则称该白色为封闭连通域,反之亦然,且面积在一定范围内,则该闭值即为合理闭值,模板选取得当;否则,在模板平均灰度的一定波动范围内寻找可获得面积符合要求的封闭连通域的灰度作为合理闺值,当在这个范围内找不到合理闽值,则认为模板选取不合理,提示重新选取模板。First, the histogram waveform analysis is performed on the filtered template image. When there is a grayscale value at a certain trough so that there is a closed connected domain after the image is binarized according to the closed value, and the white is surrounded by a black, then the white is called a closed connected domain, and vice versa. If the area is within a certain range, then the closed value is a reasonable closed value, and the template is selected properly; otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is found as a reasonable minimum value. When no reasonable minimum value is found within this range, the template selection is considered unreasonable, and a prompt is given to reselect the template.

进一步的,所述芯片贴片精度视觉检测方法还包括搜索区处理模块,所述搜索区处理模块是当模板设定好以后,对于任意搜索区在芯片图像上拖拽出的矩形,按照以下步骤找到其所包含的芯片:Furthermore, the chip placement accuracy visual inspection method further includes a search area processing module. After the template is set, the search area processing module finds the chip contained in a rectangle dragged out of any search area on the chip image according to the following steps:

4.1,搜索区图像预处理:通过滤波处理,用于消除芯片图像中的各种噪声;4.1, Search area image preprocessing: Through filtering, it is used to eliminate various noises in the chip image;

4.2,搜索区图像多目标分割:对搜索区图像进行直方图波形分析,找到所有波谷对应的灰度值,对每一灰度值,以其为阐值分割图像并进行分析,按照模板的形状特征过滤链表,找到使符合条件的最多的灰度值作为最终的合理阐值,以其为阐值得到的链表中的每一个,都是一个潜在的芯片,对每一个芯片进行精确匹配和定位;4.2. Multi-target segmentation of search area image: Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the interpretation value to segment the image and analyze it. Filter the linked list according to the shape features of the template to find the grayscale value that meets the conditions the most as the final reasonable interpretation value. Each of the linked lists obtained with it as the interpretation value is a potential chip, and each chip is accurately matched and located.

4.3,疑似芯片精确匹配及缺陷芯片排除:在每个附近取比芯片模板大的图像块,进行局部直方图波形分析,找该局部图像块的合理闭值,若不存在,丢弃该疑似芯片,若存在,首先查看系统是否要求放弃墨点芯片,当要求排除墨点芯片,则用合理闭值对该局部块二值化,再进行分析,用墨点参数来过滤链表,当存在墨点,则为缺陷芯片,不再进行精确定位,若无墨点,则继续提取疑似芯片的角点特征,与模板芯片的角点进行匹配,若匹配度大于设定阐值在本系统中,该闭值设定为最大匹配点对数与允许相似度系数的乘积,则对该疑似芯片的边缘进行矩形拟合,得到疑似芯片的角度和中心,若角度在限定的搜索范围内,则为合格芯片。4.3. Accurate matching of suspected chips and exclusion of defective chips: Take an image block larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, binarize the local block with a reasonable closed value, and then analyze it. Use the ink dot parameters to filter the linked list. If there are ink dots, it is a defective chip and no longer requires precise positioning. If there are no ink dots, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient. Then, a rectangular fitting is performed on the edge of the suspected chip to obtain the angle and center of the suspected chip. If the angle is within the specified search range, it is a qualified chip.

进一步的,所述芯片贴片精度视觉检测方法还包括缺陷芯片剔除模块,所述缺陷芯片剔除模块是通过图像处理检测出有缺陷的芯片,并将检测不合格的芯片淘汰。Furthermore, the chip placement accuracy visual inspection method also includes a defective chip elimination module, which detects defective chips through image processing and eliminates chips that fail the inspection.

更进一步的,所述缺陷芯片剔除模块是将具有缺陷的墨点芯片、具有缺陷的角度偏移芯片、具有缺陷的残缺芯片剔除;Furthermore, the defective chip rejection module is used to reject defective ink dot chips, defective angle offset chips, and defective incomplete chips;

所述墨点芯片是晶片电路检测机在电气性能不合格的芯片表面打上的墨点标记,墨点标记在图像直方图上有明显的峰值;The ink dot chip is an ink dot mark made by a wafer circuit inspection machine on the surface of a chip with unqualified electrical performance, and the ink dot mark has an obvious peak on the image histogram;

所述角度偏移芯片是芯片因位置发生偏移而使芯片边缘与水平及垂直线具有一定夹角的芯片;The angle-shifted chip is a chip whose edge has a certain angle with the horizontal and vertical lines due to the chip's position shift;

所述残缺芯片是芯片表面有缺角、破损的芯片。The defective chip is a chip with a chip surface having a missing corner or being damaged.

更进一步的,所述缺陷芯片剔除模块包括墨点芯片剔除步骤、角度偏移芯片剔除步骤以及残缺芯片剔除方法;Furthermore, the defective chip rejection module includes an ink spot chip rejection step, an angle deviation chip rejection step, and a defective chip rejection method;

所述墨点芯片剔除步骤包括:The ink dot chip removal step comprises:

步骤一,在粗定位后所得的各疑似芯片区采用设定的灰度阐值将图像二值化;Step 1: Binarize the image of each suspected chip area obtained after rough positioning using a set grayscale value;

步骤二,对二值疑似芯片进行Blob分析,得到Blob链表;Step 2: Perform Blob analysis on the binary suspected chip to obtain a Blob linked list;

步骤三,用指定的斑点面积对所有连通域进行过滤,过滤完毕后,若没有符合要求的连通域,则为合格芯片,否则就表明该疑似芯片上有墨点,将有墨点的芯片剔除;Step 3: Filter all connected domains with the specified spot area. After filtering, if there is no connected domain that meets the requirements, it is a qualified chip. Otherwise, it indicates that there are ink spots on the suspected chip, and the chip with ink spots will be removed.

角度偏移芯片剔除步骤包括:The steps of angle offset chip rejection include:

步骤一,疑似芯片与模板芯片进行匹配;Step 1: matching the suspected chip with the template chip;

步骤二,若匹配成功则对疑似芯片的连通域的边缘进行最小面积外接矩形拟合,由此得到芯片的角度;Step 2: If the match is successful, the edge of the connected domain of the suspected chip is fitted with a minimum area circumscribed rectangle to obtain the angle of the chip;

步骤三,判断芯片的角度是否在允许范围内,若超出允许范围,予以剔除;Step 3: Determine whether the angle of the chip is within the allowable range. If it is beyond the allowable range, it will be removed;

所述残缺芯片剔除方法是通过将目标芯片与模板芯片面积进行比较来判断该目标芯片的面积是否符合要求,进而做出剔除或保留的决策。The defective chip elimination method is to compare the area of the target chip with the area of the template chip to determine whether the area of the target chip meets the requirements, and then make a decision to eliminate or retain.

相对于现有技术,本发明的有益效果是:Compared with the prior art, the beneficial effects of the present invention are:

1.本发明芯片贴片精度视觉检测方法首先对相机拍摄的图片进行预处理操作,通过直方图直观判断和灰度值计算精确判断光照强度,分析了多种滤波方法的原理和利弊,提出了去噪且保护边缘信息的自适应中值方法,有效去除椒盐噪声。基于灰度值的图像分割方法,提出了基于传统OTSU方法的二维OTSU方法和分水岭方法,分析三种方法的分割结果和运行时间,仍然选择运行时间最短且分割结果满足要求的OTSU方法。1. The chip patch accuracy visual detection method of the present invention first pre-processes the pictures taken by the camera, accurately judges the light intensity through intuitive judgment of the histogram and gray value calculation, analyzes the principles and advantages and disadvantages of various filtering methods, and proposes an adaptive median method for denoising and protecting edge information to effectively remove salt and pepper noise. Based on the gray value image segmentation method, a two-dimensional OTSU method and a watershed method based on the traditional OTSU method are proposed, and the segmentation results and running time of the three methods are analyzed. The OTSU method with the shortest running time and satisfactory segmentation results is still selected.

2.提出了芯片信息获取的方法。分析传统爬虫法的原理及缺点,采用八邻域跟踪方法对图像提取轮廓,同时考虑到OTSU方法是全局性,不能满足局部要求,再次对轮廓进行有效筛选。提出了改进初始中心点的k-means聚类方法实现上下部管脚分割,提出了基于凸包最小外接矩形的方法实现芯片粗略定位,并利用仿射变换方法对芯片轮廓转正。采用垂直投影法对上部和下部管脚标记以及根据坐标特点进行管脚足部和根部分割方法。提出了基于投影法和直接法两种参数检测方法,比较方法的准确性,选择后者能够实现高精度的芯片参数检测。2. A method for obtaining chip information is proposed. The principles and shortcomings of the traditional crawler method are analyzed, and the eight-neighborhood tracking method is used to extract the contour of the image. At the same time, considering that the OTSU method is global and cannot meet local requirements, the contour is effectively screened again. A k-means clustering method with improved initial center points is proposed to achieve the segmentation of the upper and lower pins, a method based on the minimum circumscribed rectangle of the convex hull is proposed to achieve rough positioning of the chip, and the affine transformation method is used to positively rotate the chip contour. The vertical projection method is used to mark the upper and lower pins, and the pin foot and root are segmented according to the coordinate characteristics. Two parameter detection methods based on the projection method and the direct method are proposed. The accuracy of the methods is compared, and the latter is selected to achieve high-precision chip parameter detection.

3.针对TR型芯片的特点,本发明提出了三种芯片定位的方法。基于图像分割的方法是在图像分割获取上部和下部足部轮廓的基础上,根据足部拟合直线以及轮廓最小外接矩形来实现。基于边缘灰度匹配和边缘梯度匹配都属于轮廓匹配的方法,两者分别提取边缘灰度值和梯度值作为特征,并提出了金字塔缩放来提高方法的效率。分析芯片偏移角度过大、管脚缺失、高度偏移、以及位置偏移等缺陷可能,并且根据缺陷管脚特点设计针对芯片的缺陷检测系统,能够将缺陷芯片检测出来。3. Aiming at the characteristics of TR type chips, the present invention proposes three chip positioning methods. The method based on image segmentation is based on obtaining the upper and lower foot contours through image segmentation, and is implemented according to the foot fitting straight line and the minimum circumscribed rectangle of the contour. Both edge grayscale matching and edge gradient matching belong to contour matching methods. Both extract edge grayscale values and gradient values as features, respectively, and propose pyramid scaling to improve the efficiency of the method. The possible defects of chip offset angles, missing pins, height offset, and position offset are analyzed, and a defect detection system for the chip is designed according to the characteristics of the defective pins, so that defective chips can be detected.

4.测试方法的精确性和稳定性,测试分为管脚参数方法测试和定位方法测试两大部分。管脚参数方法的误差范围在±0.1mm范围内,方法精度满足需求,同时检测光照变化情况下,方法基本上维持稳定。通过多组数据比较三种定位方法的精确性,均能满足±0.2°的精度要求,比较方法时间及复杂度,选择基于图像分割定位方法。同时检测该方法的稳定性,比较同一芯片在不同光照情况下的定位结果,结果相对集中,受光照影响不大,方法相对稳定。4. Test the accuracy and stability of the method. The test is divided into two parts: pin parameter method test and positioning method test. The error range of the pin parameter method is within ±0.1mm, and the accuracy of the method meets the requirements. At the same time, the method is basically stable when the illumination changes. The accuracy of the three positioning methods is compared through multiple sets of data. All of them can meet the accuracy requirement of ±0.2°. The time and complexity of the methods are compared, and the positioning method based on image segmentation is selected. At the same time, the stability of the method is tested, and the positioning results of the same chip under different illumination conditions are compared. The results are relatively concentrated, not greatly affected by illumination, and the method is relatively stable.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为现有技术中贴片机视觉检测系统结构框图。FIG. 1 is a block diagram of a visual inspection system for a chip placement machine in the prior art.

图2为现有技术中贴片机的机器视觉系统结构图。FIG. 2 is a structural diagram of a machine vision system of a chip placement machine in the prior art.

图3为本发明芯片识别定位流程图。FIG3 is a flow chart of chip identification and positioning according to the present invention.

图4为本发明合格模板芯片与不合格模板芯片及分别对应的封闭连通域和不封闭连通域的拍照图。FIG. 4 is a photograph of a qualified template chip and an unqualified template chip according to the present invention and the corresponding closed connected domains and unclosed connected domains.

图5为本发明椒盐噪声强度为0.01时处理结果的芯片图像和光照不均匀校正图像。FIG. 5 is a chip image and an image corrected for uneven illumination of the processing result when the salt and pepper noise intensity is 0.01 according to the present invention.

图6为本发明椒盐噪声强度为0.01时处理结果的Otsu二值化图像和形态学处理图像。FIG. 6 is an Otsu binary image and a morphologically processed image of the processing result when the salt and pepper noise intensity is 0.01 according to the present invention.

图7为本发明椒盐噪声强度为0.01时处理结果的焊球关键边缘点集和最小二乘拟合焊球位置图像。FIG. 7 is a set of key edge points of solder balls and a least squares fitting solder ball position image of the processing result when the salt and pepper noise intensity is 0.01 according to the present invention.

图8为本发明椒盐噪声强度为0.1时处理结果的芯片图像和光照不均匀校正图像。FIG8 is a chip image and an image corrected for uneven illumination of the processing result when the salt and pepper noise intensity is 0.1 according to the present invention.

图9为本发明椒盐噪声强度为0.1时处理结果的Otsu二值化图像和形态学处理图像。FIG. 9 is an Otsu binary image and a morphologically processed image of the processing result when the salt and pepper noise intensity is 0.1 according to the present invention.

图10为本发明椒盐噪声强度为0.1时处理结果的焊球关键边缘点集和最小二乘拟合焊球位置图像。FIG. 10 is a set of key edge points of solder balls and a least squares fitting solder ball position image of the processing result when the salt and pepper noise intensity is 0.1 according to the present invention.

图11为本发明示教过程流程图。FIG. 11 is a flow chart of the teaching process of the present invention.

图12为本发明检测过程流程图。FIG. 12 is a flow chart of the detection process of the present invention.

附图中标记:PCB支撑板11、PCB12、芯片13、上视相机14、元件15、下视相机16、吸嘴17、贴片头18、视觉定位系统19。Markings in the accompanying drawings: PCB support plate 11, PCB 12, chip 13, upward camera 14, component 15, downward camera 16, suction nozzle 17, patch head 18, and visual positioning system 19.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,使本发明的优点和特征能更易于被本领域技术人员理解,从而对本发明的保护范围做出更为清楚明确的界定。显然,本发明所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more explicit definition of the protection scope of the present invention. Obviously, the embodiments described in the present invention are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

实施例1:本发明的具体结构如下:Embodiment 1: The specific structure of the present invention is as follows:

请参照附图3-4,本发明的一种芯片贴片精度视觉检测方法,包括芯片识别和定位系统,所述芯片识别和定位系统包括:Referring to Figures 3-4, a chip placement accuracy visual inspection method of the present invention includes a chip recognition and positioning system, and the chip recognition and positioning system includes:

a、图像显示组件,用于显示已获取的图像并在该图像上设置模板、墨点、搜索区域的范围以及显示标识出的搜索结果;a. An image display component, used to display the acquired image and set the template, ink dots, the range of the search area on the image and display the identified search results;

b、模板组件,所述模板组件具有选取模板、训练模板、保存以及装载模板;b. Template component, which has functions of selecting template, training template, saving and loading template;

c、墨点界面组件,根据所述a中的墨点的位置、范围、大小、闭值进行墨点分析,再把墨点的边框显示在所述图像显示组件上;c. an ink dot interface component, which performs ink dot analysis according to the position, range, size and closed value of the ink dot in a, and then displays the border of the ink dot on the image display component;

所述芯片贴片精度视觉检测方法包括以下步骤:The chip placement accuracy visual detection method comprises the following steps:

步骤一,在已经捕获的图像上指定搜索区域,根据设置的相似度和模板进行比较分析;Step 1: Specify the search area on the captured image and perform comparative analysis based on the set similarity and template;

步骤二,把步骤一的分析结果标注在所述图像显示组件上,并将计算出来的结果角度标注边框、结果角度标注边框的中心坐标用十字标出;Step 2, marking the analysis result of step 1 on the image display component, and marking the calculated result angle with a border and the center coordinates of the result angle with a cross;

步骤三,墨点分析可选时,根据模板范围和墨点的位置计算出墨点相对位置,在每一结果上再根据墨点的相对位置、墨点的搜索范围、墨点的大小、墨点的阂值进行墨点分析,判断是否有墨点,当墨点存在,把墨点的边框显示在图像显示组件上;Step 3: When ink dot analysis is optional, the relative position of the ink dot is calculated according to the template range and the position of the ink dot. On each result, ink dot analysis is performed according to the relative position of the ink dot, the search range of the ink dot, the size of the ink dot, and the threshold of the ink dot to determine whether there is an ink dot. If the ink dot exists, the border of the ink dot is displayed on the image display component.

步骤四,程序最终提供出搜索到的每个芯片在图像上的中心坐标、角度以及是否有墨点;Step 4: The program finally provides the center coordinates, angle, and whether there is an ink dot for each chip found on the image;

步骤五,设定墨点参数和搜索参数:Step 5: Set ink dot parameters and search parameters:

所述墨点参数包括墨点模式、灰度闭值、斑点大小,当芯片亮度较高而墨点亮度较低时墨点模式为黑点白背景,当芯片亮度较低而墨点亮度较高时墨点模式为白点黑背景,灰度闭值用于分割图像以进行连通域分析,斑点大小用于过滤掉不符合墨点大小的连通域;The ink dot parameters include ink dot pattern, grayscale closed value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot pattern is black dots with white background. When the chip brightness is low and the ink dot brightness is high, the ink dot pattern is white dots with black background. The grayscale closed value is used to segment the image for connected domain analysis, and the spot size is used to filter out connected domains that do not meet the ink dot size.

所述搜索参数至少包括搜索个数、相似分数、搜索角度,搜索个数用于限定在当前场景中最多搜索的芯片数目,相似分数用于限定芯片与模板的最小相似程度,搜索角度用于限定符合搜索条件的芯片的角度范围;The search parameters include at least the number of searches, the similarity score, and the search angle. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions.

步骤六,根据步骤五中设定的墨点参数和搜索参数,以实施芯片特征匹配,所述芯片特征匹配包括特征一和特征二,特征一是单芯片的形状特征匹配,特征二是单芯片的角点特征匹配;Step 6, implementing chip feature matching according to the ink dot parameters and search parameters set in step 5, wherein the chip feature matching includes feature 1 and feature 2, wherein feature 1 is shape feature matching of a single chip, and feature 2 is corner feature matching of a single chip;

所述形状特征匹配是根据单芯片的长、宽、面积并通过连通域分析获得,其是对滤波后的单芯片图像进行直方图波形分析,当存在某一闭值使得根据该闭值对图像进行二值化后存在封闭的连通域,则选取这些连通域中最大的一个,该连通域就表示了芯片的内部区域,计算该连通域的长、宽、面积、中心,作为单芯片的形状特征;The shape feature matching is obtained based on the length, width and area of the single chip and through connected domain analysis, which is to perform histogram waveform analysis on the filtered single chip image. When there is a closed value that results in a closed connected domain after binarization of the image according to the closed value, the largest one of these connected domains is selected. The connected domain represents the internal area of the chip, and the length, width, area and center of the connected domain are calculated as the shape feature of the single chip.

所述角点特征匹配是提取单芯片图像中的角点以进行匹配。The corner point feature matching is to extract the corner points in the single chip image for matching.

本实施例的一种优选技术方案:所述芯片贴片精度视觉检测方法还包括模板处理,所述模板处理包括模板图像的获取、模板图像的预处理、模板选取是否得当判断、模板训练;A preferred technical solution of this embodiment: the chip placement accuracy visual inspection method further includes template processing, and the template processing includes acquiring a template image, preprocessing the template image, judging whether the template selection is appropriate, and template training;

所述模板图像的获取是通过使用鼠标在已加载的芯片图像上拖曳出矩形选取得到;The template image is obtained by dragging a rectangle on the loaded chip image with a mouse;

所述模板图像的预处理是获得模板图像后、提取模板特征前,先要对模板图像进行预处理,所述模板图像的预处理采用滤波处理以消除芯片图像中的噪声;The template image preprocessing is to preprocess the template image after obtaining the template image and before extracting the template features. The template image preprocessing adopts filtering processing to eliminate the noise in the chip image.

所述模板选取是否得当判断是当模板图像经过滤波处理后,要对模板图像是否选取得当进行判断;The judgment of whether the template is properly selected is to judge whether the template image is properly selected after the template image is filtered;

所述模板训练是当模板选取得当时,进行模板训练,该模板训练是模板特征的提取,该模板特征的提取是指所述芯片特征匹配。The template training is to perform template training when the template is selected. The template training is to extract the template features. The template feature extraction refers to the chip feature matching.

本实施例的一种优选技术方案:所述模板选取是否得当判断是基于团块分析的多目标分割方法,所选择的模板至少包括一个完整的芯片区域以提取其形状特征;A preferred technical solution of this embodiment: the judgment of whether the template selection is appropriate is based on a multi-target segmentation method of cluster analysis, and the selected template includes at least a complete chip area to extract its shape features;

首先对滤波后的模板图像进行直方图波形分析,当存在某一波谷的灰度值使得根据该闭值对图像进行二值化后存在封闭的连通域,白色被一个黑色包围,则称该白色为封闭连通域,反之亦然,且面积在一定范围内,则该闭值即为合理闭值,模板选取得当;否则,在模板平均灰度的一定波动范围内寻找可获得面积符合要求的封闭连通域的灰度作为合理闺值,当在这个范围内找不到合理闽值,则认为模板选取不合理,提示重新选取模板。First, the histogram waveform analysis is performed on the filtered template image. When there is a grayscale value at a certain trough so that there is a closed connected domain after the image is binarized according to the closed value, and the white is surrounded by a black, then the white is called a closed connected domain, and vice versa. If the area is within a certain range, then the closed value is a reasonable closed value, and the template is selected properly; otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is found as a reasonable minimum value. When no reasonable minimum value is found within this range, the template selection is considered unreasonable, and a prompt is given to reselect the template.

本实施例的一种优选技术方案:所述芯片贴片精度视觉检测方法还包括搜索区处理模块,所述搜索区处理模块是当模板设定好以后,对于任意搜索区在芯片图像上拖拽出的矩形,按照以下步骤找到其所包含的芯片:A preferred technical solution of this embodiment: the chip placement accuracy visual inspection method further includes a search area processing module. After the template is set, the search area processing module finds the chip contained in the rectangle dragged out by any search area on the chip image according to the following steps:

4.1,搜索区图像预处理:通过滤波处理,用于消除芯片图像中的各种噪声;4.1, Search area image preprocessing: Through filtering, it is used to eliminate various noises in the chip image;

4.2,搜索区图像多目标分割:对搜索区图像进行直方图波形分析,找到所有波谷对应的灰度值,对每一灰度值,以其为阐值分割图像并进行分析,按照模板的形状特征过滤链表,找到使符合条件的最多的灰度值作为最终的合理阐值,以其为阐值得到的链表中的每一个,都是一个潜在的芯片,对每一个芯片进行精确匹配和定位;4.2. Multi-target segmentation of search area image: Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the interpretation value to segment the image and analyze it. Filter the linked list according to the shape features of the template to find the grayscale value that meets the conditions the most as the final reasonable interpretation value. Each of the linked lists obtained with it as the interpretation value is a potential chip, and each chip is accurately matched and located.

4.3,疑似芯片精确匹配及缺陷芯片排除:在每个附近取比芯片模板大的图像块,进行局部直方图波形分析,找该局部图像块的合理闭值,若不存在,丢弃该疑似芯片,若存在,首先查看系统是否要求放弃墨点芯片,当要求排除墨点芯片,则用合理闭值对该局部块二值化,再进行分析,用墨点参数来过滤链表,当存在墨点,则为缺陷芯片,不再进行精确定位,若无墨点,则继续提取疑似芯片的角点特征,与模板芯片的角点进行匹配,若匹配度大于设定阐值在本系统中,该闭值设定为最大匹配点对数与允许相似度系数的乘积,则对该疑似芯片的边缘进行矩形拟合,得到疑似芯片的角度和中心,若角度在限定的搜索范围内,则为合格芯片。4.3. Accurate matching of suspected chips and exclusion of defective chips: Take an image block larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, binarize the local block with a reasonable closed value, and then analyze it. Use the ink dot parameters to filter the linked list. If there are ink dots, it is a defective chip and no longer requires precise positioning. If there are no ink dots, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient. Then, a rectangular fitting is performed on the edge of the suspected chip to obtain the angle and center of the suspected chip. If the angle is within the specified search range, it is a qualified chip.

本实施例的一种优选技术方案:所述芯片贴片精度视觉检测方法还包括缺陷芯片剔除模块,所述缺陷芯片剔除模块是通过图像处理检测出有缺陷的芯片,并将检测不合格的芯片淘汰。A preferred technical solution of this embodiment: the chip mounting accuracy visual inspection method also includes a defective chip elimination module, which detects defective chips through image processing and eliminates chips that fail the inspection.

本实施例的一种优选技术方案:所述缺陷芯片剔除模块是将具有缺陷的墨点芯片、具有缺陷的角度偏移芯片、具有缺陷的残缺芯片剔除;A preferred technical solution of this embodiment: the defective chip removal module removes defective ink dot chips, defective angle offset chips, and defective incomplete chips;

所述墨点芯片是晶片电路检测机在电气性能不合格的芯片表面打上的墨点标记,墨点标记在图像直方图上有明显的峰值;The ink dot chip is an ink dot mark made by a wafer circuit inspection machine on the surface of a chip with unqualified electrical performance, and the ink dot mark has an obvious peak on the image histogram;

所述角度偏移芯片是芯片因位置发生偏移而使芯片边缘与水平及垂直线具有一定夹角的芯片;The angle-shifted chip is a chip whose edge has a certain angle with the horizontal and vertical lines due to the chip's position shift;

所述残缺芯片是芯片表面有缺角、破损的芯片。The defective chip is a chip with a chip surface having a missing corner or being damaged.

本实施例的一种优选技术方案:所述缺陷芯片剔除模块包括墨点芯片剔除步骤、角度偏移芯片剔除步骤以及残缺芯片剔除方法;A preferred technical solution of this embodiment: the defective chip removal module includes an ink spot chip removal step, an angle deviation chip removal step and a defective chip removal method;

所述墨点芯片剔除步骤包括:The ink dot chip removal step comprises:

步骤一,在粗定位后所得的各疑似芯片区采用设定的灰度阐值将图像二值化;Step 1: Binarize the image of each suspected chip area obtained after rough positioning using a set grayscale value;

步骤二,对二值疑似芯片进行Blob分析,得到Blob链表;Step 2: Perform Blob analysis on the binary suspected chip to obtain a Blob linked list;

步骤三,用指定的斑点面积对所有连通域进行过滤,过滤完毕后,若没有符合要求的连通域,则为合格芯片,否则就表明该疑似芯片上有墨点,将有墨点的芯片剔除;Step 3: Filter all connected domains with the specified spot area. After filtering, if there is no connected domain that meets the requirements, it is a qualified chip. Otherwise, it indicates that there are ink spots on the suspected chip, and the chip with ink spots will be removed.

角度偏移芯片剔除步骤包括:The steps of angle offset chip rejection include:

步骤一,疑似芯片与模板芯片进行匹配;Step 1: matching the suspected chip with the template chip;

步骤二,若匹配成功则对疑似芯片的连通域的边缘进行最小面积外接矩形拟合,由此得到芯片的角度;Step 2: If the match is successful, the edge of the connected domain of the suspected chip is fitted with a minimum area circumscribed rectangle to obtain the angle of the chip;

步骤三,判断芯片的角度是否在允许范围内,若超出允许范围,予以剔除;Step 3: Determine whether the angle of the chip is within the allowable range. If it is beyond the allowable range, it will be removed;

所述残缺芯片剔除方法是通过将目标芯片与模板芯片面积进行比较来判断该目标芯片的面积是否符合要求,进而做出剔除或保留的决策。The defective chip elimination method is to compare the area of the target chip with the area of the template chip to determine whether the area of the target chip meets the requirements, and then make a decision to eliminate or retain.

实施例2:Embodiment 2:

以下是本发明芯片贴片精度视觉检测方法的详细实现过程:The following is a detailed implementation process of the chip placement accuracy visual detection method of the present invention:

2.系统总体设计:2. Overall system design:

2.1全自动贴片机视觉系统的主要任务是完成芯片的识别定位和缺陷检测,识别定位是确定芯片的位置,给出满足一定精度要求的芯片的中心位置坐标和旋转角度等结果参数,缺陷检测则要完成墨点、缺角等检测。在vc++6.0环境下实现的芯片识别和定位系统的方法流程、系统功能及实现效果进行介绍和评估。2.1 The main task of the vision system of the fully automatic placement machine is to complete the recognition and positioning of the chip and defect detection. Recognition and positioning is to determine the position of the chip and give the result parameters such as the center position coordinates and rotation angle of the chip that meet certain accuracy requirements. Defect detection is to complete the detection of ink dots, missing corners, etc. The method flow, system functions and implementation effects of the chip recognition and positioning system implemented in the vc++6.0 environment are introduced and evaluated.

2.2芯片识别及定位系统工作流程设计:2.2 Design of chip identification and positioning system workflow:

研究图像识别方法和流程是视觉识别系统的关键,系统识别精度和速度主要从视觉方法和识别流程上体现出来。采取怎样的方法和流程,使得它在满足元器件识别精度要求的情况下,以最快的速度得到准确的元器件信息实现元器件的识别,是本节研究的重点问题之一。Studying image recognition methods and processes is the key to visual recognition systems. The system recognition accuracy and speed are mainly reflected in the visual methods and recognition processes. What methods and processes should be adopted to obtain accurate component information at the fastest speed to achieve component recognition while meeting the component recognition accuracy requirements is one of the key issues studied in this section.

全自动贴片机视觉系统执行过程中,通常遵循参数设置、模板设置、芯片识别和定位、缺陷芯片剔除的次序执行。本发明的基本处理流程如图3所示。During the execution of the visual system of the fully automatic placement machine, the following order is usually followed: parameter setting, template setting, chip identification and positioning, and defective chip removal. The basic processing flow of the present invention is shown in FIG3 .

2.2.1参数设置及特征描述:2.2.1 Parameter settings and feature description:

根据实际要求,本系统中的参数主要包括墨点参数与搜索参数两部分。According to actual requirements, the parameters in this system mainly include two parts: ink dot parameters and search parameters.

(1)墨点参数(1) Ink dot parameters

墨点参数主要用于缺陷芯片检测时判断芯片上是否有人工标记的墨点,主要包括墨点模式、灰度闭值、斑点大小。当芯片亮度较高而墨点亮度较低时墨点模式为“黑点白背景”、当芯片亮度较低而墨点亮度较高时墨点模式为“白点黑背景”灰度闭值用于分割图像以进行连通域分析斑点大小用于过滤掉不符合墨点大小的连通域。The ink dot parameters are mainly used to determine whether there are artificially marked ink dots on the chip during defective chip detection, mainly including ink dot mode, grayscale closing value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot mode is "black dots with white background", and when the chip brightness is low and the ink dot brightness is high, the ink dot mode is "white dots with black background". The grayscale closing value is used to segment the image for connected domain analysis. The spot size is used to filter out connected domains that do not meet the ink dot size.

(2)搜索参数(2) Search parameters

搜索参数主要包括搜索个数、相似分数、搜索角度等。搜索个数用于限定在当前场景中最多搜索的芯片数目相似分数用于限定芯片与模板的最小相似程度搜索角度用于限定符合搜索条件的芯片的角度范围。The search parameters mainly include the number of searches, similarity score, search angle, etc. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions.

本系统所采用的特征匹配方案中,包含了两种类型的特征,这两种特征及其提取方法如下所述。The feature matching scheme adopted by this system includes two types of features. These two features and their extraction methods are described as follows.

(1)单芯片的长、宽、面积等形状特征(1) Shape characteristics of a single chip, such as length, width, and area

单芯片的形状特征通过连通域分析分析获得。首先对滤波后的单芯片图像进行直方图波形分析,如果存在某一闭值使得根据该闭值对图像进行二值化后存在封闭的连通域,那么选取这些连通域中最大的一个,该连通域就表示了芯片的内部区域。计算该连通域的长、宽、面积、中心,作为单芯片的形状特征。The shape features of a single chip are obtained through connected domain analysis. First, the filtered single chip image is analyzed by histogram waveform. If there is a closed value that results in a closed connected domain after the image is binarized according to the closed value, then the largest of these connected domains is selected, and the connected domain represents the internal area of the chip. The length, width, area, and center of the connected domain are calculated as the shape features of the single chip.

(2)单芯片的角点特征:(2) Corner features of a single chip:

在几种角点提取方法中,法效率高、抗噪力强,因此本发明选用角点提取法来提取单芯片图像中的角点。Among several corner point extraction methods, the method has high efficiency and strong noise resistance. Therefore, the present invention selects the corner point extraction method to extract the corner points in the single-chip image.

2.2.2模板处理:2.2.2 Template processing:

本发明所完成芯片识别及定位系统是基于模板匹配来实现的。因此在实现合格芯片的准确定位前,首先必须设置芯片的模板,并提取芯片模板的特征。The chip identification and positioning system implemented by the present invention is implemented based on template matching. Therefore, before accurately positioning a qualified chip, the chip template must first be set and the features of the chip template must be extracted.

(1)模板图像的获取:(1) Acquisition of template image:

模板图像的获取可通过使用鼠标在已加载的芯片图像上拖曳出矩形选取得到。The template image can be obtained by dragging a rectangular selection on the loaded chip image with the mouse.

(2)模板图像预处理:(2) Template image preprocessing:

获得模板图像后,提取模板特征前,先要对模板图像进行预处理。主要是滤波处理,用于消除芯片图像中的各种噪声。鉴于滤波可以在滤除图像中噪声的同时很好的保护芯片图像的边缘和角,很适合于本论文的基于特征进行图像匹配的思想。因此本发明选用滤波。After obtaining the template image, the template image must be preprocessed before extracting the template features. The main processing is filtering, which is used to eliminate various noises in the chip image. Since filtering can well protect the edges and corners of the chip image while filtering out the noise in the image, it is very suitable for the idea of image matching based on features in this paper. Therefore, the present invention selects filtering.

(3)模板选取是否得当判断:(3) Whether the template selection is appropriate:

模板图像经过滤波处理,首先要对模板图像是否选取得当进行判断。由于本发明采用基于团块分析的多目标分割方法,因此要求所选择的模板必需至少包括一个完整的芯片区域以提取其形状特征。首先对滤波后的模板图像进行直方图波形分析,如果存在某一波谷的灰度值使得根据该闭值对图像进行二值化后存在封闭的连通域如某白色被一个黑色包围,则称该白色为封闭连通域,反之亦然,且面积在一定范围内,则该闭值即为合理闭值,模板选取得当。否则,在模板平均灰度的一定波动范围内寻找可获得面积符合要求的封闭连通域的灰度作为合理闺值。如果在这个范围内找不到合理闽值,则认为模板选取不合理,提示重新选取模板。如图4,展示了合格的模板芯片与不合格的模板芯片及其分别对应的封闭连通域和不封闭连通域。After the template image is filtered, it is first necessary to judge whether the template image is properly selected. Since the present invention adopts a multi-target segmentation method based on cluster analysis, it is required that the selected template must include at least a complete chip area to extract its shape features. First, the filtered template image is subjected to a histogram waveform analysis. If there is a grayscale value of a certain trough so that a closed connected domain exists after the image is binarized according to the closed value, such as a white surrounded by a black, then the white is called a closed connected domain, and vice versa, and the area is within a certain range, then the closed value is a reasonable closed value, and the template is properly selected. Otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is found as a reasonable value. If no reasonable value can be found within this range, it is considered that the template selection is unreasonable, and a prompt is given to reselect the template. As shown in Figure 4, qualified template chips and unqualified template chips and their corresponding closed connected domains and unclosed connected domains are shown.

(4)模板训练(4) Template training

当模板选取得当时,可以进行模板训练,即模板特征的提取。上文已经提到过模板特征包括两个方面的特征,形状特征的提取方法是使用合理闽值对模板图像进行二值化,对二值化后的图像进行分析,选取这些连通域中最大的一个,计算该连通域的长、宽、面积、中心,作为模板的形状特征。角点特征提取方法是使用SUSAN方法对模板图像提取特征点并计算特征。When the template is selected, the template training can be performed, that is, the extraction of template features. As mentioned above, the template features include two aspects of features. The shape feature extraction method is to use a reasonable threshold to binarize the template image, analyze the binarized image, select the largest of these connected domains, and calculate the length, width, area, and center of the connected domain as the shape feature of the template. The corner feature extraction method is to use the SUSAN method to extract feature points from the template image and calculate the features.

2.2.3搜索区处理2.2.3 Search Area Processing

模板设定好以后,对于任意搜索区在芯片图像上拖拽出的矩形,可按照如下步骤找到其所包含的芯片After the template is set, for any search area, drag the rectangle on the chip image to find the chip it contains according to the following steps:

(1)搜索区图像预处理(1) Search area image preprocessing

主要是滤波处理,用于消除芯片图像中的各种噪声。本发明选用滤波。The main process is filtering, which is used to eliminate various noises in the chip image. The present invention uses filtering.

(2)搜索区图像多目标分割(2) Multi-target segmentation of search area images

对搜索区图像进行直方图波形分析,找到所有波谷对应的灰度值。对每一灰度值,以其为阐值分割图像并进行分析,按照模板的形状特征过滤链表,找到可使符合条件的最多的那个灰度值作为最终的合理阐值。以其为闽值得到的链表中的每一个,都是一个潜在的芯片,需要对其进行精确匹配和定位。Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the threshold to segment the image and analyze it. Filter the linked list according to the shape characteristics of the template to find the grayscale value that meets the conditions the most as the final reasonable threshold. Each of the linked lists obtained with it as the threshold is a potential chip that needs to be accurately matched and located.

(3)疑似芯片精确匹配及缺陷芯片排除(3) Accurate matching of suspected chips and elimination of defective chips

在每个附近取比芯片模板稍大的图像块,进行局部直方图波形分析,找该局部图像块的合理闭值,若不存在,丢弃该疑似芯片若存在,首先查看系统是否要求放弃墨点芯片,如果要求排除墨点芯片,则首先用合理闭值对该局部块二值化,再进行分析,用墨点参数来过滤链表,如果存在墨点,则为缺陷芯片,不再进行精确定位若无墨点,则继续提取疑似芯片的角点特征,与模板芯片的角点进行匹配,若匹配度大于设定阐值在本系统中,该闭值设定为最大匹配点对数与允许相似度系数的乘积,则对该疑似芯片的边缘进行矩形拟合,得到疑似芯片的角度和中心。如角度在限定的搜索范围内,则为合格芯片。Take an image block slightly larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, first use a reasonable closed value to binarize the local block, then analyze it, and use the ink dot parameter to filter the linked list. If there is an ink dot, it is a defective chip and no longer needs to be accurately positioned. If there is no ink dot, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set interpretation value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient, then the edge of the suspected chip is rectangular fitted to obtain the angle and center of the suspected chip. If the angle is within the limited search range, it is a qualified chip.

2.2.4缺陷芯片剔除2.2.4 Defective chip removal

半导体芯片制造的固有特性是制造过程缺陷的不可恢复性。有缺陷的芯片将不可能得到恢复,造成成品率的严重损失。芯片缺陷检测就是通过图像处理方法检测出有缺陷的芯片,并将检测不合格的芯片淘汰,是视觉检测中很重要的部分。图一展示了几种常见的缺陷芯片,包括墨点芯片、残缺芯片、角度偏移芯片等。The inherent characteristic of semiconductor chip manufacturing is the irrecoverability of defects in the manufacturing process. Defective chips will not be able to be recovered, resulting in a serious loss of yield. Chip defect detection is to detect defective chips through image processing methods and eliminate unqualified chips. It is a very important part of visual inspection. Figure 1 shows several common defective chips, including ink dot chips, defective chips, angle offset chips, etc.

在本发明中,缺陷芯片主要是指墨点芯片。墨点芯片是最常出现的一类缺陷芯片。墨点是晶片电路检测机在电气性能不合格的芯片表面打上的标记。墨点在颜色、位置及大小形状上一般都比较稳定,在图像直方图上有明显的峰值。其它类型的缺陷芯片还包括角度偏移芯片、残缺芯片等。角度偏移芯片是指芯片因位置发生偏移而使芯片边缘与水平及垂直线具有一定夹角的芯片残缺芯片是指芯片表面有缺角、破损等情况的芯片。在本发明中也采用了相应的办法来剔除此类缺陷芯片。In the present invention, defective chips mainly refer to ink dot chips. Ink dot chips are the most common type of defective chips. Ink dots are marks made by the wafer circuit inspection machine on the surface of chips with unqualified electrical performance. Ink dots are generally stable in color, position, size and shape, and have obvious peaks on the image histogram. Other types of defective chips include angle-shifted chips, defective chips, etc. An angle-shifted chip refers to a chip whose edge has a certain angle with the horizontal and vertical lines due to position offset. A defective chip refers to a chip with missing corners, damage, etc. on the surface of the chip. In the present invention, a corresponding method is also adopted to eliminate such defective chips.

(1)墨点芯片的剔除(1) Removal of ink dot chips

墨点芯片的检测,要用到所设定的墨点参数“灰度阐值”及“斑点面积”。墨点检测基本思想是寻找墨点检测区域内黑色像素点组成的连通域,如果存在这样的连通域,判断其面积是否大于设定的闭值,若大于阐值,则判定芯片中存在墨点。The detection of ink dot chips requires the set ink dot parameters "grayscale value" and "spot area". The basic idea of ink dot detection is to find a connected domain composed of black pixels in the ink dot detection area. If such a connected domain exists, determine whether its area is greater than the set closed value. If it is greater than the value, it is determined that there are ink dots in the chip.

步骤如下:Here are the steps:

(a)在粗定位后所得的各疑似芯片区采用设定的灰度阐值将图像二值化;(a) After rough positioning, each suspected chip area is binarized using a set grayscale value;

(b)对二值疑似芯片进行Blob分析,得到Blob链表;(b) Performing Blob analysis on the binary suspected chip to obtain a Blob linked list;

(c)用指定的斑点面积对所有连通域进行过滤,过滤完毕后如果没有符合要求的连通域,则说明有可能是合格芯片否则就表明该疑似芯片上有墨点,应予以剔除。(c) All connected domains are filtered using the specified spot area. If there are no connected domains that meet the requirements after filtering, it means that there may be qualified chips. Otherwise, it means that there are ink spots on the suspected chip and it should be discarded.

(2)其它缺陷芯片的剔除(2) Elimination of other defective chips

角度偏移芯片的剔除要用到所设定的“搜索角度范围”这一参数。首先要进行角度检测,角度检测的任务是对芯片角度进行计算,然后根据计算得到的结果判断芯片是否发生了角度偏移,以及芯片角度偏移是否在允许范围之内。这里芯片角度是指芯片下边缘或上边缘相对轴的夹角。The elimination of angle-shifted chips requires the set "search angle range" parameter. First, angle detection is performed. The task of angle detection is to calculate the chip angle, and then determine whether the chip has angle shifted based on the calculated result, and whether the chip angle shift is within the allowable range. The chip angle here refers to the angle between the lower edge or upper edge of the chip and the axis.

步骤如下:Here are the steps:

(a)疑似芯片与模板芯片进行匹配;(a) The suspected chip is matched with the template chip;

(b)若匹配成功则对疑似芯片的连通域的边缘进行最小面积外接矩形拟合,由此得到芯片的角度;(b) If the match is successful, the minimum area circumscribed rectangle is fitted to the edge of the connected domain of the suspected chip, thereby obtaining the angle of the chip;

(c)判断芯片的角度是否在允许范围内,若超出允许范围,予以剔除。(c) Determine whether the angle of the chip is within the allowable range. If it is beyond the allowable range, it will be rejected.

残缺芯片的剔除主要是通过将目标芯片与模板芯片面积进行比较来判断该芯片的面积是否符合要求,进而做出剔除或保留的决策。The removal of defective chips is mainly done by comparing the target chip with the template chip area to determine whether the chip area meets the requirements, and then making a decision to remove or retain it.

如图11-12,贴片机对芯片进行贴装前,需要对芯片进行缺陷检测及位姿获取,一方面用于确保待贴装芯片的完好度,剔除有缺陷的芯片;另一方面用于获取待贴装芯片的位姿信息,用于后续对芯片的位姿补偿。总结而言,在贴片机的工作流程中,对芯片的缺陷检测和位姿获取是保证芯片能够正确贴装的关键,在本贴片机芯片的检测与定位系统中,需要对芯片进行示教过程和检测过程,其中示教过程是在无任何先验数据的情况下对完整无缺陷的芯片进行一系列的方法流程后获取芯片的数据信息,保存在数据库中作为检测过程的标准数据;检测过程是设计一套方法对待检测的芯片获取需要检测的数据,并将其与标准数据相比较,在确定芯片各项数据都在标准范围内,对芯片再设计相应的方法完成定位过程。示教过程的流程图如图11所示,检测过程如图12所示,可以看出,芯片的示教过程与检测过程在图像预处理和图像特征提取步骤完全一致,方法的复用性很高,减少了方法所占内存,在对芯片进行检测与定位的时候,首先需要选取一个完好无损的芯片作为示教过程的输入图像,获取该芯片的数据信息保存在数据库中,再将待检测的同类型芯片作为检测过程的输入图像,实现无先验数据的芯片缺陷检测,在确认芯片无任何缺陷后,对芯片进行定位,为贴片机实现精确贴装做准备。As shown in Figure 11-12, before the chip mounter mounts the chip, it is necessary to perform defect detection and position acquisition on the chip. On the one hand, it is used to ensure the integrity of the chip to be mounted and remove defective chips; on the other hand, it is used to obtain the position information of the chip to be mounted for subsequent position compensation of the chip. In summary, in the workflow of the chip mounter, defect detection and position acquisition of the chip are the key to ensure that the chip can be mounted correctly. In the detection and positioning system of the chip of this chip mounter, the chip needs to be taught and tested. The teaching process is to obtain the chip data information after a series of method processes for the complete and defect-free chip without any prior data, and save it in the database as the standard data of the detection process; the detection process is to design a set of methods to obtain the data required for detection from the chip to be detected, and compare it with the standard data. After confirming that all the data of the chip are within the standard range, the corresponding method is designed for the chip to complete the positioning process. The flowchart of the teaching process is shown in Figure 11, and the detection process is shown in Figure 12. It can be seen that the teaching process and the detection process of the chip are completely consistent in the image preprocessing and image feature extraction steps. The method has high reusability and reduces the memory occupied by the method. When detecting and positioning the chip, it is first necessary to select an intact chip as the input image of the teaching process, obtain the data information of the chip and save it in the database, and then use the same type of chip to be detected as the input image of the detection process to realize chip defect detection without prior data. After confirming that the chip has no defects, the chip is positioned to prepare for the placement machine to achieve precise placement.

为了验证本方法的鲁棒性,需要对获取到的原图像加入不同强度的椒盐噪声,对加入噪声后的芯片图像应用本发明所设计的检测与定位方法,本发明对椒盐噪声的强度从0.01逐步增长为0.1,增加步长为0.01,如图5-7表示椒盐噪声强度在0.01时各步骤方法处理结果示意图,图8-10表示椒盐噪声强度在0.1时的各步骤方法处理结果示意图。In order to verify the robustness of the method, it is necessary to add salt and pepper noise of different intensities to the acquired original image, and apply the detection and positioning method designed by the present invention to the chip image after the noise is added. The intensity of the salt and pepper noise is gradually increased from 0.01 to 0.1, and the step size is 0.01. Figures 5-7 are schematic diagrams of the processing results of each step of the method when the salt and pepper noise intensity is 0.01, and Figures 8-10 are schematic diagrams of the processing results of each step of the method when the salt and pepper noise intensity is 0.1.

由图5-7和图8-10可以看出,在加入不同强度的椒盐噪声后,经过光照不均匀校正、最大类间方差法以及形态学开操作闭操作等图像预处理算法后,被椒盐噪声污染的芯片图像也能获得一幅理想的二值图像,后续对焊球关键边缘点集的提取并没有受到噪声的影响,以焊球关键点集拟合出的最小二乘圆结果准确,表1列出了经过不同强度的椒盐噪声污染后芯片检测和定位的结果:It can be seen from Figures 5-7 and 8-10 that after adding salt and pepper noise of different intensities, after image preprocessing algorithms such as illumination unevenness correction, maximum inter-class variance method, and morphological opening and closing operations, the chip image contaminated by salt and pepper noise can also obtain an ideal binary image. The subsequent extraction of the key edge point set of the solder ball is not affected by the noise, and the least squares circle fitted by the solder ball key point set is accurate. Table 1 lists the results of chip detection and positioning after being contaminated by salt and pepper noise of different intensities:

从测试结果可以看出,加入不同强度的椒盐噪声后,芯片的检测与定位结果很稳定,焊球个数的检测结果保持不变,焊球直径的变化最大误差为0.03mm,芯片中心与图像中心的x偏移量最大误差为0.021mm,芯片中心与图像中心的y偏移量最大误差为0.016mm,芯片的偏转角度最大误差为0.186度,可以很好的满足贴片机的贴装精度。From the test results, it can be seen that after adding salt and pepper noise of different intensities, the detection and positioning results of the chip are very stable, the detection results of the number of solder balls remain unchanged, the maximum error of the change in solder ball diameter is 0.03mm, the maximum error of the x offset between the chip center and the image center is 0.021mm, the maximum error of the y offset between the chip center and the image center is 0.016mm, and the maximum error of the chip deflection angle is 0.186 degrees, which can well meet the placement accuracy of the placement machine.

以下是本发明与现有技术的区别:The following are the differences between the present invention and the prior art:

(1)首先对相机拍摄的图片进行预处理操作,通过直方图直观判断和灰度值计算精确判断光照强度,分析了多种滤波方法的原理和利弊,提出了去噪且保护边缘信息的自适应中值算法,有效去除椒盐噪声。基于灰度值的图像分割方法,提出了基于传统OTSU算法的二维OTSU算法和分水岭算法,分析三种方法的分割结果和运行时间,仍然选择运行时间最短且分割结果满足要求的OTSU算法。(1) First, the images taken by the camera are preprocessed, and the light intensity is accurately judged through intuitive judgment of the histogram and grayscale value calculation. The principles and advantages and disadvantages of various filtering methods are analyzed, and an adaptive median algorithm that removes noise and protects edge information is proposed to effectively remove salt and pepper noise. Based on the grayscale image segmentation method, a two-dimensional OTSU algorithm and a watershed algorithm based on the traditional OTSU algorithm are proposed. The segmentation results and running time of the three methods are analyzed, and the OTSU algorithm with the shortest running time and satisfactory segmentation results is still selected.

(2)提出了芯片信息获取的算法。分析传统爬虫法的原理及缺点,采用八邻域跟踪算法对图像提取轮廓,同时考虑到OTSU算法是全局性,不能满足局部要求,再次对轮廓进行有效筛选。提出了改进初始中心点的k-means聚类算法实现上下部管脚分割,提出了基于凸包最小外接矩形的方法实现芯片粗略定位,并利用仿射变换方法对芯片轮廓转正。采用垂直投影法对上部和下部管脚标记以及根据坐标特点进行管脚足部和根部分割方法。提出了基于投影法和直接法两种参数检测方法,比较算法的准确性,选择后者能够实现高精度的芯片参数检测。(2) An algorithm for acquiring chip information is proposed. The principles and shortcomings of the traditional crawler method are analyzed, and the eight-neighborhood tracking algorithm is used to extract the contour of the image. At the same time, considering that the OTSU algorithm is global and cannot meet local requirements, the contour is effectively screened again. An improved k-means clustering algorithm with the initial center point is proposed to achieve the segmentation of the upper and lower pins. A method based on the minimum circumscribed rectangle of the convex hull is proposed to achieve rough positioning of the chip, and the affine transformation method is used to correct the chip contour. The vertical projection method is used to mark the upper and lower pins, and the pin foot and root are segmented according to the coordinate characteristics. Two parameter detection methods based on the projection method and the direct method are proposed. The accuracy of the algorithm is compared, and the latter is selected to achieve high-precision chip parameter detection.

(3)针对TR型芯片的特点,本专利提出了三种芯片定位的方法。基于图像分割的方法是在图像分割获取上部和下部足部轮廓的基础上,根据足部拟合直线以及轮廓最小外接矩形来实现。基于边缘灰度匹配和边缘梯度匹配都属于轮廓匹配的方法,两者分别提取边缘灰度值和梯度值作为特征,并提出了金字塔缩放来提高算法的效率。分析芯片偏移角度过大、管脚缺失、高度偏移、以及位置偏移等缺陷可能,并且根据缺陷管脚特点设计针对芯片的缺陷检测系统,能够将缺陷芯片检测出来。(3) Aiming at the characteristics of TR type chips, this patent proposes three chip positioning methods. The method based on image segmentation is based on obtaining the upper and lower foot contours through image segmentation, and is implemented according to the foot fitting straight line and the minimum circumscribed rectangle of the contour. Both edge grayscale matching and edge gradient matching belong to contour matching methods. Both extract edge grayscale values and gradient values as features, respectively, and propose pyramid scaling to improve the efficiency of the algorithm. The possible defects of chip offset angles, missing pins, height offset, and position offset are analyzed, and a defect detection system for the chip is designed according to the characteristics of the defective pins, so that defective chips can be detected.

(4)测试算法主要测试算法的精确性和稳定性,测试分为管脚参数算法测试和定位算法测试两大部分。管脚参数算法的误差范围在±0.1mm范围内,算法精度满足需求,同时检测光照变化情况下,算法基本上维持稳定。通过多组数据比较三种定位算法的精确性,均能满足±0.2°的精度要求,比较算法时间及复杂度,选择基于图像分割定位方法。同时检测该方法的稳定性,比较同一芯片在不同光照情况下的定位结果,结果相对集中,受光照影响不大,算法相对稳定。(4) The test algorithm mainly tests the accuracy and stability of the algorithm. The test is divided into two parts: pin parameter algorithm test and positioning algorithm test. The error range of the pin parameter algorithm is within ±0.1mm, and the algorithm accuracy meets the requirements. At the same time, when the illumination changes, the algorithm basically remains stable. The accuracy of the three positioning algorithms is compared through multiple sets of data. They can all meet the accuracy requirement of ±0.2°. The algorithm time and complexity are compared, and the positioning method based on image segmentation is selected. At the same time, the stability of the method is tested, and the positioning results of the same chip under different illumination conditions are compared. The results are relatively concentrated, not greatly affected by illumination, and the algorithm is relatively stable.

以上所述仅为本发明的优选实施方式,并非因此限制本发明的发明范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的发明保护范围内。The above description is only a preferred embodiment of the present invention, and does not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the protection scope of the present invention.

Claims (7)

1. The chip patch precision visual detection method is characterized by comprising a chip identification and positioning system, wherein the chip identification and positioning system comprises the following components:
a. An image display component for displaying the acquired image and setting a template, ink points, a range of search areas on the image and displaying the identified search results;
b. The template component is provided with a template selection, a template training, a template storage and a template loading;
c. the ink dot interface component is used for analyzing the ink dots according to the positions, the ranges, the sizes and the closing values of the ink dots in the a, and displaying the frames of the ink dots on the image display component;
the chip patch precision visual detection method comprises the following steps:
Step one, designating a search area on a captured image, and comparing and analyzing according to the set similarity and a template;
Marking the analysis result in the first step on the image display component, and marking the calculated result angle marking frame and the center coordinates of the result angle marking frame by a cross;
Thirdly, when the ink dot analysis is optional, calculating the relative position of the ink dot according to the template range and the position of the ink dot, carrying out ink dot analysis on each result according to the relative position of the ink dot, the searching range of the ink dot, the size of the ink dot and the threshold value of the ink dot, judging whether the ink dot exists, and displaying the frame of the ink dot on the image display component when the ink dot exists;
Step four, the program finally provides the searched central coordinates and angles of each chip on the image and whether ink points exist or not;
step five, setting ink point parameters and search parameters:
The ink dot parameters comprise an ink dot mode, a gray scale closed value and a spot size, wherein the ink dot mode is a black dot white background when the brightness of a chip is higher and the brightness of the ink dot is lower, the ink dot mode is a white dot black background when the brightness of the chip is lower and the brightness of the ink dot is higher, the gray scale closed value is used for dividing an image to perform connected domain analysis, and the spot size is used for filtering out the connected domain which does not accord with the size of the ink dot;
the search parameters at least comprise search number, similarity score and search angle, wherein the search number is used for limiting the number of chips which are searched most in the current scene, the similarity score is used for limiting the minimum similarity degree of the chips and the templates, and the search angle is used for limiting the angle range of the chips which meet the search condition;
Step six, according to the ink dot parameters and the search parameters set in the step five, chip feature matching is implemented, wherein the chip feature matching comprises feature one and feature two, the feature one is single chip shape feature matching, and the feature two is single chip corner feature matching;
The shape feature matching is obtained according to the length, width and area of a single chip and through connected domain analysis, wherein the shape feature matching is to conduct histogram waveform analysis on a filtered single chip image, when a certain closed value exists to enable the image to be binarized according to the closed value and then a closed connected domain exists, the largest one of the connected domains is selected, the connected domain represents the inner area of the chip, and the length, width, area and center of the connected domain are calculated and used as the shape feature of the single chip;
the corner feature matching is to extract corners in the single chip image for matching.
2. The chip mounting precision visual inspection method according to claim 1, further comprising template processing, wherein the template processing comprises template image acquisition, template image preprocessing, template selection judging whether the template is proper or not, and template training;
the template image is obtained by dragging a rectangle on the loaded chip image by using a mouse;
The preprocessing of the template image is to preprocess the template image after the template image is obtained and before the template features are extracted, and the preprocessing of the template image adopts filtering processing to eliminate noise in the chip image;
Judging whether the template is properly selected or not when the template image is subjected to filtering treatment, and judging whether the template image is properly selected or not;
The template training is to perform template training when a template is selected, wherein the template training is extraction of template features, and the extraction of the template features refers to the chip feature matching.
3. The visual inspection method of chip mounting accuracy according to claim 2, wherein the template selection is a multi-objective segmentation method based on mass analysis, the selected template including at least one complete chip area to extract its shape features;
Firstly, carrying out histogram waveform analysis on a filtered template image, when a gray value of a certain trough exists so that a closed connected domain exists after binarizing the image according to the closed value, wherein white is surrounded by black, the white is called as the closed connected domain, and vice versa, and the area is in a certain range, the closed value is a reasonable closed value, and the template is selected properly; otherwise, searching the gray level of the closed connected domain with the available area meeting the requirement in a certain fluctuation range of the average gray level of the template to be used as a reasonable girlfriend value, and when the reasonable threshold value cannot be found in the range, judging that the template selection is unreasonable, and prompting the template reselection.
4. The visual inspection method of chip mounting accuracy according to claim 1, further comprising a search area processing module, wherein the search area processing module is configured to find the chip contained in any rectangle dragged by the search area on the chip image after the template is set, according to the following steps:
4.1, search area image preprocessing: the method is used for eliminating various noises in the chip image through filtering;
4.2, search area image multi-target segmentation: carrying out histogram waveform analysis on the search area image, finding gray values corresponding to all wave troughs, dividing the image by taking each gray value as an illustration value, analyzing, filtering a linked list according to the shape characteristics of a template, finding the most gray value meeting the condition as a final reasonable illustration value, taking each linked list obtained by taking the gray value as the illustration value as a potential chip, and carrying out accurate matching and positioning on each chip;
4.3, accurately matching suspected chips and eliminating defective chips: and (3) taking an image block larger than a chip template nearby each image block, carrying out local histogram waveform analysis, finding out a reasonable closed value of the local image block, discarding the suspected chip if the reasonable closed value does not exist, firstly checking whether the system requires discarding the ink dot chip, binarizing the local block by using the reasonable closed value when the ink dot chip is required to be removed, carrying out analysis, filtering a linked list by using ink dot parameters, if the ink dot exists, carrying out accurate positioning no longer, if the ink dot does not exist, continuing to extract the corner characteristic of the suspected chip, matching with the corner of the template chip, if the matching degree is larger than the set value, setting the closed value as the product of the maximum matching point logarithm and the allowable similarity coefficient, carrying out rectangular fitting on the edge of the suspected chip, and obtaining the angle and the center of the suspected chip, and if the angle is within a limited search range, obtaining the qualified chip.
5. The visual inspection method of chip mounting accuracy according to claim 1, further comprising a defective chip removing module that detects defective chips by image processing and rejects chips that are not qualified for inspection.
6. The visual inspection method of chip mounting accuracy according to claim 5, wherein the defective chip removing module removes defective ink dot chips, defective angle offset chips, defective chips;
The ink dot chip is an ink dot mark marked on the surface of the chip with unqualified electrical performance by the wafer circuit detector, and the ink dot mark has obvious peak value on an image histogram;
The angle offset chip is a chip with a certain included angle between the edge of the chip and the horizontal and vertical lines due to the offset of the chip;
The incomplete chip is a chip with unfilled corners and broken surfaces.
7. The method according to claim 6, wherein the defective chip removing module includes an ink dot chip removing step, an angle offset chip removing step, and a defective chip removing method;
The ink dot chip removing step comprises the following steps:
Firstly, binarizing an image by adopting a set gray-scale value in each suspected chip area obtained after coarse positioning;
secondly, performing Blob analysis on the binary suspected chip to obtain a Blob linked list;
step three, filtering all the connected domains by using the appointed spot area, if the connected domains meeting the requirements are not available after the filtering is finished, the chips are qualified, otherwise, the suspected chips are indicated to have ink points, and the chips with the ink points are removed;
The angle offset chip removing step comprises the following steps:
step one, matching a suspected chip with a template chip;
If the matching is successful, performing minimum area circumscribed rectangle fitting on the edge of the communication domain of the suspected chip, thereby obtaining the angle of the chip;
judging whether the angle of the chip is within an allowable range or not, and if the angle exceeds the allowable range, rejecting;
the incomplete chip removing method is to compare the area of the target chip with the area of the template chip to judge whether the area of the target chip meets the requirement or not, so as to make a removing or retaining decision.
CN202310292097.7A 2023-03-23 2023-03-23 Chip patch precision visual detection method Pending CN118566248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310292097.7A CN118566248A (en) 2023-03-23 2023-03-23 Chip patch precision visual detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310292097.7A CN118566248A (en) 2023-03-23 2023-03-23 Chip patch precision visual detection method

Publications (1)

Publication Number Publication Date
CN118566248A true CN118566248A (en) 2024-08-30

Family

ID=92473480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310292097.7A Pending CN118566248A (en) 2023-03-23 2023-03-23 Chip patch precision visual detection method

Country Status (1)

Country Link
CN (1) CN118566248A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600600A (en) * 2016-12-26 2017-04-26 华南理工大学 Wafer defect detection method based on characteristic matching
CN109507209A (en) * 2019-01-22 2019-03-22 中科院金华信息技术有限公司 A kind of film printing defect detecting system and method
CN111982931A (en) * 2020-08-27 2020-11-24 惠州高视科技有限公司 High-precision wafer surface defect detection device and detection method thereof
CN113362306A (en) * 2021-06-07 2021-09-07 中山大学 Packaged chip defect detection method based on deep learning
WO2021208875A1 (en) * 2020-04-17 2021-10-21 华为技术有限公司 Visual detection method and visual detection apparatus
CN115511966A (en) * 2022-10-08 2022-12-23 合肥安迅精密技术有限公司 Component identification and positioning method and system based on angular point detection and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600600A (en) * 2016-12-26 2017-04-26 华南理工大学 Wafer defect detection method based on characteristic matching
CN109507209A (en) * 2019-01-22 2019-03-22 中科院金华信息技术有限公司 A kind of film printing defect detecting system and method
WO2021208875A1 (en) * 2020-04-17 2021-10-21 华为技术有限公司 Visual detection method and visual detection apparatus
CN113552123A (en) * 2020-04-17 2021-10-26 华为技术有限公司 Visual inspection method and visual inspection device
CN111982931A (en) * 2020-08-27 2020-11-24 惠州高视科技有限公司 High-precision wafer surface defect detection device and detection method thereof
CN113362306A (en) * 2021-06-07 2021-09-07 中山大学 Packaged chip defect detection method based on deep learning
CN115511966A (en) * 2022-10-08 2022-12-23 合肥安迅精密技术有限公司 Component identification and positioning method and system based on angular point detection and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李蕊艳: ""基于机器视觉的芯片识别及定位软件的研究开发"", 《中国优秀硕士学位论文全文数据库》, no. 2011, 15 December 2011 (2011-12-15), pages 6 - 7 *

Similar Documents

Publication Publication Date Title
CN107945184B (en) Surface-mounted component detection method based on color image segmentation and gradient projection positioning
CN113724216B (en) Method and system for detecting wave crest welding spot defects
Anitha et al. A survey on defect detection in bare PCB and assembled PCB using image processing techniques
CN106053479B (en) A kind of vision detection system of the workpiece appearance defects based on image procossing
CN104981105B (en) A kind of quickly accurate detection and method for correcting error for obtaining element central and deflection angle
CN115791822A (en) Visual detection algorithm and detection system for wafer surface defects
CN109767445B (en) A high-precision intelligent detection method for PCB defects
CN106501272B (en) Machine vision soldering tin positioning detection system
CN106651857B (en) A kind of printed circuit board patch defect detection method
CN108830838A (en) A kind of pcb board incompleteness Trigger jitter detection method of sub-pixel
Liu et al. A novel industrial chip parameters identification method based on cascaded region segmentation for surface-mount equipment
CN110473184A (en) A kind of pcb board defect inspection method
CN107610085A (en) A kind of welding point defect detecting system based on computer vision
CN106651802B (en) Machine vision scolding tin position finding and detection method
CN117670887B (en) A soldering height and defect detection method based on machine vision
CN112304957A (en) Machine vision-based intelligent detection method and system for appearance defects
CN113705564B (en) Pointer type instrument identification reading method
Fu et al. Medicine glass bottle defect detection based on machine vision
CN115170497A (en) PCBA online detection platform based on AI visual detection technology
Xu et al. Precise positioning of circular mark points and transistor components in surface mounting technology applications
CN117092113A (en) Camera mould welding quality detection device and system thereof
CN116913841A (en) Die bonding and pasting method for automatic die bonder
Cai et al. PCB defect detection system based on image processing
CN114092448B (en) A plug-in electrolytic capacitor hybrid detection method based on deep learning
CN115866502A (en) Microphone part surface defect online detection process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination