A dispensing quality detection method, device, medium and camera focusing machine

By using identifiable glue and image processing technology in the camera module, the problem of low efficiency and accuracy in dispensing quality detection in the existing technology is solved, and efficient and accurate dispensing quality assessment is achieved.

CN113686867BActive Publication Date: 2024-10-11KUNSHAN Q TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110799147.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-15
Publication Date
2024-10-11
Estimated Expiration
2041-07-15

AI Technical Summary

Technical Problem

In the existing technology, the dispensing quality inspection of camera modules relies on manual labor, and there are problems such as untimely inspection, high probability of missed inspection and misjudgment.

Method used

Use identifiable glue to identify the dispensing area in a specific environment, extract the image of the dispensing area through camera shooting and image processing, and judge its distribution, including using fluorescent glue to display characteristic colors under ultraviolet light source, and perform binarization, expansion and contouring Processing, calculating centroid and distance ratios to determine dispense quality.

Benefits of technology

It improves the efficiency and accuracy of dispensing quality inspection, reduces manual misjudgments, and ensures accurate identification and evaluation of dispensing areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113686867B_ABST
    Figure CN113686867B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, medium and camera focusing machine for detecting glue dispensing quality, the method comprising: placing a target module in a target environment matching identifiable glue, so as to identify the glue dispensing area in the target module through the target environment; obtaining a target image, wherein the target image includes a glue dispensing area image; extracting the glue dispensing area image; and judging the distribution of the glue dispensing area to determine the glue dispensing quality. The method, device, medium and camera focusing machine disclosed in the present invention are used to solve the technical problem of low efficiency and accuracy of camera module glue dispensing quality detection in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of camera module glue dispensing, and in particular to a glue dispensing quality detection method, device, medium and camera focusing machine. Background Art

[0002] With the development of technology, more and more camera modules require gluing during the manufacturing process to increase the reliability and stability of the modules. Therefore, higher requirements are placed on the detection of gluing quality.

[0003] At present, the industry's inspection of camera module dispensing quality mainly relies on manual inspection, which has technical problems such as untimely inspection, high probability of missed inspection and misjudgment, etc. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a dispensing quality detection method, device, medium and camera focusing machine that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, a method for detecting glue dispensing quality is provided, wherein the glue used in the glue dispensing area is identifiable glue, and the method comprises:

[0006] Placing the target module in a target environment that matches the identifiable glue, so that the glue-dispensing area in the target module can be identified through the target environment;

[0007] Obtaining a target image, wherein the target image includes a dispensing area image;

[0008] Extracting the dispensing area image;

[0009] Determine the distribution of the dispensing area.

[0010] Optionally, the identifiable glue is fluorescent glue, the target environment is an ultraviolet light source environment, and the fluorescent glue displays a corresponding characteristic color in the ultraviolet light source environment to mark the glue dispensing area.

[0011] Optionally, extracting the glue spot area image includes: binarizing the target image as a first processed image; dilating and contouring the first processed image, and extracting the contour with the largest area as a second processed image; and performing a logical AND operation on the first processed image and the second processed image to extract the glue spot area image.

[0012] Optionally, determining the distribution of the glue spotting area includes: determining the size and position distribution of the glue spotting area according to the centroid of the glue spotting area image to determine the glue spotting quality.

[0013] Optionally, there are N discontinuous sub-glue area images in the glue area image, N is a natural number greater than or equal to 1, and the size and position distribution of the glue area are judged based on the center of mass of the glue area image, including: determining the center of mass of each sub-glue area image respectively, and calculating the center position of the N centers of mass; calculating the distance from the N centers of mass to the center position respectively; calculating the ratio of the area of ​​each sub-glue area image to the square of the corresponding distance in turn; and judging whether the ratio reaches a threshold value to determine whether the size of the glue area meets the standard.

