Defect detection method based on dynamic visual sensor, medium, equipment and device

Through the combination of dynamic vision sensors and yolov5 network, combined with the two-way timing fusion algorithm, the problem of low accuracy of existing defect detection methods and poor detection of highly reflective materials has been solved, and defect detection effects with high accuracy and low false alarm rate have been achieved. .

CN118608458APending Publication Date: 2024-09-06GUANGZHOU INSTITUTE OF TECHNOLOY XIDIAN UNIVERSITY +1

Patent Information

Application Number
CN202410624063.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing defect detection methods have low accuracy, especially for highly reflective materials, and are not suitable for large-scale applications.

Method used

Dynamic visual sensors are used to collect event information from different angles of the object to be detected, initial detection is performed through the yolov5 network, and a two-way time series fusion algorithm is used to fuse the initial detection results to obtain the final detection results.

Benefits of technology

It effectively improves the accuracy of defect detection, especially on highly reflective materials, reduces the false alarm rate, and is suitable for large-scale applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608458A
    Figure CN118608458A
Patent Text Reader

Abstract

The invention discloses a defect detection method based on a dynamic vision sensor, a medium, equipment and a device. The method comprises the following steps: collecting event information of an object to be detected at different angles by adopting the dynamic vision sensor and generating a plurality of images; detecting the image by adopting a yolov5 network to obtain an initial detection result of the defect image; wherein the defect image is an image in which defects are detected, and the initial detection result comprises confidence, defect types and defect positions; and performing fusion detection on the initial detection results of the plurality of defect images by adopting a bidirectional time sequence fusion algorithm to obtain a final detection result of the to-be-detected object. According to the embodiment of the invention, the defect information of the high-reflective material can be effectively captured by using the dynamic visual sensor; defect detection is carried out by adopting the yov5 network, and the initial detection results are fused by further adopting the bidirectional time sequence fusion algorithm, so that the false alarm rate can be effectively reduced, and the defect detection accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a defect detection method, medium, equipment and device based on a dynamic vision sensor. Background Art

[0002] Defect detection is an important step in industrial production. There are three mainstream defect detection methods, namely manual visual inspection, machine vision inspection based on traditional cameras, and laser inspection. However, the accuracy of manual visual inspection is low, because people are prone to eye fatigue during long-term assembly line operations, resulting in missed inspections, and some subtle defects are difficult to identify by the human eye; machine vision inspection based on traditional cameras can only detect a limited number of product types. When the object to be inspected is a highly reflective material, traditional cameras cannot capture effective images due to high exposure, and the accuracy of the inspection results cannot meet the requirements; and laser inspection has a small detection range, and requires manual pre-demarcation of areas and measurement of distances, which is not suitable for large-scale promotion and application. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a defect detection method, medium, equipment and device based on a dynamic vision sensor to solve the problem that the defect detection accuracy in the prior art is low and cannot be applied to defect detection of highly reflective materials.

[0004] To achieve the above object, an embodiment of the present invention provides a defect detection method based on a dynamic vision sensor, comprising:

[0005] A dynamic visual sensor is used to collect event information of the object to be detected at different angles and generate several images;

[0006] The image is detected using a yolov5 network to obtain an initial detection result of a defect image; wherein the defect image is an image in which defects are detected, and the initial detection result includes a confidence level, a defect type, and a defect location;

[0007] A bidirectional temporal fusion algorithm is used to perform fusion detection on the initial detection results of the defect images to obtain the final detection result of the object to be detected.

[0008] As an improvement of the above scheme, the yolov5 network detects the image by frame skipping detection, specifically including:

[0009] According to the preset frame skipping interval, the selected image is detected using the yolov5 network, and the corresponding skipped image is stored in the cache area;

[0010] When the selected image is detected as a defective image, the yolov5 network is used to detect the skipped image.

[0011] As an improvement of the above solution, the surface of the object to be detected is pre-divided into several areas, the defect position includes the area where the defect is located, and the area where the defect is located is specifically obtained by the following method:

[0012] The yolov5 network is used to obtain the absolute position coordinates of the defect;

