[go: up one dir, main page]

CN117761060A - A visual inspection system and its inspection method - Google Patents

A visual inspection system and its inspection method Download PDF

Info

Publication number
CN117761060A
CN117761060A CN202311214081.0A CN202311214081A CN117761060A CN 117761060 A CN117761060 A CN 117761060A CN 202311214081 A CN202311214081 A CN 202311214081A CN 117761060 A CN117761060 A CN 117761060A
Authority
CN
China
Prior art keywords
module
defect
defects
positioning
shooting
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
CN202311214081.0A
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.)
Changzhou Supersonic Intelligent Equipment Co ltd
Original Assignee
Changzhou Supersonic Intelligent Equipment 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 Changzhou Supersonic Intelligent Equipment Co ltd filed Critical Changzhou Supersonic Intelligent Equipment Co ltd
Priority to CN202311214081.0A priority Critical patent/CN117761060A/en
Publication of CN117761060A publication Critical patent/CN117761060A/en
Pending legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

本发明公开了一种视觉检测系统及其检测方法,包括放置底板,放置底板的顶端设置有放置架,放置架的正面竖直设置有用于调节竖直拍摄位置的直线移动模组,直线移动模组的一侧设置有定位组件,直线移动模组的正面设置有视觉检测的拍摄组件,拍摄组件包括拍摄像机、遮光机构和检测分析系统,检测分析系统包括图像输入单元、缺陷定位单元、算法处理单元、处理判定单元和输出单元。本发明拍摄组件在对缺陷完成定位之后,通过过滤模块和划分模块的缺陷分析,使得缺陷能够得以分析,这样通过缺陷的分析之后,能够更加准确地进行缺陷的判断,因此不会造成缺陷的误判,使得对物料的检测判断更加准确,进一步的减少物料检测判断的损失。

The invention discloses a visual detection system and a detection method thereof, which include placing a base plate. A placement frame is provided at the top of the placement base plate. A linear movement module for adjusting the vertical shooting position is vertically provided on the front of the placement frame. The linear movement module There is a positioning component on one side of the group, and a shooting component for visual inspection is set on the front of the linear movement module. The shooting component includes a camera, a shading mechanism and a detection and analysis system. The detection and analysis system includes an image input unit, a defect positioning unit, and algorithm processing. unit, processing decision unit and output unit. After the shooting component of the present invention has completed locating the defects, it can analyze the defects through the defect analysis of the filtering module and the dividing module. In this way, after the defect analysis, the defects can be judged more accurately, and therefore the defects will not be misidentified. judgment, making the detection and judgment of materials more accurate and further reducing the loss of material detection and judgment.

Description

一种视觉检测系统及其检测方法A visual inspection system and its inspection method

技术领域Technical field

本发明涉及视觉检测系统领域,特别涉及一种视觉检测系统及其检测方法。The present invention relates to the field of visual detection systems, and in particular to a visual detection system and a detection method thereof.

背景技术Background technique

在使用收料设备进行物料的收取时,首先是需要使用视觉检测系统进行物料的检测,待到检测完成之后在进行物料的打包收取,但是传统的视觉检测系统,其在进行视觉检测时,通过一些光学的调节,提升拍照图像的清晰度,然后找到物料的缺陷,这样的检测方式虽然能够清晰的定位出物料所存在的缺陷,但是对于缺陷的种类却没有进行分析和划分,而在实际的生产过程中,一些物料的缺陷在不影响产品使用的前提下,是能够进行收取打包的,因此传统的视觉检测系统,没有进行缺陷的划分分析,就使得对一些合格的产品造成误判,这样就造成了一些物料的损失。When using receiving equipment to collect materials, you first need to use a visual inspection system to detect the materials. After the inspection is completed, the materials are packaged and collected. However, with the traditional visual inspection system, when performing visual inspection, Some optical adjustments can be made to improve the clarity of the photographed image, and then find defects in the material. Although this detection method can clearly locate the defects in the material, it does not analyze and classify the types of defects. In actual practice, During the production process, some material defects can be collected and packaged without affecting the use of the product. Therefore, the traditional visual inspection system does not conduct defect classification analysis, which leads to misjudgment of some qualified products. In this way This resulted in the loss of some materials.

发明内容Contents of the invention

本发明的目的在于提供一种视觉检测系统及其检测方法,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide a visual detection system and a detection method thereof to solve the problems raised in the above background technology.

为实现上述目的,本发明提供如下技术方案:一种视觉检测系统,包括放置底板,所述放置底板的顶端设置有放置架,所述放置架的正面竖直设置有用于调节竖直拍摄位置的直线移动模组,所述直线移动模组的一侧设置有用于移动位置定位的定位组件,所述直线移动模组的正面设置有视觉检测的拍摄组件,所述拍摄组件包括拍摄像机、遮光机构和用于缺陷分析的检测分析系统,所述检测分析系统包括图像输入单元、缺陷定位单元、算法处理单元、处理判定单元和输出单元。In order to achieve the above object, the present invention provides the following technical solution: a visual inspection system, including a placement base plate, a placement frame is provided at the top of the placement base plate, and a placement frame is vertically provided on the front of the placement frame for adjusting the vertical shooting position. A linear movement module. One side of the linear movement module is provided with a positioning component for positioning the moving position. The front of the linear movement module is provided with a shooting component for visual inspection. The shooting component includes a camera and a shading mechanism. And a detection and analysis system for defect analysis, the detection and analysis system includes an image input unit, a defect positioning unit, an algorithm processing unit, a processing judgment unit and an output unit.

