Detection method, detection system and non-volatile computer readable storage medium

By obtaining the height distribution information of the workpiece and performing fitting, the number of mutation nodes in the height distribution is reduced, the movement of the bearing device is controlled, the problem of insufficient motor driving frequency is solved, and the detection effect is achieved to meet the detection needs.

CN113030107BActive Publication Date: 2024-09-10SKYVERSE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110248666.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-08
Publication Date
2024-09-10
Estimated Expiration
2041-03-08

AI Technical Summary

Technical Problem

When the camera detects the edge of the workpiece, the motor cannot drive the carrying device to move in the height direction at a high frequency, resulting in the inability to meet the detection requirements.

Method used

By obtaining the first height distribution information at different positions of the workpiece, the second height distribution information is obtained. The number of nodes with sudden height changes is smaller than the first height distribution information, and the driving component is controlled to drive the carrying device to move in the height direction according to the second height distribution information. , to drive the workpiece to move in the height direction.

Benefits of technology

The driving frequency requirements are reduced to ensure that the adjustment frequency of the driving parts is within the tolerance range, meet the detection needs of the detection system, and ensure the accuracy of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113030107B
    Figure CN113030107B
Patent Text Reader

Abstract

The present application discloses a detection method, a detection system, and a non-volatile computer-readable storage medium. The detection method includes: obtaining first height distribution information of different positions of the area to be tested of the workpiece, the workpiece being placed on a carrying device; obtaining second height distribution information according to the first height distribution information, the number of nodes where the height of the second height distribution information undergoes a sudden change is less than the number of nodes where the height of the first height distribution information undergoes a sudden change; and controlling the driving member to drive the carrying device to move in the height direction according to the second height distribution information, so as to drive the workpiece to move in the height direction. In the detection method, detection system, and non-volatile computer-readable storage medium of the embodiments of the present application, by reducing the frequency of the driving member driving the carrying device to move in height, the movement frequency of the driving member is within the tolerance range of the driving member and the driving frequency of the driving member is ensured to meet the detection requirements of the detection system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of detection technology, and more specifically, to a detection method, a detection system and a non-volatile computer-readable storage medium. Background Art

[0002] When the camera is inspecting a workpiece, such as a display panel, for example, when inspecting the edge of the workpiece, the distance between the camera and the workpiece needs to be strictly controlled so that the edge is within the depth of field of the camera, so that the edge can be clearly imaged. Since the height of the edge may be different at different locations, when using the camera to shoot different locations of the workpiece edge, it is necessary to control the workpiece to move in the height direction, or control the camera to move in the height direction to compensate for the height difference of the workpiece itself. Since the camera is a precision component, it is usually controlled to move the workpiece.

[0003] During the inspection process, the camera actually shoots very fast, and the workpiece needs to move quickly in the height direction. However, when the motor drives the carrying device on which the workpiece is placed to move in the height direction, the motor cannot drive the carrying device to move in the height direction at a very high frequency, resulting in failure to meet the inspection requirements for the workpiece. Therefore, how to reduce the requirements for the motor's driving frequency and meet the inspection requirements for the workpiece is an urgent problem to be solved. Summary of the invention

[0004] Embodiments of the present application provide a detection method, a detection system, and a non-volatile computer-readable storage medium.

[0005] The detection method of the embodiment of the present application includes: obtaining first height distribution information of different positions of a workpiece to be tested, wherein the workpiece is placed on a carrying device; obtaining second height distribution information based on the first height distribution information, wherein the number of nodes where heights of the second height distribution information undergo a sudden change is smaller than the number of nodes where heights of the first height distribution information undergo a sudden change; and controlling a driving member to drive the carrying device to move in a height direction based on the second height distribution information, so as to drive the workpiece to move in the height direction.

[0006] In some embodiments, the workpiece is detected by an image acquisition device, and the control driving member drives the carrying device to move along the height direction according to the second height distribution information, including: when the driving member is controlled to drive the carrying device to move along the height direction according to the second height distribution information, the workpieces within the field of view of the image acquisition device are all within the depth of field of the image acquisition device.

[0007] In some embodiments, the first height distribution information includes a first height curve, and the step of obtaining the first height distribution information of different positions of the area to be tested of the workpiece includes: using a fixed height detection device to measure multiple distances of different positions of the area to be tested relative to a reference position; drawing a fitting point corresponding to each of the distances based on the same reference; and connecting multiple fitting points to obtain the first height curve.

[0008] In some embodiments, the first height distribution information includes a first height curve having a plurality of first steps, and obtaining the second height distribution information based on the first height distribution information includes: fitting to form a plurality of second steps based on the height differences between the plurality of first steps in the first height curve; connecting the plurality of second steps to form a second height curve, and using the second height curve as the second height distribution information.

