Detection method, system and detection table

By utilizing the combination of a moving mechanism and a vision device in the inspection system, the system can detect in real time whether the workpiece meets the processing requirements, thus solving the problems of low accuracy and efficiency in traditional inspection methods and achieving efficient and accurate inspection and timely processing correction.

CN121855394APending Publication Date: 2026-04-14HONGFUJIN PRECISION ELECTRONICS ZHENGZHOU
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-25
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Traditional testing methods suffer from low accuracy and efficiency due to errors in alignment with the reference point by different operators.

Method used

The detection system uses a moving mechanism to move the carrier carrying the workpiece, and the vision device acquires images in real time. Based on the reference image and detection points, it detects whether the workpiece meets the processing qualification requirements, and determines the processing correction parameters when it does not meet the requirements.

Benefits of technology

It improved the efficiency and accuracy of workpiece inspection, ensured the processing yield, and allowed for timely correction of processing parameters, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121855394A_ABST
    Figure CN121855394A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of workpiece detection, and provides a detection method and system and a detection table. The method comprises the following steps: in a process of controlling a moving mechanism to drive a carrier to carry a workpiece to move, controlling a visual device to carry out image acquisition on the workpiece to obtain a to-be-detected image; acquiring a reference image and a plurality of first detection points corresponding to the workpiece, and detecting whether the workpiece meets the processing qualification requirement based on the reference image, the plurality of first detection points and the to-be-detected image; and when it is detected that the workpiece does not meet the machining qualification requirement, machining correction parameters are determined based on the detection result. According to the invention, the workpiece detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of testing technology, and in particular to a testing method, system and testing station. Background Technology

[0002] Currently, in the field of electronic product assembly and manufacturing, most workstations inspect the product's dimensions and positional accuracy after processing and assembly to ensure the precision of processing and assembly. The traditional approach involves acquiring an image of the product, aligning a transparent sheet with the product's outline or reference holes in the image, and then inspecting the product in the image after alignment.

[0003] However, during the alignment of the transparent sheet and the image, errors may occur in the alignment reference used by different operators at different times, resulting in low detection accuracy and efficiency. Summary of the Invention

[0004] In view of the above, this application provides a testing method, system and testing station that can improve processing accuracy.

[0005] A first aspect of this application provides a detection method applied to a detection system. The detection system is set on a detection table, which includes a machine base, a moving mechanism, a vision device, and a carrier. The carrier is used to carry and position a workpiece. The moving mechanism and the vision device are both mounted on the machine base, with the vision device located on one side of the moving mechanism. The carrier is slidably connected to the moving mechanism. The moving mechanism drives the carrier to move, thereby carrying the workpiece. The vision device acquires images of the workpiece. The detection method includes: controlling the vision device to acquire images of the workpiece while controlling the moving mechanism to move the carrier carrying the workpiece, thereby obtaining an image to be detected; acquiring a reference image and multiple first detection points corresponding to the workpiece; detecting whether the workpiece meets the processing qualification requirements based on the reference image, the multiple first detection points, and the image to be detected; and determining processing correction parameters based on the detection results when the workpiece does not meet the processing qualification requirements.

[0006] In some embodiments of this application, detecting whether the workpiece meets the processing qualification requirements based on the reference image, the plurality of first detection points, and the image to be detected includes: obtaining the first position coordinates of the plurality of first detection points in the reference image, and a second detection point associated with each first detection point; if any first detection point is associated with a second detection point, then obtaining the second position coordinates of the second detection point corresponding to the any one first detection point from the image to be detected; detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of the any one first detection point and the second position coordinates of the corresponding second detection point; and / or, if any one first detection point is associated with a plurality of second detection points, then obtaining the second position coordinates of the plurality of second detection points corresponding to the any one first detection point from the image to be detected; detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of the any one first detection point and the second position coordinates of the corresponding plurality of second detection points.

[0007] In some embodiments of this application, detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of any first detection point and the second position coordinates of the corresponding second detection point includes: calculating the difference between the first position coordinates of any first detection point and the second position coordinates of the corresponding second detection point to obtain a first difference; comparing the first difference with the error threshold of the corresponding first detection point; determining that the second detection point does not meet the processing qualification requirements when the first difference is not within the error threshold range; and determining that the workpiece does not meet the processing qualification requirements when the second detection point does not meet the processing qualification requirements.

[0008] In some embodiments of this application, detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of any one first detection point and the second position coordinates of the corresponding plurality of second detection points includes: calculating the average value of the second position coordinates of the plurality of second detection points to obtain a third position coordinate; calculating the difference between the first position coordinate of any one first detection point and the corresponding third position coordinate to obtain a second difference; comparing the second difference with the error threshold of the corresponding first detection point; determining that any one of the second detection points does not meet the processing qualification requirements when the second difference is not within the error threshold range; and determining that the workpiece does not meet the processing qualification requirements when any one of the second detection points does not meet the processing qualification requirements.