优选的,所述放置架包括N形架,所述N形架两臂的底部均固定连接有安装板,所述安装板固定连接在放置底板的顶端,所述N形架的正面设置有连接滑架,所述定位组件包括设置于连接滑架一侧定位插片。Preferably, the placement frame includes an N-shaped frame. The bottoms of both arms of the N-shaped frame are fixedly connected with mounting plates. The mounting plates are fixedly connected to the top of the placement bottom plate. The front side of the N-shaped frame is provided with a connection. The sliding frame, the positioning component includes a positioning insert provided on one side of the connecting sliding frame.

优选的,所述连接滑架滑动套设在直线移动模组的中部,所述直线移动模组其中一侧的顶部和底部分别设置有用于配合定位插片实现定位的光感应器,所述直线移动模组的顶部设置有用于驱动直线移动模组移动的驱动电机。Preferably, the connecting carriage is slidably sleeved in the middle of the linear movement module. The top and bottom of one side of the linear movement module are respectively provided with light sensors used to cooperate with the positioning inserts to achieve positioning. The top of the moving module is provided with a driving motor for driving the linear moving module to move.

优选的,所述直线移动模组的正面设置有用于连接拍摄组件的连接机构,所述连接机构包括固定连接在直线移动模组正面的连接板,所述连接板中部的正面设置有连接块,所述连接块远离连接板的一端与拍摄像机的背面固定连接,所述连接板底部的正面是设置有用于连接遮光机构的连接架。Preferably, the front side of the linear movement module is provided with a connection mechanism for connecting the shooting assembly. The connection mechanism includes a connection plate fixedly connected to the front side of the linear movement module. A connection block is provided on the front side of the middle part of the connection plate. One end of the connecting block away from the connecting plate is fixedly connected to the back of the camera. The front of the bottom of the connecting plate is provided with a connecting frame for connecting the light shielding mechanism.

优选的,所述遮光机构包括固定连接在连接架底端的遮光架,所述遮光架的中部设置有多个遮光板,所述遮光架的中部且位于拍摄像机的正下方设置有用于限定拍照视野范围的视野范围框。Preferably, the light shielding mechanism includes a light shielding frame fixedly connected to the bottom end of the connecting frame, a plurality of light shielding plates are provided in the middle of the light shielding frame, and a light shielding plate is provided in the middle of the light shielding frame and directly below the camera to limit the photographing field of view. The field of view box for the range.

优选的,所述拍摄像机的底端与视野范围框的顶端之间设置有用于调节拍摄像机焦距的镜头组。Preferably, a lens group for adjusting the focal length of the camera is provided between the bottom end of the camera and the top of the field of view frame.

优选的,所述图像输入单元包括图像输入模块和器件定位模块,用于图像的传输和检测区域的定位;Preferably, the image input unit includes an image input module and a device positioning module, used for image transmission and positioning of the detection area;

所述缺陷定位单元包括灰阶对比模块和缺陷分类模块,且所述缺陷分类模块包括实例分割部和缺陷分类部,用于缺陷的判定和分类;The defect positioning unit includes a grayscale comparison module and a defect classification module, and the defect classification module includes an instance segmentation part and a defect classification part for determining and classifying defects;

所述算法处理单元包括后处理算法模块,用于缺陷的第一优化处理;The algorithm processing unit includes a post-processing algorithm module for first optimization processing of defects;

所述处理判定单元包括过滤模块和划分模块,用于缺陷的划分;The processing and determination unit includes a filtering module and a dividing module, used for classifying defects;

所述输出单元包括缺陷分类输出模块、缺陷大小输出模块和缺陷坐标位置输出模块,用于缺陷的输出。The output unit includes a defect classification output module, a defect size output module and a defect coordinate position output module, and is used for outputting defects.

优选的,所述器件定位模块和灰阶对比模块基于传统视觉进行器件检测区域的定位和定位缺陷的灰阶比对,所述缺陷分类模块基于深度学习进行实例分割和缺陷分类。Preferably, the device positioning module and the gray-scale comparison module perform positioning of the device detection area and gray-scale comparison of positioning defects based on traditional vision, and the defect classification module performs instance segmentation and defect classification based on deep learning.

优选的,所述处理判定单元基于规则判定算法。Preferably, the processing and decision unit is based on a rule decision algorithm.

一种视觉检测系统的检测方法,采用所述的视觉检测系统,所述检测方法包括以下几个步骤;A detection method of a visual detection system, using the visual detection system, the detection method includes the following steps;

第一步,首先将待检测的物料输送至视野范围框的正下方,此时驱动电机启动,并控制直线移动模组进行竖直方向的移动,找准物料的拍摄位置,同时在直线移动模组移动的过程中带动拍摄像机同步移动,并通过定位插片与光感应器之间的配合,进行拍照位置的定位;The first step is to transport the material to be inspected directly below the field of view frame. At this time, the drive motor starts and controls the linear movement module to move in the vertical direction to find the shooting position of the material. At the same time, the linear movement module moves in the vertical direction. During the group movement, the camera is driven to move synchronously, and the photo location is positioned through the cooperation between the positioning insert and the light sensor;