[0014] Optionally, there are N discontinuous sub-glue area images in the glue area image, N is a natural number greater than or equal to 1, and the size and position distribution of the glue area are judged based on the center of mass of the glue area image, including: determining the center of mass of each sub-glue area image separately, and calculating the distance between the N centers of mass; judging whether the ratio of the standard deviation of the distance to the average value of the distance is greater than a preset value, so as to determine whether the position distribution of the glue area meets the standard.

[0015] Optionally, after judging the distribution of the glue dispensing area, it also includes: if the distribution of the glue dispensing area is determined to be unqualified for M consecutive times, stopping the glue dispensing and issuing a warning to prompt the operator to perform maintenance.

[0016] In a second aspect, a camera focusing machine is provided, comprising a dispensing quality detection module, wherein the dispensing quality detection module comprises a target environment unit, a color camera and a mechanical arm, wherein the target environment unit and the color camera are integrated on the mechanical arm;

[0017] The environment unit is used to provide a target environment to identify a glue dispensing area in the camera module, wherein the glue used in the glue dispensing area of ​​the camera module is an identifiable glue that matches the target environment;

[0018] The color camera is used to obtain a target image, wherein the target image includes a dispensing area image;

[0019] The robotic arm is used to pick up and move the camera module, and an image algorithm is integrated on the robotic arm to extract the image of the glue dispensing area and determine the distribution of the glue dispensing area.

[0020] In a third aspect, a glue dispensing quality detection device is provided, wherein the glue used in the glue dispensing area is identifiable glue, and the device comprises:

[0021] An identification module, used for placing a target module in a target environment matching the identifiable glue, so as to identify a glue dispensing area in the target module through the target environment;

[0022] A shooting module, used for obtaining a target image, wherein the target image includes a dispensing area image;

[0023] An extraction module, used for extracting the dispensing area image;

[0024] The processing module is used to determine the distribution of the dispensing area.

[0025] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0026] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0027] Since identifiable glue is used during dispensing, when inspecting the dispensing quality, the target module is placed in a target environment that matches the identifiable glue, and the dispensing area of ​​the target module has a corresponding characteristic display color, which can mark the dispensing area in the target module, thereby obtaining a target image with an image of the dispensing area; further, after processing the target image, a clear and complete image of the dispensing area can be extracted, and then the distribution of the dispensing area can be accurately judged, thereby improving the efficiency and accuracy of dispensing quality inspection. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 This is a flow chart of the dispensing quality detection method in the embodiment of the present application;

[0030] Figure 2 to Figure 7 Schematic diagram of the process of extracting and analyzing the dispensing area image in the embodiment of the present application;

[0031] Figure 8 A schematic diagram of a camera focusing machine in an embodiment of the present application;

[0032] Fig. 9 Schematic diagram of a dispensing quality detection device in an embodiment of the present application;

[0033] Fig.10 Schematic diagram of the storage medium in the embodiment of the present application. DETAILED DESCRIPTION

[0034] The embodiment of the present application solves the technical problem of low efficiency and accuracy of glue dispensing quality detection in the prior art by providing a glue dispensing quality detection method.

[0035] The technical solution of the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:

[0036] The present application is configured to use identifiable glue during glue dispensing. When detecting the glue dispensing quality, a target module is configured to be placed in a target environment that matches the identifiable glue, so as to identify the glue dispensing area in the target module through the target environment; the target module is photographed to obtain a target image, wherein the target image includes a glue dispensing area image; the glue dispensing area image is extracted; and the distribution of the glue dispensing area is judged to determine the glue dispensing quality.

[0037] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0038] In a first aspect, this embodiment provides a method for testing the resolution of a camera module, such as Figure 1 As shown, including:

[0039] Step S101, placing a target module in a target environment matching the identifiable glue, so as to identify the glue-dispensing area in the target module through the target environment;

[0040] Step S102, obtaining a target image, wherein the target image includes a dispensing area image;

[0041] Step S103, extracting the glue dispensing area image;

[0042] Step S104, judging the distribution of the glue dispensing area to determine the glue dispensing quality.