[0009] In some embodiments of this application, the processing correction parameters include one or any combination of the following: the number of the unqualified image to be detected, the adjustment deviation value corresponding to the unqualified second detection point, and the adjustment direction corresponding to the unqualified second detection point.

[0010] In some embodiments of this application, after determining that the workpiece does not meet the processing qualification requirements, the method further includes: obtaining the detection results of all the second detection points; mapping the detection result of each second detection point to the detection result template corresponding to the workpiece, and generating a detection report.

[0011] A second aspect of the embodiments of this application provides an inspection system. The inspection system is disposed on an inspection table, which includes a machine base, a moving mechanism, a vision device, and a carrier. The carrier carries a workpiece. The moving mechanism and the vision device are both mounted on the machine base, with the vision device located on one side of the moving mechanism. The carrier is slidably connected to the moving mechanism. The moving mechanism drives the carrier to move, thereby carrying the workpiece. The vision device acquires images of the workpiece. The inspection system includes a controller and a servo driver. The controller is used to control the vision device to acquire images of the workpiece during the process where the servo driver controls the moving mechanism to move the carrier carrying the workpiece, thereby obtaining an image to be inspected. The controller is also used to acquire a reference image corresponding to the workpiece and multiple first detection points, and based on the reference image, the multiple first detection points, and the image to be inspected, to detect whether the workpiece meets the processing qualification requirements. The controller is also used to determine processing correction parameters based on the detection results when the workpiece does not meet the processing qualification requirements.

[0012] A third aspect of the embodiments of this application provides an inspection station. The inspection station includes a machine base, a moving mechanism, a vision device, a carrier, and an inspection system. The carrier is used to carry a workpiece. The moving mechanism and the vision device are both mounted on the machine base, with the vision device located on one side of the moving mechanism. The carrier is slidably connected to the moving mechanism. The moving mechanism drives the carrier to move, thereby carrying the workpiece. The vision device acquires images of the workpiece. The inspection system is connected to both the moving mechanism and the vision device. The inspection system is used to: control the vision device to acquire images of the workpiece while controlling the moving mechanism to move the carrier carrying the workpiece, thereby obtaining an image to be inspected; acquire a reference image and multiple first detection points corresponding to the workpiece; and, based on the reference image, the multiple first detection points, and the image to be inspected, detect whether the workpiece meets the processing qualification requirements; and, when the workpiece does not meet the processing qualification requirements, determine processing correction parameters based on the detection results.

[0013] In some embodiments of this application, the vehicle is provided with a plurality of positioning elements arranged around the vehicle, and the positioning elements are used to position the vehicle.

[0014] In some embodiments of this application, the detection station further includes a light-emitting element, which is mounted on the side of the vision device near the moving mechanism, and the light-emitting element is used to provide a light source.

[0015] In summary, the detection method, system, and detection table described in this application utilize a controller to control a moving mechanism. During this movement, the moving mechanism drives a carrier carrying the workpiece. Simultaneously, the controller controls a vision device to acquire images of the workpiece, obtaining an image to be inspected. Based on multiple first detection points in a reference image, the position of the corresponding detection points on the workpiece in the image to be inspected is detected. This eliminates the need for aligning a transparent sheet with the image to be inspected before inspecting the workpiece, improving both the efficiency and accuracy of workpiece inspection. Furthermore, when a workpiece is detected as not meeting processing requirements, processing correction parameters are determined based on the detection results. This allows for timely correction of processing parameters, ensuring a high yield of processed workpieces and improving the user experience. Attached Figure Description

[0016] Figure 1 This is a perspective view of a testing station provided in an embodiment of this application.

[0017] Figure 2 This is a partial view of a testing station provided in another embodiment of this application.

[0018] Figure 3 This is a flowchart of a detection method provided in an embodiment of this application.

[0019] Figure 4 This is a schematic diagram of a pre-set first detection point associated with multiple second detection points provided in an embodiment of this application.

[0020] Figure 5 This is a flowchart of a detection method provided in another embodiment of this application.

[0021] Figure 6 This is a schematic diagram of a detection result template provided in an embodiment of this application.

[0022] Explanation of main component symbols 100-Inspection table; 10-Machinery; 101-Platform; 102-Column; 11-Moving mechanism; 12-Vision device; 13-Carrier; 130-Positioning component; 14-Light-emitting element; 15-Safety light curtain; 16-Display assembly; 17-Tricolor lamp; 18-Inspection system; 181-Controller; 182-Servo driver.

[0023] The following specific embodiments will further illustrate this application in conjunction with the above-described accompanying drawings. Detailed Implementation