第二步,位置调节好之后,启动拍摄像机,并调节好镜头组,确认好拍摄焦距之后,进行待检测物料的拍摄;In the second step, after the position is adjusted, start the camera, adjust the lens group, and confirm the shooting focal length before shooting the material to be inspected;

第三步,检测分析系统在图像输入单元的信号传输下,进行拍摄照片的检测分析,若图像存在缺陷时,先通过器件定位模块进行检测区域的定位,之后利用缺陷定位单元进行缺陷的灰阶比对,之后利用深度学习进行缺陷的实例分割和分类,再依次通过算法处理单元和处理判定单元进一步的进行缺陷的计算和划分,得到缺陷的分类、缺陷的大小和缺陷的坐标位置;In the third step, the detection and analysis system performs detection and analysis of the photos taken under the signal transmission of the image input unit. If there is a defect in the image, the detection area is first positioned through the device positioning module, and then the defect positioning unit is used to perform grayscale determination of the defect. After comparison, deep learning is then used to segment and classify defect instances, and then the algorithm processing unit and processing decision unit are used to further calculate and divide the defects to obtain the classification of the defect, the size of the defect, and the coordinate position of the defect;

第四步,将所得到的缺陷分类、缺陷大小和缺陷坐标位置通过输出单元进行输出,此时一组物料的视觉检测完成。In the fourth step, the obtained defect classification, defect size and defect coordinate position are output through the output unit. At this time, the visual inspection of a group of materials is completed.

本发明的技术效果和优点:Technical effects and advantages of the present invention:

本发明拍摄组件包括拍摄像机、遮光机构和用于缺陷分析的检测分析系统,且在检测分析系统处设置了算法处理单元和处理判定单元,在对缺陷完成定位之后,通过过滤模块和划分模块的缺陷分析,使得缺陷能够得以分析,这样通过缺陷的分析之后,能够更加准确地进行缺陷的判断,因此不会造成缺陷的误判,使得对物料的检测判断更加准确,进一步的减少物料检测判断的损失。The shooting component of the present invention includes a camera, a shading mechanism and a detection and analysis system for defect analysis, and an algorithm processing unit and a processing and determination unit are provided at the detection and analysis system. After the defects are positioned, the filter module and the dividing module Defect analysis allows defects to be analyzed, so that after defect analysis, defects can be judged more accurately, so it will not cause misjudgments of defects, making the detection and judgment of materials more accurate, and further reducing the errors in material detection and judgment. loss.

附图说明Description of drawings

图1为本发明视觉检测系统的结构组成示意图。Figure 1 is a schematic structural diagram of the visual inspection system of the present invention.

图2为本发明直线移动模组与拍摄组件的结构连接示意图。Figure 2 is a schematic diagram of the structural connection between the linear movement module and the shooting assembly of the present invention.

图3为本发明直线移动模组的结构示意图。Figure 3 is a schematic structural diagram of the linear movement module of the present invention.

图4为本发明直线移动模组的结构侧视图。Figure 4 is a structural side view of the linear movement module of the present invention.

图5为本发明直线移动模组的结构正视图。Figure 5 is a structural front view of the linear movement module of the present invention.

图6为本发明规则判定算法的计算流程图。FIG6 is a calculation flow chart of the rule determination algorithm of the present invention.

图中:1、放置底板;2、N形架;201、安装板;3、直线移动模组;301、驱动电机;302、连接滑架;303、连接板;304、连接块;305、连接架;306、光感应器;307、定位插片;4、拍摄像机;401、镜头组;5、遮光架;501、遮光板;502、视野范围框。In the picture: 1. Place the bottom plate; 2. N-shaped frame; 201. Mounting plate; 3. Linear movement module; 301. Drive motor; 302. Connecting slide; 303. Connecting plate; 304. Connecting block; 305. Connection 306. Light sensor; 307. Positioning insert; 4. Camera; 401. Lens set; 5. Shade frame; 501. Shade plate; 502. Field of view frame.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

实施例一,本发明提供了如图1-6所示的一种视觉检测系统,包括放置底板1,放置底板1的顶端设置有放置架,放置架的正面竖直设置有用于调节竖直拍摄位置的直线移动模组3,直线移动模组3的一侧设置有用于移动位置定位的定位组件,直线移动模组3的正面设置有视觉检测的拍摄组件,拍摄组件包括拍摄像机4、遮光机构和用于缺陷分析的检测分析系统,检测分析系统包括图像输入单元、缺陷定位单元、算法处理单元、处理判定单元和输出单元。Embodiment 1, the present invention provides a visual inspection system as shown in Figures 1-6, including a placement base plate 1. A placement frame is provided at the top of the placement base plate 1. The front of the placement frame is vertically provided with a vertical camera for adjusting vertical shooting. Position linear movement module 3. One side of the linear movement module 3 is provided with a positioning component for mobile position positioning. The front of the linear movement module 3 is provided with a shooting component for visual inspection. The shooting component includes a camera 4 and a shading mechanism. and a detection and analysis system for defect analysis. The detection and analysis system includes an image input unit, a defect positioning unit, an algorithm processing unit, a processing judgment unit and an output unit.