[0013] According to the absolute position coordinates of the defect and the absolute position coordinates of the reference point on the object to be detected, obtaining the position coordinates of the defect relative to the reference point;

[0014] According to the position coordinates of the defect relative to the reference point, the area where the defect is located is obtained.

[0015] As an improvement of the above solution, the bidirectional temporal fusion algorithm is used to perform fusion detection on the initial detection results of the defect images to obtain the final detection result of the object to be detected, which specifically includes:

[0016] When a second preset number of defect images with the same defect position are detected among a first preset number of consecutive defect images, it is determined that the object to be detected has defects; wherein the second preset number is less than or equal to the first preset number, and the same defect position means that the area where the defects are located is the same;

[0017] From the second preset number of defect images with the same defect position, the defect image with the highest confidence is selected and its position coordinates relative to the reference point are used as the final defect position.

[0018] As an improvement of the above scheme, the yolov5 network is an improved yolov5 network obtained by replacing the convolutional network in the CSP component with a deformable convolutional network.

[0019] As an improvement of the above scheme, the yolov5 network is pre-trained using a data set; wherein the data set includes a false alarm data set and a defect data set, and the defect labels in the defect data set include at least one of points, scratches and stains.

[0020] To achieve the above-mentioned purpose, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the defect detection method based on the dynamic visual sensor as described in any of the above embodiments.

[0021] To achieve the above objectives, an embodiment of the present invention further provides a computer device, including a processor and a memory, wherein a computer program is stored in the memory, and the computer program is configured to be executed by the processor, and when the processor executes the computer program, the defect detection method based on the dynamic visual sensor as described in any of the above embodiments is implemented.

[0022] To achieve the above object, an embodiment of the present invention further provides a defect detection device based on a dynamic vision sensor, wherein the defect detection device based on a dynamic vision sensor comprises the computer device as described in the above embodiment; and the defect detection device based on a dynamic vision sensor also comprises a bracket, a material discharge area, a machine table, a dynamic vision sensor, a clamp and a moving device, wherein:

[0023] The bracket and the material discharge area are both fixedly connected to the machine platform;

[0024] The dynamic vision sensor is fixed on the bracket;

[0025] The clamp is fixed on the mobile device, and the clamp is used to control the object to be detected to rotate within the field of view of the dynamic vision sensor to collect event information of the object to be detected at different angles.

[0026] As an improvement of the above scheme, the moving device includes an X-axis drag chain, a Y-axis drag chain and a Z-axis drag chain fixed in the drag chain groove; and the X-axis drag chain and the Y-axis drag chain are connected by a YX connecting plate, and the X-axis drag chain and the Z-axis drag chain are connected by an XZ connecting plate.

[0027] Compared with the prior art, the embodiments of the present invention provide a defect detection method, medium, equipment and device based on dynamic vision sensors, which use dynamic vision sensors to collect event information of the object to be detected at different angles and generate several images; use the yolov5 network to detect the image to obtain the initial detection result of the defect image; wherein the defect image is an image in which defects are detected, and the initial detection result includes confidence, defect type and defect location; a bidirectional temporal fusion algorithm is used to fuse the initial detection results of several defect images to obtain the final detection result of the object to be detected. The embodiments of the present invention can effectively capture the defect information of highly reflective materials by using dynamic vision sensors; by using the yolov5 network for defect detection and further using the bidirectional temporal fusion algorithm to fuse the initial detection results, the false alarm rate can be effectively reduced and the accuracy of defect detection can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a flow chart of a defect detection method based on a dynamic vision sensor provided by an embodiment of the present invention;

[0029] Figure 2 It is a structural schematic diagram of a defect detection device based on a dynamic vision sensor provided by an embodiment of the present invention;

[0030] 1. Dynamic vision sensor; 2. Pneumatic gripper; 3. Plate for placing boxes for materials to be inspected; 4. Plate for placing boxes for re-inspection; 5. Plate for placing boxes for defective materials; 6. Plate for placing boxes for OK materials; 7. Z-axis drag chain; 8. X-axis drag chain; 9. Y-axis drag chain; 10. First rotary cylinder; 11. Bracket; 12. Machine table; 13. YX connecting plate; 14. XZ connecting plate; 15. Linkage bracket; 16. Second rotary cylinder. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] See also Figure 1 , is a flow chart of a defect detection method based on a dynamic vision sensor provided by an embodiment of the present invention, comprising steps S1 to S3:

