Inspection machine focusing method, system and equipment and storage medium

By acquiring and adjusting the focus data of the material to be inspected, the problem of jittering at the end of the material at the airflow junction is solved, and the focus accuracy of the inspection machine and the accuracy of the image inspection are improved.

CN118945475APending Publication Date: 2024-11-12LG DISPLAY HIGH-TECH (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411207038.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

During the preparation of the organic luminescent display panel, the end of the material to be inspected is prone to abnormal jitter at the airflow intersection, resulting in unclear local images taken by the camera and reducing the accuracy of image inspection.

Method used

By obtaining the focus data of the end and central area of ​​the material to be inspected, the position of the camera is adjusted so that the focus points of the end and central area are at the focal surface of the camera, thereby capturing a clear image and improving the accuracy of image inspection.

Benefits of technology

The focus accuracy of the inspection machine is improved, ensuring the accuracy of the image inspection, especially the clarity of the material end area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945475A_ABST
    Figure CN118945475A_ABST
Patent Text Reader

Abstract

The invention discloses an inspection machine focusing method, system and device and a storage medium. Acquiring first focusing data of each focusing point in an end part area of the to-be-inspected material, which is acquired by the focusing device, from the time when the end part of the to-be-inspected material is conveyed to the position under the focusing device by the air sliding device to the time when the end part area of the to-be-inspected material leaves the position under the focusing device; when the end of the to-be-inspected material is conveyed to the position under a camera of the inspection machine by the air sliding device, the position of the camera in the direction perpendicular to the air sliding device is adjusted based on the first focusing data, so that the focusing point in the end area is located on the focal plane of the camera, and the focusing data of the end area is obtained in advance through the focusing device; when the end area reaches the position under the camera, the camera is controlled to move based on the focusing data, so that the focusing point in the end area is located on the focal plane of the camera, a clear end area image can be shot, and the accuracy of portrait inspection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to focusing technology, and in particular to a focusing method, system, equipment and storage medium for an inspection machine. Background Art

[0002] The preparation process of the organic light-emitting display panel involves many processes that require image inspection of the materials to be inspected, such as image inspection of the glass substrate to check for foreign matter, spots, etc. on the glass substrate, and image inspection of the finally prepared organic light-emitting display panel to check for abnormal pixels such as bright spots and dark spots in the organic light-emitting display panel.

[0003] Figure 1 The schematic diagram of the focusing principle of the inspection machine in the prior art is as follows: Figure 1 As shown, during the image inspection process, the material to be inspected is sent to the bottom of the camera of the inspection machine through the air slide unit. Specifically, the air slide unit 110 is provided with a plurality of air holes 111. By sending air to the air holes 111, the air is ejected upward through the air holes 111, so that the material to be inspected 120 on the air slide unit 110 floats and moves in a preset direction. The camera 130 is pre-set with a fixed focal plane. When the material to be inspected 120 passes under the camera 130 of the inspection machine, the camera 130 captures the image of the surface of the material to be inspected 120.

[0004] However, due to the end of the material to be inspected ( Figure 1 The positions A and B in the middle are at the interface of the airflow, where airflow turbulence is likely to occur, causing abnormal shaking of the end of the material to be inspected. The local image taken by the camera 130 at the end of the material to be inspected is unclear, reducing the accuracy of the portrait inspection. Summary of the invention

[0005] The present invention provides an inspection machine focusing method, system, equipment and storage medium to improve the focusing accuracy of the end area, thereby improving the accuracy of image inspection.

[0006] In a first aspect, the present invention provides a focusing method for an inspection machine, comprising:

[0007] Control the focus device to start;

[0008] Acquire first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to the position directly below the focusing device to when the end area of ​​the material to be inspected leaves the position directly below the focusing device;

[0009] Acquire second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves directly below the focusing device to when the central area leaves directly below the focusing device;

[0010] Starting from the end of the material to be inspected being transported by the air slide device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air slide device is adjusted based on the first focus data so that the focus point in the end area is on the focal plane of the camera;

[0011] Starting from when the end area leaves the area directly below the camera, the position of the camera in a direction perpendicular to the air slide is adjusted based on the second focus data so that the focus point in the central area is on the focal plane of the camera.

[0012] Optionally, obtaining first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to directly below the focusing device to when the end area of ​​the material to be inspected leaves directly below the focusing device includes:

[0013] Acquiring the ranging distance collected by the focusing device;

[0014] Determining whether the ranging distance is less than a preset distance threshold;

[0015] If so, it is determined that the end of the material to be inspected is transported by the air sliding device to directly below the focusing device, and the focusing data of each focusing point collected by the focusing device is obtained;

[0016] After a first preset time has passed, it is determined that the end region of the material to be inspected leaves the area directly below the focusing device, and the focusing data acquired within the first preset time is used as the first focusing data of each focusing point in the end region.

[0017] Optionally, obtaining second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves directly below the focusing device to when the central area leaves directly below the focusing device includes:

[0018] When the end area leaves the area directly below the focusing device, acquiring focusing data of each focusing point collected by the focusing device;

[0019] After a second preset time has passed, it is determined that the central area of ​​the material to be inspected leaves the area directly below the focusing device, and the focusing data acquired within the second preset time is used as the second focusing data of each focusing point in the central area.

[0020] Optionally, starting from when the end of the material to be inspected is transported by the air slide device to directly below the camera of the inspection machine, adjusting the position of the camera in a direction perpendicular to the air slide device based on the first focus data so that the focus point in the end area is on the focal plane of the camera, comprises:

[0021] Starting from the end of the material to be inspected passing directly below the focusing device, after a third preset time has passed, it is determined that the end of the material to be inspected is transported by the air sliding device to directly below the camera of the inspection machine;

[0022] The position of the camera in a direction perpendicular to the air slide device is adjusted based on the first focus data of the focus point in the end region, so that the focus point in the end region is located in the focal plane of the camera.

[0023] Optionally, starting from the end area leaving directly below the camera, adjusting the position of the camera in a direction perpendicular to the air sliding device based on the second focus data so that the focus point in the central area is behind the focal plane of the camera, further comprising:

[0024] Rotating the material to be inspected and placing the material to be inspected on the air slide device;

[0025] Acquire third focusing data of each focusing point in the other end region of the material to be inspected collected by the focusing device during the period from when the other end of the material to be inspected is transported by the air sliding device to directly below the focusing device to when the other end region of the material to be inspected leaves directly below the focusing device;

[0026] Starting from the time when the other end of the material to be inspected is transported by the air sliding device to a position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the third focus data so that the focus point in the other end area is in the focal plane of the camera.

[0027] Optionally, the focusing device includes a first focusing device and a second focusing device, and the method includes:

[0028] Controlling the first focusing device and the second focusing device to start;

[0029] Acquire first focusing data of each focusing point in the first end region of the material to be inspected collected by the first focusing device during the period from when the first end of the material to be inspected is transported by the air sliding device to directly below the first focusing device to when the first end region of the material to be inspected leaves directly below the first focusing device;

[0030] Acquire second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the first focusing device during the period from when the first end area leaves directly below the first focusing device to when the central area leaves directly below the first focusing device;

[0031] Starting from the first end of the material to be inspected being transported by the air slide device to directly below the camera of the inspection machine, adjusting the position of the camera in a direction perpendicular to the air slide device based on the first focus data so that the focus point in the first end region is on the focal plane of the camera;

[0032] Starting from the first end area leaving the area directly below the camera, adjusting the position of the camera in a direction perpendicular to the air slide device based on the second focus data so that the focus point in the central area is on the focal plane of the camera;

[0033] After the second end of the material to be inspected leaves the area directly below the second focusing device, controlling the air sliding device to drive in the reverse direction;

[0034] Acquire third focusing data of each focusing point in the second end region of the material to be inspected collected by the second focusing device during the period from when the second end of the material to be inspected is transported by the air sliding device to directly below the second focusing device to when the second end region of the material to be inspected leaves directly below the second focusing device;

[0035] Starting from the time when the second end of the material to be inspected is transported by the air sliding device to a position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the third focus data so that the focus point in the second end area is in the focal plane of the camera.

[0036] In a second aspect, the present invention further provides a focusing system for an inspection machine, comprising:

[0037] an air slide device, on which the material to be inspected is suspended and moves along the air slide device;

[0038] A camera, arranged just above the air slide device, for collecting images of the surface of the material to be inspected;

[0039] A mobile focusing device, the camera is fixed on the mobile focusing device, and the mobile focusing device can move in a direction perpendicular to the air sliding device;

[0040] A focusing device, disposed directly above the air sliding device and spaced apart from the camera by a preset distance;

[0041] A host computer, the camera, the mobile focusing device and the focusing device are all connected to the host computer, and the host computer is used to execute the inspection machine focusing method provided in the first aspect of the present invention.

[0042] Optionally, the focusing device includes a first focusing device and a second focusing device, and the first focusing device and the second focusing device are both arranged directly above the air sliding device and on both sides of the camera, and the first focusing device and the second focusing device are both spaced a preset distance from the camera.

[0043] In a third aspect, the present invention further provides an electronic device, comprising:

[0044] one or more processors;

[0045] A storage device for storing one or more programs;

[0046] When the one or more programs are executed by the one or more processors, the one or more processors implement the inspection machine focusing method provided in the first aspect of the present invention.

[0047] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the inspection machine focusing method provided in the first aspect of the present invention.

[0048] The inspection machine focusing method provided by the present invention obtains first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to the bottom of the focusing device to when the end area of ​​the material to be inspected leaves the bottom of the focusing device, and obtains second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves the bottom of the focusing device to when the central area leaves the bottom of the focusing device, starting from when the end of the material to be inspected is transported by the air sliding device to the bottom of the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the first focusing data, so that the focusing point in the end area is on the focal plane of the camera, and starting from when the end area leaves the bottom of the camera, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the second focusing data, so that the focusing point in the central area is on the focal plane of the camera, the focusing data of the end area is obtained in advance by the focusing device, and when the end area arrives at the bottom of the camera, the camera is controlled to move based on the focusing data, so that the focusing point in the end area is on the focal plane of the camera, so that a clear image of the end area can be captured, thereby improving the accuracy of image inspection.

[0049] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 It is a schematic diagram of the focusing principle of the inspection machine in the prior art;

[0052] Figure 2 A schematic diagram of the structure of a focusing system for an inspection machine provided by an embodiment of the present invention;

[0053] Figure 3 A flowchart of a focusing method for an inspection machine provided by an embodiment of the present invention;

[0054] Figure 4 A schematic structural diagram of another inspection machine focusing system provided by an embodiment of the present invention;

[0055] Figure 5 A flowchart of another inspection machine focusing method provided by an embodiment of the present invention;

[0056] Figure 6 A schematic diagram of the structure of a focusing device for an inspection machine provided by an embodiment of the present invention;

[0057] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0061] Figure 2 A structural diagram of a focusing system for an inspection machine provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the inspection machine focusing system includes:

[0062] The air sliding device 210, the material to be inspected 200 is suspended on the air sliding device 210, and moves along the air sliding device 210. For example, a plurality of air holes 211 are provided on the surface of the air sliding device 210, and the air holes 211 are connected to the air source through the air channel 212. During the operation of the air sliding device 210, the air source blows air into the air sliding device 210 through the air channel 212. The gas is ejected from the air holes 211, so that the material to be inspected 200 on the air sliding device 210 is suspended. When the material to be inspected 200 enters the air sliding device 210, an initial velocity is given, so that the material to be inspected 200 can be moved along the extension direction X of the air sliding device 210.

[0063] The camera 220 is disposed directly above the air sliding device 210 and is used to collect images of the surface of the material 200 to be inspected.

[0064] The mobile focusing device 230 , on which the camera 220 is fixed, can move in a direction Y perpendicular to the air sliding device 210 to achieve focusing of the camera 220 .

[0065] The focusing device 240 is disposed directly above the air sliding device 210 and is spaced from the camera 220 by a preset distance D. The focusing device 240 is used to collect the distance from the focusing device 240 to the surface of the material 200 to be inspected. Since the initial positions of the focusing device 240 and the camera 220 are determined, the distance from the focusing device 240 to the surface of the material 200 to be inspected is also the focusing data. In the subsequent focusing process, the mobile focusing device 230 is controlled to move in the Y direction based on the focusing data, so that the focusing point on the surface of the material 200 to be inspected is at the focal plane of the camera 220. Exemplarily, the focusing device 240 may be a laser focusing device.

[0066] The host computer (not shown in the figure), the camera 220, the mobile focusing device 230 and the focusing device 240 are all connected to the host computer. Exemplarily, the camera 220 uploads the captured image to the host computer. The focusing device 240 uploads the captured focus data to the host computer, and the host computer controls the mobile focusing device 230 to move in the Y direction based on the focus data, so that the focus point on the surface of the material 200 to be inspected is at the focal plane of the camera 220.

[0067] Figure 3 This is a flow chart of a focusing method for an inspection machine provided by an embodiment of the present invention. This embodiment can be applied to the case where a camera is focused during the process of transporting materials using an air sliding device. The method can be performed by a focusing device for an inspection machine provided by an embodiment of the present invention. The device can be implemented by software and / or hardware and is usually configured in an electronic device, such as Figure 3 As shown, the inspection machine focusing method specifically includes the following steps:

[0068] S101, controlling the focusing device to start.

[0069] refer to Figure 2 , the host computer controls the focusing device 240 to start and continuously collect focus data.

[0070] S102, obtaining first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to directly below the focusing device to when the end area of ​​the material to be inspected leaves directly below the focusing device.

[0071] refer to Figure 2, the material 200 to be inspected moves along the positive direction of X, starting from when the end P of the material 200 to be inspected is transported by the air sliding device 210 to the bottom of the focusing device 240, until the end area A1 of the material 200 to be inspected leaves the bottom of the focusing device 240, during which the host computer continuously obtains the first focusing data of each focusing point in the end area A1 of the material 200 to be inspected collected by the focusing device 240. Exemplarily, a plurality of focusing points are arranged in the end area A1 along the extension direction X of the air sliding device 210, and as the material 200 to be inspected moves, the first focusing data of each focusing point in the end area A1 is obtained in sequence.

[0072] Exemplarily, after the focusing device 240 is started, the host computer continuously obtains the ranging distance collected by the focusing device 240, and determines whether the ranging distance is less than a preset distance threshold. Exemplarily, the distance threshold can be the distance from the focusing device 240 to the surface of the air sliding device 210. If the ranging distance is less than the preset distance threshold, it is determined that the end P of the material 200 to be inspected is transported by the air sliding device 210 to directly below the focusing device 240, and the host computer obtains the focusing data of each focusing point collected by the focusing device 240 from this moment on. Since the moving speed of the material 200 to be inspected on the air sliding device 210 can be considered to be constant, the distance corresponding to the moving end area A1 (i.e. Figure 2 The first preset time length required for the inspection (the distance between point P and point Q in the center) is determined. After the first preset time length, it is determined that the end area A1 of the material to be inspected 200 has left the area directly below the focusing device 240, and the focusing data obtained within the first preset time length is used as the first focusing data of each focusing point in the end area A1.

[0073] S103, obtaining second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves the bottom of the focusing device to when the central area leaves the bottom of the focusing device.

[0074] refer to Figure 2 , the material to be inspected 200 continues to move along the positive direction of X, starting from the end area A1 of the material to be inspected 200 leaving the focusing device 240 (i.e. Figure 2 The position Q is the end point of the end area A1 and the starting point of the central area A2), and the central area A2 leaves the focusing device 240 directly below (i.e. Figure 2 During this period, the host computer continuously obtains the second focusing data of each focusing point in the central area A2 of the material to be inspected 200 collected by the focusing device 240. Exemplarily, a plurality of focusing points are arranged along the X direction in the central area A2, and as the material to be inspected 200 moves, the second focusing data of each focusing point in the central area A2 is obtained in sequence.

[0075] Exemplarily, since the moving speed of the material to be inspected 200 on the air sliding device 210 can be considered to be constant, the second preset time required to move the distance corresponding to the central area A2 can be determined in advance. When the end area A1 leaves the focusing device 240 directly below the second preset time, it is determined that the central area A2 of the material to be inspected 200 leaves the focusing device 240 directly below, and the focusing data acquired within the second preset time is used as the second focusing data of each focusing point in the central area A2.

[0076] S104, starting from when the end of the material to be inspected is transported by the air sliding device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the first focusing data so that the focus point in the end area is on the focal plane of the camera.

[0077] refer to Figure 2 , the material 200 to be inspected continues to move in the positive direction of X, starting from when the end P of the material 200 to be inspected is transported by the air sliding device 210 to the position directly below the camera 220 of the inspection machine, until the end area A1 of the material 200 to be inspected leaves the position directly below the camera 220. During this period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the first focusing data of each focusing point, so that the focusing point in the end area A1 is located at the focal plane of the camera 220. Exemplarily, as the material 200 to be inspected moves, each focusing point is focused in turn, so that the focusing point in the end area A1 is located at the focal plane of the camera 220.

[0078] Exemplarily, since the moving speed of the material 200 to be inspected on the air slide device 210 can be considered constant, the third preset time required to move from directly below the focusing device 240 to directly below the camera 220 can be predetermined, and when the end P of the material 200 to be inspected passes directly below the focusing device 240, after the third preset time, it is determined that the end P of the material 200 to be inspected is transported by the air slide device 210 to directly below the camera 220 of the inspection machine. Based on the first focusing data of each focusing point, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction so that the focusing point in the end area A1 is at the focal plane of the camera 220.

[0079] S105, starting from the end area leaving the area directly below the camera, adjust the position of the camera in a direction perpendicular to the air sliding device based on the second focusing data, so that the focus point in the central area is on the focal plane of the camera.

[0080] refer to Figure 2 , the material to be inspected 200 continues to move along the positive direction of X, starting from the end area A1 of the material to be inspected 200 leaving the camera 220 (i.e. Figure 2The position Q is the end point of the end area A1 and the starting point of the central area A2), and the central area A2 leaves the camera 220 directly below (i.e. Figure 2 During this period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the second focusing data of each focusing point, so that the focusing point in the central area A2 is located at the focal plane of the camera 220. Exemplarily, as the material 200 to be inspected moves, each focusing point is focused in turn, so that the focusing point in the central area A2 is located at the focal plane of the camera 220.

[0081] Exemplarily, starting from the time when the end P of the material 200 to be inspected passes directly under the camera 220, after a second preset time period, it is determined that the central area A2 of the material 200 to be inspected has left the area directly under the camera 220. During the second preset time period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the second focusing data of each focusing point, so that the focusing point in the central area A2 is on the focal plane of the camera 220.

[0082] S106, rotating the material to be inspected, and placing the material to be inspected on the air sliding device.

[0083] refer to Figure 2 , the robot can be controlled to remove the material to be inspected 200 from the air sliding device 210, horizontally rotate the material to be inspected 200, and place the material to be inspected 200 back to the feed port of the air sliding device 210 ( Figure 2 on the left side of the air slide device 210).

[0084] S107, obtaining third focusing data of each focusing point in the other end area of ​​the material to be inspected collected by the focusing device during the period from when the other end of the material to be inspected is transported by the air sliding device to directly below the focusing device to when the other end area of ​​the material to be inspected leaves directly below the focusing device.

[0085] The material 200 to be inspected moves along the positive direction of X, starting from when the end M of the material 200 to be inspected is transported by the air sliding device 210 to the bottom of the focusing device 240, until the end area A2 of the material 200 to be inspected leaves the bottom of the focusing device 240. During this period, the host computer continuously obtains the third focusing data of each focusing point in the end area A3 of the material 200 to be inspected collected by the focusing device 240. Among them, the end P and the end M are two opposite ends, and the central area A2 is located between the two opposite end areas (A1 and A3). Exemplarily, a plurality of focusing points are arranged in the end area A3 along the extension direction X of the air sliding device 210. As the material 200 to be inspected moves, the third focusing data of each focusing point in the end area A3 is obtained in sequence.

[0086] Exemplarily, the host computer continuously obtains the distance measured by the focusing device 240, and determines whether the distance measured is less than a preset distance threshold. Exemplarily, the distance threshold may be the distance from the focusing device 240 to the surface of the air sliding device 210. If the distance measured is less than the preset distance threshold, it is determined that the end M of the material 200 to be inspected is transported by the air sliding device 210 to the bottom of the focusing device 240, and the host computer obtains the focus data of each focus point collected by the focusing device 240 from this moment on. Since the moving speed of the material 200 to be inspected on the air sliding device 210 can be considered constant, the fourth preset time required to move the distance corresponding to the end area A3 can be predetermined. When the fourth preset time has passed, it is determined that the end area A3 of the material 200 to be inspected leaves the bottom of the focusing device 240, and the focus data obtained within the fourth preset time is used as the third focus data of each focus point in the end area A3.

[0087] S108, starting from when the other end of the material to be inspected is transported by the air sliding device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the third focus data so that the focus point in the other end area is on the focal plane of the camera.

[0088] refer to Figure 2 , the material 200 to be inspected continues to move in the positive direction of X, starting from when the end M of the material 200 to be inspected is transported by the air sliding device 210 to the position directly below the camera 220 of the inspection machine, until the end area A3 of the material 200 to be inspected leaves the position directly below the camera 220. During this period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the third focusing data of each focus point, so that the focus point in the end area A3 is in the focal plane of the camera 220. Exemplarily, as the material 200 to be inspected moves, each focus point is focused in turn, so that the focus point in the end area A3 is in the focal plane of the camera 220.

[0089] Exemplarily, since the moving speed of the material 200 to be inspected on the air slide device 210 can be considered constant, the third preset time required to move from directly below the focusing device 240 to directly below the camera 220 can be predetermined, and when the end M of the material 200 to be inspected passes directly below the focusing device 240, after the third preset time, it is determined that the end M of the material 200 to be inspected is transported by the air slide device 210 to directly below the camera 220 of the inspection machine. Based on the third focusing data of each focusing point, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction, so that the focusing point in the end area A3 is at the focal plane of the camera 220.

[0090] Figure 4A schematic diagram of another focusing system for an inspection machine provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the inspection machine focusing system includes:

[0091] The air sliding device 210, the material to be inspected 200 is suspended on the air sliding device 210, and moves along the air sliding device 210. For example, a plurality of air holes 211 are provided on the surface of the air sliding device 210, and the air holes 211 are connected to the air source through the air channel 212. During the operation of the air sliding device 210, the air source blows air into the air sliding device 210 through the air channel 212. The gas is ejected from the air holes 211, so that the material to be inspected 200 on the air sliding device 210 is suspended. When the material to be inspected 200 enters the air sliding device 210, an initial velocity is given, so that the material to be inspected 200 can be moved along the extension direction X of the air sliding device 210.

[0092] The camera 220 is disposed directly above the air sliding device 210 and is used to collect images of the surface of the material 200 to be inspected.

[0093] The mobile focusing device 230 , on which the camera 220 is fixed, can move in a direction Y perpendicular to the air sliding device 210 to achieve focusing of the camera 220 .

[0094] The first focusing device 241 and the second focusing device 242 are both arranged directly above the air sliding device 210 and on both sides of the camera 220. The first focusing device 241 and the second focusing device 242 are both spaced apart from the camera 220 by a preset distance. Exemplarily, the first focusing device 241 and the second focusing device 242 may be laser focusing devices. It should be noted that, in this embodiment, the first focusing device 241 and the second focusing device 242 are both spaced apart from the camera 220 by a preset distance for the convenience of taking values. In other embodiments of the present invention, the distances between the first focusing device 241 and the second focusing device 242 and the camera 220 may be different.

[0095] The host computer (not shown in the figure), the camera 220, the mobile focusing device 230, the first focusing device 241 and the second focusing device 242 are all connected to the host computer. Exemplarily, the camera 220 uploads the collected image to the host computer. The first focusing device 241 and the second focusing device 242 upload the collected focus data to the host computer, and the host computer controls the mobile focusing device 230 to move in the Y direction based on the focus data, so that the focus point on the surface of the material 200 to be inspected is at the focal plane of the camera 220.

[0096] Figure 5 A flowchart of another inspection machine focusing method provided by an embodiment of the present invention, such as Figure 5 As shown, the inspection machine focusing method specifically includes the following steps:

[0097] S201, controlling the first focusing device and the second focusing device to start.

[0098] refer to Figure 4 , the host computer controls the first focusing device 241 and the second focusing device 242 to start and continuously collect focus data.

[0099] S202, obtaining first focusing data of each focusing point in the first end region of the material to be inspected collected by the first focusing device during the period from when the first end of the material to be inspected is transported by the air sliding device to directly below the first focusing device to when the first end region of the material to be inspected leaves directly below the first focusing device.

[0100] refer to Figure 4 , the material to be inspected 200 moves along the positive direction of X, starting from when the first end P of the material to be inspected 200 is transported by the air sliding device 210 to the bottom of the first focusing device 241, until the first end region A1 of the material to be inspected 200 leaves the bottom of the first focusing device 241. During this period, the host computer continuously obtains the first focusing data of each focusing point in the first end region A1 of the material to be inspected 200 collected by the first focusing device 241. Exemplarily, a plurality of focusing points are arranged in the first end region A1 along the extension direction X of the air sliding device 210. As the material to be inspected 200 moves, the first focusing data of each focusing point in the first end region A1 are obtained in sequence.

[0101] Exemplarily, the host computer continuously obtains the distance measured by the first focusing device 241, and determines whether the distance measured is less than a preset distance threshold. Exemplarily, the distance threshold may be the distance from the first focusing device 241 to the surface of the air sliding device 210. If the distance measured is less than the preset distance threshold, it is determined that the first end P of the material to be inspected 200 is transported by the air sliding device 210 to the bottom of the first focusing device 241, and the host computer obtains the focus data of each focus point collected by the first focusing device 241 from this moment on. Since the moving speed of the material to be inspected 200 on the air sliding device 210 can be considered constant, the first preset time required to move the distance corresponding to the first end area A1 can be predetermined. When the first preset time has passed, it is determined that the first end area A1 of the material to be inspected 200 leaves the bottom of the first focusing device 241, and the focus data obtained within the first preset time is used as the first focus data of each focus point in the first end area A1.

[0102] S203, obtaining second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the first focusing device during the period from when the first end area leaves directly below the first focusing device to when the central area leaves directly below the first focusing device.

[0103] refer to Figure 4 , the material to be inspected 200 continues to move along the positive direction of X, starting from the point where the first end region A1 of the material to be inspected 200 leaves the first focusing device 241 (i.e. Figure 4 The first end region A1 is located at the middle position Q, and the position Q is the end point of the first end region A1 and the starting point of the central region A2), and the central region A2 is located directly below the first focusing device 241 (i.e. Figure 4 During this period, the host computer continuously obtains the second focusing data of each focusing point in the central area A2 of the material to be inspected 200 collected by the first focusing device 241. Exemplarily, a plurality of focusing points are arranged along the X direction in the central area A2, and as the material to be inspected 200 moves, the second focusing data of each focusing point in the central area A2 is obtained in sequence.

[0104] Exemplarily, since the moving speed of the material to be inspected 200 on the air sliding device 210 can be considered to be constant, the second preset time required for moving the distance corresponding to the central area A2 can be determined in advance. When the first end area A1 leaves the area directly below the first focusing device 241 for the second preset time, it is determined that the central area A2 of the material to be inspected 200 leaves the area directly below the first focusing device 241, and the focus data acquired within the second preset time is used as the second focus data of each focus point in the central area A2.

[0105] S204, starting from when the first end of the material to be inspected is transported by the air sliding device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the first focusing data so that the focusing point in the first end area is on the focal plane of the camera.

[0106] refer to Figure 4 , the material 200 to be inspected continues to move along the positive direction of X, starting from when the first end P of the material 200 to be inspected is transported by the air sliding device 210 to the position directly below the camera 220 of the inspection machine, until the first end area A1 of the material 200 to be inspected leaves the position directly below the camera 220. During this period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the first focusing data of each focusing point, so that the focusing point in the first end area A1 is located at the focal plane of the camera 220. Exemplarily, as the material 200 to be inspected moves, each focusing point is focused in turn, so that the focusing point in the first end area A1 is located at the focal plane of the camera 220.

[0107] Exemplarily, since the moving speed of the material 200 to be inspected on the air slide device 210 can be considered constant, the third preset time required to move from directly below the first focusing device 241 to directly below the camera 220 can be predetermined. When the first end P of the material 200 to be inspected passes directly below the first focusing device 241, after the third preset time, it is determined that the first end P of the material 200 to be inspected is transported by the air slide device 210 to directly below the camera 220 of the inspection machine. Based on the first focusing data of each focusing point, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction so that the focusing point in the first end area A1 is located at the focal plane of the camera 220.

[0108] S205, starting from the first end area leaving the area directly below the camera, adjust the position of the camera in a direction perpendicular to the air sliding device based on the second focusing data so that the focus point in the central area is on the focal plane of the camera.

[0109] refer to Figure 4 , the material to be inspected 200 continues to move along the positive direction of X, starting from the point where the first end area A1 of the material to be inspected 200 leaves the area directly below the camera 220 (i.e. Figure 4 The position Q is the end point of the first end area A1 and the starting point of the central area A2), and the central area A2 leaves the camera 220 directly below (i.e. Figure 4 During this period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the second focusing data of each focusing point, so that the focusing point in the central area A2 is located at the focal plane of the camera 220. Exemplarily, as the material 200 to be inspected moves, each focusing point is focused in turn, so that the focusing point in the central area A2 is located at the focal plane of the camera 220.

[0110] Exemplarily, starting from the time when the first end P of the material 200 to be inspected passes directly under the camera 220, after a second preset time period, it is determined that the central area A2 of the material 200 to be inspected has left the area directly under the camera 220. During the second preset time period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the second focusing data of each focusing point, so that the focusing point in the central area A2 is on the focal plane of the camera 220.

[0111] S206, after the second end of the material to be inspected leaves the area directly below the second focusing device, control the air sliding device to drive in the reverse direction.

[0112] refer to Figure 4, the material to be inspected 200 continues to move in the positive direction of X. After the second end M of the material to be inspected 200 leaves the bottom of the second focusing device 242, the air sliding device 210 is controlled to drive in the reverse direction, and the material to be inspected 200 moves in the negative direction of X. Compared with the previous embodiment, this embodiment does not need to rotate the material to be inspected 200 and re-place it on the air sliding device 210, but only needs to control the air sliding device 210 to drive in the reverse direction, thereby improving the focusing efficiency.

[0113] S207, obtaining third focusing data of each focusing point in the second end area of ​​the material to be inspected collected by the second focusing device during the period from the second end of the material to be inspected being transported by the air sliding device to the position directly below the second focusing device to the time when the second end area of ​​the material to be inspected leaves the position directly below the second focusing device.

[0114] refer to Figure 4 , the material to be inspected 200 moves along the negative direction of X, starting from the second end M of the material to be inspected 200 being transported by the air sliding device 210 to the bottom of the second focusing device 242, until the second end region A3 of the material to be inspected 200 leaves the bottom of the second focusing device 242. During this period, the host computer continuously obtains the third focusing data of each focusing point in the second end region A3 of the material to be inspected 200 collected by the second focusing device 242. Exemplarily, a plurality of focusing points are arranged in the second end region A3 along the extension direction X of the air sliding device 210. As the material to be inspected 200 moves, the third focusing data of each focusing point in the second end region A3 is sequentially obtained.

[0115] Exemplarily, the host computer continuously obtains the distance measured by the second focusing device 242, and determines whether the distance measured is less than a preset distance threshold. Exemplarily, the distance threshold may be the distance from the second focusing device 242 to the surface of the air sliding device 210. If the distance measured is less than the preset distance threshold, it is determined that the second end M of the material to be inspected 200 is transported by the air sliding device 210 to the bottom of the second focusing device 242, and the host computer obtains the focus data of each focus point collected by the second focusing device 242 from this moment on. Since the moving speed of the material to be inspected 200 on the air sliding device 210 can be considered constant, the fifth preset time required to move the distance corresponding to the second end area A3 can be predetermined. When the fifth preset time has passed, it is determined that the second end area A3 of the material to be inspected 200 leaves the bottom of the second focusing device 242, and the focus data obtained within the fifth preset time is used as the third focus data of each focus point in the second end area A3.

[0116] S208, starting from when the second end of the material to be inspected is transported by the air sliding device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the third focus data so that the focus point in the second end area is in the focal plane of the camera.

[0117] refer to Figure 4 , the material 200 to be inspected continues to move in the negative direction of X, starting from when the second end M of the material 200 to be inspected is transported by the air sliding device 210 to the position directly below the camera 220 of the inspection machine, until the second end area A3 of the material 200 to be inspected leaves the position directly below the camera 220. During this period, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction based on the third focusing data of each focus point, so that the focus point in the second end area A3 is in the focal plane of the camera 220. Exemplarily, as the material 200 to be inspected moves, each focus point is focused in turn, so that the focus point in the second end area A3 is in the focal plane of the camera 220.

[0118] Exemplarily, since the moving speed of the material 200 to be inspected on the air sliding device 210 can be considered constant, the sixth preset time required to move from directly below the second focusing device 242 to directly below the camera 220 can be predetermined. When the second end M of the material 200 to be inspected passes directly below the second focusing device 242, after the sixth preset time, it is determined that the second end M of the material 200 to be inspected is transported by the air sliding device 210 to directly below the camera 220 of the inspection machine. Based on the third focus data of each focus point, the upper computer controls the mobile focusing device 230 to adjust the position of the camera 220 in the Y direction so that the focus point in the second end area A3 is at the focal plane of the camera 220. Since the first focusing device 241 and the second focusing device 242 are both spaced from the camera 220 by a preset distance, the third preset time and the sixth preset time are equal.

[0119] The inspection machine focusing method provided by the embodiment of the present invention obtains first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to the bottom of the focusing device to when the end area of ​​the material to be inspected leaves the bottom of the focusing device, and obtains second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves the bottom of the focusing device to when the central area leaves the bottom of the focusing device, and starts when the end of the material to be inspected is transported by the air sliding device to the bottom of the camera of the inspection machine, adjusts the position of the camera in a direction perpendicular to the air sliding device based on the first focusing data, so that the focusing point in the end area is on the focal plane of the camera, and starts when the end area leaves the bottom of the camera, adjusts the position of the camera in a direction perpendicular to the air sliding device based on the second focusing data, so that the focusing point in the central area is on the focal plane of the camera, and obtains the focusing data of the end area in advance by the focusing device, and when the end area arrives at the bottom of the camera, controls the movement of the camera based on the focusing data, so that the focusing point in the end area is on the focal plane of the camera, so that a clear image of the end area can be captured, thereby improving the accuracy of the image inspection.

[0120] Figure 6 A schematic diagram of the structure of a focusing device for an inspection machine provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the inspection machine focusing device includes:

[0121] A focus start module 301, used to control the start of the focus device;

[0122] A first focusing data acquisition module 302 is used to acquire first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to the position directly below the focusing device to when the end area of ​​the material to be inspected leaves the position directly below the focusing device;

[0123] The second focusing data acquisition module 303 is used to acquire the second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves directly below the focusing device to when the central area leaves directly below the focusing device;

[0124] A first focusing module 304 is used to adjust the position of the camera in a direction perpendicular to the air sliding device based on the first focusing data, starting from when the end of the material to be inspected is transported by the air sliding device to just below the camera of the inspection machine, so that the focus point in the end area is on the focal plane of the camera;

[0125] The second focusing module 305 is used for adjusting the position of the camera in a direction perpendicular to the air sliding device based on the second focusing data, starting from the end area leaving the area directly below the camera, so that the focus point in the central area is on the focal plane of the camera.

[0126] In some embodiments of the present invention, the first focus data acquisition module 302 includes:

[0127] A distance acquisition submodule, used to acquire the ranging distance collected by the focusing device;

[0128] A judging submodule, used to judge whether the ranging distance is less than a preset distance threshold;

[0129] A first determination submodule is used to determine that the end of the material to be inspected is transported by the air sliding device to the position directly below the focusing device when the ranging distance is less than a preset distance threshold, and to obtain the focusing data of each focusing point collected by the focusing device;

[0130] The second determination submodule is used to determine that the end area of ​​the material to be inspected leaves the bottom of the focusing device after a first preset time has passed, and use the focusing data acquired within the first preset time as the first focusing data of each focusing point in the end area.

[0131] In some embodiments of the present invention, the second focus data acquisition module 303 includes:

[0132] A data acquisition submodule, used for acquiring the focusing data of each focusing point collected by the focusing device when the end area leaves the bottom of the focusing device;

[0133] The third determination submodule is used to determine that the central area of ​​the material to be inspected leaves the area directly below the focusing device after a second preset time has passed, and use the focusing data acquired within the second preset time as the second focusing data of each focusing point in the central area.

[0134] In some embodiments of the present invention, the first focusing module 304 includes:

[0135] A fourth determination submodule is used to determine that the end of the material to be inspected is transported by the air sliding device to the position directly below the camera of the inspection machine after a third preset time period has passed since the end of the material to be inspected passes directly below the focusing device;

[0136] The first focusing submodule is used to adjust the position of the camera in a direction perpendicular to the air sliding device based on the first focusing data of the focusing point in the end area, so that the focusing point in the end area is located in the focal plane of the camera.

[0137] In some embodiments of the present invention, the inspection machine focusing device further comprises:

[0138] a rotation module, configured to start from the end area leaving directly below the camera, adjust the position of the camera in a direction perpendicular to the air slide device based on the second focus data, so that the focus point in the central area is behind the focal plane of the camera, rotate the material to be inspected, and place the material to be inspected on the air slide device;

[0139] A third focusing data acquisition module is used to acquire third focusing data of each focusing point in the other end region of the material to be inspected collected by the focusing device during the period from when the other end of the material to be inspected is transported by the air sliding device to directly below the focusing device to when the other end region of the material to be inspected leaves directly below the focusing device;

[0140] The third focusing module is used for adjusting the position of the camera in a direction perpendicular to the air sliding device based on the third focusing data, starting from the other end of the material to be inspected being transported by the air sliding device to just below the camera of the inspection machine, so that the focusing point in the other end area is in the focal plane of the camera.

[0141] In some embodiments of the present invention, the focusing device includes a first focusing device and a second focusing device, and the inspection machine focusing device includes:

[0142] A focus start module, used for controlling the start of the first focus device and the second focus device;

[0143] A first focusing data acquisition module, used for acquiring first focusing data of each focusing point in the first end region of the material to be inspected collected by the first focusing device during the period from when the first end of the material to be inspected is transported by the air sliding device to directly below the first focusing device to when the first end region of the material to be inspected leaves directly below the first focusing device;

[0144] A second focusing data acquisition module, used for acquiring second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the first focusing device during the period from when the first end area leaves directly below the first focusing device to when the central area leaves directly below the first focusing device;

[0145] A first focusing module, configured to adjust the position of the camera in a direction perpendicular to the air sliding device based on the first focusing data, starting from the first end of the material to be inspected being transported by the air sliding device to just below the camera of the inspection machine, so that the focus point in the first end region is on the focal plane of the camera;

[0146] A second focusing module, configured to adjust the position of the camera in a direction perpendicular to the air slide device based on the second focusing data, starting from the first end region leaving directly below the camera, so that the focus point in the central region is on the focal plane of the camera;

[0147] A reverse transmission module, used for controlling the air sliding device to reversely transmit after the second end of the material to be inspected leaves directly below the second focusing device;

[0148] A third focusing data acquisition module is used to acquire third focusing data of each focusing point in the second end region of the material to be inspected collected by the second focusing device during the period from when the second end of the material to be inspected is transported by the air sliding device to directly below the second focusing device to when the second end region of the material to be inspected leaves directly below the second focusing device;

[0149] The third focusing module is used for adjusting the position of the camera in a direction perpendicular to the air sliding device based on the third focusing data, starting from the second end of the material to be inspected being transported by the air sliding device to just below the camera of the inspection machine, so that the focusing point in the second end area is in the focal plane of the camera.

[0150] The above-mentioned inspection machine focusing device can execute the inspection machine focusing method provided by the embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the inspection machine focusing method.

[0151] Figure 7 A schematic diagram of the structure of an electronic device provided for an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0152] like Figure 7As shown, the electronic device includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0153] A number of components in the electronic device are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0154] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the inspection machine focusing method.

[0155] In some embodiments, the inspection machine focusing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the inspection machine focusing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the inspection machine focusing method in any other appropriate manner (e.g., by means of firmware).

[0156] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0157] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0158] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0159] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0160] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0161] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0162] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the inspection machine focusing method provided in any embodiment of the present application.