[0024] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0025] The following description sets forth many specific details to provide a full understanding of this application. The described embodiments are only some, not all, of the embodiments of this application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0027] It should be further noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0028] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0029] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0030] For ease of understanding, some concepts related to the embodiments of this application are illustrated and explained by way of example for reference.

[0031] Controller: The core of the detection system, similar to the human brain. It receives commands from the control panel or G-code input via programming software and converts them into pulse signals that the moving mechanism or vision device can understand. Inside the controller is a processor that interprets instructions according to a pre-set program, calculates the distance and speed the moving mechanism needs to travel, and sends the corresponding instructions to the driver.

[0032] Driver: Receives pulse signals from the controller and adjusts the speed and direction of the servo motor accordingly. The driver amplifies the controller's pulse signals to provide sufficient power to drive the servo motor. Furthermore, the driver features current feedback, enabling it to monitor the servo motor's operating status and adjust its output for precise control.

[0033] Servo motor: As an actuator, it is responsible for converting the pulse signals sent by the controller into precise motion of the moving mechanism. When the motor speed exceeds a preset threshold, the encoder starts working and feeds back the actual speed of the motor to the driver. If there is a difference between the speed and the preset value, the driver will adjust its output accordingly to eliminate the difference.

[0034] See also Figure 1 and Figure 2 As shown. One embodiment of this application provides an inspection station 100. The inspection station 100 includes a machine base 10, a moving mechanism 11, a vision device 12, and a carrier 13. The carrier 13 is used to carry a workpiece. The moving mechanism 11 and the vision device 12 are both mounted on the machine base 10, and the vision device 12 is located on one side of the moving mechanism 11. The carrier 13 is slidably connected to the moving mechanism 11. The moving mechanism 11 drives the carrier 13 to move, so as to carry the workpiece through the carrier 13. The vision device 12 performs image acquisition on the workpiece.

[0035] Understandably, the moving mechanism 11 drives the workpiece to move, which helps to control the moving distance of the moving mechanism 11, and thus control the moving distance of the workpiece.

[0036] In some embodiments of this application, by placing the vision device 12 on one side of the moving mechanism 11, it can be understood that the vision device 12 can be placed above the moving mechanism 11, which is beneficial for the vision device 12 to acquire a complete image of the workpiece and improves the accuracy of the image acquired by the vision device 12.

[0037] In some embodiments of this application, the vision device 12 can be fixedly connected to the machine base 10, ensuring the stability of the position of the vision device 12, thereby improving the accuracy of the acquired images and thus improving the detection accuracy of the detection station 100.

[0038] In some embodiments of this application, the carrier 13 is provided with a plurality of positioning elements 130. The plurality of positioning elements 130 are arranged around the carrier 13. The positioning elements 130 are used to position the carrier 13.

[0039] In some embodiments of this application, during the process of the moving mechanism 11 driving the carrier 13 to move the workpiece, the workpiece may deviate. By setting the positioning component 130 to fix the workpiece, it is beneficial to ensure the positional stability of the workpiece, avoid the problem of inaccurate images due to the deviation during the movement of the workpiece, improve the accuracy of the acquired images, and thus improve the detection accuracy.

[0040] In some embodiments of this application, the positioning member 130 has a positioning surface, which can be in the shape of a roller. By having the roller-shaped positioning surface contact the workpiece, the contact area between the positioning member 130 and the workpiece can be reduced, thereby preventing damage to the workpiece during the positioning process, ensuring the yield of the inspected workpiece, and thus improving the production efficiency of the inspection station 100.

[0041] In some embodiments of this application, the detection stage 100 further includes a light-emitting element 14. The light-emitting element 14 is mounted on the side of the vision device 12 near the moving mechanism 11. The light-emitting element 14 is used to provide a light source.

[0042] In some embodiments of this application, by setting a light-emitting element 14 on the detection stage 100, the light-emitting element 14 is used to provide a light source for the vision device 12, which helps to improve the accuracy of the images acquired by the vision device 12.

[0043] In some embodiments of this application, the testing station 100 further includes a safety light curtain 15. The safety light curtain 15 is installed on the machine base 10. The safety light curtain 15 is used to prevent operators from accidentally entering dangerous areas, ensuring the safety of operators.

[0044] In some embodiments of this application, the detection stage 100 further includes a display assembly 16. The display assembly 16 is electrically connected to the vision device 12. The display assembly 16 is used to display images acquired by the vision device 12.

[0045] In some embodiments of this application, the inspection station 100 further includes a tri-color light 17. The tri-color light 17 is used to display production status, workpieces to be placed, and alarm prompts.

[0046] In some embodiments of this application, the machine tool 10 includes a platform 101. A moving mechanism 11 is mounted on the platform 101. The platform 101 may be a marble platform 101. By mounting the marble platform 101 on the machine tool 10 and mounting the moving mechanism 11 on the high flatness marble platform 101, the flatness of the reference surface of the carrier 13 is indirectly ensured, thereby ensuring the flatness of the workpiece placement surface.