具体的,放置架包括N形架2,N形架2两臂的底部均固定连接有安装板201,安装板201固定连接在放置底板1的顶端,N形架2的正面设置有连接滑架302,定位组件包括设置于连接滑架302一侧定位插片307。Specifically, the placement frame includes an N-shaped frame 2. The bottoms of both arms of the N-shaped frame 2 are fixedly connected with mounting plates 201. The mounting plates 201 are fixedly connected to the top of the placing bottom plate 1. A connecting slide is provided on the front of the N-shaped frame 2. 302. The positioning component includes a positioning insert 307 provided on one side of the connecting carriage 302.

需要说明的是,N形架2作为整个假设的机构,是提供给拍摄组件一个架设的高度,通过这个结构的设置,能够使得拍摄组件处于悬置的状态,这样在进行拍照时就能够调节拍摄组件的设置高度,使得拍照时能够更加灵活的调节拍摄的高度,使得拍摄的教具更易找准,同时也能够使得不同尺寸的物料得以进行调焦拍摄。It should be noted that the N-shaped frame 2, as the entire hypothetical mechanism, provides an erection height for the shooting component. Through the setting of this structure, the shooting component can be placed in a suspended state, so that the shooting can be adjusted when taking pictures. The setting height of the components makes it possible to more flexibly adjust the shooting height when taking pictures, making it easier to find the shooting teaching aids, and also allows materials of different sizes to be focused and photographed.

进一步的,连接滑架302滑动套设在直线移动模组3的中部,直线移动模组3其中一侧的顶部和底部分别设置有用于配合定位插片307实现定位的光感应器306,直线移动模组3的顶部设置有用于驱动直线移动模组3移动的驱动电机301。Further, the connecting carriage 302 is slidably sleeved in the middle of the linear movement module 3. The top and bottom of one side of the linear movement module 3 are respectively provided with light sensors 306 used to cooperate with the positioning insert 307 to achieve positioning. The linear movement The top of the module 3 is provided with a driving motor 301 for driving the linear motion module 3 to move.

需要说明的是,本方案中所使用的直线移动模组3为丝杆形直线模组,其通过与连接滑架302之间的配合,使得在连接滑架302的支撑下,直线移动模组3启动之后,根据驱动电机301的转动控制方向,使得直线移动模组3能够进行竖直方向的移动,这样在直线移动模组3的移动带动下,拍摄组件可以进行竖直方向设置的调节。It should be noted that the linear movement module 3 used in this solution is a screw-shaped linear module, which cooperates with the connecting carriage 302 to enable the linear movement module to move linearly under the support of the connecting carriage 302 After 3 is started, the linear movement module 3 can move in the vertical direction according to the rotation control direction of the drive motor 301, so that driven by the movement of the linear movement module 3, the shooting assembly can adjust the vertical setting.

光感应器306是配合定位插片307进行位置的感应定位,在定位插片307穿插过对应位置处的光感应器306处时,就能够获悉位置,而定位插片307的位置跟随连接滑架302不移动,而光感应器306跟随直线移动模组3进行竖直方向的移动,这样就能够直到直线移动模组3竖直移动的位置。The light sensor 306 cooperates with the positioning insert 307 for position sensing and positioning. When the positioning insert 307 passes through the light sensor 306 at the corresponding position, the position can be learned, and the position of the positioning insert 307 follows the connection carriage. 302 does not move, and the light sensor 306 follows the linear movement module 3 to move in the vertical direction, so that it can reach the position where the linear movement module 3 moves vertically.

具体的,直线移动模组3的正面设置有用于连接拍摄组件的连接机构,连接机构包括固定连接在直线移动模组3正面的连接板303,连接板303中部的正面设置有连接块304,连接块304远离连接板303的一端与拍摄像机4的背面固定连接,连接板303底部的正面是设置有用于连接遮光机构的连接架305。Specifically, the front of the linear movement module 3 is provided with a connection mechanism for connecting the shooting components. The connection mechanism includes a connection plate 303 fixedly connected to the front of the linear movement module 3. A connection block 304 is provided on the front of the middle part of the connection plate 303. One end of the block 304 away from the connecting plate 303 is fixedly connected to the back of the camera 4. The front of the bottom of the connecting plate 303 is provided with a connecting frame 305 for connecting the light shielding mechanism.

需要说明的是,连接板303固定连接在直线移动模组3正面的底部,这样连接板303跟随直线移动模组3进行同步移动,而连接块304固定连接在连接板303正面的中部,这样通过连接块304进行拍摄像机4的连接固定,使得拍摄像机4可以跟随直线移动模组3进行同步移动。It should be noted that the connecting plate 303 is fixedly connected to the bottom of the front of the linear motion module 3, so that the connecting plate 303 moves synchronously with the linear motion module 3, and the connecting block 304 is fixedly connected to the middle of the front of the connecting plate 303, so that through The connection block 304 connects and fixes the camera 4 so that the camera 4 can move synchronously with the linear movement module 3 .

进一步的,遮光机构包括固定连接在连接架305底端的遮光架5,遮光架5的中部设置有多个遮光板501,遮光架5的中部且位于拍摄像机4的正下方设置有用于限定拍照视野范围的视野范围框502。Further, the light shielding mechanism includes a light shielding frame 5 fixedly connected to the bottom end of the connecting frame 305. A plurality of light shielding plates 501 are provided in the middle of the light shielding frame 5. A light shielding plate 501 is provided in the middle of the light shielding frame 5 and directly below the camera 4 to limit the photographing field of view. Range of view range box 502.