[0033] S1. Use a dynamic visual sensor to collect event information of the object to be detected at different angles and generate several images;

[0034] S2. Using the yolov5 network to detect the image, and obtaining an initial detection result of the defect image; wherein the defect image is an image in which defects are detected, and the initial detection result includes confidence, defect type and defect location;

[0035] S3. Use a bidirectional time series fusion algorithm to perform fusion detection on the initial detection results of the defect images to obtain the final detection result of the object to be detected.

[0036] It can be understood that unlike traditional cameras that output frame images at a fixed frequency, dynamic vision sensors only need to output the addresses of pixels where light intensity changes and the polarity of the photosensitivity changes, that is, output event information, and then process the event information line by line to generate an image. Compared with traditional cameras, dynamic vision sensors have the advantages of low redundancy and low latency, and can effectively overcome the problem of high exposure.

[0037] Furthermore, in order to improve the accuracy of defect detection, it is necessary to collect information of the object to be detected at different angles in step S1, and preferably, the object to be detected should be controlled to rotate continuously within the field of view of the dynamic vision sensor so that there is a time relationship between each image, so as to further improve the accuracy of defect detection.

[0038] Compared with the prior art, after the embodiment of the present invention obtains the initial detection result in step S2, it further performs fusion detection on the defect image in step S3, that is, by detecting whether the defect type and defect position of adjacent defect images are the same, the final defect detection result is obtained, thereby further reducing the false alarm rate and improving the accuracy of defect detection.

[0039] Compared with the prior art, the embodiments of the present invention can effectively capture the defect information of highly reflective materials by using dynamic vision sensors; by adopting the yolov5 (You Only Look Once Version 5) network for defect detection and further adopting a bidirectional temporal fusion algorithm to fuse the initial detection results, it can effectively reduce the false alarm rate and improve the accuracy of defect detection.

[0040] As an optional implementation, the yolov5 network detects the image by using a frame skipping detection method, specifically including:

[0041] According to the preset frame skipping interval, the selected image is detected using the yolov5 network, and the corresponding skipped image is stored in the cache area;

[0042] When the selected image is detected as a defective image, the yolov5 network is used to detect the skipped image.

[0043] In order to further improve the efficiency of defect detection, the embodiment of the present invention adopts a frame skipping detection method when using the yolov5 network for defect detection. For example, the frame skipping interval can be set to 5 frames, and the image (current image) is input into the yolov5 network for detection every 5 frames, and the first 4 images that are not selected are placed in the cache area; if the current image is a defective image, the subsequent 5 images will not be subjected to frame skipping operation, that is, they are all input into the yolov5 network for detection, and the 4 images in the cache area are also required to be input into the yolov5 network for detection, and then all the detected defective images are arranged in chronological order to perform fusion detection through a bidirectional temporal fusion algorithm.

[0044] Compared with the prior art, the embodiment of the present invention sets a detection method of frame skipping detection. Before a defect is detected, each frame of the image is not detected. By performing frame skipping processing, the detection time can be effectively reduced and the detection efficiency can be improved. Furthermore, a cache area is also set up during frame skipping detection to store the currently skipped image, so that after the defective image is detected, the skipped image can be read from the cache area for detection, avoiding the loss of important information due to frame skipping, and further ensuring the accuracy of defect detection. The embodiment of the present invention can effectively take into account the timeliness and accuracy of defect detection by adopting frame skipping detection and setting a cache area.

[0045] As one optional implementation manner, the surface of the object to be detected is pre-divided into a plurality of regions, the defect position includes the region where the defect is located, and the region where the defect is located is specifically obtained by:

[0046] The yolov5 network is used to obtain the absolute position coordinates of the defect;

[0047] According to the absolute position coordinates of the defect and the absolute position coordinates of the reference point on the object to be detected, obtaining the position coordinates of the defect relative to the reference point;