[0163] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0164] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0165] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A focusing method for an inspection machine, characterized in that: include: Control the focus device to start; Acquire first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to the position directly below the focusing device to when the end area of ​​the material to be inspected leaves the position directly below the focusing device; Acquire second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves directly below the focusing device to when the central area leaves directly below the focusing device; Starting from the end of the material to be inspected being transported by the air slide device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air slide device is adjusted based on the first focus data so that the focus point in the end area is on the focal plane of the camera; Starting from when the end area leaves the area directly below the camera, the position of the camera in a direction perpendicular to the air slide is adjusted based on the second focus data so that the focus point in the central area is on the focal plane of the camera.

2. The inspection machine focusing method according to claim 1, characterized in that: Acquiring first focusing data of each focusing point in the end area of ​​the material to be inspected collected by the focusing device during the period from when the end of the material to be inspected is transported by the air sliding device to the position directly below the focusing device to when the end area of ​​the material to be inspected leaves the position directly below the focusing device, including: Acquiring the ranging distance collected by the focusing device; Determining whether the ranging distance is less than a preset distance threshold; If so, it is determined that the end of the material to be inspected is transported by the air sliding device to directly below the focusing device, and the focusing data of each focusing point collected by the focusing device is obtained; After a first preset time has passed, it is determined that the end region of the material to be inspected leaves the area directly below the focusing device, and the focusing data acquired within the first preset time is used as the first focusing data of each focusing point in the end region.