[0043] It should be noted that the dispensing quality detection method can be applied to separate computing devices such as computers and detectors, and can also be used in computing modules integrated in dispensing equipment or equipment containing dispensing modules, etc., which are not limited here and will not be listed one by one.

[0044] Combine the following Figure 1 The implementation steps of the method provided in this embodiment are described in detail:

[0045] First, step S101 is performed to place the target module in a target environment that matches the identifiable glue, so as to identify the glue-dispensing area in the target module through the target environment.

[0046] The target environment may be a target light source environment (eg, ultraviolet light, etc.), a target light transmission environment (eg, a light-transmitting sheet of a specified color, etc.), or a target brightness environment (eg, a dark environment), etc., and is not limited here.

[0047] In the specific implementation process, the target module can be various mobile phone camera modules, computer camera modules, tablet camera modules and camera lens modules, etc., which are not limited here. In order to evaluate the dispensing quality of the module more accurately and efficiently, the actual dispensing area must first be identified as accurately as possible. Therefore, the present application uses identifiable glue in the process of dispensing to accurately and conveniently identify the dispensing area in the target module. Specifically, the identifiable glue can be fluorescent glue, which is made of transparent glue doped with fluorescent agent. One of the characteristics of fluorescent glue is that it will display the corresponding characteristic color in the ultraviolet light environment. Using this, the dispensing area can be accurately identified. In the specific implementation process, the fluorescent agent can be a red fluorescent agent (model: FX1017X16FR1), which displays red under ultraviolet light, and the color remains unchanged under ordinary cold light source. In order to obtain the best display effect and ensure that the red fluorescent glue has a sufficient intensity of color rendering under long-term irradiation conditions, the target environment can select a UV light source with a band of 365nm to 375nm, and preferably, a UV light source with a wavelength of 365nm can be selected. In addition, the target environment can also be a two-in-one light source of ultraviolet light / white light. On the one hand, ultraviolet light can identify fluorescent glue, and on the other hand, white light can provide a bright field of view, which is helpful for obtaining clear images in the subsequent shooting process. In the specific implementation process, the identifiable glue can also be transparent glue doped with phosphor powder. Its working principle is similar to that of fluorescent glue, which will not be described in detail here.

[0048] In an optional embodiment, the identifiable glue can also be obtained by mixing transparent glue with color powder. In order to identify the actual glue dispensing area as accurately as possible, the color of the mixed color powder can be selected to be a color that is easily recorded by the camera, such as bright colors such as red and yellow. Under this implementation condition, the target light source can be selected from an ultraviolet light source or a cold light source, as long as it can illuminate the field of view and is conducive to being captured and recorded by the camera.

[0049] Then, step S102 is executed to obtain a target image, wherein the target image includes a dispensing area image.

[0050] In a specific implementation process, a color camera can be used to shoot the target module to obtain a target image. The target image includes a dispensing area image. In a specific embodiment, the color camera can be integrated on the dispensing equipment, such as on the robot arm of the dispensing equipment, or can be set on the production line as a separate detection device, which is not limited here.

[0051] Afterwards, step S103 is executed to extract the glue dispensing area image.

[0052] In the specific implementation process, after obtaining the target image, it is necessary to further process the target image to extract the dispensing area image. Specifically, the target image can be first subjected to threshold segmentation processing to preliminarily extract the dispensing area image and use it as the first processed image. The so-called threshold segmentation is to segment the image according to the grayscale amplitude of the image pixels. It divides the grayscale of the image into different levels, and then uses the method of setting the threshold to determine the meaningful area or the boundary of the object to be segmented. In the specific implementation process, any threshold segmentation method in the prior art such as the experimental method, the minimum mean square error method, the maximum inter-class variance method, etc. can be used to extract the dispensing area image, and this application does not limit this. The first processed image includes the dispensing area image and the interference area image. In order to more accurately judge the dispensing quality and improve the detection accuracy, it is necessary to further exclude the interference area. Specifically, the first processed image is expanded to supplement the discontinuous area therein to make the image continuous. After that, contour processing can be performed, that is, the top parent contour (i.e., the outermost contour) of the image after the expansion processing is obtained to help extract the largest interference area in the first image, and the interference area is used as the second processed image. In a specific implementation process, by performing a logical AND operation on the first processed image and the second processed image, the interference area in the target image can be eliminated to the greatest extent, and a clear dispensing area image can be extracted.

