A quantitative detection method for glare defects in optical lenses
Through the video sensor chip, the brightness binary processing and quality comparison are carried out, which solves the accuracy and efficiency of lens flare detection in the prior art, realizes quantitative detection of lens flare defects, and improves detection Accuracy and traceability.
Patent Information
- Application Number
- CN202111141771.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-09-28
AI Technical Summary
The prior art relies on manual visual judgment in lens flare detection, resulting in poor accuracy, consistency and repeatability, which cannot meet the quality and efficiency requirements of mass production, and the detection results are inconvenient for intuitive viewing.
Through the electrical connection between the video sensor chip and the computer, the pictures of the measured lens are collected and brightness binarized, and classified into spot maps and background maps, analyzing the quality of the spot maps and background maps, and setting multiple binarization threshold parameters. Perform analysis and compare with standard samples to achieve quantitative detection of lens flare defects.
It improves the accuracy, consistency and repeatability of lens flare defect detection, realizes automatic recording of test data, high production efficiency and good traceability, and users can intuitively view the detection results.
Smart Images

Figure CN114663341B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of optical technology, and in particular to a quantitative detection method for glare defects of an optical lens. Background Art
[0002] The patent number is CN201910398159.6. A glare detection device includes a light irradiation unit, a receiving unit, and a data processor. The light irradiation unit is provided with a plurality of light sources, and the plurality of light sources are separated from the object to be measured at a predetermined distance to perform light irradiation; the receiving unit is electrically connected to the object to be measured; the data processor receives the image of the object to be measured taken by the light irradiation unit through the receiving unit electrically connected to the object to be measured, and determines whether the object to be measured is in a bad state according to the number of glares around the plurality of light source images corresponding to each plurality of light sources contained in the captured image. The beneficial effect of the present invention is that by controlling the light irradiation unit and the object to be measured in the light irradiation unit, the image of the plurality of light sources irradiated by the object to be measured is analyzed, the glare contained in the plurality of light source images is determined, and whether the glare (area, length, number) is determined to be within a normal range, thereby achieving the effect of accurately determining whether the object to be measured is in a bad state.
[0003] The existing glare detection is to image the overexposed point light source or line light source in real time, use a slide to move the light source or sensor, scan the imaging area, and manually visually determine abnormal glare such as smear, bright spots, and bulging. This method relies on manual visual judgment, and the accuracy, consistency, and repeatability of the lens glare defects obtained are poor, the production efficiency is low, and the traceability is poor. It cannot meet the quality and efficiency requirements of mass production of lenses. The glare detection introduced in the above patent has inaccurate test results, and the test results are not convenient for testers to view intuitively. Summary of the invention
[0004] Technical issues solved
[0005] In view of the deficiencies in the prior art, the present invention provides a method for quantitatively detecting glare defects in optical lenses, which solves the problem of automatic quantitative measurement of lens imaging performance by machines, avoids deviations caused by human judgment, and improves the accuracy, consistency and repeatability of test data.
[0006] Technical Solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: A method for quantitatively detecting glare defects of an optical lens, comprising the following steps:
[0008] Sp1: Equipment assembly: installation of test target and tested object;
[0009] Sp2: Image acquisition: setting of numerical values, acquisition of images of the tested target and transfer to the computer for storage;
[0010] Sp3: Image processing: Process the original image by brightness binarization;
[0011] Sp4: Image classification: extract and classify the spot image and background image of the processed image;
[0012] Sp5: Analysis of spot pattern: Perform image analysis on the classified spot pattern and compare it with the standard sample;
[0013] Sp6: Background image analysis: image analysis of the classified background image;
[0014] Sp7: Multiple binarization threshold analysis: Set multiple different binarization parameters to analyze the image.
[0015] Preferably, the circular light source array with a black background is the detection target, the video sensor chip matches the imaging area and imaging clarity of the lens under test, and the video sensor chip is a picture acquisition device, the circular light source array is located on the top surface of the lens under test, and the video sensor chip is placed at the bottom of the lens under test, and the video sensor chip is electrically connected to the computer, and the installation positions of the lens under test, the video sensor chip and the circular light source array are at suitable positions of the imaging optical axis.
[0016] Preferably, the characteristics of the lens under test determine the brightness of the circular light source array and the exposure time of the video sensor chip. The light spots of the circular light source array are exposed at 50%, and the setting value is fixed after adjustment. The pictures collected by the video sensor chip are saved by a computer and input into an application to analyze the pictures.
[0017] Preferably, the threshold parameter of the binarization is set by the user, and the binarization is performed on the image saved in the computer, and after the binarization image is processed, the bright area is a spot image, and the remaining part of the bright area is a background image.
[0018] Preferably, the quality analysis of the light spot diagram includes the area analysis and the circularity analysis of the single-point light spot for each circular light spot, which can display a single ring of a bad area, statistics of the single-point quality distribution in the light spot diagram, and comparison of the single-point quality distribution in the light spot diagram with the single-point quality distribution of the standard sample, and grading of the quality of the light spot diagram of the tested lens, the overall brightness of the background image is analyzed, and the quality grade of the background image of the tested lens is judged according to the set judgment standard, and different binarization thresholds are set, multiple analyses are performed, and the results are judged.
[0019] Beneficial Effects
[0020] The present invention provides a method for quantitatively detecting glare defects of an optical lens, which has the following beneficial effects:
[0021] 1. The present invention electrically connects the video sensor chip to the computer, collects and transfers the pictures to the computer for storage, and the user can set the binarization threshold parameters to perform brightness binarization processing on the pictures. The pictures are classified into spot images and background images, and quality analysis is performed on each circular spot in the spot image, including the area of the single-point spot area and the circularity of the single-point spot. The quality of each circular ring is quantitatively judged, and the quality distribution statistics are compared with the single-point quality distribution of the standard product. The bad points or bad areas can be displayed as needed, which is convenient for users to directly view. The quality analysis statistics of the background image are performed to obtain the quality results of the background image of the tested lens. The user can set multiple binarization threshold parameters, analyze them in turn, and obtain the final judgment result. The quantitative test results of lens glare defects are obtained through equipment adjustment and parameter setting, with high accuracy, good consistency and repeatability, automatic recording of all test data, high production efficiency and good traceability.
[0022] 2. The present invention uses a high-brightness circular light source array with a black background as the detection target, the lens to be tested as the target to be tested, and a video sensor chip as the image acquisition device. The circular light source array, the lens to be tested and the video sensor chip are installed at appropriate positions on the imaging optical axis, so that the image is clear, the field of view is appropriate, and the light spots are evenly and neatly distributed. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a method diagram of the present invention;
[0024] Figure 2 It is a structural schematic diagram of the present invention;
[0025] Figure 3 is a schematic diagram of a target light panel of the present invention;
[0026] Figure 4 The original image collected by the present invention;
[0027] Figure 5 It is the spot diagram of the high binarization threshold of the present invention;
[0028] Figure 6 It is the spot diagram with low binarization threshold of the present invention;
[0029] Figure 7 It is the binary background image of the present invention;
[0030] Figure 8 Background analysis diagram of the present invention;
[0031] Fig. 9 This is a diagram of the judgment interface of the present invention.
[0032] Among them, 1. Circular light source array; 2. Lens under test; 3. Video sensor chip; 4. Computer. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Embodiment 1:
[0035] like Figure 1 As shown, a method for quantitatively detecting glare defects of an optical lens comprises the following steps:
[0036] Sp1: Equipment assembly: installation of test target and tested object;
[0037] Sp2: Image acquisition: setting of numerical values, acquiring images of the tested target and transferring them to computer 4 for storage;
[0038] Sp3: Image processing: Process the original image by brightness binarization;
[0039] Sp4: Image classification: extract and classify the spot image and background image of the processed image;
[0040] Sp5: Analysis of spot pattern: Perform image analysis on the classified spot pattern and compare it with the standard sample;
[0041] Sp6: Background image analysis: image analysis of the classified background image;
[0042] Sp7: Multiple binarization threshold analysis: Set multiple different binarization parameters to analyze the image.
[0043] Embodiment 2:
[0044] like Figure 2-4As shown, the circular light source array 1 with a black background is the detection target, the target light board is a light array composed of 64 to 100 light emitting diodes evenly distributed at equal intervals, each light emitting diode emits a 120° circular light spot, the color temperature is 4500K-6500K, the luminous flux is more than 200 lumens, the background of the light board is blackened, the video sensor chip 3 matches the imaging area and imaging clarity of the measured lens 2, the video sensor chip 3 is a picture acquisition device, the circular light source array 1 is located on the top surface of the measured lens 2, the video sensor chip 3 is placed at the bottom of the measured lens 2, and the video sensor chip 3 is connected to the computer 4 Electrically connected, the tested lens 2, video sensor chip 3 and circular light source array 1 are installed at a suitable position of the imaging optical axis, so that the imaging is clear, the field of view is appropriate, and the light spots are evenly distributed. The characteristics of the tested lens 2 determine the brightness of the circular light source array 1 and the exposure time of the video sensor chip 3. The light spots of the circular light source array 1 are exposed at 50%, and the setting value is fixed after adjustment. The picture illuminated by the tested lens 2 is transmitted to the signal-connected computer 4 through the video sensor chip 3. The video sensor chip 3 is used to collect pictures and transmit the information to the computer 4 for storage, and the application is input into the computer to analyze the picture.
[0045] Embodiment three:
[0046] like Figure 5-9 As shown, the threshold parameter of binarization is set by the user, and the binarization is performed on the image saved in the computer 4. After the binarization image is processed, the bright area is the spot image, and the remaining part of the bright area is the background image. The quality of each circular spot in the spot image is analyzed. The quality analysis includes the area and circularity of each circular spot, which can display the single ring of the bad area. The single point quality distribution in the spot image is statistically analyzed, and the single point quality distribution in the spot image is compared with the single point quality distribution of the standard sample, and the quality of the spot image of the tested lens 2 is graded. The video sensor chip 3 is electrically connected to the computer 4, and the image is collected and transmitted to the computer 4 for storage. The user can set the threshold parameter of binarization, perform brightness binarization on the image, and classify the image into spot image and background. Figure, quality analysis of each circular spot in the spot diagram, including the area of the single-point spot area and the circularity of the single-point spot, quantitative judgment of the quality of each circular ring, and quality distribution statistics and comparison with the single-point quality distribution of the standard product, can display bad points or bad areas as needed, mark them, and users can observe them through the display screen for direct viewing by users, analyze the overall brightness of the background image, judge the quality grade of the background image of the tested lens 2 according to the set judgment standard, set different binarization thresholds, perform multiple analyses, judge the results, perform quality analysis and statistics on the background image, and obtain the quality result of the background image of the tested lens 2. Users can set multiple binarization threshold parameters, analyze them in turn, obtain the final judgment result, and improve the accuracy of detection.
[0047] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprising a reference structure" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0048] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A quantitative detection method for optical lens glare defects, characterized in that The optical lens glare defect quantitative detection method is applied to a circular light source array (1), a lens to be tested (2), a video sensor chip (3) and a computer (4); the circular light source array (1) is a detection target, the video sensor chip (3) matches the imaging area and imaging clarity of the lens to be tested (2), and the video sensor chip (3) is a picture acquisition device, the circular light source array (1) is located on the top surface of the lens to be tested (2), and the video sensor chip (3) is placed at the bottom of the lens to be tested (2), and the video sensor chip (3) is electrically connected to the computer (4), and the lens to be tested (2), the video sensor chip (3) and the circular light source array (1) are installed at positions set by the imaging optical axis; The method for quantitatively detecting glare defects of an optical lens comprises the following steps: Sp1: Equipment assembly: installation of test target and tested object; Sp2: Image acquisition: setting of values, capturing images of the tested object and transferring them to the computer (4) for storage; Sp3: Image processing: Process the original image by brightness binarization; Sp4: Image classification: The spot image and background image of the extracted image are classified and saved. After the binary image is processed, the bright area is the spot image, and the remaining part of the bright area is the background image. Sp5: Analysis of spot diagram: Perform image analysis on the classified spot diagram and compare it with the standard sample to analyze the quality of the spot diagram. The quality analysis includes the area of each circular spot and the circularity of the single spot. The single ring of the bad area can be displayed. The single point quality distribution in the spot diagram is statistically analyzed and compared with the single point quality distribution of the standard sample. The spot diagram quality of the tested lens (2) is graded. Sp6: Background image analysis: Perform image analysis on the classified background image, analyze the overall brightness of the background image, and judge the quality of the background image of the tested lens (2) according to the set judgment criteria; Sp7: Multiple binarization threshold analysis: Set multiple different binarization parameters to analyze the image; The characteristics of the measured lens (2) determine the brightness of the circular light source array (1) and the exposure time of the video sensor chip (3).
2. The method for quantitatively detecting glare defects of an optical lens according to claim 1, characterized in that: The circular light source array (1) has a light spot exposure of 50%, and the setting value is fixed after adjustment. The pictures collected by the video sensor chip (3) are saved by the computer (4) and input into an application program to analyze the pictures.
3. The method for quantitatively detecting glare defects of an optical lens according to claim 1, characterized in that: The threshold parameter of the binarization is set by the user, and the binarization is performed on the image stored in the computer (4).