[0009] In some embodiments, the fitting to form multiple second steps according to the height difference between each of the multiple first steps in the first height curve includes: a comparison step: taking the ith first step as the starting point and the mth first step as the end point, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval of all first steps from the ith first step to the mth first step, m>i≥1, i and m are positive integers; an acquisition step: when it is found that the height interval width between the ith first step and the nth first step is greater than the preset distance, acquiring the average height of the height interval of all first steps from the ith first step to the n-1th first step, n>i≥1, n is a positive integer; a fitting step: taking all first steps from the ith first step to the n-1th first step, using the average height as the fitting height to form a second step; and taking the nth first step as the starting point, cyclically executing the comparison step, the acquisition step and the fitting step until all first steps are fitted to form multiple second steps.

[0010] In some embodiments, the preset distance is a preset ratio of the depth of field of an image acquisition device, wherein the image acquisition device is used to detect the workpiece.

[0011] The detection system of the embodiment of the present application includes a carrying device, a driving member and one or more processors. The carrying device is used to carry a workpiece. The driving member is used to drive the carrying device to move in the height direction. One or more of the processors are used to: obtain first height distribution information of different positions of the test area of ​​the workpiece; obtain second height distribution information according to the first height distribution information, the number of nodes with sudden changes in height of the second height distribution information is less than the number of nodes with sudden changes in height of the first height distribution information; and control the driving member to drive the carrying device to move in the height direction according to the second height distribution information, so as to drive the workpiece to move in the height direction.

[0012] In some embodiments, the detection system also includes an image acquisition device, which is used to detect the workpiece. When one or more processors are used to control the driving member to drive the supporting device to move along the height direction according to the second height distribution information, the workpieces within the field of view of the image acquisition device are all within the depth of field of the image acquisition device.

[0013] In some embodiments, the height distribution information includes a first height curve, and the detection system also includes a fixed height detection device, which is used to measure multiple distances of different positions of the test area relative to a reference position; one or more of the processors are used to obtain the multiple distances, draw fitting points corresponding to each distance based on the same reference, and connect the multiple fitting points to obtain the first height curve.

[0014] In some embodiments, one or more of the processors are also used to: fit a plurality of second steps based on the height differences between each of the plurality of first steps in the first height curve; connect the plurality of second steps to form a second height curve, and use the second height curve as the second height distribution information.

[0015] In certain embodiments, one or more of the processors are further used to perform: a comparison step: taking the ith first step as the starting point and the mth first step as the end point, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval of all first steps from the ith first step to the mth first step, m>i≥1, i and m are positive integers; an acquisition step: when the comparison shows that the height interval width between the ith first step and the nth first step is greater than the preset distance, acquiring the average height of the height interval of all first steps from the ith first step to the n-1th first step, n>i≥1, n is a positive integer; a fitting step: taking all first steps from the ith first step to the n-1th first step, using the average height as the fitting height to form a second step; and taking the nth first step as the starting point, cyclically executing the comparison step, the acquisition step and the fitting step until all first steps are fitted to form multiple second steps.

[0016] In some embodiments, the preset distance is a preset ratio of the depth of field of an image acquisition device, wherein the image acquisition device is used to detect the workpiece.

[0017] The non-volatile computer-readable storage medium of the embodiment of the present application includes a computer program. When the computer program is executed by one or more processors, the processor executes the detection method described in any one of the above embodiments.

[0018] In the detection method, detection system and non-volatile computer-readable storage medium of the embodiment of the present application, the second height distribution information is obtained according to the first height distribution information of different positions of the area to be tested of the workpiece, and the driving member is controlled to drive the bearing device to move in the height direction according to the second height distribution information, so as to drive the workpiece to move in the height direction. Since the number of nodes where the height of the second height distribution information suddenly changes is less than the number of nodes where the height of the first height distribution information suddenly changes, the frequency required for the driving member to drive the bearing device to move in the height direction is reduced, so that the adjustment frequency of the driving member is within the adjustable tolerance range, and it is ensured that the driving frequency of the driving member meets the detection requirements of the detection system.

[0019] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0021] Figure 1is a schematic flow chart of a detection method according to certain embodiments of the present application;

[0022] Figure 2 is a schematic diagram of the structure of a detection system of certain embodiments of the present application;

[0023] Figure 3 is a schematic diagram of a detection method according to certain embodiments of the present application;

[0024] Figure 4 is a schematic diagram of a height determination detection device according to certain embodiments of the present application measuring the height of a workpiece placed on a carrying device;

[0025] Figure 5 is a schematic diagram of obtaining first height distribution information at different positions of a to-be-tested area of ​​a workpiece in certain embodiments of the present application;

[0026] Figure 6 It is a structural schematic diagram of another perspective of the detection method of certain embodiments of the present application;

[0027] Figure 7 and Figure 8 is a schematic diagram of a detection method according to certain embodiments of the present application;

[0028] Fig. 9 is a schematic diagram of fitting a first step of a first height curve of certain embodiments of the present application to a second step of a second height curve of second height distribution information;

[0029] Fig.10 It is a schematic diagram of the connection status of a computer scale storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION

[0030] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.