[0053] In order to make the method in this step more clearly demonstrated, the following Figure 2 to Figure 6 In this embodiment, the target module is a wide-angle camera module used in a mobile phone. The wide-angle camera module uses red fluorescent glue for glue dispensing. After taking a photo of the wide-angle camera module in an ultraviolet light environment and obtaining an image of the wide-angle camera module, a threshold segmentation process is first performed to obtain the image. Figure 2 The first processed image is shown. Figure 2 In the figure, the three white flat elliptical areas are the dispensing areas, and the rectangular white area is the interference area. In order to eliminate the interference area, Figure 2 After expansion, we get Figure 3 The image shown. Figure 3 In the figure, the originally discontinuous area in the rectangular white area has become basically continuous, so contour processing can be performed. Specifically, it is to obtain Figure 3 The top parent contour (i.e. the outermost contour) of Figure 4 The image shown, then get Figure 4 The contour with the largest area in the Figure 5The second processed image shown in FIG. 1 is the maximum interference area in this embodiment. Figure 2 and Figure 5 By performing logical AND operations, we can extract Figure 6 Image of dispensing area shown.

[0054] Finally, execute step S104 to determine the distribution of the dispensing area. Specifically, the size and position distribution of the dispensing area can be determined based on the centroid of the dispensing area image to determine the dispensing quality. In the specific implementation process, there are N discontinuous sub-dispensing area images in the dispensing area image, and N is a natural number greater than or equal to 1. In the specific implementation process, it is assumed that the thickness and density of the dispensing area are evenly distributed, so that the center of mass of the dispensing area area can be used as the centroid, which can simplify the calculation process of the centroid, improve the calculation efficiency, and thus improve the detection efficiency of the dispensing quality. In the specific implementation process, each sub-dispensing area image has a centroid. According to the centroid, the size and position distribution of the dispensing area in the target module can be determined, so as to efficiently and accurately determine the dispensing quality.

[0055] In a specific embodiment, the centroid of each sub-dispensing area image can be determined first, and the center position of N centroids can be calculated. Then, the distances from the N centroids to the center position can be calculated respectively, and the ratio of the area of ​​each sub-dispensing area image to the square of the corresponding distance can be calculated in turn to determine whether the ratio reaches the threshold value to determine whether the size of the dispensing area meets the standard. For the position distribution of the dispensing area, the distances between the N centroids can be calculated first, and then it can be determined whether the ratio of the standard deviation of each distance to the average value of each distance is greater than a preset value to determine whether the position distribution of the dispensing area meets the standard. In the specific implementation process, the size and position distribution of the dispensing area in the target module can be determined simultaneously or step by step, and the present application does not limit this. In addition, the present application is also provided that when the dispensing quality is determined to be unqualified for M consecutive times, the dispensing is stopped and a warning is issued to prompt the operator to perform maintenance, wherein M is an integer greater than or equal to 1. In the specific implementation process, M can be set to 3 times, for example. After the dispensing quality is detected to be unqualified for 3 consecutive times, the dispensing is stopped in time to avoid causing poor dispensing in batches. At the same time, the sound and light alarm lights are set to light up and / or the whistle is sounded to prompt the operator to perform maintenance.