需要说明的是,本方案通过连接架305进行遮光架5的固定,这样遮光架5就能够跟随直线移动模组3进行同步调节移动,在遮光架5的移动过程中,带动视野范围框502进行同步移动,以此保障在待检测的物料移动至视野范围框502的正下方之后,通过移动视野范围框502能够更好地罩住待检测物料,使得拍摄像机4可以更加准确的进行拍摄,以此能够减少外物的拍摄干扰,使得后期的图像分析更加的准确。It should be noted that in this solution, the light shielding frame 5 is fixed through the connecting frame 305, so that the light shielding frame 5 can follow the linear movement module 3 for synchronous adjustment and movement. During the movement of the light shielding frame 5, the view range frame 502 is driven. Move synchronously to ensure that after the material to be detected moves to just below the field of view frame 502, the material to be detected can be better covered by moving the field of view frame 502, so that the camera 4 can shoot more accurately. This can reduce shooting interference from foreign objects and make subsequent image analysis more accurate.

再进一步的,拍摄像机4的底端与视野范围框502的顶端之间设置有用于调节拍摄像机4焦距的镜头组401。Furthermore, a lens group 401 for adjusting the focal length of the camera 4 is provided between the bottom end of the camera 4 and the top end of the field of view frame 502 .

需要说明的是,本方案所使用的镜头组401为MVL-KF0814M-12MPE工业镜头,其具有F1.4大光圈,1.1",1200万分辨率,C接口工业镜头高分辨率,画面清晰度一致性高、低畸变、不同物距下均保持出色的光学性能、超高图像周边光亮比等优点,通过镜头组401的设置,使得拍摄像机4能够更加清晰准确的进行待检测无聊照片的拍摄。It should be noted that the lens group 401 used in this solution is the MVL-KF0814M-12MPE industrial lens, which has a large aperture of F1.4, 1.1", and 12 million resolution. It is a C-mount industrial lens with high resolution and consistent picture clarity. It has the advantages of high sensitivity, low distortion, excellent optical performance under different object distances, and ultra-high image peripheral brightness ratio. Through the setting of the lens group 401, the camera 4 can take more clear and accurate photos of boring photos to be detected.

具体的,图像输入单元包括图像输入模块和器件定位模块,用于图像的传输和检测区域的定位;Specifically, the image input unit includes an image input module and a device positioning module, which are used for image transmission and positioning of the detection area;

需要说明的是,在拍摄像机4的顶部设置有通讯接口,该通讯接口与工控机进行电性连接之后,利用图像输入单元就能够将拍摄像机4所拍摄的图像信息传输至工控机内进行检测分析,而在进行图像的检测分析时,是通过器件定位模块进行图像检测区域的定位,该定位的位置是预先在器件定位模块处进行设定,待到设定完成之后,就能够准确的定位到待检测的区域,实现对检测区域快速定位,快速的排除干扰,进一步的提升检测的准确性。It should be noted that a communication interface is provided on the top of the camera 4. After the communication interface is electrically connected to the industrial computer, the image input unit can be used to transmit the image information captured by the camera 4 to the industrial computer for detection. When performing image detection and analysis, the image detection area is positioned through the device positioning module. The positioning position is set in the device positioning module in advance. After the setting is completed, the positioning can be accurately To the area to be detected, it can quickly locate the detection area, quickly eliminate interference, and further improve the accuracy of detection.

缺陷定位单元包括灰阶对比模块和缺陷分类模块,且缺陷分类模块包括实例分割部和缺陷分类部,用于缺陷的判定和分类;The defect positioning unit includes a grayscale comparison module and a defect classification module, and the defect classification module includes an instance segmentation part and a defect classification part, which are used to determine and classify defects;

需要说明的是,缺陷分类模块是进行深度学习,实现进行实例分割和缺陷分类,利用这样的方式就能够实现缺陷种类的分隔,使得缺陷种类分析更加清楚,这样在进行后续的缺陷分析时,能够更加准确的获悉缺陷的形式和类别,使得对物料的合格性判断更加准确。It should be noted that the defect classification module performs deep learning to implement instance segmentation and defect classification. In this way, defect types can be separated, making the defect type analysis clearer, so that during subsequent defect analysis, it can The form and type of defects can be learned more accurately, making the judgment of material qualification more accurate.

进一步的,器件定位模块和灰阶对比模块基于传统视觉进行器件检测区域的定位和定位缺陷的灰阶比对,缺陷分类模块基于深度学习进行实例分割和缺陷分类。Furthermore, the device positioning module and the gray-scale comparison module perform positioning of the device detection area and gray-scale comparison of defects based on traditional vision, and the defect classification module performs instance segmentation and defect classification based on deep learning.

算法处理单元包括后处理算法模块,用于缺陷的第一优化处理;The algorithm processing unit includes a post-processing algorithm module for the first optimization processing of defects;