[0047] In some embodiments of this application, the machine base 10 further includes columns 102 disposed opposite to both sides of the moving mechanism 11. The columns 102 can be marble columns 102. By installing marble columns 102 on the machine base 10, a high-rigidity and high-stability mounting base is provided for the moving mechanism 11, effectively suppressing the vibration and deformation of the moving mechanism 11 during movement, thereby ensuring the accuracy and reliability of the images acquired by the vision device 12.

[0048] In some embodiments of this application, the inspection station 100 further includes an inspection system 18. The inspection system 18 is connected to the moving mechanism 11 and the vision device 12, respectively. The inspection system 18 is used to: control the vision device 12 to acquire images of the workpiece during the process of controlling the moving mechanism 11 to drive the carrier 13 to move, thereby obtaining an image to be inspected; acquire a reference image and multiple first inspection points corresponding to the workpiece; and, based on the reference image, the multiple first inspection points, and the image to be inspected, detect whether the workpiece meets the processing qualification requirements; and, when the workpiece does not meet the processing qualification requirements, determine processing correction parameters based on the inspection results.

[0049] In some embodiments of this application, a controller 181 is set up, and the controller 181 controls the movement of the moving mechanism 11. During the movement of the moving mechanism 11, the carrier 13 carrying the workpiece can be moved. During the movement, the controller 181 controls the vision device 12 to acquire images of the workpiece, obtain an image to be inspected, and detect the position of the detection point corresponding to the workpiece in the image to be inspected based on multiple first detection points of the reference image. It is not necessary to use a transparent sheet to align with the image to be inspected before inspecting the workpiece, which improves the inspection efficiency and accuracy. At the same time, the controller 181 controls the moving mechanism 11 and the vision device 12 without human intervention, which improves the working efficiency of the inspection station 100. Furthermore, when the workpiece is detected to not meet the processing qualification requirements, the processing correction parameters are determined based on the detection results, which can promptly remind the operator to correct the original processing parameters and effectively prevent the generation of batch defective products.

[0050] Further combine reading Figure 2As shown, one embodiment of this application also provides a detection system 18, which is disposed on a detection table 100. The detection system 18 includes a controller 181 and a servo driver 182. The controller 181 is used to control a vision device 12 to acquire images of the workpiece during the process where the servo driver 182 controls the moving mechanism 11 to move the carrier 13 carrying the workpiece, thereby obtaining an image to be detected. The controller 181 is also used to acquire a reference image corresponding to the workpiece and multiple first detection points, and based on the reference image, the multiple first detection points, and the image to be detected, to detect whether the workpiece meets the processing qualification requirements. The controller 181 is also used to determine processing correction parameters based on the detection results when the detected workpiece does not meet the processing qualification requirements.

[0051] In some embodiments of this application, a controller 181 and a servo driver 182 are provided in the detection system 18. When inspecting a workpiece, the servo driver 182 controls the moving mechanism 11 to drive the carrier 13 to move the workpiece. When the controller 181 receives a signal that the moving mechanism 11 is moving, the controller 181 controls the vision device 12 to acquire an image of the workpiece, obtain an image to be inspected, and acquire a reference image and multiple first detection points corresponding to the workpiece. Based on the reference image, multiple first detection points, and the image to be inspected, the system detects whether the workpiece meets the processing qualification requirements. The entire inspection process does not require manual intervention, which improves the inspection efficiency of the detection system 18.

[0052] In some embodiments of this application, the operation of the detection system 18 specifically includes: the detection system 18 forms a fully closed-loop signal flow process through components such as the controller 181, servo driver 182, and servo motor. The controller 181 receives commands and converts them into pulse signals, and the servo driver 182 amplifies these pulse signals and sends them to the servo motor. The servo motor performs actions, and its speed is fed back to the servo driver 182 in real time by the encoder, so that the servo driver 182 controls the moving mechanism 11 to drive the carrier 13 to move the workpiece to a preset position. At the same time, while the servo driver 182 controls the moving mechanism 11 to drive the carrier 13 to move the workpiece, the controller 181 receives image acquisition commands and controls the vision device 12 to acquire images of the workpiece on the moving mechanism 11, and compares the acquired image to be detected with the reference image to detect whether the workpiece meets the processing qualification requirements. If the workpiece does not meet the processing qualification requirements, the processing correction parameters are determined based on the detection results.

[0053] like Figure 3 The diagram shown is a flowchart of a detection method provided in an embodiment of this application. The detection method is applied to a detection system. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0054] 301. During the process of controlling the moving mechanism to drive the carrier to move the workpiece, the vision device is controlled to acquire images of the workpiece to obtain the image to be inspected.