[0056] In order to make the method in this step more clearly demonstrated, the following Figure 6-7 The specific implementation steps for determining the dispensing quality in this embodiment are explained in detail. First, obtain Figure 6 The three sub-dispensing areas are calculated and their respective centroids are recorded as P1, P2, and P3, respectively. Figure 7As shown, the distances L1, L2, and L3 between the three centroids are calculated respectively, and then the ratio of the standard deviation to the mean of L1, L2, and L3 is calculated. According to the ratio of the standard deviation to the mean of the distance, it is judged whether the position distribution of the glue dispensing area is reasonable. Specifically, if the ratio exceeds the set threshold, it indicates that the glue dispensing position is offset, and the camera module lens may be stained with glue, for example Figure 6 For the glue dispensing area of ​​the wide-angle camera module shown in the figure, it should ideally form a circle, but if the ratio of the calculated standard deviation to the mean exceeds the threshold, its distribution state may become a triangle or even a straight line distribution, and such glue dispensing quality should be judged as unqualified. For the size of the glue dispensing area, you can first determine Figure 7 The center position of each centroid is recorded as P0, and the distances R1, R2, and R3 from P1, P2, and P3 to P0 are calculated in turn. Then, the ratios Ratio1, Ratio2, and Ratio3 of the effective area area of ​​each sub-dispensing area to the square of the radius are calculated respectively, and it is determined whether these three ratios have reached the threshold, so as to determine whether the area of ​​the dispensing area meets the standard.

[0057] In a second aspect, the present application embodiment provides a camera focusing machine, such as Figure 8 As shown, it includes a dispensing quality detection module 8100, and the dispensing quality detection module 8100 includes a target environment unit 8110, a color camera 8120 and a mechanical arm 8130, wherein the target environment unit 8110 and the color camera 8120 are integrated on the mechanical arm 8130;

[0058] The target environment unit 8110 is used to provide a target environment to identify a glue dispensing area in the camera module, wherein the glue used in the glue dispensing area of ​​the camera module is an identifiable glue that matches the target light source;

[0059] The color camera 8120 is used to photograph the camera module to obtain a target image, wherein the target image includes an image of the dispensing area;

[0060] The robotic arm 8130 is used to pick up and move the camera module, and an image algorithm is integrated on the robotic arm to extract the image of the dispensing area and judge the distribution of the dispensing area to determine the dispensing quality.

[0061] In the specific implementation process, the identifiable glue can be fluorescent glue, which is made of transparent glue doped with fluorescent agent. One of the characteristics of fluorescent glue is that it will display the corresponding characteristic color in the ultraviolet light source environment. By using this, the glue dispensing area can be accurately identified. In the specific implementation process, the fluorescent agent can be a red fluorescent agent (model: FX1017X16FR1), which displays red under ultraviolet light, and the color remains unchanged under ordinary cold light source. In order to obtain the best display effect and ensure that the red fluorescent glue has a sufficient intensity of color rendering under long-term irradiation conditions, the target environment unit 8110 can select an ultraviolet light source with a wavelength of 365nm to 375nm, and preferably, an ultraviolet light source with a wavelength of 365nm can be selected. In addition, the target environment unit 8110 can also be a two-in-one ultraviolet light / white light source. On the one hand, ultraviolet light can identify fluorescent glue, and on the other hand, white light can provide a bright field of view, which helps to obtain a clear image in the subsequent shooting process. In a specific implementation process, the identifiable glue can also be transparent glue mixed with phosphor powder, and its working principle is similar to that of fluorescent glue, which will not be described in detail here. In a specific implementation process, the camera focusing machine provided in this embodiment detects the dispensing quality of the camera module according to the method provided in the first aspect above, which will not be described in detail here for the sake of brevity of the specification.

[0062] In an optional embodiment, the camera focusing machine can be a wide-angle camera focusing machine. The current market has higher and higher requirements for the photo quality of mobile phone cameras. Among them, wide-angle cameras have become an indispensable member of mobile phone cameras due to their unique photo effects. In order to ensure the photo quality of wide-angle cameras, they need to be tested for focusing. However, the current wide-angle camera focusing machine only realizes focusing, glue dispensing and UV curing, but does not have the function of glue dispensing quality detection. When poor glue dispensing occurs, it cannot be discovered in time, resulting in poor product batches. Therefore, the present application sets a glue dispensing quality detection module in the current wide-angle camera focusing machine. After focusing, glue dispensing and UV curing, the glue dispensing quality detection is automatically performed according to the method provided in the first aspect above.