需要说明的是,后处理算法是指在数据处理的最后阶段对结果进行进一步处理和优化的算法。它通常用于改善数据的质量、提高模型的性能或增加预测的准确性。后处理算法可以应用于各种领域,如图像处理、自然语言处理、机器学习等。后处理算法的具体实现取决于任务的特点和需求。它可以包括一系列步骤,例如去噪、平滑化、归一化、过滤、聚类、分类等。这些步骤旨在修复潜在的错误、减少噪声、调整预测结果或提供更好的解释性。在图像处理中,后处理算法可以用于去除图像中的伪影、增强细节、调整图像的亮度和对比度等。而在自然语言处理中,后处理算法可以用于纠正语法错误、处理模糊的词义、提高翻译的流畅性等。总的来说,后处理算法在数据处理的最后阶段起到了关键作用,它可以帮助我们改善数据和模型的表现,并提高我们对数据的理解和利用效果。It should be noted that post-processing algorithms refer to algorithms that further process and optimize results in the final stage of data processing. It is often used to improve the quality of data, improve the performance of a model, or increase the accuracy of predictions. Post-processing algorithms can be applied to various fields, such as image processing, natural language processing, machine learning, etc. The specific implementation of post-processing algorithms depends on the characteristics and requirements of the task. It can include a series of steps such as denoising, smoothing, normalization, filtering, clustering, classification, etc. These steps are designed to fix potential errors, reduce noise, adjust predictions, or provide better interpretability. In image processing, post-processing algorithms can be used to remove artifacts from images, enhance details, adjust the brightness and contrast of images, etc. In natural language processing, post-processing algorithms can be used to correct grammatical errors, deal with ambiguous word meanings, and improve the fluency of translation. In general, post-processing algorithms play a key role in the final stage of data processing. It can help us improve the performance of data and models, and improve our understanding and utilization of data.

处理判定单元包括过滤模块和划分模块,用于缺陷的划分;The processing and judgment unit includes a filtering module and a dividing module, which are used to classify defects;

进一步的,处理判定单元基于规则判定算法,首先通过过滤模块将检测部分划分为多区域块进行合格区筛分过滤,若是合格区域,则输出过滤,若否,则通过点线划分,分别通过长度规则、面积规则和数目规则进行缺陷的分类、缺陷的大小确定和缺陷的坐标位置确定。Further, the processing and determination unit is based on a rule determination algorithm. First, the detection part is divided into multi-area blocks through the filtering module for screening and filtering of qualified areas. If it is a qualified area, the output is filtered. If not, it is divided by dots and lines, respectively by length. Rules, area rules and number rules are used to classify defects, determine the size of defects and determine the coordinate position of defects.

需要说明的是,长度规则是根据残次品所对应的长度作为规则标准,面积规则是根据残次品对应的残次面积作为规则标准,通过长度规则和面积规则来确定缺陷的大小和缺陷的分类,而数目规则是根据划分出的检测区域,判定为残次区域的数量对应进行缺陷坐标的定位。It should be noted that the length rule is based on the length corresponding to the defective product as the rule standard, and the area rule is based on the defective area corresponding to the defective product as the rule standard. The length rule and area rule are used to determine the size and defect of the defect. Classification, and the number rule is based on the divided detection area, and the number of defective areas determined to be corresponding to the positioning of defect coordinates.

输出单元包括缺陷分类输出模块、缺陷大小输出模块和缺陷坐标位置输出模块,用于缺陷的输出。The output unit includes a defect classification output module, a defect size output module and a defect coordinate position output module, which are used for defect output.

实施例二,本发明提供了一种视觉检测系统的检测方法,采用视觉检测系统,检测方法包括以下几个步骤;Embodiment 2: The present invention provides a detection method of a visual detection system, which adopts a visual detection system. The detection method includes the following steps;

第一步,首先将待检测的物料输送至视野范围框502的正下方,此时驱动电机301启动,并控制直线移动模组3进行竖直方向的移动,找准物料的拍摄位置,同时在直线移动模组3移动的过程中带动拍摄像机4同步移动,并通过定位插片307与光感应器306之间的配合,进行拍照位置的定位;In the first step, the material to be detected is first transported to just below the field of view frame 502. At this time, the drive motor 301 is started and controls the linear movement module 3 to move in the vertical direction to find the shooting position of the material. During the movement of the linear movement module 3, the camera 4 is driven to move synchronously, and the photographing position is positioned through the cooperation between the positioning insert 307 and the light sensor 306;

需要说明的是,该步骤是进行拍照前的准备工作,通过该步骤进行调节之后,能够更加准确的实现对待检测物料的定位。It should be noted that this step is the preparation work before taking pictures. After adjustment through this step, the positioning of the material to be detected can be more accurately achieved.

第二步,位置调节好之后,启动拍摄像机4,并调节好镜头组401,确认好拍摄焦距之后,进行待检测物料的拍摄;In the second step, after the position is adjusted, start the camera 4, adjust the lens group 401, confirm the shooting focal length, and then shoot the material to be inspected;

需要说明的是,该步骤是通过拍摄像机4获取待检测物料的图像信息,通过获取图像信息后,再进行图像的分析。It should be noted that this step is to obtain the image information of the material to be detected through the camera 4, and then analyze the image after obtaining the image information.

