Optical lens detection method and detection device
By acquiring the detection spot attribute information within the field of view of the optical lens and matching it with the reference information, the accuracy of optical defect detection of optical lenses is solved, and the imaging quality and product consistency are improved.
Patent Information
- Application Number
- CN202111586391.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2041-12-23
AI Technical Summary
The prior art is difficult to accurately identify optical defects in optical lenses, affecting imaging quality.
By acquiring the detection images of multiple detection light sources discretely distributed in the field of view of the shooting target in the optical lens imaging, the spot attribute information of the detection light spot is determined, and matched with the pre-configured reference attribute information, it is determined whether there is an optical defect in the optical lens.
It improves the accuracy of optical defect detection, ensures the consistency of product performance of optical lenses, and reduces the dependence on manual screening.
Smart Images

Figure CN114298993B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of defect detection, and in particular to a method for detecting an optical lens, a cable interconnection device for detecting an optical lens, an electronic device for detecting an optical lens, and an automated production line system including the electronic device. Background Art
[0002] For devices such as video cameras, cameras, and terminals with camera functions, the mirror quality of their optical lenses has a significant impact on the quality of the images produced. Therefore, to ensure the quality of the images captured by the device, optical lenses need to be inspected for defects before being assembled into the device.
[0003] However, except for surface defects visible to the naked eye such as mirror wear and mirror contamination, which can be manually identified, optical defects involving optical lenses are difficult to accurately identify through manual screening. Therefore, how to implement standardized testing of optical lenses to improve the accuracy of defect detection has become a technical problem to be solved in the existing technology. Summary of the Invention
[0004] In each embodiment, a method for detecting an optical lens, a cable interconnection device for detecting an optical lens, an electronic device for detecting an optical lens, and an automated production line system including the electronic device are provided, which can improve the accuracy of detecting optical defects.
[0005] One embodiment provides a method for detecting an optical lens, comprising:
[0006] Acquire a test image of a target imaged by the optical lens to be tested under preset imaging conditions, wherein the target imaged includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be tested;
[0007] determining light spot attribute information of a plurality of detection light spots of the plurality of detection light sources in the detection image;
[0008] Matching the light spot attribute information with pre-configured reference attribute information;
[0009] The detection result of the optical lens to be inspected is determined according to the matching result of the light spot attribute information and the reference attribute information.
[0010] Optionally, the light spot attribute information includes a detected light spot position; the reference attribute information includes a light spot calibration position; matching the light spot attribute information with the pre-configured reference attribute information includes: position matching the detected light spot position and the light spot calibration position; wherein, if the position matching result of any of the detected light spot positions indicates a matching failure, the detection result indicates the presence of a defect.
[0011] Optionally, the light spot attribute information further includes the detection spot size at each of the detection spot positions; the reference attribute information further includes the spot calibration size at each of the spot calibration positions; the matching of the light spot attribute information with the pre-configured reference attribute information further includes: in response to successful position matching of all the detection spot positions, size matching the detection spot size at each of the detection spot positions with the spot calibration size at the position-matched spot calibration position; wherein, if the size matching result at any of the detection spot positions indicates a matching failure, the detection result indicates the presence of a defect.
[0012] Optionally, the size matching of the detection spot size at each of the detection spot positions with the spot calibration size at the position-matched spot calibration position includes: determining an expanded size of a preset multiple of the spot calibration size at each of the spot calibration positions; detecting whether the detection spot size at each of the detection spot positions exceeds the expanded size at the position-matched spot calibration position; wherein, if the detection spot size at any of the detection spot positions exceeds the expanded size at the position-matched spot calibration position, it is determined that the size matching has failed; otherwise, it is determined that the size matching has succeeded.
[0013] Optionally, matching the light spot attribute information with pre-configured reference attribute information further includes: in response to the size matching being successful, performing size relationship matching between the spot size relationship between the detection spot sizes at each of the detection spot positions and the calibration size relationship between the spot calibration sizes at each of the spot calibration positions; wherein, if the size relationship matching result indicates a matching failure, then the detection result indicates the presence of a defect.
[0014] Optionally, the light spot attribute information further includes the number of detected light spots; the reference attribute information further includes the number of calibrated light spots; the matching of the light spot attribute information with the pre-configured reference attribute information further includes: before the position matching, matching the number of detected light spots with the number of calibrated light spots; wherein, if the quantity result indicates that the matching fails, the detection result indicates the presence of a defect.
[0015] Optionally, before obtaining the detection image obtained by imaging the target through the optical lens to be inspected under preset imaging conditions, the method further includes: obtaining multiple sample images obtained by imaging the target through multiple sample lenses under the preset imaging conditions; detecting sample attribute information of multiple sample light spots of the multiple detection light sources in each of the sample images; wherein the reference attribute information is determined based on the sample attribute information detected from the sample images.
[0016] Optionally, before obtaining the detection image obtained by imaging the target through the optical lens to be inspected under preset imaging conditions, the method further includes: denoising the sample attribute information; saving the sample attribute information remaining after the denoising process in a measurement file, and the measurement file is used to generate the reference attribute information.
[0017] Optionally, before acquiring a test image obtained by imaging the target through the optical lens to be inspected under preset imaging conditions, the method further includes: loading a measurement file in response to the start of the detection, wherein the measurement file stores the sample attribute information detected from the sample image; verifying the credibility of the measurement file based on the amount of information of the sample attribute information stored in the measurement file; and generating the reference attribute information using the measurement file in response to a verification result indicating that the amount of information reaches a preset credible amount.
[0018] Another embodiment provides an optical lens detection device, comprising:
[0019] An image acquisition module is configured to acquire a detection image of a target imaged by the optical lens to be inspected under preset imaging conditions, wherein the target imaged includes a plurality of detection light sources discretely distributed within the imaging field of view of the optical lens to be inspected;
[0020] An attribute determination module, configured to determine light spot attribute information of a plurality of detection light spots of the plurality of detection light sources in the detection image;
[0021] An attribute matching module, configured to match the light spot attribute information with pre-configured reference attribute information;
[0022] The result generating module is used to determine the detection result of the optical lens to be inspected according to the matching result of the light spot attribute information and the reference attribute information.
[0023] Optionally, the light spot attribute information includes a detected light spot position; the reference attribute information includes a light spot calibration position; the attribute matching module includes a position matching submodule for position matching the detected light spot position and the light spot calibration position, wherein if the position matching result of any of the detected light spot positions indicates a matching failure, the detection result indicates the presence of a defect.
[0024] Optionally, the light spot attribute information further includes the detection spot size at each of the detection spot positions; the reference attribute information further includes the spot calibration size at each of the spot calibration positions; the attribute matching module further includes a size matching submodule, which is used to size-match the detection spot size at each of the detection spot positions with the spot calibration size at the position-matched spot calibration position in response to successful position matching of all the detection spot positions; wherein, if the size matching result at any of the detection spot positions indicates a matching failure, the detection result indicates the presence of a defect.
[0025] Optionally, the size matching submodule is specifically used to: determine the expanded size of a preset multiple of the spot calibration size at each of the spot calibration positions; detect whether the detection spot size at each of the detection spot positions exceeds the expanded size at the spot calibration position of the position matching; wherein, if the detection spot size at any of the detection spot positions exceeds the expanded size at the spot calibration position of the position matching, it is determined that the size matching fails; otherwise, it is determined that the size matching is successful.
[0026] Optionally, the attribute matching module further includes a relationship matching submodule, which is used to match the spot size relationship between the detection spot sizes at each of the detection spot positions with the calibration size relationship between the spot calibration sizes at each of the spot calibration positions in response to the successful size matching; wherein, if the size relationship matching result indicates a matching failure, then the detection result indicates the presence of a defect.
[0027] Optionally, the light spot attribute information further includes the number of detected light spots; the reference attribute information further includes the number of calibrated light spots; the attribute matching module further includes a quantity matching submodule, which is used to match the number of detected light spots with the number of calibrated light spots before the position matching; wherein, if the quantity result indicates that the matching fails, the detection result indicates that there is a defect.
[0028] Optionally, it further includes: a sample acquisition module, used to obtain multiple sample images obtained by imaging the shooting target through multiple sample lenses under the preset imaging conditions; a sample detection module, used to detect sample attribute information of multiple sample light spots of the multiple detection light sources in each of the sample images; wherein, the reference attribute information is determined based on the sample attribute information detected from the sample image.
[0029] Optionally, it further includes: a sample processing module for performing denoising on the sample attribute information; a measurement configuration module for saving the sample attribute information remaining after denoising in a measurement file, and the measurement file is used to generate the reference attribute information.
[0030] Optionally, it further includes: a measurement loading module, used to load a measurement file in response to the start of detection, wherein the measurement file stores the sample attribute information detected from the sample image; a measurement verification module, used to verify the credibility of the measurement file based on the amount of information of the sample attribute information stored in the measurement file; and a reference configuration module, used to generate the reference attribute information using the measurement file in response to a verification result indicating that the amount of information reaches a preset credible amount.
[0031] Another embodiment provides an electronic device, including a processor, wherein the processor is configured to execute the detection method as described in the above embodiment.
[0032] In another embodiment, an automated production line system is provided, comprising the electronic device as described in the aforementioned embodiment, and the shooting target deployed at the inspection station of the automated production line system, wherein the optical lens to be inspected is any optical lens placed at the inspection station.
[0033] Another embodiment provides a non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, causes the processor to perform the detection method as described in the foregoing embodiment.
[0034] Based on the above embodiment, an optical lens to be inspected can be used to image a target under preset imaging conditions, wherein the target includes multiple detection light sources discretely distributed within the imaging field of view of the optical lens to be inspected. Therefore, a corresponding multiple detection light spots can be formed in the resulting test image. Furthermore, by matching the light spot attribute information of these detection light spots with pre-configured reference attribute information, it is possible to determine whether the optical lens to be inspected has an optical defect that causes abnormal imaging of the light source, thereby obtaining a corresponding test result for the optical lens to be inspected. Because the test result does not rely on manual identification but is instead obtained based on pre-configured reference attribute information, the above embodiment improves the accuracy of optical defect detection compared to manual identification and helps ensure consistent product performance across all inspected optical lenses. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The following drawings are only provided for schematic illustration and explanation of the present application and do not limit the scope of the present application:
[0036] Figure 1 Schematic diagram of the structure of an automated production line system for optical lens inspection in one embodiment;
[0037] Figure 2 1 is a schematic diagram of an exemplary flow chart of a method for detecting an optical lens in one embodiment;
[0038] Figure 3 For example Figure 2 A schematic diagram of an example of defect detection using a detection method implemented by quantity matching is shown;
[0039] Figure 4 For example Figure 2 A schematic diagram of an example of defect detection using position matching in the detection method shown;
[0040] Figure 5 For example Figure 2 A schematic diagram of an example of defect detection using a detection method implemented by size matching is shown;
[0041] Figure 6 For example Figure 2 A schematic diagram of an example of defect detection implemented by the detection method shown is performed through relation matching;
[0042] Figure 7 For example Figure 2 A first example flow chart of the detection method shown;
[0043] Figure 8 For example Figure 2 A second example flow chart of the detection method shown;
[0044] Figure 9 For example Figure 2A third example flow chart of the detection method shown;
[0045] Figure 10 For example Figure 2 A fourth example flow chart of the detection method shown;
[0046] Figure 11 For applications such as Figure 2 An exemplary flowchart of the measurement file creation process of the detection method shown;
[0047] Figure 12 For example Figure 11 The example flow diagram of the measurement file creation process shown in FIG.
[0048] Figure 13 For example Figure 2 The detection method shown is based on the extended process diagram of the measurement file startup execution;
[0049] Figure 14 is a schematic diagram of an exemplary process of an optical lens detection device in another embodiment;
[0050] Figure 15 For example Figure 14 Schematic diagram of the expanded structure of the detection device shown;
[0051] Figure 16 FIG. 4 is a schematic diagram of an exemplary structure of an electronic device in another embodiment. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of this application more clear, the application is further described in detail below with reference to the accompanying drawings and examples.
[0053] Optical defects in optical lenses can cause image artifacts and distortion. In particular, when a light source is within the lens' field of view, these artifacts and distortions can be more prominent due to the presence of optical defects. Based on this, embodiments of the present application are designed to detect optical defects that can lead to abnormal imaging of light sources by optical lenses, thereby reducing the likelihood of image artifacts and distortions caused by optical defects.
[0054] Moreover, although the embodiments of the present application focus on optical defects caused by abnormal imaging of light-emitting objects by optical lenses, it does not mean that the embodiments of the present application exclude detection schemes for surface defects, focusing defects, or other types of optical defects. That is, the defect detection implemented by the embodiments of the present application can further detect surface defects of the optical lens, and the defect detection implemented by the embodiments of the present application can coexist with detection schemes for focusing defects and / or other types of optical defects.
[0055] Figure 1This is a schematic diagram of the structure of an automated production line system for optical lens inspection in one embodiment. Figure 1 The automated production line system in this embodiment may be equipped with a photographic target 50 for use during testing. This photographic target 50 may include multiple detection light sources 510 discretely distributed within the imaging field of view of the optical lens 10 to be tested. For example, the detection light sources 510 may preferably be low-power light sources such as LEDs (Light Emitting Diodes). Consequently, the photographic target 50 can be imaged by any optical lens 10 to be tested, generating detection light spots corresponding to the multiple detection light sources 510. By examining the properties of these detection light spots, it is possible to detect whether the optical lens 10 has an optical defect that causes abnormal imaging of the luminous object.
[0056] exist Figure 1 , a preferred structure of the photographic target 50 is shown. In this preferred structure, the photographic target 50 may include a light source board 51, and a plurality of detection light sources 510 may be discretely fixedly mounted on the light source board 51, so that:
[0057] The target 50 is imaged by any optical lens 10 to be inspected to obtain the spot positions of the detection spots corresponding to the multiple detection light sources 510, which are associated with the installation positions of the multiple detection light sources 510 on the light source board 51;
[0058] The target 50 is imaged through any optical lens 10 to be inspected to obtain a spot size corresponding to the detection light spots of multiple detection light sources 510, which is associated with the luminous size of the multiple detection light sources 510 and the imaging distance between the target 50 and the optical lens 10 to be inspected.
[0059] During actual testing, optical lenses 10 to be tested of different specifications may have different requirements for at least one of the number, position, light-emitting size, and imaging distance of the testing light sources 510. Therefore:
[0060] In order to configure the number, position, and light size of the detection light sources 510 actually used for imaging during detection, the photographic target 50 in this embodiment may further include a replaceable mask 52 mounted on the light source board 51. The replaceable mask 52 defines light-transmitting holes 520 of a preset number, preset positions, and preset hollow sizes. By using different replaceable masks 52, any portion of the multiple detection light sources 510 can be selectively activated.
[0061] In order to make the imaging distance between the photographic target 50 and the optical lens 10 to be inspected configurable, the light source board 51 may be movably installed.
[0062] Still see Figure 1The above-mentioned shooting target 50 can be deployed at the inspection station of the automated production line system, and the optical lens 10 to be inspected can be any optical lens that flows to the inspection station in the automated production line system. That is, any optical lens placed at the inspection station in the automated production line system can be used as the optical lens 10 to be inspected and used to capture the inspection image of the light spot obtained by imaging multiple detection light sources 510.
[0063] For example, the automated production line system may include a conveyor mechanism 20 and a tray 30 that moves under the drive of the conveyor mechanism 20. The optical lens 10 to be inspected, which is transported to the inspection station by the movement of the tray 30, can be manually or robotically mounted on the lens mount of the imaging module 40. The imaging module 40 may include a photosensitive element such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor).
[0064] When the optical lens 10 to be inspected is mounted on the lens mount of the imaging module 40, a target 50 is imaged through the optical lens 10 under preset imaging conditions on the photosensitive element of the imaging module 40 to obtain a test image. The imaging conditions described herein may include at least the ambient brightness at the inspection station and the imaging distance between the target 50 and the optical lens 10 to be inspected. Accordingly, the preset imaging conditions refer to the ambient brightness at the inspection station reaching a preset brightness and the imaging distance between the target 50 and the optical lens 10 to be inspected being set to a specified distance value.
[0065] The detection image obtained by imaging the target 50 through the optical lens 10 to be inspected can be transmitted to the electronic device 60, which can be any device with data processing capabilities such as an industrial computer, a PC (Personal Computer), a mobile terminal, etc. In addition, the electronic device 60 can be a local device deployed in the physical environment where the automated production line system is located, or a remote device in a different physical environment from the automated production line system. In addition, as an optional solution, the imaging module 40 can be integrated into the electronic device 60, or the electronic device 50 can be connected to the imaging module 40 signal by wired or wireless means to obtain the detection image generated by the imaging module 40.
[0066] The following embodiment provides a method for detecting an optical lens, which is applicable to the electronic device 60 .
[0067] Figure 2 FIG. 1 is a schematic diagram of an exemplary process of a method for detecting an optical lens in an embodiment. Figure 2, the detection method may include:
[0068] S210: Acquire a test image obtained by imaging a target through the optical lens to be inspected under preset imaging conditions, wherein the target includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be inspected.
[0069] S230: Determine light spot attribute information of a plurality of detection light spots of a plurality of detection light sources in the detection image.
[0070] Preferably, in this step, the detection image can be binarized, for example, using a binarization algorithm such as OTSU (Otsu method or maximum inter-class variance method) or Kittle algorithm, and spot detection is performed on the binarized detection image to obtain spot attribute information of multiple detection spots of multiple detection light sources in the detection image.
[0071] S250: Match the determined light spot attribute information with pre-configured reference attribute information.
[0072] S270: Determine a test result of the optical lens to be tested based on a matching result between the light spot attribute information and the reference attribute information.
[0073] For example, the detection result determined in S270 may indicate that the detection is passed if the match is successful, and indicate that a defect exists if the match fails. If the matching result indicates that a defect exists, a first alarm signal may be further generated, and the first alarm signal may trigger the following steps: Figure 1 The automated production line system shown further includes an alarm device that generates a visual prompt (such as flashing lights of a specified color) or an audio prompt (such as a voice prompt or a buzzer).
[0074] Based on the above process, the optical lens to be inspected can be used to image a target under preset imaging conditions, wherein the target includes multiple detection light sources discretely distributed within the imaging field of view of the optical lens to be inspected. Therefore, multiple corresponding detection spots can be formed in the resulting test image. Moreover, by matching the spot attribute information of these detection spots with pre-configured reference attribute information, it can be determined whether the optical lens to be inspected has an optical defect that causes abnormal imaging of the light source, thereby obtaining a corresponding test result for the optical lens to be inspected. Because the test result does not rely on manual identification but is instead obtained based on pre-configured reference attribute information, the above embodiment improves the accuracy of optical defect detection compared to manual identification and helps ensure the consistency of product performance of all optical lenses after inspection.
[0075] Moreover, when Figure 2 The detection method shown is applied to Figure 1When the electronic device 60 is shown, the above process can be executed in a loop, and as shown in FIG. Figure 2 The cyclic execution frequency of the detection method shown can be matched with the conveying rhythm of the conveying mechanism 20 for conveying the optical lens 10 to be inspected to the detection station.
[0076] In an embodiment of the present application, the matching between the spot attribute information and the reference attribute information may include at least one of quantity matching of the number of spots, position matching of the spot positions, size matching of the spot sizes, and relationship matching of the spot size relationships.
[0077] For quantity matching, it can be determined whether the number of detection spots in the detection image is less than the number of spot calibration, which can be set as follows: Figure 1 The number of effective detection light sources 510 in the photographic target 50 that are not blocked by the configurable mask 52 is shown.
[0078] Figure 3 For example Figure 2 The detection method shown is a schematic diagram of an example of defect detection implemented by quantity matching. Figure 3 Taking the example of 12 effective detection light sources 510 in the target 50, which are not blocked by the configurable mask 52 and are distributed radially and equiangularly, if the number of detection light spots 700 in the detection image 70 is only 11 or less, then the number matching fails, and the test result obtained in S270 indicates a defect. In other words, if the optical lens 10 under inspection has mirror contamination, and this mirror contamination completely blocks the imaging of the light spots of any detection light source 510, this mirror contamination may cause the number of detection light spots to be less than the calibrated number of light spots. Therefore, matching the number of light spots helps determine whether the optical lens 10 under inspection has a surface defect caused by mirror contamination.
[0079] For position matching, it is possible to determine whether the detection spot position in the detection image deviates from the spot calibration position, which is used to characterize: Figure 1 The effective detection light source 510 in the shooting target 50 that is not blocked by the configurable mask 52 shows the expected or ideal light spot position (eg, the geometric center position of the light spot) after imaging under the preset imaging conditions during detection.
[0080] Figure 4 For example Figure 2 The detection method shown is a schematic diagram of an example of defect detection implemented by position matching. Figure 4 , still taking the case where the 12 effective detection light sources 510 in the shooting target 50 that are not blocked by the configurable mask 52 are radially and equiangularly distributed as an example:
[0081] If the optical lens 10 to be inspected has mirror contamination, and the mirror contamination partially blocks the imaging of the light spot of any detection light source 510, the detection light spot may be incomplete in shape, and the detection light spot position representing the geometric center position of the detection light spot may be offset. For example, Figure 4 The incomplete light spot in the detection light spot queue located at the upper left of the detection image 70 near the center of the image, the detection light spot position Pd1 representing its geometric center position deviates from the corresponding light spot calibration position Pref1; or,
[0082] If the optical lens 10 to be inspected has lens distortion, and the lens distortion causes the imaging deformation of the light spot of any detection light source 510, then the detection light spot may have a shape different from the shape of the light exit surface of the detection light source 510 (for example, the shape of the light transmission hole 520 of the configurable mask 52), and cause the detection light spot position representing the geometric center position of the detection light spot to shift, for example, Figure 4 The irregular light spot in the detection light spot queue located at the lower left of the detection image 70 and close to the center of the image, the detection light spot position Pd2 representing the geometric center position thereof deviates from the corresponding light spot calibration position Pref2; or,
[0083] If the optical lens 10 to be inspected has a virtual image, and the virtual image causes the light spot imaging of any detection light source 510 to undergo overall or partial expansion and deviation, then the overall or partial expansion and deviation may cause the detection light spot position representing the geometric center position of the detection light spot to shift, for example, Figure 4 The expanded light spot in the middle of the detection light spot queue located at the lower right corner of the detection image 70 has a detection light spot position Pd3 representing its geometric center position that deviates from the corresponding light spot calibration position Pref3.
[0084] No matter which of the above position shifts occurs, the position matching fails, and thus the detection result obtained in S270 indicates that a defect exists.
[0085] Therefore, the position matching of the light spot helps determine whether the optical lens 10 under inspection has surface defects such as mirror contamination, as well as optical defects such as lens distortion and image virtuality. It should be noted that the irregular shape of the light spot due to lens distortion and the local expansion and deviation of the light spot can be referred to as the light spot "tailing" phenomenon, while the overall expansion and deviation caused by the image virtuality can be referred to as the light spot "fat" phenomenon.
[0086] For size matching, it can be determined whether the detection spot size in the detection image exceeds the spot calibration size, which can be used to characterize: Figure 1The effective detection light source 510 of the target 50 shown, which is not blocked by the configurable mask 52, has a desired or ideal spot size after imaging using the preset imaging conditions during detection. Furthermore, the spot size can be specifically expressed as a one-dimensional size of the spot (e.g., the length and width of a rectangular spot or the diameter or radius of a circular spot), or as a two-dimensional size of the spot (e.g., the spot area).
[0087] Figure 5 For example Figure 2 The schematic diagram of an example of defect detection using the detection method shown in FIG. Figure 5 As shown, still taking the case where 12 effective detection light sources 510 in the shooting target 50 that are not blocked by the configurable mask 52 are radially and equiangularly distributed as an example:
[0088] If the local or overall expansion of the detection spot 700 does not cause a spot position shift, or causes a spot position shift within a tolerable error range, then as long as the detection spot size Sd of any detection spot 700 is larger than the corresponding spot calibration size Sref at the detection spot position where the detection spot 700 is located, the abnormality of the detection spot 700 can still be identified through size matching. In other words, if the optical lens 10 to be inspected has an image virtual image, and this image virtual image causes the image of the light spot of any detection light source 510 to undergo overall or local expansion without causing a spot position shift, or causing a spot position shift within a tolerable range represented by the shift threshold, then the spot size of the detection spot may be too large (still a "tailing" or "fat" phenomenon), resulting in size matching failure and the inspection result obtained in S270 indicating a defect.
[0089] Therefore, the matching of the spot size is helpful to determine whether the optical lens 10 to be inspected has surface defects such as mirror contamination, as well as optical defects such as lens distortion and image virtual image.
[0090] In this embodiment, a certain tolerance can be set for size matching. For example, the detection spot size of each detection spot 700 can be matched to a predetermined multiple (for example, this multiple can be greater than 1 and less than or equal to 1.3) of the corresponding spot calibration size at the detection spot location where the detection spot 700 is located, thereby reducing or eliminating the interference of image errors on size matching. However, the introduction of tolerance in size matching may miss optical defects. That is, if multiple detection spots 700 all expand within the tolerance, but there are abnormal differences in the degree of expansion, such differences may also be caused by optical defects in the optical lens to be inspected.
[0091] Figure 6 For example Figure 2 The detection method shown is a schematic diagram of a defect detection example implemented by relation matching. Figure 6, still taking the case where the 12 effective detection light sources 510 in the shooting target 50 that are not blocked by the configurable mask 52 are radially and equiangularly distributed as an example:
[0092] Assume that the spot calibration size relationship indicates that the spot size near the center of the image 70 is larger than the spot size near the edge of the image. Figure 6 As shown, if the spot size of the detection spot closest to the image center is larger than the spot size of the detection spot closer to the image edge, it means that the spot size relationship matching fails and the detection result obtained in S270 indicates that a defect exists.
[0093] Therefore, for the matching of the spot size relationship, it is possible to avoid missing the optical defects when a tolerance is introduced into the spot matching.
[0094] In order to better understand the matching method between the light spot attribute information and the reference attribute information, the following is a specific description with reference to an example process.
[0095] Figure 7 For example Figure 2 The first example flow chart of the detection method shown in FIG. Figure 7 The first example process shown may pre-configure reference attribute information, which may include a spot calibration position. After the configuration of the reference attribute information is completed, the first example process may perform the following steps for each optical lens to be inspected:
[0096] S710: Acquire a test image of a target imaged by the optical lens to be tested under preset imaging conditions, wherein the target imaged includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be tested.
[0097] S730: Determine light spot attribute information of a plurality of detection light spots of a plurality of detection light sources in the detection image, wherein the light spot attribute information includes detection spot positions.
[0098] S750: Position matching is performed between the detected light spot position in the light spot attribute information and the light spot calibration position in the pre-configured reference attribute information.
[0099] S771: If the position matching result of the detection spot position of any detection spot indicates a matching failure, then a detection result indicating that the optical lens to be inspected has a defect is generated.
[0100] S773: If the position matching results of the detection spot positions of all the detection spots indicate successful matching, then a detection result indicating that the optical lens to be inspected has passed the inspection is generated.
[0101] At this point, the inspection process for an optical lens to be inspected is completed.
[0102] Figure 8 For example Figure 2 The second example flow chart of the detection method shown in FIG. Figure 8 The second example process shown may pre-configure reference attribute information, which may include the calibrated light spot position and the calibrated light spot size at each calibrated light spot position. After the configuration of the reference attribute information is completed, the second example process may perform the following steps for each optical lens to be inspected:
[0103] S810: Acquire a test image of a target imaged by the optical lens to be tested under preset imaging conditions, wherein the target imaged includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be tested.
[0104] S830: Determine spot attribute information of a plurality of detection light spots of a plurality of detection light sources in the detection image, wherein the spot attribute information includes a detection spot position and a detection spot size at each detection spot position.
[0105] S851: Match the detected light spot position in the light spot attribute information with the light spot calibration position in the pre-configured reference attribute information.
[0106] S853: In response to the successful position matching of the detection spot positions of all the detection spots, the detection spot size at each detection spot position is matched with the spot calibration size at the position-matched spot calibration position.
[0107] For example, this step can determine the expanded size of a preset multiple of the spot calibration size at each spot calibration position, and detect whether the detection spot size at each detection spot position exceeds the expanded size at the position-matched spot calibration position, wherein if the detection spot size at any detection spot position exceeds the expanded size at the position-matched spot calibration position, it is determined that the size matching fails; otherwise, it is determined that the size matching succeeds.
[0108] S871: If the position matching result of the detection spot position of any detection spot indicates a matching failure, or the size matching at the detection spot position of any detection spot fails, then a detection result indicating that the optical lens to be inspected has a defect is generated.
[0109] S873: If the position matching results and the size matching results of the detection spot positions of all the detection spots indicate successful matching, then a detection result indicating that the optical lens to be inspected has passed the inspection is generated.
[0110] At this point, the inspection process for an optical lens to be inspected is completed.
[0111] Figure 9 For example Figure 2The third example flow chart of the detection method shown in FIG. Figure 9 The third example process shown can pre-configure reference attribute information, which includes the calibrated spot position, the calibrated spot size at each calibrated spot position, and the calibrated size relationship between the calibrated spot sizes at each calibrated spot position. After the configuration of the reference attribute information is completed, the third example process can perform the following steps for each optical lens to be inspected:
[0112] S910: Acquire a test image of a target imaged by the optical lens to be tested under preset imaging conditions, wherein the target imaged includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be tested.
[0113] S930: Determine spot attribute information of multiple detection spots of multiple detection light sources in the detection image, wherein the spot attribute information includes the detection spot position, the detection spot size at each detection spot position, and the spot size relationship between the detection spot sizes at each detection spot position.
[0114] S951: Match the detected light spot position in the light spot attribute information with the light spot calibration position in the pre-configured reference attribute information.
[0115] S953: In response to the successful position matching of the detection spot positions of all the detection spots, the detection spot size at each detection spot position is matched with the spot calibration size at the position-matched spot calibration position.
[0116] The processing of this step can be compared with Figure 8 The S853 in is basically the same and will not be described here.
[0117] S955: In response to the size matching being successful, size-matching is performed between the detection spot sizes at the respective detection spot positions and the calibration size relationship between the calibration spot sizes at the respective calibration spot positions.
[0118] S971: If the position matching result of the detection spot position of any detection spot indicates a matching failure, or the size matching at the detection spot position of any detection spot fails, or there is a failed size relationship matching, then a detection result indicating that the optical lens to be inspected has a defect is generated.
[0119] S973: If the position matching results, size matching results, and size relationship matching results of the detection spot positions of all the detection spots indicate successful matching, then a detection result indicating that the optical lens to be inspected has passed the inspection is generated.
[0120] At this point, the inspection process for an optical lens to be inspected is completed.
[0121] Figure 10 For example Figure 2 The fourth example flow chart of the detection method shown in FIG. Figure 10 The fourth example process shown can pre-configure reference attribute information, which includes the number of calibrated light spots, the calibrated light spot positions, the calibrated light spot size at each calibrated light spot position, and the calibrated size relationship between the calibrated light spot sizes at each calibrated light spot position. After the configuration of the reference attribute information is completed, the fourth example process can perform the following steps for each optical lens to be inspected:
[0122] S1010: Acquire a test image of a target imaged by the optical lens to be tested under preset imaging conditions, wherein the target imaged includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be tested.
[0123] S1030: Determine spot attribute information of multiple detection spots of multiple detection light sources in the detection image, wherein the spot attribute information includes the number of detection spots, the detection spot positions, the detection spot size at each detection spot position, and the spot size relationship between the detection spot sizes at each detection spot position.
[0124] S1051: Match the number of detected light spots in the light spot attribute information with the number of calibrated light spots in the pre-configured reference attribute information.
[0125] S1053: In response to a successful number match of the number of calibrated light spots, position matching is performed between the detection light spot position in the light spot attribute information and the calibrated light spot position in the pre-configured reference attribute information.
[0126] S1055: In response to successful position matching of the detection spot positions of all the detection spots, size matching is performed on the detection spot size at each detection spot position with the spot calibration size at the position-matched spot calibration position.
[0127] The processing of this step can be compared with Figure 8 The S853 in is basically the same and will not be described here.
[0128] S1057: In response to the size matching being successful, the spot size relationship between the detection spot sizes at each detection spot position is matched with the calibration size relationship between the calibration spot sizes at each spot calibration position.
[0129] S1071: If the number matching result of the number of detection spots indicates a matching failure, or the position matching result of the detection spot position of any detection spot indicates a matching failure, or the size matching at the detection spot position of any detection spot fails, or there is a failed size relationship matching, then a detection result indicating that the optical lens to be inspected has a defect is generated.
[0130] S1073: If the position matching results, size matching results, and size relationship matching results of the detection spot positions of all the detection spots indicate successful matching, then a detection result indicating that the optical lens to be inspected has passed the inspection is generated.
[0131] At this point, the inspection process for an optical lens to be inspected is completed.
[0132] It is understandable that if Figure 10 The fourth example process shown can be regarded as Figure 9 The third example process shown in the figure further adds a quantity matching step. Similarly, Figure 7 The first example process shown, and Figure 8 The second example process shown can also further add a quantity matching step before position matching.
[0133] The configuration of reference attribute information can be achieved by training a neural network model. For example, the neural network model is trained using negative sample images obtained by imaging a target with a defective optical lens, and positive sample images obtained by imaging a target with a qualified optical lens. This allows the neural network model to classify the matching results between the light spot attribute information of the detection light spot and the reference attribute information. Specifically, the neural network model is trained to classify the matching results for at least one of the following: quantitative matching of the number of light spots, positional matching of the light spot positions, size matching of the light spot sizes, and relationship matching of the light spot sizes.
[0134] When at least one of the spot calibration quantity, spot calibration position, spot calibration size, and calibration size relationship in the reference attribute information needs to be adjusted, the negative sample image and positive sample image that meet the adjustment requirements can be re-acquired and the neural network model can be retrained.
[0135] In addition to using a neural network model to achieve matching between light spot attribute information and reference attribute information, an embodiment of the present application provides a more convenient configuration method, namely, creating a measurement file and configuring reference attribute information based on the measurement file.
[0136] Figure 11 For applications such as Figure 2 An example flow chart of the measurement file creation process for the detection method shown in FIG. Figure 11 , the measurement file creation process can be done as follows Figure 1 The electronic device 60 shown is used to create the measurement file, or the measurement file may be created by another device other than the electronic device 60. The measurement file creation process may include:
[0137] S1110: Acquire a plurality of sample images obtained by imaging the target through a plurality of sample lenses under preset imaging conditions.
[0138] The preset imaging conditions described in this step are similar to those in the Figure 2 The preset imaging conditions mentioned in the shown procedures are the same.
[0139] S1130: Detecting sample attribute information of a plurality of sample light spots in each sample image from a plurality of detection light sources.
[0140] S1150: Perform denoising processing on the sample attribute information detected from each sample image.
[0141] The denoising process described in this step includes two methods: instant denoising and batch denoising.
[0142] Real-time denoising means that whenever the detection of sample attribute information in a sample image is completed, the sample attribute information from the sample image is checked to see whether it meets the preset measurement conditions. The preset measurement conditions described here involve at least one indicator among the number of light spots, the position of light spots, the size of light spots, and the relationship between the light spots. If the sample attribute information does not meet the preset measurement conditions, the sample attribute information is discarded. If it meets the preset measurement conditions, the sample attribute information is retained.
[0143] Batch denoising means that after completing the detection of sample attribute information in all sample images, for each indicator, the sample attribute information containing the peak value of the indicator (such as the peak value of the first 10% maximum value and the last 10% minimum value) is removed.
[0144] S1170: Saving the remaining sample attribute information after the denoising process in a measurement file, which is used to generate reference attribute information.
[0145] The reference attribute information is determined based on sample attribute information detected from a predetermined number of credible sample images. That is, the number of reference attribute information pieces contained in the measurement file must reach the predetermined credible number before the measurement file can be considered a credible file.
[0146] Figure 12 For example Figure 11 The example flow chart of the measurement file creation process is shown in the figure. Figure 12 The example process of the measurement file creation process in this embodiment may include:
[0147] S1211: Obtain sample images of the shooting target obtained by imaging the target through the current sample lens under preset imaging conditions.
[0148] The preset imaging conditions described in this step are similar to those in the Figure 2 The preset imaging conditions mentioned in the shown procedures are the same.
[0149] S1213: Detecting sample attribute information of multiple sample light spots of multiple detection light sources in the current sample image.
[0150] S1215: Conditionally verify the sample attribute information from the current sample image, i.e., verify whether the sample attribute information from the current sample image meets preset measurement conditions, so as to perform real-time denoising on the sample attribute information to be stored in the measurement file. The preset measurement conditions may include at least one of the following indicators: the number of light spots, the position of light spots, the size of light spots, and the relationship between the light spots. If the sample attribute information does not meet the preset measurement conditions, the sample attribute information is discarded. If the preset measurement conditions are met, the sample attribute information is retained.
[0151] S1217: In response to the verification being successful using the preset measurement conditions, the sample attribute information of the current sample image is saved in a measurement file.
[0152] S1230: Detect whether the number of sample attribute information currently included in the measurement file reaches a preset collection quantity.
[0153] In response to the failure of verification using the preset measurement conditions in S1215 (the sample attribute information that failed the verification is discarded and not saved in the measurement file), or in response to the detection result that the number of information items obtained in S1219 does not reach the preset collection quantity, replace the sample lens and return to S1211.
[0154] S1250: performing batch denoising processing on the sample attribute information of a preset number of mobile phones in the measurement file, and obtaining a credible measurement file storing the predetermined credible number of sample attribute information.
[0155] That is, for each indicator involved in the measurement condition, the sample attribute information including the peak value of the indicator (eg, the peak value of the first 10% maximum value and the last 10% minimum value) is removed.
[0156] Figure 13 For example Figure 2 The detection method shown is based on the extended process diagram of the measurement file startup execution. Figure 13 As shown, the detection method in the embodiment of the present application can be started and executed based on the measurement file. In this case, the detection method may include:
[0157] S1311: In response to the start of detection, a measurement file is loaded, wherein the measurement file stores sample attribute information detected from the sample image.
[0158] S1313: Verify the credibility of the measurement file based on the amount of sample attribute information stored in the measurement file.
[0159] S1315: In response to the verification result indicating that the amount of information reaches a preset credible amount, reference attribute information is generated using the measurement file.
[0160] If the verification result indicates that the amount of information does not reach the preset trustworthy amount, a second alarm signal indicating that the measurement file is unavailable may be further generated, and the second alarm signal may also trigger the following steps: Figure 1 The automated production line system shown further includes an alarm device that generates a visual prompt (such as flashing lights of a specified color) or an audio prompt (such as a voice prompt or a buzzer).
[0161] S1331: Acquire a test image of a target imaged by the optical lens to be tested under preset imaging conditions, wherein the target imaged includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be tested.
[0162] S1333: Determine the light spot attribute information of the multiple detection light spots of the multiple detection light sources in the detection image.
[0163] S1335: Match the determined light spot attribute information with pre-configured reference attribute information.
[0164] Among them, S1333 and S1335 can specifically include S730 and S750 in the aforementioned first instance process, or S830 and S851 to S853 in the second instance process, or S930 and S951 to S955 in the third instance process, or S1030 and S1051 to S1057 in the fourth instance process.
[0165] S1337: Determine the inspection result of the optical lens to be inspected based on the matching result between the light spot attribute information and the reference attribute information.
[0166] Then, the process may return to S1331 to continue the inspection process of the next optical lens to be inspected until the inspection is terminated.
[0167] In another embodiment of the present application, a detection device for an optical lens is also provided.
[0168] Figure 14 FIG. 1 is a schematic diagram of an exemplary process of an optical lens detection device in another embodiment. Figure 14 , the detection device may include:
[0169] An image acquisition module 1410 is configured to acquire a test image of a target imaged by the optical lens to be inspected under preset imaging conditions, wherein the target image includes a plurality of test light sources discretely distributed within the imaging field of view of the optical lens to be inspected;
[0170] The attribute determination module 1430 is configured to determine the light spot attribute information of the multiple detection light spots of the multiple detection light sources in the detection image. For example, the attribute determination module 1430 may perform binarization processing on the detection image, for example, using a binarization algorithm such as the OTSU algorithm or the Kittle algorithm, and perform light spot detection on the binarized detection image to obtain the light spot attribute information of the multiple detection light spots of the multiple detection light sources in the detection image.
[0171] The attribute matching module 1450 is used to match the light spot attribute information with pre-configured reference attribute information;
[0172] The result generating module 1470 is used to determine the test result of the optical lens to be tested based on the matching result of the light spot attribute information and the reference attribute information. For example, the test result determined by the result generating module 1460 can indicate that the test is passed if the match is successful, and indicate that there is a defect if the match fails. If the matching result indicates that there is a defect, a first alarm signal can be further generated, and the first alarm signal can trigger the following steps: Figure 1 The automated production line system shown further includes an alarm device that generates a visual prompt (such as flashing lights of a specified color) or an audio prompt (such as a voice prompt or a buzzer).
[0173] Based on the above-described detection device, an optical lens to be inspected can be used to image a target under preset imaging conditions. The target includes multiple detection light sources discretely distributed within the imaging field of view of the optical lens to be inspected. Consequently, a corresponding plurality of detection light spots can be formed in the resulting detection image. Furthermore, by matching the light spot attribute information of these detection light spots with pre-configured reference attribute information, it is possible to determine whether the optical lens to be inspected has an optical defect that causes abnormal imaging of the light source, thereby obtaining a corresponding inspection result for the optical lens to be inspected. Because the inspection result does not rely on manual identification but is instead obtained based on pre-configured reference attribute information, the above-described embodiment improves the accuracy of optical defect detection compared to manual identification and helps ensure consistent product performance across all inspected optical lenses.
[0174] Similar to the detection method in the aforementioned embodiment, the matching between the light spot attribute information and the reference attribute information may include at least one of a quantity match of the light spot number, a position match of the light spot position, a size match of the light spot size, and a relationship match of the light spot size relationship.
[0175] Accordingly, the attribute matching module 1450 may specifically include at least one of a quantity matching submodule, a position matching submodule, a size matching submodule, and a relationship matching submodule.
[0176] In the case where the light spot attribute information includes the detection light spot position and the reference attribute information includes the light spot calibration position, the attribute matching module may include a position matching submodule for position matching the detection light spot position and the light spot calibration position, wherein if the position matching result of any detection light spot position indicates a matching failure, the detection result indicates the presence of a defect.
[0177] In the case where the spot attribute information includes the detection spot position and the detection spot size at each detection spot position, and the reference attribute information includes the detection spot position and the spot calibration size at each spot calibration position, the attribute matching module may further include a size matching submodule on the basis of the position matching submodule, for performing size matching on the detection spot size at each detection spot position with the spot calibration size at the position-matched spot calibration position in response to successful position matching of all detection spot positions, wherein if the size matching result at any detection spot position indicates a matching failure, the detection result indicates the presence of a defect.
[0178] For example, the size matching submodule can be specifically used to: determine the expanded size of a preset multiple of the spot calibration size at each spot calibration position; detect whether the detection spot size at each detection spot position exceeds the expanded size at the position-matched spot calibration position; wherein, if the detection spot size at any detection spot position exceeds the expanded size at the position-matched spot calibration position, it is determined that the size matching has failed; otherwise, it is determined that the size matching has succeeded.
[0179] If the light spot attribute information further includes a light spot size relationship and the reference attribute information further includes a calibration size relationship, then the attribute matching module, based on the position matching submodule and the size matching submodule, further includes a relationship matching submodule, which is used to match the light spot size relationship between the detection light spot sizes at each detection light spot position with the calibration size relationship between the light spot calibration sizes at each light spot calibration position in response to a successful size matching; wherein, if the size relationship matching result indicates a matching failure, then the detection result indicates the presence of a defect.
[0180] In addition, if the light spot attribute information also includes the number of detected light spots and the reference attribute information also includes the number of calibrated light spots, then, no matter which one or several of the position matching sub-module, the size matching sub-module and the relationship matching sub-module the attribute matching module includes, the attribute matching module can further include a quantity matching sub-module, which is used to match the number of detected light spots with the number of calibrated light spots before position matching; wherein, if the quantity result indicates that the matching fails, the detection result indicates that there is a defect.
[0181] Figure 15 For example Figure 14 See the schematic diagram of the expanded structure of the detection device shown in Figure 15 , if Figure 14 The detection apparatus shown configures reference attribute information based on the created measurement file, and the detection apparatus may further include:
[0182] The sample acquisition module 1510 is used to acquire a plurality of sample images obtained by imaging the target through a plurality of sample lenses under preset imaging conditions;
[0183] The sample detection module 1530 is configured to detect sample attribute information of a plurality of sample light spots in each sample image from a plurality of detection light sources;
[0184] The reference attribute information is determined based on sample attribute information detected from the sample image, and this sample attribute information can be stored in a measurement file. Furthermore, as a further preferred configuration, the detection device can further include a sample processing module and a measurement configuration module (neither of which is shown in the accompanying drawings). The sample processing module is configured to perform denoising processing (at least one of the instant denoising processing and batch denoising processing mentioned above) on the sample attribute information, and the measurement configuration module is configured to store the remaining sample attribute information after the denoising processing in a measurement file, which is used to generate the reference attribute information.
[0185] Accordingly, in order to realize the generation of reference attribute information, the detection device may further include:
[0186] The metric loading module 1550 is configured to load a metric file in response to the start of detection, wherein the metric file stores sample attribute information detected from the sample image;
[0187] The measurement verification module 1570 is used to verify the credibility of the measurement file based on the amount of sample attribute information stored in the measurement file;
[0188] The reference configuration module 1590 is configured to generate reference attribute information using the measurement file in response to a verification result indicating that the amount of information reaches a preset trustworthy amount.
[0189] If the configuration of the reference attribute information is achieved by training a neural network model, then, Figure 15 The functional modules shown in can be replaced by functional modules for training and calling the neural network model.
[0190] In another embodiment, an electronic device is provided. The electronic device may be as follows: Figure 1 Alternatively, the electronic device may be an electronic device 60 deployed in an automated production line system as shown in FIG. Figure 1 Any equipment other than the automated production line system shown.
[0191] Figure 16 FIG. 1 is a schematic diagram of an exemplary structure of an electronic device in another embodiment. Figure 16 The electronic device in this embodiment may include a processor 1610, which may be configured to execute the detection method in the aforementioned embodiment. Furthermore, the electronic device may also include a non-transitory computer-readable storage medium 1630, which may store instructions that, when executed by the processor 1610, enable the processor 1610 to execute the detection method in the aforementioned embodiment.
[0192] The electronic device may further include an intelligent chip 1650 , and the processor 1610 may execute the detection method in the aforementioned embodiment by calling the intelligent chip 1650 . In addition, the electronic device may further include a communication module 1670 for the electronic device to interact with other devices.
[0193] In addition, in another embodiment of the present application, a non-transitory computer-readable storage medium independent of the electronic device may be provided, and the instructions stored therein, when executed by any processor, may enable the processor to execute the detection method in the aforementioned embodiment.
[0194] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for detecting an optical lens, characterized in that: The detection method is used to use any optical lens transferred to the detection station in the automated production line system as the optical lens to be detected, and the detection method includes: Acquire a test image of a target imaged by the optical lens to be inspected under preset imaging conditions; wherein the target image is deployed at the inspection station of the automated production line system, and the target image includes a plurality of detection light sources discretely distributed within the imaging field of view of the optical lens to be inspected; determining light spot attribute information of a plurality of detection light spots of the plurality of detection light sources in the detection image; Matching the light spot attribute information with pre-configured reference attribute information; wherein the reference attribute information is determined based on sample attribute information detected from a plurality of sample images before acquiring the detection image, the plurality of sample images being obtained by imaging the target through a plurality of sample lenses under the preset imaging conditions, and the sample attribute information being determined by detecting a plurality of sample light spots in each of the plurality of sample images by the plurality of detection light sources; The detection result of the optical lens to be inspected is determined based on the matching result between the light spot attribute information and the reference attribute information; wherein the detection result is used to characterize whether the optical lens to be inspected has a defect of abnormal imaging of the light source.
2. The detection method according to claim 1, characterized in that The light spot attribute information includes the detection light spot position; The reference attribute information includes the spot calibration position; The matching of the light spot attribute information with pre-configured reference attribute information includes: Matching the detection light spot position with the light spot calibration position; Wherein, if the position matching result of any of the detection light spot positions indicates a matching failure, the detection result indicates that a defect exists.
3. The detection method according to claim 2, characterized in that The light spot attribute information further includes the detection light spot size at each detection light spot position; The reference attribute information further includes a light spot calibration size at each of the light spot calibration positions; The matching of the light spot attribute information with pre-configured reference attribute information further includes: In response to successful position matching of all the detection spot positions, matching the detection spot size at each detection spot position with the spot calibration size at the position-matched spot calibration position; Wherein, if the size matching result at any of the detection spot positions indicates a matching failure, the detection result indicates that a defect exists.
4. The detection method according to claim 3, characterized in that The matching of the light spot attribute information with pre-configured reference attribute information further includes: In response to the size matching being successful, matching the spot size relationship between the detection spot sizes at each of the detection spot positions with the calibration size relationship between the calibration spot sizes at each of the calibration spot positions; If the size relationship matching result indicates a matching failure, then the detection result indicates a defect.
5. The detection method according to claim 2, characterized in that The light spot attribute information further includes the number of detected light spots; The reference attribute information further includes the number of spot calibrations; The matching of the light spot attribute information with pre-configured reference attribute information further includes: Before the position matching, the number of the detection light spots is matched with the number of the calibrated light spots; If the quantity result indicates a match failure, the detection result indicates a defect.
6. The detection method according to claim 1, characterized in that Before obtaining the detection image obtained by imaging the target through the optical lens to be inspected under preset imaging conditions, the method further includes: In response to the start of detection, loading a measurement file, wherein the measurement file stores the sample attribute information detected from the sample image; Verifying the credibility of the measurement file based on the amount of information of the sample attribute information stored in the measurement file; In response to a verification result indicating that the amount of information reaches a preset credible amount, the reference attribute information is generated using the measurement file.
7. An optical lens detection device, characterized in that: The detection device is used to use any optical lens transferred to the detection station in the automated production line system as the optical lens to be detected, and the detection device includes: An image acquisition module, configured to acquire a test image of a target imaged through an optical lens to be inspected under preset imaging conditions; wherein the target image is deployed at the inspection station of the automated production line system, and comprises a plurality of detection light sources discretely distributed within the imaging field of view of the optical lens to be inspected; An attribute determination module, configured to determine light spot attribute information of a plurality of detection light spots of the plurality of detection light sources in the detection image; an attribute matching module, configured to match the light spot attribute information with pre-configured reference attribute information; wherein the reference attribute information is determined before acquiring the detection image based on sample attribute information detected from a plurality of sample images, the plurality of sample images being obtained by imaging the target through a plurality of sample lenses under the preset imaging conditions, and the sample attribute information being determined by detecting a plurality of sample light spots in each of the plurality of sample images by the plurality of detection light sources; A result generating module is used to determine the detection result of the optical lens to be inspected based on the matching result of the light spot attribute information and the reference attribute information; wherein the detection result is used to characterize whether the optical lens to be inspected has the defect of abnormal imaging of the light source.
8. An electronic device, characterized in that: The method comprises a processor configured to execute the detection method according to any one of claims 1 to 6.
9. An automated production line system, characterized in that: It comprises the electronic device as described in claim 8, and the shooting target deployed at the inspection station of the automated production line system, wherein the optical lens to be inspected is any optical lens placed at the inspection station.
10. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores instructions that, when executed by a processor, cause the processor to perform the detection method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Defect detection method and device for micro-lens array micro-structure optical film
CN109839383A
Diffractive optical element detection system and detection method thereof
CN111623962A
Glare detection method and device, equipment and storage medium
CN113674217A