[0063] In a third aspect, the present application provides a glue dispensing quality detection device, wherein the glue used in the glue dispensing area is an identifiable glue, such as Fig. 9 As shown, including:

[0064] The identification module 901 is used to place the target module in a target environment matching the identifiable glue, so as to identify the glue dispensing area in the target module through the target environment;

[0065] A shooting module 902 is used to obtain a target image, wherein the target image includes a dispensing area image;

[0066] An extraction module 903 is used to extract the dispensing area image;

[0067] The processing module 904 is used to determine the distribution of the dispensing area to determine the dispensing quality.

[0068] In the specific implementation process, the dispensing quality detection device can be a separate computing device such as a computer or a detector, or it can be a computing module integrated on the dispensing equipment, or it can be a computing module integrated on the focusing device including the dispensing module, etc., which is not limited here and will not be listed one by one.

[0069] Since the device introduced in the embodiment of the present invention is a device used to implement the method of the embodiment of the present invention, based on the method introduced in the embodiment of the present invention, the person skilled in the art can understand the specific structure and deformation of the device, so it is not repeated here. All devices used in the method of the embodiment of the present invention belong to the scope of protection of the present invention.

[0070] In a fourth aspect, the present application also provides a computer-readable storage medium 1000, such as Fig.10 As shown, a computer program 1010 is stored thereon, and when the computer program 1010 is executed by a processor, the following steps are implemented:

[0071] Placing the target module in a target environment that matches the identifiable glue, so that the glue-dispensing area in the target module can be identified through the target environment;

[0072] Obtaining a target image, wherein the target image includes a dispensing area image;

[0073] Extracting the dispensing area image;

[0074] Determine the distribution of the dispensing area.

[0075] In a specific implementation process, when the computer program 1010 is executed by a processor, any implementation method of the method of the embodiment of the present invention can be implemented.

[0076] Since the storage medium introduced in the embodiment of the present invention is the storage medium where the computer program corresponding to the method of the embodiment of the present invention is located, based on the method introduced in the embodiment of the present invention, those skilled in the art can understand the computer program stored in the storage medium, so it is not repeated here. All storage media where the computer program of the method of the embodiment of the present invention is stored belong to the scope of protection of the present invention.

[0077] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0078] Since identifiable glue is used during dispensing, when inspecting the dispensing quality, the target module is placed in a target environment that matches the identifiable glue, and the dispensing area of ​​the target module has a corresponding characteristic display color, which can mark the dispensing area in the target module, thereby obtaining a target image with an image of the dispensing area; further, after processing the target image, a clear and complete image of the dispensing area can be extracted, and then the distribution of the dispensing area can be accurately judged, thereby improving the efficiency and accuracy of dispensing quality inspection.

[0079] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0080] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for detecting dispensing quality, characterized in that: The glue used in the glue dispensing area is identifiable glue, and the method comprises: Placing the target module in a target environment that matches the identifiable glue, so that the glue-dispensing area in the target module can be identified through the target environment; Obtaining a target image, wherein the target image includes a dispensing area image; Extracting the dispensing area image; Determining the distribution of the dispensing area; The determining of the distribution of the dispensing area includes: According to the centroid of the glue dispensing area image, the size and position distribution of the glue dispensing area are judged to determine the glue dispensing quality; There are N discontinuous sub-glue spotting area images in the glue spotting area image, where N is a natural number greater than or equal to 1. The size and position distribution of the glue spotting area are determined according to the centroid of the glue spotting area image, including: Determine the centroid of each of the sub-dispensing area images respectively, and calculate the center positions of N centroids; Calculate the distances from the N centroids to the center position respectively; Calculating in sequence the ratio of the area of ​​each of the sub-dispensing region images to the square of the corresponding distance; It is determined whether the ratio reaches a threshold value to determine whether the size of the dispensing area meets the standard.