[0031] See also Figure 1 and Figure 2 , the present application embodiment provides a detection method. The detection method comprises:

[0032] 01: Acquire first height distribution information of different positions of the to-be-tested area 41 of the workpiece 40, and the workpiece 40 is placed on the carrying device 10;

[0033] 03: obtaining second height distribution information according to the first height distribution information, wherein the number of nodes whose heights suddenly change in the second height distribution information is smaller than the number of nodes whose heights suddenly change in the first height distribution information; and

[0034] 05: Control the driving member 20 to drive the carrying device 10 to move in the height direction according to the second height distribution information, so as to drive the workpiece 40 to move in the height direction.

[0035] The embodiment of the present application also provides a detection system 100. The detection system 100 includes a carrying device 10, a driving member 20 and one or more processors 30. The detection method of the embodiment of the present application can be applied to the detection system 100 of the embodiment of the present application. The carrying device 10 is used to carry a workpiece 40. The driving member 20 is used to drive the carrying device 10 to move in the height direction. One or more processors 30 are used to execute the methods in 01, 03 and 05. That is, the processor 30 is used to obtain the height distribution information of different positions of the test area 41 of the workpiece 40; obtain the second height distribution information according to the first height distribution information, the number of nodes with sudden changes in height of the second height distribution information is less than the number of nodes with sudden changes in height of the first height distribution information; and control the driving member 20 to drive the carrying device 10 to move in the height direction according to the second height distribution information, so as to drive the workpiece 40 to move in the height direction.

[0036] The workpiece 40 includes, but is not limited to, display panels, chips, wafers, mobile phone front covers, mobile phone back covers, VR glasses, AR glasses, smart watch covers, glass, lenses, wood, iron plates, housings of any devices (such as mobile phone cases), etc. This application takes the workpiece 40 as a display panel as an example, and it can be understood that the workpiece 40 is not limited to being a display panel.

[0037] The inspection system 100 may further include an image acquisition device 50 . The image acquisition device 50 is located above the workpiece 40 . The image acquisition device 50 is used to detect defects of the workpiece 40 .

[0038] The image acquisition device 50 can be an imaging device that can convert light signals into electrical signals, such as a Charge Coupled Device (CCD) camera and a Complementary Metal-Oxide-Semiconductor (CMOS) camera. In the embodiment of the present application, the image acquisition device 50 is an example of a CCD camera. It can be understood that the image acquisition device 50 is not limited to a CCD camera.

[0039] The height direction is a direction parallel to the extension direction of the central axis of the field of view of the image acquisition device 50 when the image acquisition device 50 detects defects of the workpiece 40, such as Figure 2The number of nodes where the height of the second height distribution information suddenly changes is less than the number of nodes where the height of the first height distribution information suddenly changes, so that the frequency at which the workpiece needs to move in the height direction is reduced, so that the driving direction of the driving member 20 does not need to change frequently, thereby ensuring that the frequency at which the driving member 20 drives the carrier 10 to move upward or downward to drive the workpiece 40 to move upward or downward is within the adjustable frequency that the driving member 20 can reach.

[0040] Specifically, when the image acquisition device 50 detects the workpiece 40, the area to be tested 41 of the workpiece 40 is located on the surface of the workpiece 40 facing the image acquisition device 50. The area to be tested 41 can be any position of the surface, such as the edge area, center area, edge area of ​​a hole opened in the workpiece 40, etc.

[0041] When the processor 30 controls the driving member 20 to drive the carrying device 10 to move according to the second height distribution information, the workpieces 40 within the field of view of the image acquisition device 50 are all within the depth of field of the image acquisition device 50, that is, the areas to be measured 41 are all within the depth of field of the image acquisition device 50.

[0042] At present, the height of the to-be-tested area 41 is different at different positions due to its own height fluctuation, surface damage, dust on the surface, or the workpiece 40 is not placed horizontally on the carrier 10. In the actual detection process, since the detection frequency of the image acquisition device 50 is relatively high, and the driving member 20 cannot drive the carrier 10 to move in the height direction at a relatively high frequency, when the image acquisition device 50 detects the workpiece 40, part of the to-be-tested area 41 is not within the depth of field of the image acquisition device 50, thereby affecting the clarity of the imaging and causing inaccurate detection results.

[0043] In the detection method and detection system 100 of the embodiment of the present application, the second height distribution information is obtained according to the first height distribution information of different positions of the test area 41 of the workpiece 40, and the driving member 20 is controlled to drive the carrying device 10 to move in the height direction according to the second height distribution information, so as to drive the workpiece 40 to move in the height direction. Since the number of nodes where the height of the second height distribution information suddenly changes is less than the number of nodes where the height of the first height distribution information suddenly changes, the frequency of the driving member 20 driving the carrying device 10 to move in the height direction is reduced, so that the movement frequency of the driving member 20 is within the tolerance range that the driving member 20 can adjust, and the driving frequency of the driving member 20 is guaranteed to meet the detection requirements of the detection system 100.

