Gluing error detection method, electronic equipment and storage medium
By obtaining and processing the dot matrix diagram after the target dot matrix light passes through the glue prism, the existing glue error detection methods are solved, and the effect of simplifying the detection process and reducing costs is achieved.
Patent Information
- Application Number
- CN202510112478.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-23
AI Technical Summary
The existing glue error detection methods are costly and difficult, requiring complex optical devices and environmental control.
By obtaining the target dot matrix map formed after the target dot matrix light passes through the glued prism to be detected, image processing is performed to obtain geometric information of each point, and gluing error detection is performed based on this.
The gluing error detection process and setting requirements are simplified, and the initial investment cost, preparation time before inspection and operation complexity are reduced.
Smart Images

Figure CN120028019A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical detection technology, and in particular to a gluing error detection method, an electronic device and a storage medium. Background Art
[0002] As an important component of the optical system, the bonded prism is usually made of two or more prisms bonded by optical adhesives to change the light path or achieve specific optical functions. However, in the actual production process, bonding errors may occur due to uneven bonding surfaces, uneven thickness of the glue layer, residual bubbles, etc. This error not only affects the imaging quality of the optical system, but may also cause the function of the entire optical component to fail.
[0003] At present, gluing error detection is mainly achieved through interferometry and laser speckle. Among them, interferometry uses the interference phenomenon of light waves to measure the surface shape and flatness, while laser speckle is based on the change of the scattered spot pattern on the surface of the object to perform deformation analysis. Although these two methods have the advantage of high precision in gluing error detection, they both require more complex settings and longer preparation time, which increases the cost and difficulty of gluing error detection. Summary of the invention
[0004] The main purpose of the present application is to provide a gluing error detection method, electronic device and storage medium, aiming to solve the technical problems of high cost and high difficulty of gluing error detection in related technologies.
[0005] To achieve the above object, the present application provides a gluing error detection method, the gluing error detection method comprising:
[0006] Acquire a target dot matrix image formed after the target dot matrix light passes through the glued prism to be detected;
[0007] Performing image processing on the target dot matrix to obtain geometric information of each point in the target dot matrix;
[0008] Based on the geometric information of each point in the target dot pattern, the gluing error detection is performed on the glued prism to be detected.
[0009] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the gluing error detection method as described above are implemented.
[0010] In one embodiment, the cemented prism to be inspected includes a first prism surface, and the first prism surface is configured to allow light of a first wavelength to pass through;
[0011] The step of obtaining a target dot pattern formed after the target dot light passes through the glued prism to be detected includes:
[0012] Determine the first dot matrix light as the target dot matrix light, obtain a first dot matrix pattern formed after the first dot matrix light passes through the first prism surface, and use the first dot matrix pattern as the target dot matrix pattern;
[0013] The wavelength of the first dot matrix light is the first wavelength.
[0014] In one embodiment, the glued prism to be inspected further includes a second prism surface, wherein the second prism surface is configured to allow light of a second wavelength to pass therethrough, and the second wavelength is different from the first wavelength;
[0015] The method further comprises:
[0016] Determine the second dot matrix light as the target dot matrix light, and obtain a second dot matrix pattern formed after the second dot matrix light passes through the second prism surface;
[0017] Taking the second dot matrix as the target dot matrix, and executing the step of performing image processing on the target dot matrix to obtain geometric information of each point in the target dot matrix;
[0018] Wherein, the wavelength of the second dot matrix light is the second wavelength.
[0019] In one embodiment, the characteristic information includes geometric information, and the geometric information includes at least one of shape information, size information, and distance information. The step of performing gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot map includes:
[0020] In the case where the geometric information of each point in the target dot matrix corresponding to the target dot matrix light is the same, detecting whether the geometric information of each point in the target dot matrix is the same;
[0021] If the geometric information of each point in the target dot map is different, it is determined that the glued prism to be detected has a glue error.
[0022] In one embodiment, after the step of detecting whether the geometric information of each point in the target dot matrix is the same, the method further includes:
[0023] In the case where the geometric information of each point in the target dot matrix is the same, detecting whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix;
[0024] If the geometric information of each point in the target dot matrix is different from the geometric information of each point in the target dot matrix, it is determined that the glued prism to be detected has a glued error.
[0025] In one embodiment, the characteristic information includes brightness information, and the step of performing gluing error detection on the to-be-detected glued prism based on the characteristic information of each point in the target dot matrix includes:
[0026] Detect whether the brightness information of each point in the target dot matrix is the same as the brightness information of each point in the target dot matrix;
[0027] If the brightness information of each point in the target dot matrix is different from the brightness information of each point in the target dot matrix, it is determined that the glued prism to be detected has a glued error.
[0028] In one embodiment, the characteristic information includes position information, and the step of performing gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot map includes:
[0029] Detect whether the position information of each point in the target dot matrix matches the position information of each point in the target dot matrix;
[0030] If the position information of each point in the target dot matrix does not match the position information of each point in the target dot matrix, it is determined that the glued prism to be detected has a glue error.
[0031] In one embodiment, the target dot matrix light is generated by a surface light source and a light shielding plate of the target dot matrix, or by point light sources arranged into a target dot matrix.
[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned gluing error detection method are implemented.
[0033] The present application provides a method for detecting a gluing error, an electronic device and a storage medium, and relates to the field of optical detection technology. The method for detecting a gluing error first obtains a target dot matrix image formed after a target dot matrix light passes through a glued prism to be detected, then performs image processing on the target dot matrix image to obtain geometric information of each point in the target dot matrix image, and finally performs gluing error detection on the glued prism to be detected based on the geometric information of each point in the target dot matrix image, so that the present application can utilize the characteristic that the gluing error has a more obvious effect on the dot matrix light imaging, and detect whether the glued prism has a gluing error by detecting the change of the dot matrix after the target dot matrix light passes through the glued prism, thereby simplifying the detection process and setting requirements of the gluing error, avoiding the complex optical devices and environmental control required by the traditional interferometry method and the laser speckle technology, greatly reducing the initial investment cost, the preparation time before the detection, and the complexity of the operation during the detection process, and finally solving the technical problems of high cost and high difficulty of gluing error detection in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0036] Figure 1 A schematic diagram of a flow chart of a first embodiment of a method for detecting gluing errors in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of a flow chart of a second embodiment of a method for detecting gluing errors in an embodiment of the present application;
[0038] Figure 3 This is a schematic diagram of a bonding fault detection scenario in a specific embodiment of the present application;
[0039] Figure 4 This is a flow chart of a method for gluing discontinuity detection in a specific embodiment of the present application;
[0040] Figure 5 This is a dot diagram when the color-combining prism to be tested has no glued discontinuity in a specific embodiment of the present application;
[0041] Figure 6 This is a dot diagram when the color-combining prism to be tested has a glued break in a specific embodiment of the present application;
[0042] Figure 7 This is a schematic diagram of marking when performing mis-bonding detection based on a dot matrix in a specific embodiment of the present application;
[0043] Figure 8 This is a schematic diagram of the module structure of the gluing error detection device according to an embodiment of the present application;
[0044] Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the gluing error detection method in the embodiment of the present application.
[0045] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0048] At present, gluing error detection is mainly achieved through interferometry and laser speckle. Among them, interferometry uses the interference phenomenon of light waves to measure the shape and flatness of the surface. On the one hand, interferometry requires professional technicians to precisely calibrate the interferometer. On the other hand, interferometry needs to ensure that the surface of the glued prism is smooth and flat enough to ensure the production of clear interference fringes. On the other hand, interferometry is very sensitive to environmental conditions. Any slight vibration, temperature change or air flow may cause changes in the interference fringes, thereby affecting the measurement accuracy. Therefore, it is also necessary to arrange a highly controlled environment through an anti-vibration table, temperature and humidity control system, etc. Laser speckle is based on the change of the scattered light spot pattern on the surface of the object to perform deformation analysis. It is necessary to take multiple shots of the calibration plate in advance to establish a reference speckle pattern library. It is not only time-consuming, but also requires consistency in the shooting conditions each time to avoid introducing additional errors.
[0049] Therefore, although these two methods have the advantage of high precision in gluing error detection, they both require relatively complex settings and long preparation time, which increases the cost and difficulty of gluing error detection.
[0050] In this regard, the main solution of the present application is a gluing error detection method, which includes: obtaining a target dot matrix pattern formed after the target dot matrix light passes through the glued prism to be detected; performing image processing on the target dot matrix pattern to obtain feature information of each point in the target dot matrix pattern; and performing gluing error detection on the glued prism to be detected based on the feature information of each point in the target dot matrix pattern.
[0051] The present application utilizes the characteristic that gluing error has a more obvious effect on dot matrix light imaging. By detecting the changes in the dot matrix after the target dot matrix light passes through the glued prism, it is detected whether there is a gluing error in the glued prism, thereby simplifying the detection process and setting requirements of the gluing error, avoiding the complex optical devices and environmental control required by traditional interferometry and laser speckle technology, greatly reducing the initial investment cost, preparation time before detection, and operational complexity during the detection process, and ultimately solving the technical problems of high cost and difficulty in gluing error detection in related technologies.
[0052] The execution subject of this application is an electronic device, which may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (Televisions), desktop computers, etc., or any electronic device that can achieve the above functions. This application does not make specific restrictions on this. The following uses the terminal device as an example of the execution subject to illustrate the following embodiments of this application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The present application proposes a gluing error detection method according to a first embodiment.
[0055] Please refer to Figure 1 , Figure 1 Schematic diagram of the process of the gluing error detection method in the embodiment of the present application.
[0056] In this embodiment, the gluing error detection method includes steps S100 to S300:
[0057] Step S100, obtaining a target dot pattern formed after the target dot light passes through the glued prism to be detected;
[0058] It should be noted that, in this embodiment, the glued prism refers to an optical component obtained by gluing two or more individual prisms together by optical gluing. Common glued prisms include color-combined prisms, roof prisms, right-angle prisms, darago prisms, trapezoidal prisms, etc. The gluing error refers to the deviation between the actual result and the ideal design caused by various factors in the process of gluing two or more prisms together to form a composite optical element by optical gluing. Common gluing errors include gluing break, uneven gluing thickness, gluing bubble gap, gluing angle deviation, etc. The gluing error detection refers to detecting whether the glued prism has a gluing error. The glued prism to be detected refers to the glued prism that needs to be tested for gluing error.
[0059] It is not difficult to understand that in order to improve the reliability and accuracy of the gluing error detection results, other types of quality inspections can be performed on the glued prism to be inspected in advance to ensure that the gluing error detection results are not affected by other variables.
[0060] It should also be noted that, in this embodiment, the dot matrix refers to an array of light point arrangements, and the dot matrix light refers to an array of light points arranged in a certain dot matrix. The target dot matrix is a specific array of light point arrangements, and the target dot matrix light refers to the dot matrix light arranged in accordance with the target dot matrix. The target dot matrix image refers to the image formed after the target dot matrix light passes through the glued prism to be detected.
[0061] Through experiments, this embodiment has learned that when light passes through the area affected by the bonding error in the bonded prism, optical phenomena such as refraction, reflection, and scattering will occur, causing the characteristics of the light beam to change, thereby affecting the brightness and position of the image, and different bonding errors correspond to different optical images, thereby affecting different aspects of the image. However, when light is emitted through the bonded prism by a surface light source, since the surface light source provides a relatively uniform illumination distribution and has low spatial coherence, various optical effects will be "averaged" when the light passes through different parts of the bonded prism, resulting in even slight bonding errors in the bonded prism, and the impact on the final image will become negligible.
[0062] Based on this, the present embodiment uses dot matrix light to detect the gluing error of the glued prism, and utilizes the fact that the gluing error has a more obvious effect on the dot matrix light imaging, uses the target dot matrix light to illuminate the glued prism to be detected, and obtains the target dot matrix image formed after the target dot matrix light passes through the glued prism to be detected. Through the changes of each point in the target dot matrix image relative to the target dot matrix, it is determined whether there is a gluing error in the glued prism to be detected, and according to the specific changes of the dot matrix, it is determined what kind of gluing error exists in the glued error to be detected.
[0063] Compared with the traditional interferometry method and laser speckle technology, this embodiment detects gluing errors through dot-matrix light, which does not require complicated settings and excessive preparation time, greatly reduces the cost and difficulty of gluing error detection, and improves the convenience of gluing error detection.
[0064] It is worth mentioning that, in the present embodiment, the target dot matrix light can be generated by a surface light source and a shading plate of the target dot matrix, or by point light sources arranged into a target dot matrix.
[0065] The target dot matrix shading plate refers to a shading plate whose openings or transparent areas are arranged according to the target dot matrix. The shading plate overlaps with the light-emitting surface of the surface light source and can change the propagation path of the light emitted by the surface light source, thereby forming target dot matrix light.
[0066] In this embodiment, when the target dot matrix light is generated by the surface light source and the shading plate of the target dot matrix, only the surface light source and the shading plate are needed to realize the gluing error detection, which greatly simplifies the required instruments and equipment, reduces the workload of aligning and adjusting various precision instruments before detection, lowers the technical threshold, and the cost of the surface light source and the shading plate is relatively low, which is suitable for large-scale production and routine detection tasks.
[0067] When generating target dot matrix light through point light sources arranged into a target dot matrix, each point light source can be controlled independently, allowing the intensity, position and shape of the light point to be flexibly adjusted to meet complex and changing detection needs. The directional emission characteristics of the point light source also help reduce unnecessary stray light and provide more accurate light point positions, thereby improving the signal-to-noise ratio and image clarity. In addition, compared to generating target dot matrix light through a surface light source and a shading plate of a target dot matrix, although the cost is higher, it is still lower than the traditional method, and it also avoids the problems caused by aging or damage of the shading plate material.
[0068] Step S200, performing image processing on the target dot map to obtain feature information of each point in the target dot map;
[0069] It should be noted that feature information refers to a set of parameters extracted from a target dot map through image processing to describe the characteristics of a light spot, which may include but is not limited to the location coordinates, intensity, size, shape and other attributes of the light spot.
[0070] This embodiment uses a computer vision algorithm to identify and locate each point in the target dot pattern through image processing, and extracts feature information of each point, thereby providing accurate light point data for subsequent gluing error detection.
[0071] Step S300 performs gluing error detection on the glued prism to be detected based on the feature information of each point in the target dot matrix.
[0072] In this embodiment, a glued prism with the same specifications as the glued prism to be detected but without glueing error can be prepared in advance as a reference glued prism, and a reference dot matrix image formed after the target dot matrix light passes through the reference glued prism is obtained, and the characteristic information of each point in the reference dot matrix image is extracted through image processing, and then the characteristic information of each point in the reference dot matrix image is used to compare and analyze the characteristic information of each point in the target dot matrix image. Alternatively, based on the characteristic information of each point in the reference dot matrix image, the conditions that need to be satisfied by the characteristic information of each point in the target dot matrix image are set to judge whether the glued prism to be detected has a glueing error, whether there is a glueing discontinuity, whether there is uneven glueing thickness and other different glueing error situations, so as to determine whether the glued prism to be detected has a glueing error, or even determine which specific glueing error or types of glueing errors exist in the glued prism to be detected.
[0073] In addition, the characteristic information of each point in the target dot matrix corresponding to the target dot matrix light can be directly compared with the characteristic information of each point in the target dot matrix image, or judgment conditions corresponding to various gluing error situations can be set based on the characteristic information of each point in the target dot matrix.
[0074] For example, in a feasible implementation manner, the characteristic information includes brightness information, and step S300 performs gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot map, which may include steps S310 to S320:
[0075] Step S310, detecting whether the brightness information of each point in the target dot matrix is the same as the brightness information of each point in the target dot matrix;
[0076] Step S320: If the brightness information of each point in the target dot matrix is different from the brightness information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0077] In this embodiment, the characteristic information includes brightness information, so that by detecting whether the brightness information of each point in the target dot matrix is the same as the brightness information of each point in the target dot matrix, it can be determined whether there is a gluing error in the glued prism to be detected, especially whether there is gluing surface contamination, uneven gluing thickness, etc. in the glued prism to be detected, which will cause the brightness of each point in the dot matrix to change. Further, when it is found that some light spots in the target dot matrix are too bright or too dark compared to the brightness of the corresponding light spots in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected, and it is determined that the quality of the glued prism to be detected is unqualified.
[0078] Further, in a second feasible implementation manner, the characteristic information includes position information, and step S300 performs gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot map, which may include steps S330 to S340:
[0079] Step S330, detecting whether the position information of each point in the target dot matrix matches the position information of each point in the target dot matrix;
[0080] Step S340: If the position information of each point in the target dot matrix does not match the position information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0081] In this embodiment, the characteristic information includes position information, so that by detecting whether the position information of each point in the target dot matrix matches the position information of each point in the target dot matrix, it can be determined whether there is a gluing error in the glued prism to be detected, especially whether there is a gluing error such as gluing discontinuity and gluing angle deviation that will cause the position of each point in the dot matrix to change. Further, when it is found that some light spots in the target dot matrix are offset in position compared to the positions of the corresponding light spots in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected, and it is determined that the quality of the glued prism to be detected is unqualified.
[0082] Through the above steps, the present embodiment can utilize the characteristic that the gluing error has a more obvious effect on the imaging of the dot matrix light, and detect whether the glued prism has a gluing error by detecting the change of the dot matrix after the target dot matrix light passes through the glued prism, thereby simplifying the detection process and setting requirements of the gluing error, avoiding the complex optical devices and environmental control required by the traditional interferometry method and laser speckle technology, greatly reducing the initial investment cost, the preparation time before the detection, and the complexity of the operation during the detection process, and finally solving the technical problems of high cost and high difficulty of gluing error detection in the related technology.
[0083] Based on the above first embodiment, a gluing error detection method according to a second embodiment of the present application is proposed.
[0084] In this embodiment, for the contents that are the same or similar to those in the above embodiments, reference can be made to the above introduction and will not be repeated hereafter.
[0085] Please refer to Figure 2 , Figure 2 A schematic diagram of a flow chart of a second embodiment of a gluing error detection method of the present application.
[0086] In this embodiment, the characteristic information includes geometric information, and the geometric information includes at least one of shape information, size information, and distance information. Step S300 performs gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot matrix, and may include steps S350 to S360:
[0087] Step S350, when the geometric information of each point in the target dot matrix corresponding to the target dot matrix light is the same, detecting whether the geometric information of each point in the target dot matrix is the same;
[0088] Step S360: If the geometric information of each point in the target dot map is different, it is determined that there is a gluing error in the glued prism to be detected.
[0089] It should be noted that, in this embodiment, the distance information refers to the distance between other points, specifically the distance to the nearest point, the distance to the second nearest point, and the distance to the Nth nearest point, where N is a positive integer and N is less than the number of light spots in the target dot matrix.
[0090] In this embodiment, the geometric information may include at least one of shape information, size information and distance information. Therefore, when the geometric information of each point in the target dot matrix is the same, it is determined whether there is a gluing error in the glued prism to be detected by detecting whether the geometric information of each point in the target dot matrix is the same. When it is detected that there are light spots with different geometric information (for example, light spots of different shapes, light spots of different sizes, etc.) in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0091] Furthermore, in a feasible implementation manner, after the step of detecting whether the geometric information of each point in the target dot map is the same in step S350, the gluing error detection method may further include steps S370 to S380:
[0092] Step S370, when the geometric information of each point in the target dot map is the same, detecting whether the geometric information of each point in the target dot map is the same as the geometric information of each point in the target dot matrix;
[0093] Step S380: If the geometric information of each point in the target dot matrix is different from the geometric information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0094] In this embodiment, when it is detected that the geometric information of each point in the target dot matrix is the same, it is also possible to determine whether there is a gluing error in the glued prism to be detected by detecting whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix. Thus, when it is detected that the geometric information of each point in the target dot matrix is different from the geometric information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0095] It is worth mentioning that in the present embodiment, since the geometric information of each point in the target dot matrix corresponding to the target dot matrix light is the same, and the geometric information of each point in the target dot matrix is the same, when detecting whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix, it is only necessary to detect whether the geometric information of any point in the target dot matrix is the same as the geometric information of any point in the target dot matrix, so as to determine whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix, without having to detect whether the geometric information of each point in the target dot matrix is the same as the corresponding point in the target dot matrix.
[0096] It is not difficult to understand that this embodiment is applicable to the case where the light spots in the target dot matrix have the same shape, size, and spacing. When the shape, size, or spacing of the light spots in the target dot matrix are different, it is possible to determine whether the glued prism to be tested has a glued error by directly detecting whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix.
[0097] Based on the above first embodiment, a gluing error detection method according to a third embodiment of the present application is proposed.
[0098] In this embodiment, for the contents that are the same or similar to those in the above embodiments, reference can be made to the above introduction and will not be repeated hereafter.
[0099] In this embodiment, the glued prism to be inspected includes a first prism surface, and the first prism surface is configured to allow light of a first wavelength to pass through;
[0100] Step S100 acquires a target dot pattern formed after the target dot light passes through the glued prism to be detected, which may include step S110:
[0101] Step S110, determining the first dot matrix light as the target dot matrix light, acquiring a first dot matrix pattern formed after the first dot matrix light passes through the first prism surface, and using the first dot matrix pattern as the target dot matrix pattern;
[0102] The wavelength of the first dot matrix light is the first wavelength.
[0103] It should be noted that the glued prism to be detected generally has multiple prism surfaces, and performing glue error detection on the glued prism to be detected actually refers to performing glue error detection on the prism surfaces of the glued prism to be detected.
[0104] In this embodiment, the first prism face refers to a prism face among multiple prism faces of the glued prism to be detected, which only allows light of the first wavelength to pass through. Therefore, when performing gluing error detection on the first prism face, it is necessary to use a dot matrix light with a wavelength of the first wavelength, that is, the first dot matrix light.
[0105] In this embodiment, for the first prism surface that only allows light of the first wavelength to pass through, the first dot matrix light with the first wavelength is determined as the target dot matrix light, and a first dot matrix pattern formed after the first dot matrix light passes through the first prism surface is collected, and the first dot matrix pattern is used as the target dot matrix pattern, so as to perform a gluing error detection on the first prism surface through steps S200 and S300 to determine whether the first prism surface has a gluing error. When the first prism surface has a gluing error, it is determined that the glued prism to be detected has a gluing error and the quality is unqualified.
[0106] Further, in a feasible implementation manner, the glued prism to be detected further includes a second prism surface, and the second prism surface is configured to allow light of a second wavelength to pass therethrough, and the second wavelength is different from the first wavelength;
[0107] The gluing error detection method may further include steps S400 to S500:
[0108] Step S400, determining the second dot matrix light as the target dot matrix light, and acquiring a second dot matrix pattern formed after the second dot matrix light passes through the second prism surface;
[0109] Step S500, taking the second dot matrix as the target dot matrix, and performing image processing on the target dot matrix to obtain geometric information of each point in the target dot matrix;
[0110] The wavelength of the second dot matrix light is the second wavelength.
[0111] In this embodiment, each prism surface of the glued prism to be inspected allows light of different wavelengths to pass through, so it is necessary to use dot matrix lights of different wavelengths to perform glue error inspection on each prism surface.
[0112] In this embodiment, for the second prism surface that only allows light of the second wavelength to pass through, second dot matrix light with the second wavelength is determined as the target dot matrix light, a second dot matrix pattern formed after the second dot matrix light passes through the second prism surface is collected, and the second dot matrix pattern is used as the target dot matrix pattern, so that the second prism surface is subjected to gluing error detection through steps S200 and S300 to determine whether the second prism surface has a gluing error. Furthermore, when the second prism surface has a gluing error, it is determined that the glued prism to be detected has a gluing error and is of unqualified quality.
[0113] In this embodiment, for the situation where each prism surface of the glued prism to be tested allows light of different wavelengths to pass through, dot matrix light of different wavelengths is used as the target dot matrix light to perform gluing error detection on each prism surface one by one, thereby comprehensively evaluating the quality of the entire glued prism, avoiding missing any potential problems, and ensuring the accuracy and reliability of the final gluing error detection result.
[0114] In order to facilitate understanding of the technical concept or technical principle of the above-mentioned embodiment of the switching method of the present application, a specific embodiment is listed:
[0115] like Figure 3 As shown, in this specific embodiment, taking a color-combining prism (i.e., a glued prism) that can synthesize white light from three monochromatic lights, red light, green light, and blue light, as an example, when detecting the gluing discontinuity in the gluing error of the color-combining prism, a dot chart (i.e., a light shielding plate of a target pattern) with appropriate intervals can be selected and combined with a red light source, a green light source, and a blue light source to form chart light sources of different colors, and the chart light sources of different colors are used in turn to generate dot light of different wavelengths to be injected into different prism surfaces of the color-combining prism to be tested (i.e., the glued prism to be tested), and an imaging device (e.g., a camera) is used to collect a dot chart formed after the dot light is emitted, and then the dot chart is analyzed by a computer, and the contour and centroid of each dot in the dot chart are extracted from it by image processing, thereby obtaining the shape information, size information, and distance information of each dot, and then the appropriate specifications (i.e., the judgment conditions that the shape, size, and distance of each dot should meet) are selected to judge whether the color-combining prism to be tested is qualified, that is, whether there is a gluing discontinuity.
[0116] like Figure 4 As shown, the specific process steps of this specific embodiment are as follows:
[0117] Step S10, placing a chart light source of different colors in a suitable area of the color-combining prism to be tested;
[0118] Step S20, lighting up the red chart light source, and the camera captures the image of the red dot matrix light after passing through the color-combining prism to be tested;
[0119] Step S30, after acquiring the image, the computer determines whether there is any gluing fault;
[0120] Step S40, lighting up the green chart light source, and the camera captures the image of the green dot matrix light after passing through the color combining prism to be tested;
[0121] Step S50, after acquiring the image, the computer determines whether there is any gluing fault;
[0122] Step S60, lighting up the blue chart light source, and the camera captures the image of the blue dot matrix light after passing through the color combining prism to be tested;
[0123] Step S70, after acquiring the image, the computer determines whether there is any gluing fault;
[0124] Step S80, determining that the color combining prism to be tested is unqualified.
[0125] In this specific embodiment, the color-combining prism to be tested can be placed on a designated workbench and fixed, and then the combined color chart light sources can be placed in appropriate areas of the color-combining prism to be tested. For example, the red chart light source method allows only red light to pass through the area corresponding to the prism surface in the color-combining prism to be tested, so that the red dot matrix light emitted by the red chart light source can pass through the prism without entering or passing through the color-combining prism.
[0126] After placing the various color chart light sources, light up the various color chart light sources in turn, and analyze the images captured by the camera to determine whether the corresponding prism surface has a gluing break. If it is determined that the corresponding prism surface has a gluing break, it is determined that the color-combined prism to be tested is unqualified and the process ends. Otherwise, light up the next chart light source to check the other prism surface of the color-combined prism to be tested.
[0127] In this specific embodiment, when the color-combining prism to be tested has no glued break, Figure 5 As shown in the figure, the dots in the dot pattern after the dot light emitted by the imaging device are clearly visible, and the brightness, shape and distance are consistent. Figure 6 As shown, the dots in the dot matrix image collected by the imaging device after the dot matrix light is emitted are of different brightness, the shapes and sizes of some origins change, there are ghost images, the distance between the dots changes, and the arrangement spacing is different.
[0128] against Figure 6 The dot plot shown, such as Figure 7As shown, the computer identifies the size, shape and distance of the dots through an algorithm, marks the origins whose shapes, sizes and distances meet the set specifications with green lines, and marks the origins that do not meet the set specifications with red lines, thereby determining whether there is a gluing error in the color-combined prism to be tested and whether the quality is qualified by whether there is an origin marked with a red line in the dot matrix.
[0129] It should be noted that the above examples are only used to assist in understanding the present application and do not constitute a limitation on the switching method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0130] In addition, please refer to Figure 8 , Figure 8 This is a schematic diagram of the module structure of the gluing error detection device according to an embodiment of the present application.
[0131] The present application also provides a gluing error detection device, the gluing error detection device comprising:
[0132] An image acquisition module 10 is used to acquire a target dot matrix image formed after the target dot matrix light passes through the glued prism to be detected;
[0133] An image processing module 20 is used to perform image processing on the target dot matrix to obtain feature information of each point in the target dot matrix;
[0134] The error detection module 30 is used to perform gluing error detection on the glued prism to be detected based on the feature information of each point in the target dot matrix.
[0135] In one embodiment, the cemented prism to be inspected includes a first prism surface, and the first prism surface is configured to allow light of a first wavelength to pass through;
[0136] The image acquisition module 10 is also used for:
[0137] Determine the first dot matrix light as the target dot matrix light, obtain a first dot matrix pattern formed after the first dot matrix light passes through the first prism surface, and use the first dot matrix pattern as the target dot matrix pattern;
[0138] The wavelength of the first dot matrix light is the first wavelength.
[0139] In one embodiment, the glued prism to be inspected further includes a second prism surface, the second prism surface is configured to allow light of a second wavelength to pass therethrough, the second wavelength being different from the first wavelength;
[0140] The gluing error detection device is also used for:
[0141] Determine the second dot matrix light as the target dot matrix light, and obtain a second dot matrix pattern formed after the second dot matrix light passes through the second prism surface;
[0142] The second dot matrix is used as the target dot matrix, and image processing is performed on the target dot matrix to obtain geometric information of each point in the target dot matrix;
[0143] The wavelength of the second dot matrix light is the second wavelength.
[0144] In one embodiment, the feature information includes geometric information, and the geometric information includes at least one of shape information, size information, and distance information. The error detection module 30 is further used to:
[0145] When the geometric information of each point in the target dot matrix corresponding to the target dot matrix light is the same, detecting whether the geometric information of each point in the target dot matrix is the same;
[0146] If the geometric information of each point in the target dot map is different, it is determined that there is a gluing error in the glued prism to be tested.
[0147] In one embodiment, the error detection module 30 is further configured to:
[0148] In the case where the geometric information of each point in the target dot matrix is the same, detecting whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix;
[0149] If the geometric information of each point in the target dot matrix is different from the geometric information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0150] In one embodiment, the characteristic information includes brightness information, and the error detection module 30 is further used to:
[0151] Check whether the brightness information of each point in the target dot matrix is the same as the brightness information of each point in the target dot matrix;
[0152] If the brightness information of each point in the target dot matrix is different from the brightness information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0153] In one embodiment, the characteristic information includes position information, and the error detection module 30 is further used to:
[0154] Check whether the position information of each point in the target dot matrix matches the position information of each point in the target dot matrix;
[0155] If the position information of each point in the target dot matrix does not match the position information of each point in the target dot matrix, it is determined that there is a gluing error in the glued prism to be detected.
[0156] In one embodiment, the target dot matrix light is generated by a surface light source and a light shielding plate of the target dot matrix, or by point light sources arranged into a target dot matrix.
[0157] The gluing error detection device provided by the present application adopts the gluing error detection method in the above embodiment, which can solve the technical problems of high cost and high difficulty of gluing error detection in the related art. Compared with the prior art, the beneficial effects of the gluing error detection device provided by the present application are the same as the beneficial effects of the gluing error detection method provided by the above embodiment, and other technical features in the gluing error detection device are the same as the features disclosed in the gluing error detection method in the above embodiment, which will not be described in detail here.
[0158] In addition, please refer to Fig. 9 , Fig. 9 Schematic diagram of the device structure of the hardware operating environment involved in the gluing error detection method in the embodiment of the present application.
[0159] The present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the gluing error detection method in the above-mentioned embodiment.
[0160] Reference below Fig. 9 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (Televisions), desktop computers, etc., or any electronic device capable of implementing the above functions. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0161] like Fig. 9As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0162] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0163] The electronic device provided by the present application adopts the gluing error detection method in the above embodiment, which can solve the technical problems of high cost and high difficulty of gluing error detection in the related technology. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the gluing error detection method provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be described in detail here.
[0164] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0165] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the above claims.
[0166] In addition, the present application also provides a storage medium, which is a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the steps of the gluing error detection method in the above embodiment.
[0167] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0168] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0169] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: obtains a target dot matrix image formed after the target dot matrix light passes through the glued prism to be detected; performs image processing on the target dot matrix image to obtain feature information of each point in the target dot matrix image; and performs gluing error detection on the glued prism to be detected based on the feature information of each point in the target dot matrix image.
[0170] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may 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 may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0171] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0172] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0173] The storage medium provided by the present application stores computer-readable program instructions for executing the steps of the above-mentioned gluing error detection method, which can solve the technical problems of high cost and high difficulty of gluing error detection in related technologies. Compared with the prior art, the beneficial effects of the storage medium provided by the present application are the same as the beneficial effects of the gluing error detection method provided by the above-mentioned embodiment, and will not be described in detail here.
[0174] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for detecting gluing errors, characterized in that: The gluing error detection method comprises: Acquire a target dot matrix image formed after the target dot matrix light passes through the glued prism to be detected; Performing image processing on the target dot matrix to obtain feature information of each point in the target dot matrix; Based on the characteristic information of each point in the target dot pattern, the gluing error detection is performed on the glued prism to be detected.
2. The gluing error detection method according to claim 1, characterized in that: The cemented prism to be inspected comprises a first prism surface, wherein the first prism surface is configured to allow light of a first wavelength to pass through; The step of obtaining a target dot pattern formed after the target dot light passes through the glued prism to be detected includes: Determine the first dot matrix light as the target dot matrix light, obtain a first dot matrix pattern formed after the first dot matrix light passes through the first prism surface, and use the first dot matrix pattern as the target dot matrix pattern; The wavelength of the first dot matrix light is the first wavelength.
3. The gluing error detection method according to claim 2, characterized in that: The glued prism to be inspected further includes a second prism surface, wherein the second prism surface is configured to allow light of a second wavelength to pass therethrough, the second wavelength being different from the first wavelength; The method further comprises: Determine the second dot matrix light as the target dot matrix light, and obtain a second dot matrix pattern formed after the second dot matrix light passes through the second prism surface; Taking the second dot matrix as the target dot matrix, and executing the step of performing image processing on the target dot matrix to obtain geometric information of each point in the target dot matrix; Wherein, the wavelength of the second dot matrix light is the second wavelength.
4. The gluing error detection method according to any one of claims 1 to 3, characterized in that: The characteristic information includes geometric information, and the geometric information includes at least one of shape information, size information and distance information. The step of performing gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot matrix includes: In the case where the geometric information of each point in the target dot matrix corresponding to the target dot matrix light is the same, detecting whether the geometric information of each point in the target dot matrix is the same; If the geometric information of each point in the target dot map is different, it is determined that the glued prism to be detected has a glue error.
5. The gluing error detection method according to claim 4, characterized in that: After the step of detecting whether the geometric information of each point in the target dot matrix is the same, the method further comprises: In the case where the geometric information of each point in the target dot matrix is the same, detecting whether the geometric information of each point in the target dot matrix is the same as the geometric information of each point in the target dot matrix; If the geometric information of each point in the target dot matrix is different from the geometric information of each point in the target dot matrix, it is determined that the glued prism to be detected has a glued error.
6. The gluing error detection method according to any one of claims 1 to 3, characterized in that: The characteristic information includes brightness information. The step of performing gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot matrix includes: Detect whether the brightness information of each point in the target dot matrix is the same as the brightness information of each point in the target dot matrix; If the brightness information of each point in the target dot matrix is different from the brightness information of each point in the target dot matrix, it is determined that the glued prism to be detected has a glued error.
7. The gluing error detection method according to any one of claims 1 to 3, characterized in that: The characteristic information includes position information. The step of performing gluing error detection on the glued prism to be detected based on the characteristic information of each point in the target dot matrix includes: Detect whether the position information of each point in the target dot matrix matches the position information of each point in the target dot matrix; If the position information of each point in the target dot matrix does not match the position information of each point in the target dot matrix, it is determined that the glued prism to be detected has a glue error.
8. The gluing error detection method according to claim 1, characterized in that: The target dot matrix light is generated by a surface light source and a light shielding plate of the target dot matrix, or by point light sources arranged into a target dot matrix.
9. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the gluing error detection method according to any one of claims 1 to 8 when executed by the processor.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the gluing error detection method according to any one of claims 1 to 8 are implemented.