2. The method according to claim 1, characterized in that The identifiable glue is fluorescent glue, the target environment is an ultraviolet light source environment, and the fluorescent glue displays a corresponding characteristic color in the ultraviolet light source environment to mark the glue dispensing area.

3. The method according to claim 1, characterized in that The step of extracting the dispensing area image comprises: Binarization is performed on the target image to obtain a first processed image; Performing dilation processing and contour processing on the first processed image, and extracting the contour with the largest area as the second processed image; A logical AND operation is performed on the first processed image and the second processed image to extract the dispensing area image.

4. The method according to claim 1, characterized in that There are N discontinuous sub-glue spotting area images in the glue spotting area image, where N is a natural number greater than or equal to 1. The size and position distribution of the glue spotting area are determined according to the centroid of the glue spotting area image, including: Determine the centroid of each sub-dispensing area image respectively, and calculate the distances between the N centroids; It is determined whether the ratio of the standard deviation of the distance to the average value of the distance is greater than a preset value to determine whether the position distribution of the dispensing area meets the standard.

5. The method according to claim 1, characterized in that After determining the distribution of the dispensing area, the method further includes: If the distribution of the dispensing area is determined to be unqualified for M consecutive times, the dispensing is stopped and an alarm is issued to prompt the operator to perform maintenance.

6. A camera focusing machine, characterized in that: It includes a dispensing quality detection module, which includes a target environment unit, a color camera and a mechanical arm, wherein the target environment unit and the color camera are integrated on the mechanical arm; The environment unit is used to provide a target environment to identify a glue dispensing area in the camera module, wherein the glue used in the glue dispensing area of ​​the camera module is an identifiable glue that matches the target environment; The color camera is used to obtain a target image, wherein the target image includes a dispensing area image; The mechanical arm is used to take and move the camera module, and an image algorithm is integrated on the mechanical arm to extract the image of the dispensing area and determine the distribution of the dispensing area; The determining of the distribution of the dispensing area includes: According to the centroid of the glue dispensing area image, the size and position distribution of the glue dispensing area are judged to determine the glue dispensing quality; There are N discontinuous sub-glue spotting area images in the glue spotting area image, where N is a natural number greater than or equal to 1. The size and position distribution of the glue spotting area are determined according to the centroid of the glue spotting area image, including: Determine the centroid of each of the sub-dispensing area images respectively, and calculate the center positions of N centroids; Calculate the distances from the N centroids to the center position respectively; Calculating in sequence the ratio of the area of ​​each of the sub-dispensing region images to the square of the corresponding distance; It is determined whether the ratio reaches a threshold value to determine whether the size of the dispensing area meets the standard.

7. A dispensing quality detection device, characterized in that: The glue used in the glue dispensing area is identifiable glue, and the device comprises: An identification module, used for placing a target module in a target environment matching the identifiable glue, so as to identify a glue dispensing area in the target module through the target environment; A shooting module, used for obtaining a target image, wherein the target image includes a dispensing area image; An extraction module, used for extracting the dispensing area image; A processing module, used for determining the distribution of the dispensing area; The processing module is also used to determine the size and position distribution of the glue dispensing area according to the centroid of the glue dispensing area image to determine the glue dispensing quality; There are N discontinuous sub-glue spotting area images in the glue spotting area image, where N is a natural number greater than or equal to 1. The size and position distribution of the glue spotting area are determined according to the centroid of the glue spotting area image, including: Determine the centroid of each of the sub-dispensing area images respectively, and calculate the center positions of N centroids; Calculate the distances from the N centroids to the center position respectively; Calculating in sequence the ratio of the area of ​​each of the sub-dispensing region images to the square of the corresponding distance; It is determined whether the ratio reaches a threshold value to determine whether the size of the dispensing area meets the standard.

8. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.