第三步,检测分析系统在图像输入单元的信号传输下,进行拍摄照片的检测分析,若图像存在缺陷时,先通过器件定位模块进行检测区域的定位,之后利用缺陷定位单元进行缺陷的灰阶比对,之后利用深度学习进行缺陷的实例分割和分类,再依次通过算法处理单元和处理判定单元进一步的进行缺陷的计算和划分,得到缺陷的分类、缺陷的大小和缺陷的坐标位置;In the third step, the detection and analysis system performs detection and analysis of the photos taken under the signal transmission of the image input unit. If there is a defect in the image, the detection area is first positioned through the device positioning module, and then the defect positioning unit is used to perform grayscale determination of the defect. After comparison, deep learning is then used to segment and classify defect instances, and then the algorithm processing unit and processing decision unit are used to further calculate and divide the defects to obtain the classification of the defect, the size of the defect, and the coordinate position of the defect;

第四步,将所得到的缺陷分类、缺陷大小和缺陷坐标位置通过输出单元进行输出,此时一组物料的视觉检测完成。In the fourth step, the obtained defect classification, defect size and defect coordinate position are output through the output unit. At this time, the visual inspection of a group of materials is completed.

需要说明的是,通过将对应分类号的缺陷输出之后,进行分析比对,筛选出不合格产品,这样分类筛选之后,能够使得检测筛选更加准确。It should be noted that by outputting the defects corresponding to the classification number, conducting analysis and comparison, and screening out unqualified products, such classification and screening can make the detection and screening more accurate.

最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, it is still The technical solutions described in the foregoing embodiments may be modified, or equivalent substitutions may be made to some of the technical features. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in within the protection scope of the present invention.

Claims (10)

1. The utility model provides a visual inspection system, includes places bottom plate (1), its characterized in that, the top of placing bottom plate (1) is provided with the rack, the front of rack is vertical to be provided with and is used for adjusting vertical rectilinear movement module (3) of shooting position, one side of rectilinear movement module (3) is provided with the locating component that is used for removing the position location, the front of rectilinear movement module (3) is provided with visual inspection's shooting subassembly, shooting subassembly includes camera (4), shading mechanism and is used for defect analysis's detection analysis system, detection analysis system includes image input unit, defect location unit, algorithm processing unit, processing determination unit and output unit.
2. A visual inspection system according to claim 1, wherein the placement frame comprises an N-shaped frame (2), the bottoms of the two arms of the N-shaped frame (2) are fixedly connected with a mounting plate (201), the mounting plate (201) is fixedly connected to the top end of the placement base plate (1), the front surface of the N-shaped frame (2) is provided with a connecting carriage (302), and the positioning assembly comprises a positioning insert (307) arranged on one side of the connecting carriage (302).
3. The visual inspection system according to claim 2, wherein the connecting carriage (302) is slidably sleeved in the middle of the linear movement module (3), light sensors (306) for matching with the positioning insertion sheet (307) to realize positioning are respectively arranged at the top and the bottom of one side of the linear movement module (3), and a driving motor (301) for driving the linear movement module (3) to move is arranged at the top of the linear movement module (3).
4. The visual inspection system according to claim 1, wherein the front surface of the linear movement module (3) is provided with a connecting mechanism for connecting the shooting assembly, the connecting mechanism comprises a connecting plate (303) fixedly connected to the front surface of the linear movement module (3), the front surface of the middle part of the connecting plate (303) is provided with a connecting block (304), one end, far away from the connecting plate (303), of the connecting block (304) is fixedly connected with the back surface of the shooting camera (4), and the front surface of the bottom of the connecting plate (303) is provided with a connecting frame (305) for connecting the shading mechanism.
5. The visual inspection system according to claim 4, wherein the light shielding mechanism comprises a light shielding frame (5) fixedly connected to the bottom end of the connecting frame (305), a plurality of light shielding plates (501) are arranged in the middle of the light shielding frame (5), and a view field range frame (502) for limiting a photographing view field range is arranged in the middle of the light shielding frame (5) and under the photographing camera (4).
6. A visual inspection system according to claim 5, characterized in that a lens group (401) for adjusting the focal length of the beat camera (4) is arranged between the bottom end of the shooting camera (4) and the top end of the field of view frame (502).
7. A visual inspection system according to claim 1, wherein the image input unit comprises an image input module and a device positioning module for transmission of images and positioning of inspection areas;
the defect positioning unit comprises a gray scale comparison module and a defect classification module, and the defect classification module comprises an example division part and a defect classification part which are used for judging and classifying defects;
the algorithm processing unit comprises a post-processing algorithm module and is used for performing first optimization processing on the defects;
the processing judging unit comprises a filtering module and a dividing module, and is used for dividing defects;
the output unit comprises a defect classification output module, a defect size output module and a defect coordinate position output module, and is used for outputting defects.
8. The vision inspection system of claim 7, wherein the device localization module and the gray scale comparison module perform localization of device inspection areas and gray scale comparison of localized defects based on conventional vision, and the defect classification module performs instance segmentation and defect classification based on deep learning.
9. A visual inspection system as set forth in claim 7, wherein said process determination unit is based on a rule determination algorithm.
10. A detection method of a visual detection system, characterized in that a visual detection system according to any one of claims 1-9 is used, said detection method comprising the following steps;
firstly, conveying a material to be detected to the position right below a visual field range frame (502), starting a driving motor (301) at the moment, controlling a linear moving module (3) to move in the vertical direction, finding the shooting position of the material, simultaneously driving a shooting camera (4) to synchronously move in the moving process of the linear moving module (3), and positioning the shooting position through the cooperation between a positioning inserting sheet (307) and a light sensor (306);
secondly, after the position is adjusted, starting a camera (4), adjusting a lens group (401), and after confirming the shooting focal length, shooting the material to be detected;
thirdly, the detection analysis system performs detection analysis of the shot photo under the signal transmission of the image input unit, if the image has defects, the device positioning module is used for positioning a detection area, then the defect positioning unit is used for gray scale comparison of the defects, then the deep learning is used for example segmentation and classification of the defects, and then the algorithm processing unit and the processing judgment unit are used for further performing calculation and division of the defects in sequence to obtain classification of the defects, the sizes of the defects and the coordinate positions of the defects;
and fourthly, outputting the obtained defect classification, defect size and defect coordinate position through an output unit, and completing visual detection of a group of materials.
CN202311214081.0A 2023-09-19 2023-09-19 A visual inspection system and its inspection method Pending CN117761060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311214081.0A CN117761060A (en) 2023-09-19 2023-09-19 A visual inspection system and its inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311214081.0A CN117761060A (en) 2023-09-19 2023-09-19 A visual inspection system and its inspection method