[0048] According to the position coordinates of the defect relative to the reference point, the area where the defect is located is obtained.

[0049] It is worth noting that since the object to be inspected needs to be rotated during the defect detection process, the absolute position coordinates of the same defect detected in different defect images will be different. The embodiment of the present invention can accurately identify the defect position by setting a reference point and calculating the position of the defect relative to the reference point, thereby improving the accuracy of defect detection.

[0050] Furthermore, the embodiment of the present invention divides the surface of the object to be tested into several areas, and determines the area where the defect is located in each defect image, and then judges whether the defect positions of several temporally consecutive defect images are the same based on whether the areas are the same. Compared with directly judging by the position coordinates of the defect, the embodiment of the present invention simplifies the judgment logic and improves the judgment efficiency through area judgment.

[0051] Exemplarily, assuming that the object to be detected is a disk, the reference point can be the center of the disk, and the surface of the disk can be divided into 6 concentric circle areas; further, the inner circle of the disk can be identified by the Hough circle algorithm and the absolute position coordinates of the center of the circle can be calculated, and then the position of the defect relative to the center of the circle can be determined according to the absolute position coordinates of the defect and the absolute position coordinates of the center of the circle, and finally the area where the defect is located can be determined.

[0052] As an optional implementation, the bidirectional time series fusion algorithm is used to perform fusion detection on the initial detection results of the defect images to obtain the final detection result of the object to be detected, which specifically includes:

[0053] When a second preset number of defect images with the same defect position are detected among a first preset number of consecutive defect images, it is determined that the object to be detected has defects; wherein the second preset number is less than or equal to the first preset number, and the same defect position means that the area where the defects are located is the same;

[0054] From the second preset number of defect images with the same defect position, the defect image with the highest confidence is selected and its position coordinates relative to the reference point are used as the final defect position.

[0055] Exemplarily, the first preset number is recorded as M, and the second preset number is recorded as N. The bidirectional time series fusion algorithm can be understood as determining whether N defect images appear in M ​​consecutive defect images, and the defects of the N defect images are in the same area. If so, it is determined that there is a defect in the object to be inspected, and the defect image with the highest confidence is selected from the N defect images to use its position coordinates relative to the reference point as the final defect position. It can be understood that the defect types of the N defect images should also be the same.

[0056] It is worth noting that in order to avoid the problem of false alarms, that is, to avoid identifying intact objects as defective objects, an embodiment of the present invention adopts a bidirectional time series fusion algorithm to perform fusion detection on several defective images that are adjacent in time series. When N defective images in M ​​consecutive defective images have defects of the same type and the areas where the defects are located are the same, it is considered that the detection result is not a false alarm and that the object to be detected does have defects. Furthermore, in order to simplify the judgment logic of the fusion detection, when judging the M defective images, only whether the areas where the defects are located are the same is judged, and the coordinates are not judged. After confirming that there are defects in the object to be detected, the position coordinates of the defect relative to the reference point are used as the final defect position. Compared with directly outputting the area where the defect is located, the defect position obtained by the embodiment of the present invention is more accurate.

[0057] Furthermore, the values ​​of M (the first preset number) and N (the second preset number) can be determined by global traversal. For example, two integers are randomly selected as M and N (N cannot be greater than M) in the interval [1, 50] to obtain all combinations of M and N; a pre-constructed training data set is used to test the defect detection accuracy under each combination and the combination with the highest accuracy is selected as the final value. Furthermore, the training data set can also include a defect data set and a lossless data set. For each combination of M and N, it is necessary to detect its recognition rate of defects in the defect data set and its false alarm rate when detecting the lossless data set, and obtain the final defect detection accuracy based on the recognition rate and the false alarm rate.

[0058] As an optional implementation manner, the yolov5 network is an improved yolov5 network obtained by replacing the convolutional network in the CSP component with a deformable convolutional network.

[0059] It can be understood that the yolov5 network is divided into Backbone module, Neck module and Head module. The Backbone module is responsible for feature extraction of the input image, the Neck module is responsible for multi-scale fusion of feature maps, and the Head module is responsible for outputting prediction results. Among them, the Neck module can obtain feature maps of different sizes according to the scale of the object to be identified, which are 19*19, 38*38 and 76*76 feature maps respectively. Exemplarily, in the network of the 19*19 feature map generated by the Head module, the convolution in the CSP (Cross Stage Partial) component can be replaced by a deformable convolution.