[0044] Please also read Figure 2 and Figure 3 In some embodiments, the height distribution information includes a first height curve M( Figure 501: Obtaining height distribution information of different positions of the test area 41 of the workpiece 40, including:

[0045] 011: using the height determination detection device 60 to measure multiple distances of different positions of the test area 41 relative to the reference position;

[0046] 012: Draw the fitting points corresponding to each distance on the same basis; and

[0047] 013: Connect multiple fitting points to obtain a first height curve M.

[0048] The detection system 100 may further include a height determination detection device 60, which is used to execute the method in 011, and one or more processors 30 are used to execute the methods in 012 and 013. That is, the height determination detection device 60 is used to measure multiple distances of different positions of the test area 41 relative to the reference position, and the processor 30 is used to obtain multiple distances, draw fitting points corresponding to each distance with the same reference, and connect multiple fitting points to obtain a height curve.

[0049] The height detection device 60 may include a probe 61 and an image acquisition module 62. When the height detection device 60 measures multiple distances of different positions of the test area 41 of the workpiece 40 relative to the reference position, the image acquisition module 62 first acquires a first image of the workpiece 40 to obtain the position information of the workpiece 40 on the carrier 10. The position information may include the offset and / or deflection angle of the workpiece 40 relative to the reference position. A reference image of the workpiece 40 placed at the reference position of the carrier 10 is pre-stored in one or more processors 30. The processor 30 acquires the offset and / or deflection angle of the workpiece 40 relative to the reference position based on the reference image and the first image.

[0050] Of course, the detection system 100 can also obtain the position information of the workpiece 40 on the carrier 10 in other ways, which are not limited here. After obtaining the position information, the probe 61 detects the height information of the workpiece 40 according to the position information, thereby measuring multiple distances of different positions of the test area 41 relative to the reference position.

[0051] Please combine Figure 5 The first height distribution information may be a first height curve M connected in multiple segments, and the processor 30 may obtain the second height distribution information according to the first height curve M. The reference position may be the mounting surface 64 (eg Figure 4 The reference position can also be the side of the height detection device 60 facing away from the workpiece 40. The same reference is any reference, for example, the height of the mounting surface 64 is the height of the X-axis (reference surface), so as to draw the height distribution of multiple fitting points relative to the X-axis (such as Figure 5 shown).

[0052] Specifically, Figure 4 As shown, in one embodiment, taking the reference position as the mounting surface 64 of the probe 61 as an example, when the height determination detection device 60 measures multiple distances of different positions of the test area 41 relative to the reference position, the following can be obtained: Figure 5 For the multiple distances h1, h2, h3, h4, h5, and h6 shown in the left figure, the processor 30 plots the height distribution of the workpiece 40 at the corresponding distances h1, h2, h3, h4, h5, and h6 with the height of the mounting surface 64 as the X-coordinate axis, and the following can be obtained: Figure 5 As shown in the right figure, there are multiple first fitting points, and the width of the first fitting point at each height is the same as the width of the test area 41 at the same height. The processor 30 then obtains the first height curve M by connecting the multiple first fitting points, and can obtain the second height distribution information through the first height curve M.

[0053] Please also read Figure 2 and Figure 6 The image acquisition device 50 and the height determination detection device 60 can be installed on the same platform 70, and a guide rail can be set on the platform 70. The image acquisition device 50 and the height determination detection device 60 can move along the guide rail on the platform 70 (move left and right), and the image acquisition device 50 and the height determination detection device 60 are located on opposite sides of the platform 70, and the carrying device 10 is located below the platform 70. There can be multiple processors 30. In one example, multiple processors 30 are respectively integrated into the image acquisition device 50 and the height determination detection device 60; in another example, some processors 30 are integrated into the image acquisition device 50, and another part of the processors 30 are integrated into the platform 70; in another example, some processors 30 are integrated into the height determination detection device 60, and another part of the processors 30 are integrated into the platform 70; in yet another example, all processors 30 can also be integrated into the platform 70.

[0054] Please continue reading Figure 2 and Figure 6 In some embodiments, the detection system 100 may include a first running track 80 and a second running track 90. ​​There may be multiple carrying devices 10, and the multiple carrying devices 10 are placed on different running tracks respectively.

[0055] When there are two carriers 10, one carrier 10 is placed on the first running track 80, and the other carrier 10 is placed on the second running track 90. ​​When the carrier 10 moves to the bottom of the carrier 70 through the first running track 80 or the second running track 90, the height determination detection device 60 first obtains multiple distances of different positions of the test area 41 (taking the edge area as an example) of the workpiece 40 on the carrier 10 on the first running track 80 relative to the reference position according to the above-mentioned measurement method, and then the height determination detection device 60 moves from left to right to measure multiple distances of different positions of the test area 41 of the workpiece 40 on the carrier 10 on the second running track 90 relative to the reference position.

[0056] The processor 30 can obtain multiple distances corresponding to the workpiece 40 on the first running track 80 from the height determination detection device 60, and draw the fitting points corresponding to each distance based on the same reference, and connect the multiple fitting points to obtain the first height curve M of the test area 41 on the first running track 80; the processor 30 can also obtain multiple distances corresponding to the test area 41 on the second running track 90 from the height determination detection device 60, and draw the fitting points corresponding to each distance based on the same reference, and connect the multiple fitting points to obtain the first height curve M of the workpiece 40 on the second running track 90.

[0057] Next, the image acquisition device 50 also first detects defects of the workpiece 40 on the carrier 10 on the first running track 80, and then detects defects of the workpiece 40 on the carrier 10 on the second running track 90. ​​When the image acquisition device 50 detects defects of the workpiece 40 on the carrier 10 on the first running track 80, the processor 30 controls the driving member 20 to drive the carrier 10 to move along the height direction according to the second height distribution information, so that the workpiece 40 on the first running track 80 is within the depth of field of the image acquisition device 50.

[0058] Similarly, when the image acquisition device 50 detects defects of the workpiece 40 on the carrying device 10 on the second running track 90, the processor 30 controls the driving member 20 to drive the carrying device 10 to move along the height direction according to the second height distribution information, so that the workpiece 40 on the second running track 90 is also within the depth of field of the image acquisition device 50.

[0059] In some embodiments, the starting time when the height detection device 60 performs distance detection on the workpiece 40 on the second running track 90 is earlier than the ending time when the image acquisition device 50 performs defect detection on the workpiece 40 on the first running track 80. The height detection device 60 does not need to wait for the image acquisition device 50 to complete defect detection on the current workpiece 40 before performing distance detection on the next workpiece 40, so that the detection system 100 can detect multiple workpieces 40 at the same time, thereby improving the detection efficiency of the detection system 100.

[0060] See also Figure 7 In some embodiments, 03: obtaining second height distribution information according to the first height distribution information includes:

[0061] 032: fitting to form a plurality of second steps according to the height differences between the plurality of first steps in the first height curve M; and

[0062] 034: Connect multiple second steps to form a second height curve Q, and use the second height curve as second height distribution information.

[0063] Please combine Figure 2 , one or more processors 30 are also used to execute the methods in 032 and 034, that is, the processor 30 is used to fit a plurality of second steps according to the height differences between the plurality of first steps in the first height curve M; and connect the plurality of second steps to form a second height curve Q, and use the second height curve Q as the second height distribution information.

[0064] In the detection method and detection system 100 of the present embodiment, the second height curve Q serving as the second height distribution information is formed by fitting the height differences between multiple first steps on the first height curve M of the test area 41 of the workpiece 40 into second steps. The number of second steps on the second height curve Q is less than the number of first steps on the first height curve M, and the processor 30 controls the driving member 20 to drive the carrying device 10 to move in the height direction according to the second height distribution information, thereby reducing the frequency at which the driving member 20 is required to drive the carrying device 10 to move in the height direction.

[0065] Specifically, see Figure 8 In some embodiments, 032: connecting a plurality of second steps to form a second height curve Q, and using the second height curve Q as second height distribution information, comprises:

[0066] 0321: Comparison step: starting from the i-th first step and ending at the m-th first step, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval where all the first steps from the i-th first step to the m-th first step are located, m>i≥1, i and m are positive integers;

[0067] 0322: Acquisition step: when it is found that the width of the height interval between the i-th first step and the n-th first step is greater than the preset distance, the average height of the height intervals of all first steps from the i-th first step to the n-1-th first step is acquired, where n>i≥1, and n is a positive integer;

[0068] 0323: Fitting step: taking all first steps from the ith first step to the n-1th first step and using the average height as the fitting height to form a second step; and

[0069] 0324: Taking the nth first step as the starting point, the comparison step, the acquisition step and the fitting step are executed cyclically until all the first steps are fitted to form a plurality of second steps.

[0070] Correspondingly, please combine Figure 2 , one or more processors 30 are used to execute the methods in 0321, 0322, 0323 and 0324, that is, the processor 30 is used to execute: a comparison step: starting from the i-th first step and ending at the m-th first step, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval of all first steps from the i-th first step to the m-th first step, m>i≥1, i and m are positive integers; an acquisition step: when the comparison shows that the height interval width between the i-th first step and the n-th first step is greater than the preset distance, acquiring the average height of the height interval of all first steps from the i-th first step to the n-1-th first step, n>i≥1, n is a positive integer; a fitting step: taking all first steps from the i-th first step to the n-1-th first step, using the average height as the fitting height to form a second step; and starting from the n-th first step, cyclically executing the comparison step, the acquisition step and the fitting step until all first steps are fitted to form multiple second steps.

[0071] The preset distance is a preset ratio of the depth of field of the image acquisition device 50. For example, the preset distance may be the depth of field of the image acquisition device 50, one half, one third, one quarter of the depth of field of the image acquisition device 50, etc. Setting the preset distance as the preset ratio of the depth of field of the image acquisition device 50 facilitates, when determining the height of the second step, fully considering whether the workpiece 40 is within the depth of field of the image acquisition device 50 when the workpiece 40 is driven in the height direction.

[0072] The present application takes the preset distance as the depth of field of the image acquisition device 50 as an example. It can be understood that the preset distance includes but is not limited to the depth of field of the image acquisition device 50. When the preset distance is used as the depth of field of the image acquisition device 50 as the judgment condition, the processor 30 finally fits multiple second steps, and the absolute value of the difference between the height of each second step and the height of the multiple first steps corresponding to the second step is less than half of the depth of field of the image depth of field device 50. Then, when the processor 30 controls the driving member 20 to drive the carrying device 10 to drive the workpiece 40 to move according to the second height distribution information, for example, when the driving member 20 drives each second step to half of the depth of field of the image acquisition device 50, the workpiece 40 is located within the depth of field of the image acquisition device 50. For example, when the processor 30 controls the driving member 20 to drive the second step 1( Fig. 9 As shown in the right figure) when the image acquisition device 50 is driven to half of the depth of field, the first step 1 and the first step 2 ( Fig. 9 As shown in the left figure) are all located within the depth of field of the image acquisition device 50.

[0073] Specifically, in some embodiments, please combine Fig. 9 Taking the example of six first steps continuously distributed along a predetermined direction on the first height curve M, the six first steps are respectively a first step 1, a first step 2, a first step 3, a first step 4, a first step 5 and a first step 6.

[0074] The processor 30 starts to execute the comparison step, and the processor 30 takes the first step 1 as the starting point and the first step 2 as the end point, and compares the width of the height interval with the preset distance. If the width of the height interval with the first step 1 as the starting point and the first step 2 as the end point is less than or equal to the preset distance, the processor 30 continues to execute the comparison step, and the processor 30 compares the width of the height interval with the first step 1 as the starting point and the first step 3 as the end point with the preset distance. If the width of the height interval with the first step 1 as the starting point and the first step 3 as the end point is less than or equal to the preset distance, the processor 30 compares the width of the height interval with the first step 1 as the starting point and the first step 4 as the end point with the preset distance, until it is concluded that the width of the height interval from the first step at a certain starting point to the first step at a certain end point is greater than the preset distance, then the processor 30 stops executing the comparison step and starts executing the acquisition step.

[0075] Among them, the width of the height interval is the difference between the highest first step and the lowest first step from the first step at the starting point to the first step at the end point. Since the height detection device 60 measures multiple distances of different positions of the test area 41 relative to the reference position, and draws fitting points corresponding to each distance with the same reference point, and then connects multiple fitting points to obtain the first height curve M, the heights of the multiple first steps of the first height curve M are known information. Therefore, when the processor 30 executes the comparison step, the processor 30 can directly obtain the height of the highest first step and the height of the lowest first step from the first step at the starting point to the first step at the end point, and use the difference between the height of the highest first step and the height of the lowest first step as the width of the height interval, thereby comparing the width of the height interval with the size of the preset distance. For example, when the first step 1 is the starting point and the first step 2 is the end point, the width of the height interval is H. 12 ; When the first step 1 is the starting point and the first step 3 is the end point, the width of the height interval is H 13 ; When the first step 1 is the starting point and the first step 4 is the end point, the width of the height interval is still H 13 ; When the first step 3 is the starting point and the first step 5 is the end point, the width of the height interval is H 34 .

[0076] In one embodiment, the processor 30 starts to perform the comparison step, and the processor 30 takes the first step 1 as the starting point and the first step 2 as the end point, and compares the width H of the height interval between the first step 1 and the first step 2. 12 The size of the preset distance, if H 12 If the distance is less than or equal to the preset distance, the processor 30 takes the first step 1 as the starting point and the first step 3 as the end point, and compares the width H of the height interval between the first step 1 and the first step 3. 13 The size of the preset distance, if H 13 If the height difference between the first step 1 and the first step 4 is greater than the preset distance, the processor 30 stops the subsequent comparison steps starting from the same first step, that is, stops comparing the width of the height interval starting from the first step 1 and ending at the first step 4 with the preset distance, stops comparing the width of the height interval starting from the first step 1 and ending at the first step 5 with the preset distance, and stops comparing the width of the height interval starting from the first step 1 and ending at the first step 6 with the preset distance.

[0077] Please combine Fig. 9 In some embodiments, during the comparison step, if the processor 30 determines that the width H of the height interval starting from the first step 1 and ending at the first step 3 is 13If the distance is greater than the preset distance, the processor 30 stops the comparison step and starts the acquisition step, and the processor 30 acquires the average height of the height interval where the first step 1 and the first step 2 are located, that is, acquires the average height of the height of the first step 1 and the height of the second step 2. The processor 30 performs the fitting step, and the processor 30 uses the average height as the fitting height to form the following Fig. 9 The first second step 1 is shown in the right picture.

[0078] Specifically, the processor 30 obtains multiple second fitting points of the first step 1 and the second step 2 at the average height at the same position as the reference position for fitting the first height curve M, namely, the mounting surface 64, with the height thereof being the X-coordinate axis. The width of the distribution of the multiple second fitting points at the average height is the same as the total width of the first step 1 and the second step 2. The processor 30 then obtains the second step 1 by connecting the multiple second fitting points.

[0079] Then, starting from the first step 3 , the above comparison step and the above fitting step are cyclically performed until all the first steps are fitted to form a plurality of second steps, such as the second step 2 and the second step 3 .

[0080] It should be noted that the fitting height can be obtained by calculating the average height of all the first steps in the first step to be fitted. In other embodiments, the fitting height can also be obtained by calculating the average height of the first step with the highest height and the first step with the lowest height in the height interval of the first step to be fitted, and using the average height as the fitting height to form the second step. For example, if the processor 30 determines that the width of the height interval with the first step 3 as the starting point and the first step 6 as the end point is greater than the preset distance, the processor 30 obtains the average height of the height interval where the first step 3, the first step 4 and the first step 5 are located, that is, the processor 30 obtains the average height of the height of the first step 3 and the height of the first step 4. Fig. 9 As shown, the processor 30 finally needs to determine the width of the height interval starting from the first step 5 and ending at the first step 6 and the size of the preset distance. If the width of the height interval is less than or equal to the preset distance, the processor 30 uses the average value of the heights of the first step 5 and the first step 6 as the average height, and uses the average height as the fitting height to form a second step 3.

[0081] In the detection method and detection system of the present embodiment, the processor 30 controls the driving member 20 to drive the carrying device 10 to move in the height direction according to the second height distribution information, so as to drive the workpiece 40 to move in the height direction. Since the multiple second steps of the second height curve are fitted by satisfying the average height of the height interval where the width of the height interval is less than or equal to the preset distance, the number of second steps is less than the first steps, and the preset distance is the depth of field of the image acquisition device. On the one hand, the driving frequency of the driving member 20 is reduced, and on the other hand, when the processor 30 controls the driving member 20 to drive the carrying device 10 to move in the height direction according to the second height distribution information, the test area 41 of the workpiece 40 is located within the depth of field of the image acquisition device 50, thereby ensuring the accuracy of the detection result.

[0082] See also Fig.10 The present application also provides a non-volatile computer-readable storage medium 200 including a computer program 201. When the computer program 201 is executed by one or more processors 30, the one or more processors 30 execute the detection method of any of the above embodiments.

[0083] For example, please combine Figure 1 and Figure 2 When the computer program 201 is executed by one or more processors 30, the processor 30 performs the following detection method:

[0084] 01: Acquire first height distribution information of different positions of the to-be-tested area 41 of the workpiece 40, and the workpiece 40 is placed on the carrying device 10;

[0085] 03: obtaining second height distribution information according to the first height distribution information, wherein the number of nodes whose heights suddenly change in the second height distribution information is smaller than the number of nodes whose heights suddenly change in the first height distribution information; and

[0086] 05: Control the driving member 20 to drive the carrying device 10 to move in the height direction according to the second height distribution information, so as to drive the workpiece 40 to move in the height direction.

[0087] For example, please combine Figure 2 and Figure 3 When the computer 201 program is executed by one or more processors 30, the processor 30 performs the following detection method:

[0088] 011: using the height determination detection device 60 to measure multiple distances of different positions of the test area 41 relative to the reference position;

[0089] 012: Draw the fitting points corresponding to each distance on the same basis; and

[0090] 013: Connect multiple fitting points to obtain a first height curve M.

[0091] For another example, please combine Figure 7 When the computer 201 program is executed by one or more processors 30, the processor 30 performs the following detection method:

[0092] 031: fitting to form a plurality of second steps according to the height differences between the plurality of first steps in the first height curve M; and

[0093] 032: Connect multiple second steps to form a second height curve, and use the second height curve as second height distribution information.

[0094] For example, please combine Figure 8 When the computer 201 program is executed by one or more processors 30, the processor 30 performs the following detection method:

[0095] 0321: Comparison step: starting from the i-th first step and ending at the m-th first step, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval where all the first steps from the i-th first step to the m-th first step are located, m>i≥1, i and m are positive integers;

[0096] 0322: Acquisition step: when it is found that the width of the height interval between the i-th first step and the n-th first step is greater than the preset distance, the average height of the height intervals of all first steps from the i-th first step to the n-1-th first step is acquired, where n>i≥1, and n is a positive integer;

[0097] 0323: Fitting step: taking all first steps from the ith first step to the n-1th first step and using the average height as the fitting height to form a second step; and

[0098] 0324: Taking the nth first step as the starting point, the comparison step, the acquisition step and the fitting step are executed cyclically until all the first steps are fitted to form a plurality of second steps.

[0099] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0100] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0101] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A detection method, characterized in that: include: Acquiring first height distribution information at different positions of a to-be-tested area of ​​a workpiece, wherein the workpiece is placed on a carrying device; Acquire second height distribution information according to the first height distribution information, wherein the number of nodes whose heights suddenly change in the second height distribution information is smaller than the number of nodes whose heights suddenly change in the first height distribution information; and Controlling the driving member to drive the carrying device to move in the height direction according to the second height distribution information, so as to drive the workpiece to move in the height direction; The workpiece is detected by an image acquisition device, and the control driving member drives the carrying device to move along the height direction according to the second height distribution information, including: When the driving member is controlled to drive the carrying device to move along the height direction according to the second height distribution information, the workpieces within the field of view of the image acquisition device are all located within the depth of field of the image acquisition device; The first height distribution information includes a first height curve having a plurality of first steps, and acquiring the second height distribution information according to the first height distribution information includes: Fitting to form a plurality of second steps according to the height differences between the plurality of first steps in the first height curve; A plurality of the second steps are connected to form a second height curve, and the second height curve is used as the second height distribution information.