Publications (1)

Publication Number Publication Date
CN117761060A true CN117761060A (en) 2024-03-26

Family

ID=90320544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311214081.0A Pending CN117761060A (en) 2023-09-19 2023-09-19 A visual inspection system and its inspection method

Country Status (1)

Country Link
CN (1) CN117761060A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118023164A (en) * 2024-04-12 2024-05-14 漳州农智数控科技有限公司 Multichannel small fruit vision sorter

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110672617A (en) * 2019-09-14 2020-01-10 华南理工大学 Method for detecting defects of silk-screen area of glass cover plate of smart phone based on machine vision
CN111951237A (en) * 2020-08-04 2020-11-17 上海微亿智造科技有限公司 Visual appearance detection method
CN113155851A (en) * 2021-04-30 2021-07-23 西安交通大学 Copper-clad plate surface defect visual online detection method and device based on deep learning
CN215179745U (en) * 2021-06-10 2021-12-14 深圳技术大学 a detection device
CN114486916A (en) * 2022-01-26 2022-05-13 上海电机学院 Defect detection method of mobile phone glass cover based on machine vision
CN116223528A (en) * 2023-05-09 2023-06-06 超音速人工智能科技股份有限公司 Visual inspection system
CN220912996U (en) * 2023-09-19 2024-05-07 常州超音速智能装备有限公司 CCD visual detection mechanism and SMT material collecting equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110672617A (en) * 2019-09-14 2020-01-10 华南理工大学 Method for detecting defects of silk-screen area of glass cover plate of smart phone based on machine vision
CN111951237A (en) * 2020-08-04 2020-11-17 上海微亿智造科技有限公司 Visual appearance detection method
CN113155851A (en) * 2021-04-30 2021-07-23 西安交通大学 Copper-clad plate surface defect visual online detection method and device based on deep learning
CN215179745U (en) * 2021-06-10 2021-12-14 深圳技术大学 a detection device
CN114486916A (en) * 2022-01-26 2022-05-13 上海电机学院 Defect detection method of mobile phone glass cover based on machine vision
CN116223528A (en) * 2023-05-09 2023-06-06 超音速人工智能科技股份有限公司 Visual inspection system
CN220912996U (en) * 2023-09-19 2024-05-07 常州超音速智能装备有限公司 CCD visual detection mechanism and SMT material collecting equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118023164A (en) * 2024-04-12 2024-05-14 漳州农智数控科技有限公司 Multichannel small fruit vision sorter

Similar Documents

Publication Publication Date Title
CN111612737B (en) Artificial board surface flaw detection device and detection method
CN105783723B (en) Precision die surface processing accuracy detection device and method based on machine vision
CN106248686A (en) Glass surface defects based on machine vision detection device and method
CN114638797A (en) Method and device for detecting copper surface defects based on linear array camera
CN109584239B (en) High-light object surface defect detection system and method based on reflected light
CN106247969A (en) A deformation detection method of industrial magnetic core components based on machine vision
CN107238955B (en) Liquid crystal module screen detection system
CN110207951A (en) A kind of aircraft cable support assembled state detection method of view-based access control model
CN109406527B (en) System and method for detecting fine appearance defects of micro camera module lens
CN113251926B (en) Method and device for measuring size of irregular object
CN113920090A (en) Preform appearance defect automatic detection method based on deep learning
CN111551559A (en) LCD (liquid Crystal display) liquid crystal screen defect detection method based on multi-view vision system
KR20140146137A (en) Image processing system, image processing method, and image processing program
TWM606740U (en) Defect detection system
CN110706224A (en) Method, system and device for weak scratch detection of optical components based on dark field images
CN116071315A (en) Product visual defect detection method and system based on machine vision
CN117825406A (en) PCB apparent micro defect detection system
CN117761060A (en) A visual inspection system and its inspection method
CN114219758A (en) Defect detection method, system, electronic device and computer readable storage medium
CN112927190B (en) Type-C multi-station multi-defect unified measurement system based on deep learning
CN112734742B (en) Method and system for improving industrial quality inspection accuracy
CN115311250A (en) Appearance detection method of cigarettes based on deep learning and spatiotemporal feature fusion
TWI749714B (en) Method for defect detection, method for defect classification and system thereof
CN111563869B (en) Stain test method for quality inspection of camera module
CN111239162A (en) Full-automatic glasses lens check out test set

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