[0060] The embodiment of the present invention adopts a deformable convolutional network to replace the convolutional network in the CSP component. The deformable convolution can be used to offset the convolution position through the self-attention mechanism, thereby extracting slender target information, expanding the receptive field, and accelerating the detection speed.

[0061] As one optional implementation manner, the yolov5 network is pre-trained using a data set; wherein the data set includes a false alarm data set and a defect data set, and the defect labels in the defect data set include at least one of points, scratches and stains.

[0062] It is understandable that the larger the number of data sets, the higher the accuracy of the trained yolov5 network in identifying defects. For example, the number of samples in the data set can be 15,000. Among them, the false alarm data set can also be called a false alarm pool, and the false alarm pool is constructed as follows: first, the image without false alarm annotation is input into the yolov5 network for detection to obtain a number of defect images; then, the misidentified images (actually there is no defect, but the defect image is identified as a defective image by the yolov5 network) are found from the defect images identified by the yolov5 network and added to the false alarm pool; the images in the false alarm pool are used to iteratively train the yolov5 network until the false alarm rate is lower than the preset threshold, wherein, in each iterative training, if a false alarm occurs, the corresponding defect image is added to the false alarm pool to update the false alarm pool.

[0063] Compared with the prior art, the embodiment of the present invention constructs a false alarm pool by screening out misidentified images, and then uses the false alarm pool specifically to train the YOLOv5 network, which can significantly reduce the false alarm rate of the YOLOv5 network and further improve the accuracy of defect detection.

[0064] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the defect detection method based on dynamic visual sensors as described in any of the above embodiments.

[0065] An embodiment of the present invention also provides a computer device, including a processor and a memory, wherein a computer program is stored in the memory, and the computer program is configured to be executed by the processor, and when the processor executes the computer program, the defect detection method based on the dynamic visual sensor as described in any of the above embodiments is implemented.

[0066] Compared with the prior art, the defect detection method based on dynamic visual sensors, computer-readable storage media and computer equipment provided in the embodiments of the present invention use dynamic visual sensors to collect event information of the object to be detected at different angles and generate several images; the images are detected by the yolov5 network to obtain the initial detection results of the defect images; wherein the defect image is an image in which defects are detected, and the initial detection results include confidence, defect type and defect location; the initial detection results of several defect images are fused and detected by a bidirectional temporal fusion algorithm to obtain the final detection results of the object to be detected. The embodiments of the present invention can effectively capture the defect information of highly reflective materials by using dynamic visual sensors; by using the yolov5 network for defect detection and further using the bidirectional temporal fusion algorithm to fuse the initial detection results, the false alarm rate can be effectively reduced and the accuracy of defect detection can be improved.

[0067] The embodiment of the present invention further provides a defect detection device based on a dynamic vision sensor, the defect detection device based on a dynamic vision sensor comprises the computer device as described in the above embodiment; and the defect detection device based on a dynamic vision sensor also comprises a bracket, a material discharge area, a machine, a dynamic vision sensor, a clamp and a moving device, wherein:

[0068] The bracket and the material discharge area are both fixedly connected to the machine platform;

[0069] The dynamic vision sensor is fixed on the bracket;

[0070] The clamp is fixed on the mobile device, and the clamp is used to control the object to be detected to rotate within the field of view of the dynamic vision sensor to collect event information of the object to be detected at different angles.

[0071] Exemplarily, the gripper may be a robotic gripper, which includes a rotary cylinder, a gripper connector, and a three-jaw mechanical clamp, and the three-jaw mechanical clamp is extended and retracted under the drive of the rotary cylinder; the gripper may also be a pneumatic gripper, which realizes the gripping and rotation of the object to be inspected by pneumatic means; the implementation form of the gripper is not limited here.