2. The detection method according to claim 1, characterized in that: The first height distribution information includes a first height curve, and the step of obtaining the first height distribution information at different positions of the area to be tested of the workpiece includes: Using a height determination detection device to measure multiple distances of different positions of the test area relative to a reference position; Plotting the fitting points corresponding to each of the distances on the same basis; and A plurality of the fitting points are connected to obtain the first height curve.

3. The detection method according to claim 1, characterized in that: The forming a plurality of second steps by fitting according to the height differences between the plurality of first steps in the first height curve comprises: Comparison step: taking the ith first step as the starting point and the mth first step as the end point, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval where all the first steps from the ith first step to the mth first step are located, m>i≥1, i and m are positive integers; Acquisition step: when it is found by comparison that the width of the height interval between the i-th first step and the n-th first step is greater than the preset distance, the average height of the height intervals of all first steps from the i-th first step to the n-1-th first step is acquired, where n>i≥1, and n is a positive integer; Fitting step: forming a second step by taking the average height of all first steps from the ith first step to the n-1th first step as the fitting height; and Taking the nth first step as a starting point, the comparing step, the acquiring step and the fitting step are executed cyclically until all the first steps are fitted to form a plurality of second steps.

4. The detection method according to claim 3, characterized in that: The preset distance is a preset ratio of the depth of field of an image acquisition device, wherein the image acquisition device is used to detect the workpiece.