[0055] In some embodiments of this application, the detection system is set on the detection table. When the moving mechanism drives the carrier to move the workpiece on the detection table, the vision device can be controlled to scan the workpiece to obtain an image to be detected containing the workpiece.

[0056] In practical applications, the workpiece can be a single workpiece or an assembled workpiece containing multiple sub-workpieces. Multiple surfaces to be inspected can be pre-set based on the workpiece to ensure accurate inspection through these surfaces, thereby guaranteeing a high yield rate for the inspected workpiece.

[0057] The specific inspection process includes: mounting the workpiece on a carrier, aligning one of the multiple surfaces to be inspected with a vision device, controlling a moving mechanism to move the carrier carrying the workpiece, and controlling the vision device to acquire an image of the surface to be inspected, thus obtaining an image to be inspected. Further, by rotating or moving the workpiece, another surface to be inspected can be aligned with the vision device, controlling the moving mechanism to move the carrier carrying the workpiece, and controlling the vision device to acquire an image of the surface to be inspected, thus obtaining an image to be inspected. This process is repeated until the vision device acquires an image of each surface to be inspected, avoiding any missed images and ensuring the integrity of the images acquired by the vision device.

[0058] In some embodiments of this application, after the vision device acquires an image of the workpiece to obtain the image to be inspected, the method includes: acquiring the base image and reference points corresponding to the workpiece; determining whether the workpiece has an offset based on the reference image and reference points; if the workpiece has an offset, determining that the workpiece does not meet the processing qualification requirements; if the workpiece does not have an offset, initially determining that the workpiece meets the processing qualification requirements, and then proceeding with subsequent inspection.

[0059] In some embodiments of this application, after determining that the workpiece has an offset by using reference images and reference points, it is initially determined that the workpiece does not meet the processing qualification requirements, and no further inspection is required, thus improving the inspection efficiency.

[0060] In some embodiments of this application, when there is no offset in the workpiece, it is initially determined that the workpiece meets the processing qualification requirements, and then step 302 is executed.

[0061] In some embodiments of this application, after the vision device acquires an image of the workpiece and obtains the image to be inspected, the method further includes: acquiring a first marking code corresponding to the workpiece; detecting a second marking code in the image to be inspected; and if the first marking code and the second marking code are inconsistent, determining that the workpiece does not meet the processing qualification requirements.

[0062] Understandably, a workpiece may include multiple first marking codes. If multiple second marking codes in the image to be inspected are completely consistent with multiple first marking codes, it is determined that there is no problem of missing marking, that is, there is no problem of missing sub-workpieces, and it is preliminarily determined that the workpiece meets the processing qualification requirements. If multiple second marking codes in the image to be inspected are not completely consistent with multiple first marking codes, it is determined that there is a problem of missing marking, that is, there is a problem of missing sub-workpieces, and it is preliminarily determined that the workpiece does not meet the processing qualification requirements.

[0063] In some embodiments of this application, by determining whether there is a problem of missing marking on the workpiece, the problem of continuing to perform subsequent inspections due to the lack of sub-workpieces in the workpiece can be avoided, thereby improving the inspection efficiency.

[0064] In some embodiments of this application, if it is determined that the first marking code and the second marking code are consistent, and the workpiece meets the processing qualification requirements, then step 302 is executed.

[0065] 302. Obtain the reference image and multiple first detection points corresponding to the workpiece. Based on the reference image, multiple first detection points and the image to be detected, detect whether the workpiece meets the processing qualification requirements.

[0066] In some embodiments of this application, each workpiece is assigned a label. After obtaining the image to be inspected for each workpiece, a reference image and multiple first inspection points can be obtained based on the label corresponding to the workpiece to detect whether the workpiece meets the processing qualification requirements.

[0067] Understandably, a reference image and a first detection point can be pre-set for each workpiece. Specifically, a workpiece may contain multiple surfaces to be inspected. If each surface to be inspected corresponds to one reference image, then one workpiece corresponds to multiple reference images. If each surface to be inspected corresponds to one sub-reference image, multiple sub-reference images can be pre-stitched into one reference image according to a preset stitching method, then one workpiece corresponds to one reference image. Specifically, the number of reference images corresponding to each workpiece is not limited in this embodiment. For example, if each surface to be inspected corresponds to one sub-reference image, multiple sub-reference images can also be stitched into multiple reference images according to a preset stitching method.

[0068] In some embodiments of this application, a stitching method can be preset. For example, the preset stitching method can be to stitch the images to be inspected according to the order in which the vision device acquires them. Another preset stitching method is to preset an identification code for each surface to be inspected and stitch the images according to the size of the identification codes of multiple surfaces. The specific stitching method is not limited in this embodiment.

[0069] In some embodiments of this application, the first detection point is set in advance according to the detection requirements of each workpiece. Multiple first detection points are set in advance in each base image. Based on the multiple first detection points, it can be determined whether the feature values ​​of the workpiece contained in the detection surface meet the processing qualification requirements.