[0072] Exemplarily, the discharge area may include an inspection area, a defect area and a non-destructive area, wherein the inspection area is used to place uninspected objects, the defect area is used to place objects detected with defects, and the non-destructive area is used to place objects detected without defects.

[0073] Exemplarily, the computer device can control the robotic gripper to grab an object in the inspection area and move it into the field of view of the dynamic vision sensor for rotation; the computer device can also generate an image and perform defect detection based on the event information transmitted back by the dynamic vision sensor; the computer device can also control the robotic gripper to place the object to be inspected into the defect area or the non-destructive area based on the defect detection results; the computer device can also visualize the defect results.

[0074] As one optional embodiment, the moving device includes an X-axis drag chain, a Y-axis drag chain and a Z-axis drag chain fixed in a drag chain groove; and the X-axis drag chain and the Y-axis drag chain are connected by a YX connecting plate, and the X-axis drag chain and the Z-axis drag chain are connected by an XZ connecting plate.

[0075] It can be understood that the X-axis drag chain, the Y-axis drag chain and the Z-axis drag chain together constitute a mobile device, and the drag chain in three directions in the mobile device can drive the clamp to move in three degrees of freedom.

[0076] See also Figure 2, is a structural schematic diagram of a defect detection device based on a dynamic vision sensor provided by an embodiment of the present invention, wherein a bracket 11 is used to fix the dynamic vision sensor 1, and the bracket 11 is fixed on a machine table 12; the dynamic vision sensor 1 is used to collect event information of the object to be detected at different angles and transmit it to a computer (not shown in the figure); the pneumatic clamp 2 is controlled by the first rotating cylinder 10, and can clamp by expanding the inner circle of the locking disk, and realize the rotation of the disk by pneumatics; the to-be-inspected material box placement plate 3 is used to place uninspected objects; the re-inspection material box placement plate 4 is used to place objects that have not been fully inspected; the defective material box placement Plate 5 is used to place objects that have been inspected for defects; OK material box placement plate 6 is used to place objects that have been inspected for non-damage; linkage brackets 15 are welded at the bottom of the to-be-inspected material box placement plate 3, the defective material box placement plate 5, and the OK material box placement plate 6, which are used to place the disc box for convenient fixing and positioning; the bottom of the re-inspection material box placement plate 4 is connected to the second rotating cylinder 16; the x-axis drag chain 8, the y-axis drag chain 9 and the z-axis drag chain 7 together constitute a moving device, which is used to drive the pneumatic clamp 2 to achieve three-degree-of-freedom movement, and the X-axis drag chain 8 and the Y-axis drag chain 9 are connected by the YX connecting plate 13, and the X-axis drag chain 8 and the Z-axis drag chain 7 are connected by the XZ connecting plate 14.

[0077] It should be noted that, in this embodiment, each disc is inspected for defects twice, so a re-inspection box placement plate 4 is set up, that is, the front side of the disc is inspected first, and then the disc is placed on the re-inspection box placement plate 4, and the second rotating cylinder 16 at the bottom of the re-inspection box placement plate 4 rotates the re-inspection box placement plate 4 so that the pneumatic clamp 2 can re-grip the disc to achieve the flipping of the disc, and then the pneumatic clamp 2 moves the disc to the field of view of the dynamic vision sensor 1 and rotates to inspect the back side of the disc, and finally the computer integrates the results of the two inspections to control the pneumatic clamp 2 to place the disc on the defective box placement plate 5 or the OK box placement plate 6.

[0078] Compared with the prior art, the defect detection device based on dynamic vision sensor provided in the embodiment of the present invention controls the gripper to grab the object to be detected and move it to the field of view of the dynamic vision sensor for rotation through a computer device, collects event information of the object to be detected at different angles through the dynamic vision sensor and transmits it to the computer device, and the computer device uses the yolov5 network and bidirectional time series fusion algorithm to perform defect detection based on the event information, and controls the gripper to place the object to be detected into the corresponding discharge area according to the defect detection result. The defect detection device of the dynamic vision sensor provided in the embodiment of the present invention can realize automatic defect detection of materials with high accuracy, and is particularly suitable for defect detection of highly reflective materials.