5. A detection system, characterized in that: include: A carrying device, the carrying device is used to carry the workpiece; A driving member, the driving member is used to drive the carrying device to move in a height direction; and One or more processors, one or more of the processors are used to: obtain first height distribution information of different positions of the test area of ​​the workpiece; obtain second height distribution information according to the first height distribution information, the number of nodes with sudden height changes in the second height distribution information is less than the number of nodes with sudden height changes in the first height distribution information; and control the driving member to drive the carrying device to move in the height direction according to the second height distribution information, so as to drive the workpiece to move in the height direction; The detection system further comprises an image acquisition device, wherein the image acquisition device is used to detect the workpiece, and when one or more of the processors are used to control the driving member to drive the carrying device to move along the height direction according to the second height distribution information, the workpieces within the field of view of the image acquisition device are all within the depth of field of the image acquisition device; One or more of the processors are further configured to perform: Fitting to form a plurality of second steps according to the height differences between the plurality of first steps in the first height curve; and A plurality of the second steps are connected to form a second height curve, and the second height curve is used as the second height distribution information.

6. The detection system according to claim 5, characterized in that: The height distribution information includes a first height curve, and the detection system also includes a fixed height detection device, which is used to measure multiple distances of different positions of the test area relative to a reference position; one or more processors are used to obtain the multiple distances, draw fitting points corresponding to each distance based on the same reference, and connect the multiple fitting points to obtain the first height curve.

7. The detection system according to claim 5, characterized in that: One or more of the processors are further configured to perform: Comparison step: taking the ith first step as the starting point and the mth first step as the end point, comparing the height interval width with the preset distance one by one, wherein the height interval width is the width of the height interval where all the first steps from the ith first step to the mth first step are located, m>i≥1, i and m are positive integers; Acquisition step: when it is found by comparison that the width of the height interval between the i-th first step and the n-th first step is greater than the preset distance, the average height of the height intervals of all first steps from the i-th first step to the n-1-th first step is acquired, where n>i≥1, and n is a positive integer; Fitting step: forming a second step by taking the average height of all first steps from the ith first step to the n-1th first step as the fitting height; Taking the nth first step as a starting point, the comparing step, the acquiring step and the fitting step are executed cyclically until all the first steps are fitted to form a plurality of second steps.

8. The detection system according to claim 7, characterized in that: The preset distance is a preset ratio of the depth of field of an image acquisition device, wherein the image acquisition device is used to detect the workpiece.

9. A non-volatile computer-readable storage medium storing a computer program, wherein when the computer program is executed by one or more processors, the processors execute the detection method according to any one of claims 1 to 4.