[go: up one dir, main page]

CN115356259A - A square capacitor defect detection system and method based on deep learning - Google Patents

A square capacitor defect detection system and method based on deep learning Download PDF

Info

Publication number
CN115356259A
CN115356259A CN202210800029.2A CN202210800029A CN115356259A CN 115356259 A CN115356259 A CN 115356259A CN 202210800029 A CN202210800029 A CN 202210800029A CN 115356259 A CN115356259 A CN 115356259A
Authority
CN
China
Prior art keywords
square
photographing
square capacitor
capacitor
station
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
CN202210800029.2A
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.)
Weiku Xiamen Information Technology Co ltd
Original Assignee
Weiku Xiamen Information 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 Weiku Xiamen Information Technology Co ltd filed Critical Weiku Xiamen Information Technology Co ltd
Priority to CN202210800029.2A priority Critical patent/CN115356259A/en
Publication of CN115356259A publication Critical patent/CN115356259A/en
Pending legal-status Critical Current

Links

Images

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/01Arrangements or apparatus for facilitating the optical investigation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B07SEPARATING SOLIDS FROM SOLIDS; SORTING
    • B07CPOSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
    • B07C5/00Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
    • B07C5/34Sorting according to other particular properties
    • B07C5/342Sorting according to other particular properties according to optical properties, e.g. colour
    • B07C5/3422Sorting according to other particular properties according to optical properties, e.g. colour using video scanning devices, e.g. TV-cameras
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B07SEPARATING SOLIDS FROM SOLIDS; SORTING
    • B07CPOSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
    • B07C5/00Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
    • B07C5/36Sorting apparatus characterised by the means used for distribution
    • 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/8806Specially adapted optical and illumination features
    • 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/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • 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/8806Specially adapted optical and illumination features
    • G01N2021/8841Illumination and detection on two sides of object
    • 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/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2201/00Features of devices classified in G01N21/00
    • G01N2201/04Batch operation; multisample devices
    • G01N2201/0407Batch operation; multisample devices with multiple optical units, e.g. one per sample
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2201/00Features of devices classified in G01N21/00
    • G01N2201/04Batch operation; multisample devices
    • G01N2201/0438Linear motion, sequential
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2201/00Features of devices classified in G01N21/00
    • G01N2201/04Batch operation; multisample devices
    • G01N2201/0484Computer controlled

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Health & Medical Sciences (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Pathology (AREA)
  • Analytical Chemistry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Theoretical Computer Science (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

本发明提供一种基于深度学习的方形电容缺陷检测系统和方法,该系统包括第一传送机构、拨料机构、翻转机构、推送机构、第二传送机构、拍照装置、AI处理单元、PLC控制器、剔除装置和复数个传感器;所述第一传送机构、拨料机构、翻转机构、推送机构、第二传送机构、拍照装置、AI处理单元、剔除装置和复数个传感器分别与PLC控制器连接,所述PLC控制器通过接收各个传感器的信号,根据传感器信号判断方形电容的位置,并触发相应的机构或装置执行相应的动作。本发明通过在传送机构各个工位上设置拍摄点,对方形电容所需检测的各个面进行拍照,并利用AI算法对图像进行处理识别输出检测结果,替代现有人工缺陷检测机制,提高了整体的检测效率与检测准确度。

Figure 202210800029

The present invention provides a square capacitor defect detection system and method based on deep learning. The system includes a first transmission mechanism, a material dial mechanism, a flip mechanism, a push mechanism, a second transmission mechanism, a camera device, an AI processing unit, and a PLC controller. , a rejecting device and a plurality of sensors; the first conveying mechanism, the feeding mechanism, the turning mechanism, the pushing mechanism, the second conveying mechanism, the photographing device, the AI processing unit, the rejecting device and a plurality of sensors are respectively connected to the PLC controller, The PLC controller receives signals from various sensors, judges the position of the square capacitor according to the sensor signals, and triggers corresponding mechanisms or devices to perform corresponding actions. In the present invention, by setting shooting points on each station of the transmission mechanism, taking pictures of each surface that needs to be detected by the square capacitor, and using the AI algorithm to process the image, identify and output the detection result, it replaces the existing manual defect detection mechanism, and improves the overall performance. detection efficiency and detection accuracy.

Figure 202210800029

Description

一种基于深度学习的方形电容缺陷检测系统及方法A square capacitor defect detection system and method based on deep learning

技术领域technical field

本发明涉及电容检测技术领域,特别涉及一种基于深度学习的方形电容缺陷检测系统及方法。The present invention relates to the technical field of capacitance detection, in particular to a square capacitance defect detection system and method based on deep learning.

背景技术Background technique

随着能源的日益枯竭,发展新能源的使用已经迫在眉睫。在此环境下的中国正在大力的发展新能源汽车,这也让中国对电容的需求量加大。但是目前各地的方形电容生产工厂对于刚生产的方形电容主要还是以人工检测的方式为主,对方形电容产品进行缺陷检测,然后剔除其中的瑕疵品,以确保最终产品的质量达标。但这样的检测方式既增加成本,还效率低下,容易人为的漏检和误检。With the increasing depletion of energy sources, the development of new energy sources is imminent. In this environment, China is vigorously developing new energy vehicles, which also increases China's demand for capacitors. However, at present, square capacitor production factories in various places mainly use manual inspection for newly produced square capacitors. They conduct defect detection on square capacitor products, and then remove the defective products to ensure that the quality of the final product meets the standard. However, such a detection method not only increases the cost, but also is inefficient, and it is easy to artificially miss and falsely detect.

发明内容Contents of the invention

本发明要解决的技术问题,在于提供一种基于深度学习的方形电容缺陷检测系统及方法,解决现有方形电容检测效率低,准确率不足等问题。The technical problem to be solved by the present invention is to provide a square capacitor defect detection system and method based on deep learning to solve the problems of low detection efficiency and insufficient accuracy of the existing square capacitor.

第一方面,本发明提供了一种基于深度学习的方形电容缺陷检测系统,所述系统包括第一传送机构、拨料机构、翻转机构、推送机构、第二传送机构、拍照装置、AI处理单元、PLC控制器、剔除装置和复数个传感器;In the first aspect, the present invention provides a square capacitor defect detection system based on deep learning. The system includes a first transmission mechanism, a feeding mechanism, a turning mechanism, a pushing mechanism, a second transmission mechanism, a camera, and an AI processing unit. , PLC controller, rejecting device and multiple sensors;

所述第一传送机构、拨料机构、翻转机构、推送机构、第二传送机构、拍照装置、AI处理单元、剔除装置和复数个传感器分别与PLC控制器连接,所述PLC控制器通过接收各个传感器的信号,根据传感器信号判断方形电容的位置,并触发相应的机构或装置执行相应的动作;The first conveying mechanism, material dialing mechanism, turning mechanism, pushing mechanism, second conveying mechanism, photographing device, AI processing unit, rejecting device and a plurality of sensors are respectively connected with the PLC controller, and the PLC controller receives each The signal of the sensor judges the position of the square capacitor according to the signal of the sensor, and triggers the corresponding mechanism or device to perform the corresponding action;

所述拨料机构安装于第一传送机构的入料端,用于对所有进入传送机构的方形电容进行匀拨操作,使得相邻两个方形电容之间的距离相等;The material shifting mechanism is installed on the feeding end of the first conveying mechanism, and is used for evenly moving all the square capacitors entering the conveying mechanism, so that the distance between two adjacent square capacitors is equal;

所述翻转机构安装于第一传送机构的出料端,用于对从第一传送机构上的方形电容进行翻转操作,使得其胶面向上;The inverting mechanism is installed on the discharge end of the first conveying mechanism, and is used for inverting the square capacitor from the first conveying mechanism, so that the adhesive surface is upward;

所述推送机构安装于翻转机构一侧,用于对翻转后的电容进行推送操作,使其进入第二传送机构的入料端;The pushing mechanism is installed on one side of the turning mechanism, and is used for pushing the turned over capacitance so that it enters the feeding end of the second conveying mechanism;

所述拍照装置包括,第一拍照组件、第二拍照组件、第三拍照组件、第四拍照组件和第五拍照组件,所述第一拍照组件位于第一传送机构一侧,用于拍摄方形电容的底面,所述第二拍照组件和第三拍照组件分别位于第二传送机构的两侧,用于拍摄方形电容中两侧面,所述第四拍照组件和第五拍照组件分别位于第二传送机构的上方,用于对胶面进行拍摄,其中第五拍照组件包括有UV光源和工业相机,所述第一拍照组件、第二拍照组件、第三拍照组件和第四拍照组件均包括一工业相机和一光源;The photographing device includes a first photographing assembly, a second photographing assembly, a third photographing assembly, a fourth photographing assembly and a fifth photographing assembly, and the first photographing assembly is located on one side of the first transmission mechanism for photographing a square capacitor The bottom surface of the second camera assembly and the third camera assembly are respectively located on both sides of the second transmission mechanism for photographing both sides of the square capacitor, and the fourth camera assembly and the fifth camera assembly are respectively located on the second transmission mechanism above, used to photograph the rubber surface, wherein the fifth photographing assembly includes a UV light source and an industrial camera, and the first photographing assembly, the second photographing assembly, the third photographing assembly and the fourth photographing assembly all include an industrial camera and a light source;

所述拍照装置获取的照片传给所述AI处理单元进行识别处理后将处理结果返回给PLC控制器,由所述PLC控制器根据返回结果控制剔除装置作动。The photos captured by the photographing device are sent to the AI processing unit for recognition processing, and then the processing results are returned to the PLC controller, and the PLC controller controls the action of the rejecting device according to the returned results.

进一步的,所述第二传送机构和第一传送机构为首尾拼接且互为90度的皮带传送装置。Further, the second transmission mechanism and the first transmission mechanism are belt transmission devices spliced end to end and 90 degrees to each other.

进一步的,所述翻转机构为包括四个翻转叶片,相邻翻转叶片之间夹角呈90°,每一次翻转均为同一方向翻转90°。Further, the flipping mechanism includes four flipping blades, the angle between adjacent flipping blades is 90°, each flipping is 90° in the same direction.

进一步的,所述第一拍照组件、第二拍照组件、第三拍照组件和第四拍照组件中的光源均为环形光源,且位于其对应的工业相机与方形电容之间,并通过PLC控制器控制所述环形光源频闪。Further, the light sources in the first camera assembly, the second camera assembly, the third camera assembly and the fourth camera assembly are all ring light sources, and are located between their corresponding industrial cameras and square capacitors, and are controlled by the PLC controller Controls the ring light to strobe.

进一步的,所述剔除装置在接收PLC控制器信号时,通过剔除装置中的气缸推动有缺陷的方形电容到预定的工位,使其从正常方形电容堆中分离出来。Further, when the rejecting device receives the signal from the PLC controller, the cylinder in the rejecting device pushes the defective square capacitors to a predetermined station to separate them from the stack of normal square capacitors.

进一步的,所述复数个传感器包括第一传送机构入料口处设置的传感器、第一拍摄组件对应工位处设置的传感器、第二拍摄组件对应工位处设置的传感器、第三拍摄组件对应工位处设置的传感器、第四拍摄组件对应工位处设置的传感器、第五拍摄组件对应工位处设置的传感器、翻转机构处设置的传感器、推送机构处设置的传感器以及剔除装置处设置的传感器。Further, the plurality of sensors include a sensor set at the material inlet of the first conveying mechanism, a sensor set at the corresponding station of the first shooting component, a sensor set at the corresponding station of the second shooting component, a sensor set at the corresponding station of the third shooting component, and a sensor set at the corresponding station of the third shooting component. The sensor provided at the station, the sensor provided at the corresponding station of the fourth photographing component, the sensor provided at the corresponding station of the fifth photographing component, the sensor provided at the turning mechanism, the sensor provided at the pushing mechanism and the sensor provided at the rejecting device sensor.

进一步的,所述系统还包括显示器,所述显示器与PLC控制器连接。Further, the system also includes a display connected to the PLC controller.

进一步的,所述AI处理单元包括采用卷积神经网络预先经过训练得到各类缺陷识别模型。Further, the AI processing unit includes pre-trained convolutional neural networks to obtain various types of defect recognition models.

第二方面,本发明提供了一种基于深度学习的方形电容缺陷检测方法,所述方法基于如上所述系统,所述方法包括如下步骤:In a second aspect, the present invention provides a square capacitor defect detection method based on deep learning, the method is based on the above-mentioned system, and the method includes the following steps:

步骤S1、将方形电容放入第一传送机构的入料口处,由拨料机构将入料口的各个方形电容按一定距离分开后通过第一传送机构运输;Step S1, put the square capacitor into the material inlet of the first conveying mechanism, and the material feeding mechanism separates the square capacitors at the material inlet by a certain distance and then transports them through the first conveying mechanism;

步骤S2、在传感器感应到方形电容到达第一工位时,通过第一拍摄组件对方形电容进行拍照,并获取两张照片;Step S2, when the sensor senses that the square capacitor arrives at the first station, take a picture of the square capacitor through the first photographing component, and obtain two photos;

步骤S3、在经过第一传送机构出料口时,通过翻转机构对方形电容进行翻转,使其胶面朝上,再通过推料机构的气缸将翻转后的方形电容推送到第二传送机构上;Step S3. When passing through the discharge port of the first transmission mechanism, the square capacitor is turned over by the turning mechanism so that the rubber side faces up, and then the turned square capacitor is pushed to the second transmission mechanism by the cylinder of the pushing mechanism ;

步骤S4、在传感器感应到方形电容到达第二工位时,通过第二拍摄组件对方形电容进行拍照,并获取两张照片;Step S4, when the sensor senses that the square capacitor arrives at the second station, take a picture of the square capacitor through the second photographing component, and obtain two photos;

步骤S5、在传感器感应到方形电容到达第三工位时,通过第三拍摄组件对方形电容进行拍照,并获取两张照片;Step S5, when the sensor senses that the square capacitor reaches the third station, take a picture of the square capacitor through the third photographing component, and obtain two photos;

步骤S6、在传感器感应到方形电容到达第四工位时,通过第四拍摄组件对方形电容进行拍照,并获取两张照片;Step S6, when the sensor senses that the square capacitor reaches the fourth station, take a photo of the square capacitor through the fourth photographing component, and obtain two photos;

步骤S7、在传感器感应到方形电容到达第五工位时,通过第五拍摄组件对方形电容进行拍照,并获取两张照片;Step S7, when the sensor senses that the square capacitor reaches the fifth station, take a photo of the square capacitor through the fifth photographing component, and obtain two photos;

步骤S8、通过AI处理单元对获取到的各个工位的照片进行缺陷识别,将识别结果返回给PLC控制器,通过PLC控制器控制剔除装置对需要剔除的方形电容进行剔除。Step S8, the AI processing unit performs defect recognition on the acquired photos of each station, returns the recognition result to the PLC controller, and controls the rejecting device through the PLC controller to remove the square capacitors that need to be removed.

进一步的,所述AI处理单元的检测过程如下:Further, the detection process of the AI processing unit is as follows:

获取每个工位的两个图像,从每一工位中抽取一张图像进行二值化处理、轮廓查找以及粒子分析,得到方形电容在缺陷类别为外壳油污、胶面气孔、胶面油污和引线弯曲上的识别结果,同时从每一工位中获取另一张图像输入到深度学习模型中,输出方形电容在缺陷类别为外壳脏污、外壳磨损、外壳油渍、外壳微油污、外壳破损边线油污、胶面气泡和胶面毛刺上的识别结果。Obtain two images of each station, extract one image from each station for binarization processing, contour search, and particle analysis, and obtain the defect categories of square capacitors as oil on the shell, pores on the rubber surface, oil on the rubber surface and The recognition result on the lead wire bending, and another image is obtained from each station and input into the deep learning model, and the defect categories of the output square capacitor are shell dirt, shell wear, shell oil stains, shell micro-greasy stains, shell damaged edge Recognition results on oil stains, rubber surface air bubbles and rubber surface burrs.

本发明提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided by the present invention have at least the following technical effects or advantages:

1、搭建一套自动检测装置,对方形电容进行传输的过程中精准获取方形电容需要检验的各个侧面照片,并结合对应的软件算法对照片进行检测,实现全自动化过程,实现无间断的检测工作,提高检测效率,同时避免人工疲劳检测出现的误判;1. Build a set of automatic detection device to accurately obtain the photos of each side of the square capacitor that needs to be inspected during the transmission of the square capacitor, and combine the corresponding software algorithm to detect the photos to achieve a fully automated process and uninterrupted detection. , improve detection efficiency, and avoid misjudgment caused by manual fatigue detection;

2、通过全局二值化、调整色阈、亮度参数等过程对某类别缺陷进行快速识别,同时对于部分适用深度学习方式的缺陷,通过将待检测的缺陷特征进行建模,之后检测时进行全局检索检测是否存在该缺陷,从而判断方形电容的缺陷类别,另外对其中存在较大缺陷的产品进行剔除,能够更加快速、准确的识别和区分出次品和良品,降低企业成本,提高产品质量,加快工厂效率。2. Quickly identify certain types of defects through processes such as global binarization, adjusting color thresholds, and brightness parameters. At the same time, for some defects that are applicable to deep learning methods, model the characteristics of the defects to be detected, and then conduct global inspection during detection. Retrieve and detect whether the defect exists, so as to judge the defect category of square capacitors, and eliminate products with large defects among them, which can identify and distinguish defective products from good products more quickly and accurately, reduce enterprise costs, and improve product quality. Accelerate plant efficiency.

附图说明Description of drawings

下面参照附图结合实施例对本发明作进一步的说明。The present invention will be further described below in conjunction with the embodiments with reference to the accompanying drawings.

图1为本发明实施例一中一种基于深度学习的方形电容缺陷检测系统整体结构示意图;1 is a schematic diagram of the overall structure of a square capacitor defect detection system based on deep learning in Embodiment 1 of the present invention;

图2为本发明实施例一中一种基于深度学习的方形电容缺陷检测系统内部结构示意图之一;Fig. 2 is one of the internal structural diagrams of a square capacitance defect detection system based on deep learning in Embodiment 1 of the present invention;

图3为本发明实施例一中一种基于深度学习的方形电容缺陷检测系统内部结构示意图之二;3 is the second schematic diagram of the internal structure of a square capacitor defect detection system based on deep learning in Embodiment 1 of the present invention;

图4为本发明实施例一中入料部分的结构示意图;Fig. 4 is a schematic structural view of the feeding part in Embodiment 1 of the present invention;

图5为本发明实施例二中一种基于深度学习的方形电容缺陷检测方法的执行流程图。FIG. 5 is an execution flowchart of a deep learning-based square capacitor defect detection method in Embodiment 2 of the present invention.

附图标号说明:Explanation of reference numbers:

100-方形电容缺陷检测系统,1-第一传送机构,2-拨料机构,3-翻转机构,31-翻转叶片,4-推送机构,5-第二传送机构,6-拍照装置,61-第一拍照组件,62-第二拍照组件,63-第三拍照组件,64-第四拍照组件,65-第五拍照组件,7-PLC控制器,8-剔除装置,200-方形电容。100-square capacitor defect detection system, 1-first transmission mechanism, 2-feeding mechanism, 3-turning mechanism, 31-turning blade, 4-push mechanism, 5-second transmission mechanism, 6-camera device, 61- The first camera component, 62-the second camera component, 63-the third camera component, 64-the fourth camera component, 65-the fifth camera component, 7-PLC controller, 8-rejecting device, 200-square capacitor.

具体实施方式Detailed ways

本申请实施例通过提供一种基于深度学习的方形电容缺陷检测系统及方法,用于解决现有人工检测方形电容中存在的耗时耗力,效率低、漏检率高、误检率高等问题。本申请实施例中的技术方案,总体思路如下:通过构建一套自动化检测缺陷系统,将方形电容在运输过程中进行位置的翻转变化,预先对图像采集设备设置参数,实时获取方形电容在每个工位下的图像得到每一个方形电容需要检测的侧面信息,并实时传输到算法处理模块执行识别操作,将识别结果实时反馈给PLC控制器,通过其中剔除装置对有缺陷的方形电容进行剔除,对方形电容实现全方位拍摄以及自动化识别,减少人工操作的错误率,以及提高了整体缺陷检测效率。The embodiment of the present application provides a square capacitor defect detection system and method based on deep learning, which is used to solve the problems of time-consuming and labor-intensive manual detection of square capacitors, low efficiency, high missed detection rate, and high false detection rate. . The general idea of the technical solution in the embodiment of this application is as follows: By constructing an automatic defect detection system, the position of the square capacitor is reversed during the transportation process, and the parameters of the image acquisition device are set in advance, so as to obtain the square capacitor in real time. The image under the station obtains the side information of each square capacitor that needs to be detected, and transmits it to the algorithm processing module to perform the recognition operation in real time, and feeds back the recognition result to the PLC controller in real time, and removes the defective square capacitor through the rejecting device. Realize all-round shooting and automatic recognition of square capacitors, reduce the error rate of manual operation, and improve the overall defect detection efficiency.

为了更好地理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

实施例一Embodiment one

本实施例提供一种基于深度学习的方形电容缺陷检测系统,如图1至图4所示,所述系统100包括第一传送机构1、拨料机构2、翻转机构3、推送机构4、第二传送机构5、拍照装置6、AI处理单元(未图示)、PLC控制器7、剔除装置8和复数个传感器(未图示);This embodiment provides a square capacitor defect detection system based on deep learning. As shown in FIGS. Two transmission mechanism 5, photographing device 6, AI processing unit (not shown), PLC controller 7, rejecting device 8 and a plurality of sensors (not shown);

所述第一传送机构1、拨料机构2、翻转机构3、推送机构4、第二传送机构5、拍照装置6、AI处理单元、剔除装置8和复数个传感器分别与PLC控制器连接,所述PLC控制器通过接收各个传感器的信号,根据传感器信号判断方形电容的位置,并触发相应的机构或装置执行相应的动作;The first transmission mechanism 1, the feeding mechanism 2, the turning mechanism 3, the pushing mechanism 4, the second transmission mechanism 5, the photographing device 6, the AI processing unit, the rejecting device 8 and a plurality of sensors are respectively connected with the PLC controller, so The PLC controller judges the position of the square capacitor according to the sensor signal by receiving the signal of each sensor, and triggers the corresponding mechanism or device to perform the corresponding action;

所述拨料机构2安装于第一传送机构1的入料端,用于对所有进入传送机构的方形电容进行匀拨操作,使得相邻两个方形电容200之间的距离相等;该拨料机构2由复数个交错的L形压片和气缸组成,通过控制每两个L形压片对一个方形电容进行夹紧剥离操作。Said material shifting mechanism 2 is installed on the feeding end of the first conveying mechanism 1, and is used to carry out the uniform operation of all the square capacitors entering the conveying mechanism, so that the distance between two adjacent square capacitors 200 is equal; Mechanism 2 is composed of a plurality of staggered L-shaped pressing pieces and cylinders, and performs clamping and peeling operations on a square capacitor by controlling every two L-shaped pressing pieces.

所述翻转机构3安装于第一传送机构1的出料端,用于对从第一传送机构上的方形电容进行翻转操作,使得其胶面向上;The turning mechanism 3 is installed on the discharge end of the first conveying mechanism 1, and is used for turning over the square capacitor on the first conveying mechanism, so that its adhesive surface is upward;

所述推送机构4安装于翻转机构一侧,用于对翻转后的电容进行推送操作,使其进入第二传送机构的入料端;所述推送机构4由气缸构成,通过传感器感应到相应位置时,PLC控制器该推送机构4的气缸推动翻转机构中的方形电容到第二传送机构上。The pushing mechanism 4 is installed on one side of the flipping mechanism, and is used to push the flipped capacitor so that it enters the feeding end of the second conveying mechanism; the pushing mechanism 4 is composed of a cylinder, and is sensed to a corresponding position by a sensor. At this time, the cylinder of the pushing mechanism 4 of the PLC controller pushes the square capacitor in the turning mechanism to the second transmission mechanism.

所述拍照装置6包括,第一拍照组件61、第二拍照组件62、第三拍照组件63、第四拍照组件64和第五拍照组件65,所述第一拍照组件61位于第一传送机构2一侧,用于拍摄方形电容的底面(即电容胶面的对面,用于识别缺陷以及OCR字符识别),所述第二拍照组件62和第三拍照组件63分别位于第二传送机构的两侧,用于拍摄方形电容中两侧面,所述第四拍照组件和第五拍照组件分别位于第二传送机构的上方,用于对胶面进行拍摄,其中第五拍照组件包括有UV光源和工业相机,所述第一拍照组件、第二拍照组件、第三拍照组件和第四拍照组件均包括一工业相机和一光源;The photographing device 6 includes a first photographing assembly 61, a second photographing assembly 62, a third photographing assembly 63, a fourth photographing assembly 64 and a fifth photographing assembly 65, and the first photographing assembly 61 is positioned at the first transport mechanism 2 One side is used to photograph the bottom surface of the square capacitor (that is, the opposite side of the capacitor glue surface, used for identifying defects and OCR character recognition), and the second photographing assembly 62 and the third photographing assembly 63 are respectively located on both sides of the second transmission mechanism , used to photograph both sides of the square capacitor, the fourth photographing assembly and the fifth photographing assembly are respectively located above the second conveying mechanism for photographing the rubber surface, wherein the fifth photographing assembly includes a UV light source and an industrial camera , the first photographing assembly, the second photographing assembly, the third photographing assembly and the fourth photographing assembly each include an industrial camera and a light source;

所述拍照装置获取的照片传给所述AI处理单元进行识别处理后将处理结果返回给PLC控制器,由所述PLC控制器根据返回结果控制剔除装置作动。The photos captured by the photographing device are sent to the AI processing unit for recognition processing, and then the processing results are returned to the PLC controller, and the PLC controller controls the action of the rejecting device according to the returned results.

在本实施例中,所述第二传送机构和第一传送机构为首尾拼接且互为90度的皮带传送装置。In this embodiment, the second transmission mechanism and the first transmission mechanism are belt transmission devices spliced end-to-end and 90 degrees to each other.

在本实施例中,所述翻转机构3为包括四个翻转叶片31,相邻翻转叶片之间夹角呈90°,每一次翻转均为同一方向翻转90°,且该翻转机构3通过对应的电机控制。In this embodiment, the turning mechanism 3 includes four turning blades 31, the angle between adjacent turning blades is 90°, and each turning is turned 90° in the same direction, and the turning mechanism 3 passes through the corresponding motor control.

在本实施例中,所述第一拍照组件61、第二拍照组件62、第三拍照组件63和第四拍照组件64中的光源均为环形光源,且位于其对应的工业相机与方形电容之间,并通过PLC控制器控制所述环形光源频闪,可延长每一拍照组件中的光源寿命,减少更换频率。In this embodiment, the light sources in the first photographing assembly 61, the second photographing assembly 62, the third photographing assembly 63, and the fourth photographing assembly 64 are all ring light sources, and are located between their corresponding industrial cameras and square capacitors. time, and the strobe of the ring light source is controlled by the PLC controller, which can prolong the life of the light source in each camera component and reduce the frequency of replacement.

在本实施例中,所述剔除装置8在接收PLC控制器信号时,通过剔除装置中的气缸推动有缺陷的方形电容到预定的工位,使其从正常方形电容堆中分离出来。In this embodiment, when the rejecting device 8 receives the signal from the PLC controller, the cylinder in the rejecting device pushes the defective square capacitor to a predetermined station to separate it from the stack of normal square capacitors.

较佳的,本发明还设置外围挡9和外围挡9上方的正压装置10,通过外围挡可遮挡外界光,减少对设备的影响,通过正压装置使得外界粘附性气体无法黏附在机台内。Preferably, the present invention also sets the peripheral barrier 9 and the positive pressure device 10 above the peripheral barrier 9. The external light can be blocked by the peripheral barrier to reduce the impact on the equipment. The positive pressure device prevents the external adhesive gas from adhering to the machine. Taiwan.

在本实施例中,所述复数个传感器包括第一传送机构入料口处设置的传感器、第一拍摄组件对应工位处设置的传感器、第二拍摄组件对应工位处设置的传感器、第三拍摄组件对应工位处设置的传感器、第四拍摄组件对应工位处设置的传感器、第五拍摄组件对应工位处设置的传感器、翻转机构处设置的传感器、推送机构处设置的传感器以及剔除装置处设置的传感器。In this embodiment, the plurality of sensors include a sensor set at the material inlet of the first conveying mechanism, a sensor set at the corresponding station of the first photographing component, a sensor set at the corresponding station of the second photographing component, a third The sensor set at the station corresponding to the photographing component, the sensor set at the corresponding station of the fourth photographing component, the sensor set at the corresponding station of the fifth photographing component, the sensor set at the turning mechanism, the sensor set at the pushing mechanism, and the rejecting device sensor set up.

在本实施例中,所述系统还包括显示器,所述显示器与PLC控制器连接,所述显示器为电阻式触摸屏。In this embodiment, the system further includes a display connected to the PLC controller, and the display is a resistive touch screen.

在本实施例中,所述AI处理单元包括采用卷积神经网络预先经过训练得到各类缺陷识别模型。In this embodiment, the AI processing unit includes various types of defect recognition models obtained through pre-training using a convolutional neural network.

实施例二Embodiment two

在本实施例中提供了一种基于深度学习的方形电容缺陷检测方法,如图5所示,所述方法基于上述方形电容缺陷检测系统,所述方法包括如下步骤:In this embodiment, a square capacitor defect detection method based on deep learning is provided, as shown in Figure 5, the method is based on the above square capacitor defect detection system, and the method includes the following steps:

步骤S1、将方形电容放入第一传送机构的入料口处,由拨料机构将入料口的各个方形电容按一定距离分开后通过第一传送机构运输;这里的拨料机构是为了将各个产品之间均匀拨开,因为进料的时候,产品是连在一起的;Step S1, put the square capacitor into the material inlet of the first transmission mechanism, and the material feeding mechanism separates the square capacitors at the material inlet according to a certain distance and then transports them through the first transmission mechanism; Each product is evenly separated, because when feeding, the products are connected together;

步骤S2、在传感器感应到方形电容到达第一工位时,通过第一拍摄组件对方形电容进行拍照,并获取两张照片;Step S2, when the sensor senses that the square capacitor arrives at the first station, take a picture of the square capacitor through the first photographing component, and obtain two photos;

步骤S3、在经过第一传送机构出料口时,通过翻转机构对方形电容进行翻转,使其胶面朝上,再通过推料机构的气缸将翻转后的方形电容推送到第二传送机构上;Step S3. When passing through the discharge port of the first transmission mechanism, the square capacitor is turned over by the turning mechanism so that the rubber side faces up, and then the turned square capacitor is pushed to the second transmission mechanism by the cylinder of the pushing mechanism ;

步骤S4、在传感器感应到方形电容到达第二工位时,通过第二拍摄组件对方形电容进行拍照,并获取两张照片;Step S4, when the sensor senses that the square capacitor arrives at the second station, take a picture of the square capacitor through the second photographing component, and obtain two photos;

步骤S5、在传感器感应到方形电容到达第三工位时,通过第三拍摄组件对方形电容进行拍照,并获取两张照片;Step S5, when the sensor senses that the square capacitor reaches the third station, take a picture of the square capacitor through the third photographing component, and obtain two photos;

步骤S6、在传感器感应到方形电容到达第四工位时,通过第四拍摄组件对方形电容进行拍照,并获取两张照片;Step S6, when the sensor senses that the square capacitor reaches the fourth station, take a photo of the square capacitor through the fourth photographing component, and obtain two photos;

步骤S7、在传感器感应到方形电容到达第五工位时,通过第五拍摄组件对方形电容进行拍照,并获取两张照片;Step S7, when the sensor senses that the square capacitor reaches the fifth station, take a photo of the square capacitor through the fifth photographing component, and obtain two photos;

步骤S8、通过AI处理单元对获取到的各个工位的照片进行缺陷识别,将识别结果返回给PLC控制器,通过PLC控制器控制剔除装置对需要剔除的方形电容进行剔除。Step S8, the AI processing unit performs defect recognition on the acquired photos of each station, returns the recognition result to the PLC controller, and controls the rejecting device through the PLC controller to remove the square capacitors that need to be removed.

较佳的,所述AI处理单元的检测过程如下:Preferably, the detection process of the AI processing unit is as follows:

获取每个工位的两个图像,从每一工位中抽取一张图像进行二值化处理、轮廓查找以及粒子分析,得到方形电容在缺陷类别为外壳油污、胶面气孔、胶面油污和引线弯曲上的识别结果,同时从每一工位中获取另一张图像输入到深度学习模型中,输出方形电容在缺陷类别为外壳脏污、外壳磨损、外壳油渍、外壳微油污、外壳破损边线油污、胶面气泡和胶面毛刺上的识别结果。由于不同的算法对不同类别的缺陷的检测精确度存在差异,本发明通过传统算法的二值化处理、轮廓查找以及粒子分析以及深度学习算法对方形电容的所有缺陷进行分类分组检测,可以实现最佳检测精度。Obtain two images of each station, extract one image from each station for binarization processing, contour search, and particle analysis, and obtain the defect categories of square capacitors as oil on the shell, pores on the rubber surface, oil on the rubber surface and The recognition result on the lead wire bending, and another image is obtained from each station and input into the deep learning model, and the defect categories of the output square capacitor are shell dirt, shell wear, shell oil stains, shell micro-greasy stains, shell damaged edge Recognition results on oil stains, rubber surface air bubbles and rubber surface burrs. Since different algorithms have differences in the detection accuracy of different types of defects, the present invention uses the binarization processing of traditional algorithms, contour search, particle analysis, and deep learning algorithms to classify and group all the defects of square capacitors, so as to achieve the best results. Good detection accuracy.

在利用深度学习进行检测前,先将缺陷部位人工进行标注学习训练获得方形电容的缺陷检测算法,对不同的缺陷类型建立不同的特征模型,在需要对新的方形电容图像进行检测时,可通过训练得到缺陷检测算法查找是否存在缺陷,通过建立好的缺陷特征模型进行识别,即可识别方形电容上方是否存在缺陷,以及存在什么类别的缺陷,若检测不到方形电容,则对该图像不做任何处理。Before using deep learning for detection, the defective parts are manually marked and trained to obtain a defect detection algorithm for square capacitors, and different feature models are established for different defect types. When it is necessary to detect new square capacitor images, you can use The defect detection algorithm is trained to find out whether there is a defect. Through the established defect feature model for identification, it can identify whether there is a defect above the square capacitor and what type of defect exists. If the square capacitor cannot be detected, the image will not be processed. any processing.

本申请实施例中提供的技术方案,与现有技术相比至少具有如下技术效果或优点:通过推杆和传送带、翻转机构等动作装置让方形电容以相同的间距行进,在电容的四个方向安装拍摄装置得到当前产品的图片,然后通过对应的AI算法对缺陷的类别、位置进行快速识别,并剔除其中瑕疵品,达到快速检测与分拣的目的,有效避免人工检测时间过长而产生漏测误测,准确性更高,有效降低人力成本,人工只需要进行上料收料即可,限制更小,本发明系统可适应于最高速度55个/min的传输线,检测效率得到了极大提高。Compared with the prior art, the technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: the square capacitors can be moved at the same distance through push rods, conveyor belts, flipping mechanisms and other action devices, and the four directions of the capacitors Install the shooting device to get the picture of the current product, and then use the corresponding AI algorithm to quickly identify the type and location of the defect, and eliminate the defective products, so as to achieve the purpose of rapid detection and sorting, and effectively avoid the leakage caused by the long manual detection time The accuracy of false detection is higher, and the labor cost is effectively reduced. The labor only needs to be loaded and received, and the limitation is smaller. The system of the present invention can be adapted to the transmission line with a maximum speed of 55 pieces/min, and the detection efficiency has been greatly improved. improve.

虽然以上描述了本发明的具体实施方式,但是熟悉本技术领域的技术人员应当理解,我们所描述的具体的实施例只是说明性的,而不是用于对本发明的范围的限定,熟悉本领域的技术人员在依照本发明的精神所作的等效的修饰以及变化,都应当涵盖在本发明的权利要求所保护的范围内。Although the specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments we have described are only illustrative, rather than used to limit the scope of the present invention. Equivalent modifications and changes made by skilled personnel in accordance with the spirit of the present invention shall fall within the protection scope of the claims of the present invention.

Claims (10)

1.一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述系统包括第一传送机构、拨料机构、翻转机构、推送机构、第二传送机构、拍照装置、AI处理单元、PLC控制器、剔除装置和复数个传感器;1. A square capacitor defect detection system based on deep learning, characterized in that: the system includes a first transmission mechanism, a material dial mechanism, a turning mechanism, a pushing mechanism, a second transmission mechanism, a camera, an AI processing unit, and a PLC a controller, a reject device and a plurality of sensors; 所述第一传送机构、拨料机构、翻转机构、推送机构、第二传送机构、拍照装置、AI处理单元、剔除装置和复数个传感器分别与PLC控制器连接,所述PLC控制器通过接收各个传感器的信号,根据传感器信号判断方形电容的位置,并触发相应的机构或装置执行相应的动作;The first conveying mechanism, material dialing mechanism, turning mechanism, pushing mechanism, second conveying mechanism, photographing device, AI processing unit, rejecting device and a plurality of sensors are respectively connected with the PLC controller, and the PLC controller receives each The signal of the sensor judges the position of the square capacitor according to the signal of the sensor, and triggers the corresponding mechanism or device to perform the corresponding action; 所述拨料机构安装于第一传送机构的入料端,用于对所有进入传送机构的方形电容进行匀拨操作,使得相邻两个方形电容之间的距离相等;The material shifting mechanism is installed on the feeding end of the first conveying mechanism, and is used for evenly moving all the square capacitors entering the conveying mechanism, so that the distance between two adjacent square capacitors is equal; 所述翻转机构安装于第一传送机构的出料端,用于对从第一传送机构上的方形电容进行翻转操作,使得其胶面向上;The inverting mechanism is installed on the discharge end of the first conveying mechanism, and is used for inverting the square capacitor from the first conveying mechanism, so that the adhesive surface is upward; 所述推送机构安装于翻转机构一侧,用于对翻转后的电容进行推送操作,使其进入第二传送机构的入料端;The pushing mechanism is installed on one side of the turning mechanism, and is used for pushing the turned over capacitance so that it enters the feeding end of the second conveying mechanism; 所述拍照装置包括,第一拍照组件、第二拍照组件、第三拍照组件、第四拍照组件和第五拍照组件,所述第一拍照组件位于第一传送机构一侧,用于拍摄方形电容的底面,所述第二拍照组件和第三拍照组件分别位于第二传送机构的两侧,用于拍摄方形电容中两侧面,所述第四拍照组件和第五拍照组件分别位于第二传送机构的上方,用于对胶面进行拍摄,其中第五拍照组件包括有UV光源和工业相机,所述第一拍照组件、第二拍照组件、第三拍照组件和第四拍照组件均包括一工业相机和一光源;The photographing device includes a first photographing assembly, a second photographing assembly, a third photographing assembly, a fourth photographing assembly and a fifth photographing assembly, and the first photographing assembly is located on one side of the first transmission mechanism for photographing a square capacitor The bottom surface of the second camera assembly and the third camera assembly are respectively located on both sides of the second transmission mechanism for photographing both sides of the square capacitor, and the fourth camera assembly and the fifth camera assembly are respectively located on the second transmission mechanism above, used to photograph the rubber surface, wherein the fifth photographing assembly includes a UV light source and an industrial camera, and the first photographing assembly, the second photographing assembly, the third photographing assembly and the fourth photographing assembly all include an industrial camera and a light source; 所述拍照装置获取的照片传给所述AI处理单元进行识别处理后将处理结果返回给PLC控制器,由所述PLC控制器根据返回结果控制剔除装置作动。The photos captured by the photographing device are sent to the AI processing unit for recognition processing, and then the processing results are returned to the PLC controller, and the PLC controller controls the action of the rejecting device according to the returned results. 2.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述第二传送机构和第一传送机构为首尾拼接且互为90度的皮带传送装置。2. A square capacitance defect detection system based on deep learning according to claim 1, characterized in that: the second transmission mechanism and the first transmission mechanism are belt transmission devices spliced end to end and 90 degrees to each other. 3.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述翻转机构为包括四个翻转叶片,相邻翻转叶片之间夹角呈90°,每一次翻转均为同一方向翻转90°。3. A square capacitance defect detection system based on deep learning according to claim 1, characterized in that: the flipping mechanism includes four flipping blades, the angle between adjacent flipping blades is 90°, each time The flips are all flipped 90° in the same direction. 4.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述第一拍照组件、第二拍照组件、第三拍照组件和第四拍照组件中的光源均为环形光源,且位于其对应的工业相机与方形电容之间,并通过PLC控制器控制所述环形光源频闪。4. A kind of square capacitor defect detection system based on deep learning according to claim 1, characterized in that: the light sources in the first camera assembly, the second camera assembly, the third camera assembly and the fourth camera assembly are all It is a ring light source, and it is located between its corresponding industrial camera and the square capacitor, and the strobe of the ring light source is controlled by the PLC controller. 5.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述剔除装置在接收PLC控制器信号时,通过剔除装置中的气缸推动有缺陷的方形电容到预定的工位,使其从正常方形电容堆中分离出来。5. A kind of square capacitor defect detection system based on deep learning according to claim 1, characterized in that: when the rejecting device receives the PLC controller signal, it pushes the defective square capacitor to the The intended station separates it from the normal square capacitor stack. 6.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述复数个传感器包括第一传送机构入料口处设置的传感器、第一拍摄组件对应工位处设置的传感器、第二拍摄组件对应工位处设置的传感器、第三拍摄组件对应工位处设置的传感器、第四拍摄组件对应工位处设置的传感器、第五拍摄组件对应工位处设置的传感器、翻转机构处设置的传感器、推送机构处设置的传感器以及剔除装置处设置的传感器。6. A square capacitance defect detection system based on deep learning according to claim 1, characterized in that: the plurality of sensors include the sensor provided at the material inlet of the first conveying mechanism, the corresponding station of the first photographing component The sensor set at the corresponding station of the second photographing component, the sensor set at the corresponding station of the third photographing component, the sensor set at the corresponding station of the fourth photographing component, the sensor set at the corresponding station of the fifth photographing component The sensor set at the turning mechanism, the sensor set at the pushing mechanism and the sensor set at the rejecting device. 7.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述系统还包括显示器,所述显示器与PLC控制器连接。7. A square capacitance defect detection system based on deep learning according to claim 1, characterized in that: said system also includes a display connected to a PLC controller. 8.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测系统,其特征在于:所述AI处理单元包括采用卷积神经网络预先经过训练得到各类缺陷识别模型。8. A square capacitor defect detection system based on deep learning according to claim 1, characterized in that: said AI processing unit includes various defect recognition models obtained through pre-training using a convolutional neural network. 9.一种基于深度学习的方形电容缺陷检测方法,其特征在于,所述方法基于如权利要求1-7任一项所述的系统,所述方法包括如下步骤:9. A square capacitor defect detection method based on deep learning, characterized in that the method is based on the system according to any one of claims 1-7, and the method comprises the steps of: 步骤S1、将方形电容放入第一传送机构的入料口处,由拨料机构将入料口的各个方形电容按一定距离分开后通过第一传送机构运输;Step S1, put the square capacitor into the material inlet of the first conveying mechanism, and the material feeding mechanism separates the square capacitors at the material inlet by a certain distance and then transports them through the first conveying mechanism; 步骤S2、在传感器感应到方形电容到达第一工位时,通过第一拍摄组件对方形电容进行拍照,并获取两张照片;Step S2, when the sensor senses that the square capacitor arrives at the first station, take a picture of the square capacitor through the first photographing component, and obtain two photos; 步骤S3、在经过第一传送机构出料口时,通过翻转机构对方形电容进行翻转,使其胶面朝上,再通过推料机构的气缸将翻转后的方形电容推送到第二传送机构上;Step S3, when passing through the discharge port of the first transmission mechanism, the square capacitor is turned over by the turning mechanism so that the rubber side faces upward, and then the turned square capacitor is pushed to the second transmission mechanism by the cylinder of the pushing mechanism ; 步骤S4、在传感器感应到方形电容到达第二工位时,通过第二拍摄组件对方形电容进行拍照,并获取两张照片;Step S4, when the sensor senses that the square capacitor arrives at the second station, take a picture of the square capacitor through the second photographing component, and obtain two photos; 步骤S5、在传感器感应到方形电容到达第三工位时,通过第三拍摄组件对方形电容进行拍照,并获取两张照片;Step S5, when the sensor senses that the square capacitor reaches the third station, take a picture of the square capacitor through the third photographing component, and obtain two photos; 步骤S6、在传感器感应到方形电容到达第四工位时,通过第四拍摄组件对方形电容进行拍照,并获取两张照片;Step S6, when the sensor senses that the square capacitor reaches the fourth station, take a photo of the square capacitor through the fourth photographing component, and obtain two photos; 步骤S7、在传感器感应到方形电容到达第五工位时,通过第五拍摄组件对方形电容进行拍照,并获取两张照片;Step S7, when the sensor senses that the square capacitor reaches the fifth station, take a photo of the square capacitor through the fifth photographing component, and obtain two photos; 步骤S8、通过AI处理单元对获取到的各个工位的照片进行缺陷识别,将识别结果返回给PLC控制器,通过PLC控制器控制剔除装置对需要剔除的方形电容进行剔除。Step S8, the AI processing unit performs defect recognition on the acquired photos of each station, returns the recognition result to the PLC controller, and controls the rejecting device through the PLC controller to remove the square capacitors that need to be removed. 10.根据权利要求1所述的一种基于深度学习的方形电容缺陷检测方法,其特征在于:所述AI处理单元的检测过程如下:10. A kind of square capacitance defect detection method based on deep learning according to claim 1, is characterized in that: the detection process of described AI processing unit is as follows: 获取每个工位的两个图像,从每一工位中抽取一张图像进行二值化处理、轮廓查找以及粒子分析,得到方形电容在缺陷类别为外壳油污、胶面气孔、胶面油污和引线弯曲上的识别结果,同时从每一工位中获取另一张图像输入到深度学习模型中,输出方形电容在缺陷类别为外壳脏污、外壳磨损、外壳油渍、外壳微油污、外壳破损边线油污、胶面气泡和胶面毛刺上的识别结果。Obtain two images of each station, extract one image from each station for binarization processing, contour search, and particle analysis, and obtain the defect categories of square capacitors as oil on the shell, pores on the rubber surface, oil on the rubber surface and The recognition result on the lead wire bending, and another image is obtained from each station and input into the deep learning model, and the defect categories of the output square capacitor are shell dirt, shell wear, shell oil stains, shell micro-greasy stains, shell damaged edge Recognition results on oil stains, rubber surface air bubbles and rubber surface burrs.
CN202210800029.2A 2022-07-08 2022-07-08 A square capacitor defect detection system and method based on deep learning Pending CN115356259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210800029.2A CN115356259A (en) 2022-07-08 2022-07-08 A square capacitor defect detection system and method based on deep learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210800029.2A CN115356259A (en) 2022-07-08 2022-07-08 A square capacitor defect detection system and method based on deep learning

Publications (1)

Publication Number Publication Date
CN115356259A true CN115356259A (en) 2022-11-18

Family

ID=84031663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210800029.2A Pending CN115356259A (en) 2022-07-08 2022-07-08 A square capacitor defect detection system and method based on deep learning

Country Status (1)

Country Link
CN (1) CN115356259A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115780312A (en) * 2022-11-29 2023-03-14 李国军 Automatic closed loop system that rejects of safety inspection hazardous articles

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090257646A1 (en) * 2006-02-07 2009-10-15 U-Seock Moon Apparatus and method for detecting defects in wafer using line sensor camera
CN102218406A (en) * 2011-01-04 2011-10-19 华南理工大学 Intelligent detection device of defects of mobile phone outer shell based on machine vision
CN103808732A (en) * 2014-01-21 2014-05-21 图灵视控(北京)科技有限公司 Capacitance detection system and capacitance detection method based on machine vision
KR102294899B1 (en) * 2020-05-26 2021-08-27 (주)티엘씨테크퍼스트 System and Method for Artificial Intelligence based Detecting Defect in Sunroof Using Deep Learning
CN214391207U (en) * 2021-02-02 2021-10-15 韦士肯(厦门)智能科技有限公司 Finished bearing visual inspection device
CN114453273A (en) * 2021-12-31 2022-05-10 通达(厦门)科技有限公司 AI detection device of spraying cell-phone center appearance defect of moulding plastics
CN114677597A (en) * 2022-05-26 2022-06-28 武汉理工大学 Method and system for visual detection of gear defects based on improved YOLOv5 network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090257646A1 (en) * 2006-02-07 2009-10-15 U-Seock Moon Apparatus and method for detecting defects in wafer using line sensor camera
CN102218406A (en) * 2011-01-04 2011-10-19 华南理工大学 Intelligent detection device of defects of mobile phone outer shell based on machine vision
CN103808732A (en) * 2014-01-21 2014-05-21 图灵视控(北京)科技有限公司 Capacitance detection system and capacitance detection method based on machine vision
KR102294899B1 (en) * 2020-05-26 2021-08-27 (주)티엘씨테크퍼스트 System and Method for Artificial Intelligence based Detecting Defect in Sunroof Using Deep Learning
CN214391207U (en) * 2021-02-02 2021-10-15 韦士肯(厦门)智能科技有限公司 Finished bearing visual inspection device
CN114453273A (en) * 2021-12-31 2022-05-10 通达(厦门)科技有限公司 AI detection device of spraying cell-phone center appearance defect of moulding plastics
CN114677597A (en) * 2022-05-26 2022-06-28 武汉理工大学 Method and system for visual detection of gear defects based on improved YOLOv5 network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115780312A (en) * 2022-11-29 2023-03-14 李国军 Automatic closed loop system that rejects of safety inspection hazardous articles

Similar Documents

Publication Publication Date Title
CN109724984B (en) Device and method for defect detection and identification based on deep learning algorithm
CN110246122A (en) Small size bearing quality determining method, apparatus and system based on machine vision
CN102621156B (en) Image-processing-based automatic micro part sorting system
CN105728339B (en) A kind of ceramic cartridge vision automatic checkout system
CN114384080B (en) A batch detection method and detection system for rubber ring defects
CN107486415A (en) Thin bamboo strip defect on-line detecting system and detection method based on machine vision
CN102218406A (en) Intelligent detection device of defects of mobile phone outer shell based on machine vision
CN107084992A (en) A capsule detection method and system based on machine vision
WO2020103310A1 (en) Mask defect detection device and method
CN107270841A (en) A kind of packaging bag coding defects detection mechanism
CN103439337A (en) Automatic detection device and method for apparent defects of piezoelectric ceramic buzzers
CN112747788A (en) Plank check out test set and plank production line
CN109146841B (en) Visual detection method and system for filling defects of dry battery coated paper
WO2023168984A1 (en) Area-array camera-based quality inspection method and system for cathode copper
CN115423785A (en) A defect detection system, method, device, electronic equipment and storage medium
CN204759438U (en) Two -dimensional code printing product examine article machine
CN117409005B (en) Defective product detection system and method for plate receiving machine based on image
CN114359155A (en) Film laminating method and system
CN111551559A (en) LCD (liquid Crystal display) liquid crystal screen defect detection method based on multi-view vision system
CN104237246A (en) Defect identification method of optical thin film
CN113077430A (en) Laser chip defect detection and classification method and system based on SSD algorithm
CN114527075A (en) Mask defect detection device and method
CN115356259A (en) A square capacitor defect detection system and method based on deep learning
CN107246841A (en) A kind of multiple views grouping system device of auto parts and components
CN115178493A (en) Mobile phone shell appearance detection system and detection method

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