[0079] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A defect detection method based on a dynamic vision sensor, characterized in that: include: Dynamic visual sensors are used to collect event information of the object to be detected at different angles and generate several images; The image is detected using a yolov5 network to obtain an initial detection result of a defect image; wherein the defect image is an image in which defects are detected, and the initial detection result includes a confidence level, a defect type, and a defect location; A bidirectional temporal fusion algorithm is used to perform fusion detection on the initial detection results of the defect images to obtain the final detection result of the object to be detected.

2. The defect detection method based on dynamic visual sensor according to claim 1, characterized in that: The yolov5 network detects the image using a frame skipping detection method, specifically including: According to the preset frame skipping interval, the selected image is detected using the yolov5 network, and the corresponding skipped image is stored in the cache area; When the selected image is detected as a defective image, the yolov5 network is used to detect the skipped image.

3. The defect detection method based on dynamic visual sensor according to claim 1, characterized in that: The surface of the object to be detected is pre-divided into several areas, the defect position includes the area where the defect is located, and the area where the defect is located is specifically obtained by the following method: The yolov5 network is used to obtain the absolute position coordinates of the defect; According to the absolute position coordinates of the defect and the absolute position coordinates of the reference point on the object to be detected, obtaining the position coordinates of the defect relative to the reference point; According to the position coordinates of the defect relative to the reference point, the area where the defect is located is obtained.

4. The defect detection method based on dynamic visual sensor according to claim 3, characterized in that: The method of using a bidirectional temporal fusion algorithm to fuse the initial detection results of the defect images to obtain the final detection result of the object to be detected specifically includes: When a second preset number of defect images with the same defect position are detected among a first preset number of consecutive defect images, it is determined that the object to be detected has defects; wherein the second preset number is less than or equal to the first preset number, and the same defect position means that the area where the defects are located is the same; From the second preset number of defect images with the same defect position, the defect image with the highest confidence is selected and its position coordinates relative to the reference point are used as the final defect position.

5. The defect detection method based on dynamic visual sensor according to claim 1, characterized in that: The yolov5 network is an improved yolov5 network obtained by replacing the convolutional network in the CSP component with a deformable convolutional network.

6. The defect detection method based on dynamic visual sensor according to claim 1, characterized in that: The yolov5 network is pre-trained using a data set; wherein the data set includes a false alarm data set and a defect data set, and the defect labels in the defect data set include at least one of points, scratches and stains.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the defect detection method based on a dynamic visual sensor according to any one of claims 1 to 6.

8. A computer device, characterized in that: It comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is configured to be executed by the processor, and when the processor executes the computer program, the defect detection method based on the dynamic vision sensor as claimed in any one of claims 1 to 6 is implemented.

9. A defect detection device based on a dynamic vision sensor, characterized in that: The defect detection device based on dynamic vision sensor includes the computer device as claimed in claim 8; and the defect detection device based on dynamic vision sensor also includes a bracket, a material discharge area, a machine, a dynamic vision sensor, a clamp and a moving device, wherein: The bracket and the material discharge area are both fixedly connected to the machine platform; The dynamic vision sensor is fixed on the bracket; The clamp is fixed on the mobile device, and the clamp is used to control the object to be detected to rotate within the field of view of the dynamic vision sensor to collect event information of the object to be detected at different angles.

10. The defect detection device based on dynamic vision sensor according to claim 9, characterized in that: The moving device includes an X-axis drag chain, a Y-axis drag chain and a Z-axis drag chain fixed in a drag chain groove; and the X-axis drag chain and the Y-axis drag chain are connected by a YX connecting plate, and the X-axis drag chain and the Z-axis drag chain are connected by an XZ connecting plate.

Citation Information

Patent Citations

  • Method and system for detecting quality of video

    CN103281559A

  • Defect detection method and system based on dynamic visual sensor

    CN116309291A

  • Workpiece defect detection method and device based on event camera

    CN116363065A

  • Thin-wall part riveting surface defect detection method based on deep learning

    CN117726589A

  • Method for obtaining defect position of liquid crystal display panel and liquid crystal display panel defect positioning device

    WO2019041691A1

Cited By

  • Rolov5-based part defect detection method and system

    CN120746942A