3. The inspection machine focusing method according to claim 1, characterized in that: Acquiring second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the focusing device during the period from when the end area leaves directly below the focusing device to when the central area leaves directly below the focusing device, including: When the end area leaves the area directly below the focusing device, acquiring focusing data of each focusing point collected by the focusing device; After a second preset time has passed, it is determined that the central area of ​​the material to be inspected leaves the area directly below the focusing device, and the focusing data acquired within the second preset time is used as the second focusing data of each focusing point in the central area.

4. The inspection machine focusing method according to claim 1, characterized in that: Starting from the end of the material to be inspected being transported by the air slide device to the position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air slide device is adjusted based on the first focus data so that the focus point in the end area is in the focal plane of the camera, including: Starting from the end of the material to be inspected passing directly below the focusing device, after a third preset time has passed, it is determined that the end of the material to be inspected is transported by the air sliding device to directly below the camera of the inspection machine; The position of the camera in a direction perpendicular to the air slide device is adjusted based on the first focus data of the focus point in the end region, so that the focus point in the end region is located in the focal plane of the camera.

5. The inspection machine focusing method according to any one of claims 1 to 4, characterized in that: Starting from when the end area leaves the area directly below the camera, adjusting the position of the camera in a direction perpendicular to the air slide device based on the second focus data so that the focus point in the central area is behind the focal plane of the camera, further comprising: Rotating the material to be inspected and placing the material to be inspected on the air slide device; Acquire third focusing data of each focusing point in the other end region of the material to be inspected collected by the focusing device during the period from when the other end of the material to be inspected is transported by the air sliding device to directly below the focusing device to when the other end region of the material to be inspected leaves directly below the focusing device; Starting from the time when the other end of the material to be inspected is transported by the air sliding device to a position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the third focus data so that the focus point in the other end area is in the focal plane of the camera.