[0070] Specifically, after acquiring the image to be inspected, the reference image, and multiple first inspection points, the process of detecting whether the workpiece meets the processing qualification requirements based on the reference image, the multiple first inspection points, and the image to be inspected includes: acquiring the first position coordinates of all first inspection points in the reference image; if any first inspection point corresponds to one second inspection point, then acquiring the second position coordinates of the second inspection point corresponding to any first inspection point from the image to be inspected; and detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of any first inspection point and the second position coordinates of the corresponding second inspection point.

[0071] In some embodiments of this application, the image to be detected is identified using existing image recognition schemes, which will not be described in detail here.

[0072] In some embodiments of this application, after recognizing the image to be detected, the second position coordinates of the second detection point corresponding to each first detection point can be obtained, and then the workpiece can be detected as meeting the processing qualification requirements based on the relationship between the first position coordinates and the second position coordinates.

[0073] Specifically, in some embodiments of this application, detecting whether a workpiece meets the processing qualification requirements based on the first position coordinates of any first detection point and the second position coordinates of the corresponding second detection point includes: calculating the difference between the first position coordinates of any first detection point and the second position coordinates of the corresponding second detection point to obtain a first difference; comparing the first difference with the error threshold of the corresponding first detection point; determining that the second detection point does not meet the processing qualification requirements when the first difference is not within the error threshold range; and determining that the workpiece does not meet the processing qualification requirements when the second detection point does not meet the processing qualification requirements.

[0074] In some embodiments of this application, a corresponding error threshold can be preset for each first detection point. If the first difference between the position coordinates of the second detection points corresponding to the first detection point in the image to be detected is within the error threshold range, the second detection point is determined to not meet the processing qualification requirements. When any second detection point does not meet the processing qualification requirements, the workpiece is determined to not meet the processing qualification requirements. Conversely, if the first difference between the position coordinates of the second detection points corresponding to the first detection point in the image to be detected is not within the error threshold range, the second detection point is determined to meet the processing qualification requirements. When all second detection points meet the processing qualification requirements, the workpiece is determined to meet the processing qualification requirements.

[0075] In some embodiments of this application, by calculating the first difference between each first detection point and the corresponding second detection point, the problem of missing detection points is avoided, and the accuracy of the detection results is ensured.

[0076] In some embodiments of this application, detecting whether a workpiece meets the processing qualification requirements based on a reference image, multiple first detection points, and an image to be detected further includes: obtaining the first position coordinates of all first detection points in the reference image; if any first detection point corresponds to multiple second detection points, obtaining the second position coordinates of the multiple second detection points corresponding to any first detection point from the image to be detected; and detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of any first detection point and the second position coordinates of the corresponding multiple second detection points.

[0077] In some embodiments of this application, in order to further eliminate positional errors, the first detection point can correspond to multiple second detection points. The workpiece is detected based on the positional relationship between the first detection point and the multiple second detection points to detect whether the workpiece meets the processing qualification requirements.

[0078] Specifically, in some embodiments of this application, detecting whether a workpiece meets the processing qualification requirements based on the first position coordinates of any first detection point and the second position coordinates of a plurality of corresponding second detection points includes: calculating the average value of the second position coordinates of the plurality of second detection points to obtain a third position coordinate; calculating the difference between the first position coordinate of any first detection point and the corresponding third position coordinate to obtain a second difference; comparing the second difference with the error threshold of the corresponding first detection point; determining that any second detection point does not meet the processing qualification requirements when the second difference is not within the error threshold range; and determining that the workpiece does not meet the processing qualification requirements when any second detection point does not meet the processing qualification requirements.

[0079] In some embodiments of this application, the first detection point may correspond to multiple second detection points, such as... Figure 4 The second detection points corresponding to the first detection point include P1, P2, and P3. In practical applications, P1, P2, and P3 can be connected to represent the edge to be detected on the workpiece. The first detection point in the reference image corresponding to the edge to be detected is further associated with P1, P2, and P3 through the first detection point, eliminating the error caused by taking only one point. Furthermore, by calculating the average value of the second position coordinates of P1, P2, and P3, the difference between the average value and the first position coordinate of the corresponding first detection point is calculated to obtain the second difference value. The second difference value is then compared with the error threshold to determine whether the workpiece meets the processing qualification requirements.

[0080] In some embodiments of this application, by setting a first detection point to correspond to multiple second detection points, the position error is eliminated, further ensuring the accuracy of calculating the difference between the first detection point and the second detection point, thereby improving the accuracy of the detection results and ensuring the yield of the workpiece.

[0081] In some embodiments of this application, for locations that are difficult to detect or have long sides to be detected, multiple second detection points can be set for the first detection point to ensure that the location corresponding to the first detection point can be accurately detected.