6. The inspection machine focusing method according to any one of claims 1 to 4, characterized in that: The focusing device comprises a first focusing device and a second focusing device, and the method comprises: Controlling the first focusing device and the second focusing device to start; Acquire first focusing data of each focusing point in the first end region of the material to be inspected collected by the first focusing device during the period from when the first end of the material to be inspected is transported by the air sliding device to directly below the first focusing device to when the first end region of the material to be inspected leaves directly below the first focusing device; Acquire second focusing data of each focusing point in the central area of ​​the material to be inspected collected by the first focusing device during the period from when the first end area leaves directly below the first focusing device to when the central area leaves directly below the first focusing device; Starting from the first end of the material to be inspected being transported by the air slide device to directly below the camera of the inspection machine, adjusting the position of the camera in a direction perpendicular to the air slide device based on the first focus data so that the focus point in the first end region is on the focal plane of the camera; Starting from the first end area leaving the area directly below the camera, adjusting the position of the camera in a direction perpendicular to the air slide device based on the second focus data so that the focus point in the central area is on the focal plane of the camera; After the second end of the material to be inspected leaves the area directly below the second focusing device, controlling the air sliding device to drive in the reverse direction; Acquire third focusing data of each focusing point in the second end region of the material to be inspected collected by the second focusing device during the period from when the second end of the material to be inspected is transported by the air sliding device to directly below the second focusing device to when the second end region of the material to be inspected leaves directly below the second focusing device; Starting from the time when the second end of the material to be inspected is transported by the air sliding device to a position directly below the camera of the inspection machine, the position of the camera in a direction perpendicular to the air sliding device is adjusted based on the third focus data so that the focus point in the second end area is in the focal plane of the camera.

7. A focusing system for an inspection machine, characterized in that: include: an air slide device, on which the material to be inspected is suspended and moves along the air slide device; A camera, arranged just above the air slide device, for collecting images of the surface of the material to be inspected; A mobile focusing device, the camera is fixed on the mobile focusing device, and the mobile focusing device can move in a direction perpendicular to the air sliding device; A focusing device, disposed directly above the air sliding device and spaced apart from the camera by a preset distance; A host computer, wherein the camera, the mobile focusing device and the focusing device are all connected to the host computer, and the host computer is used to execute the inspection machine focusing method as described in any one of claims 1-6.

8. The inspection machine focusing system according to claim 7, characterized in that: The focusing device includes a first focusing device and a second focusing device. The first focusing device and the second focusing device are both arranged directly above the air sliding device and on both sides of the camera. The first focusing device and the second focusing device are both spaced a preset distance from the camera.

9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the inspection machine focusing method as described in any one of claims 1-6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the inspection machine focusing method as described in any one of claims 1-6 is implemented.