[0082] 303. When a workpiece is detected as not meeting the processing qualification requirements, processing correction parameters are determined based on the detection results.

[0083] In some embodiments of this application, if a workpiece does not meet the processing qualification requirements, it is determined that the workpiece has a processing defect, and the workpiece is identified as a defective product. The original processing parameters of the workpiece need to be adjusted. Specifically, processing correction parameters can be determined based on the detection results. These processing correction parameters include one or any combination of the following: the number of the defective image to be detected, the adjustment deviation value corresponding to the defective second detection point, and the adjustment direction. In other embodiments, the processing calibration parameters may also include the detection value, the workpiece number, etc. This embodiment is not limited thereto.

[0084] In some embodiments of this application, when a workpiece is detected as not meeting the processing qualification requirements, processing correction parameters are determined based on the detection results. This enables timely correction of the processing parameters, ensuring the yield of the processed workpiece and improving the user experience.

[0085] In some embodiments of this application, when it is detected that the workpiece meets the processing qualification requirements, the workpiece is determined to be a good product.

[0086] 304. When the workpiece is detected to meet the processing qualification requirements, the workpiece is determined to be a good product.

[0087] In some embodiments of this application, a controller controls a moving mechanism to move, which in turn moves a carrier carrying the workpiece. During this movement, the controller controls a vision device to acquire images of the workpiece, obtaining an image to be inspected. Based on multiple first detection points in a reference image, the position of the corresponding detection point in the workpiece within the image to be inspected is detected. This eliminates the need to align a transparent sheet with the image to be inspected before inspecting the workpiece, improving the efficiency and accuracy of workpiece inspection. Furthermore, when a workpiece is detected as not meeting processing requirements, processing correction parameters are determined based on the inspection results. This allows for timely correction of processing parameters, ensuring the yield of processed workpieces and improving the user experience.

[0088] like Figure 5The diagram shown is a flowchart of a detection method provided in another embodiment of this application. The detection method is applied to a detection system. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0089] 501. During the process of controlling the moving mechanism to drive the carrier to move the workpiece, the vision device is controlled to acquire images of the workpiece to obtain the image to be inspected.

[0090] 502. Obtain the reference image and multiple first detection points corresponding to the workpiece. Based on the reference image, multiple first detection points and the image to be detected, detect whether the workpiece meets the processing qualification requirements.

[0091] Steps 501 and 502 in this embodiment are similar to steps 301 and 302 in the previous embodiment. To avoid repetition, they will not be described again here.

[0092] 503. When a workpiece is detected as not meeting the processing qualification requirements, obtain the detection results of all second detection points.

[0093] In some embodiments of this application, the detection results may include qualified and unqualified results. When a workpiece is detected as not meeting the processing qualification requirements, the detection results of some second detection points may be qualified, while the detection results of some second detection points may be unqualified.

[0094] 504. Map the detection results of each second detection point to the corresponding detection result template of the workpiece to generate a detection report.

[0095] In some embodiments of this application, the detection result of the second detection point may include a combination of one or more of the following: drawing number, second position coordinates, and debugging direction.

[0096] 505. When the workpiece is detected to meet the processing qualification requirements, the workpiece is determined to be a good product.

[0097] In some embodiments of this application, after obtaining the detection result of the second detection point, the detection result is mapped to the detection result template corresponding to the workpiece to generate a detection report, such as... Figure 6 As shown, M represents the drawing number display area, N represents the inspection value display area, and F represents the adjustment direction display area. The inspection result template includes the drawing number display area, inspection value display area, and adjustment direction display area corresponding to the second inspection point in the image to be inspected. By mapping the inspection result of the second inspection point to the corresponding inspection result template of the workpiece, the unqualified second inspection point can be observed intuitively, improving the efficiency of identifying unqualified second inspection points, and thus improving the inspection efficiency of the workpiece.

[0098] The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described with reference to the embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and substance of the technical solutions of this application.

Claims

1. A detection method, characterized in that, This invention is applied to an inspection system, which is set on an inspection table. The inspection table includes a machine base, a moving mechanism, a vision device, and a carrier. The carrier is used to carry and position the workpiece. The moving mechanism and the vision device are both mounted on the machine base, with the vision device located on one side of the moving mechanism. The carrier is slidably connected to the moving mechanism. The moving mechanism drives the carrier to move so as to carry the workpiece. The vision device acquires images of the workpiece. The detection method includes: During the process of controlling the moving mechanism to drive the carrier to move the workpiece, the vision device is controlled to acquire an image of the workpiece to obtain an image to be detected. A reference image and multiple first detection points corresponding to the workpiece are obtained. Based on the reference image, the multiple first detection points and the image to be detected, it is determined whether the workpiece meets the processing qualification requirements. When the workpiece is detected to not meet the processing qualification requirements, processing correction parameters are determined based on the detection results.

2. The detection method as described in claim 1, characterized in that, The step of detecting whether the workpiece meets the processing qualification requirements based on the reference image, the plurality of first detection points, and the image to be detected includes: Obtain the first position coordinates of the plurality of first detection points in the reference image, and the second detection point associated with each first detection point; If any first detection point is associated with a second detection point, then the second position coordinates of the second detection point corresponding to any first detection point are obtained from the image to be detected; based on the first position coordinates of any first detection point and the second position coordinates of the corresponding second detection point, it is determined whether the workpiece meets the processing qualification requirements; and / or If any one first detection point is associated with multiple second detection points, then the second position coordinates of the multiple second detection points corresponding to the one first detection point are obtained from the image to be detected; based on the first position coordinates of the one first detection point and the second position coordinates of the multiple second detection points, it is determined whether the workpiece meets the processing qualification requirements.

3. The detection method as described in claim 2, characterized in that, The step of detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of any first detection point and the second position coordinates of the corresponding second detection point includes: Calculate the difference between the first position coordinate of any first detection point and the second position coordinate of the corresponding second detection point to obtain the first difference; The first difference is compared with the error threshold of the corresponding first detection point; When the first difference is not within the error threshold range, it is determined that the second detection point does not meet the processing qualification requirements; When the second detection point does not meet the processing qualification requirements, it is determined that the workpiece does not meet the processing qualification requirements.

4. The detection method as described in claim 2, characterized in that, The step of detecting whether the workpiece meets the processing qualification requirements based on the first position coordinates of any one of the first detection points and the second position coordinates of the corresponding plurality of second detection points includes: The average value of the second position coordinates of the plurality of second detection points is calculated to obtain the third position coordinates; Calculate the difference between the first position coordinates and the corresponding third position coordinates of any first detection point to obtain the second difference; The second difference is compared with the error threshold of the corresponding first detection point; When the second difference is not within the error threshold range, it is determined that any one of the second detection points does not meet the processing qualification requirements; If any of the second detection points fails to meet the processing qualification requirements, the workpiece is determined to fail to meet the processing qualification requirements.

5. The detection method according to any one of claims 2 to 4, characterized in that, The machining correction parameters include one or any combination of the following: The number of the unqualified image to be tested, the debugging deviation value corresponding to the unqualified second detection point, and the debugging direction corresponding to the unqualified second detection point.

6. The detection method according to any one of claims 2 to 4, characterized in that, After determining that the workpiece does not meet the processing qualification requirements, the method further includes: Obtain the detection results for all the second detection points; The detection results of each of the second detection points are mapped to the detection result template corresponding to the workpiece to generate a detection report.

7. A detection system, characterized in that, The detection system is set on a detection table, which includes a machine base, a moving mechanism, a vision device, and a carrier. The carrier is used to carry the workpiece. The moving mechanism and the vision device are both installed on the machine base, and the vision device is located on one side of the moving mechanism. The carrier is slidably connected to the moving mechanism. The moving mechanism drives the carrier to move so as to carry the workpiece through the carrier. The vision device performs image acquisition on the workpiece. The detection system includes: a controller and a servo driver; The controller is used to control the vision device to acquire images of the workpiece and obtain an image to be detected during the process in which the servo driver controls the moving mechanism to drive the carrier to move the workpiece. The controller is also used to acquire a reference image and multiple first detection points corresponding to the workpiece, and to detect whether the workpiece meets the processing qualification requirements based on the reference image, the multiple first detection points and the image to be detected; The controller is also used to determine processing correction parameters based on the detection results when the workpiece is detected as not meeting the processing qualification requirements.

8. A testing station, characterized in that, The testing station includes a machine base, a moving mechanism, a vision device, a carrier, and a testing system; The carrier is used to carry the workpiece. The moving mechanism and the vision device are both installed on the machine base, and the vision device is located on one side of the moving mechanism. The carrier is slidably connected to the moving mechanism. The moving mechanism drives the carrier to move so as to carry the workpiece through the carrier. The vision device performs image acquisition on the workpiece. The detection system is connected to the moving mechanism and the vision device respectively. The detection system is used to: control the vision device to acquire images of the workpiece during the process of controlling the moving mechanism to drive the carrier to move the workpiece; acquire a reference image and multiple first detection points corresponding to the workpiece; and detect whether the workpiece meets the processing qualification requirements based on the reference image, the multiple first detection points and the image to be detected. When the workpiece is found to be unqualified for processing, processing correction parameters are determined based on the test results.

9. The testing station as described in claim 8, characterized in that, The vehicle is equipped with multiple positioning components, which are arranged around the vehicle and are used to position the vehicle.

10. The testing station as described in claim 8, characterized in that, The detection station further includes a light-emitting element, which is mounted on the side of the vision device near the moving mechanism and is used to provide a light source.