A C-lens measurement method and test apparatus

By employing transmitted illumination and sub-pixel edge detection, the problems of low efficiency and low accuracy in traditional detection methods are solved, enabling efficient and non-destructive detection of C-Lens and meeting the high-precision requirements of mass production.

CN123154757APending Publication Date: 2026-11-24DONGGUAN YUTONG OPTICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611332899.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Traditional detection methods are inefficient and inaccurate when detecting C-Lens, and may damage the optical surface, failing to meet the high efficiency and high precision requirements of mass production.

Method used

Using transmitted illumination technology, the contour image of the C-Lens is acquired through an industrial camera. Subpixel edge detection is used to obtain feature parameters, which are then compared with preset tolerance range values ​​to output a pass or fail judgment signal.

Benefits of technology

It achieves high-efficiency, high-precision, and non-destructive testing with C-Lens, meeting the testing needs of mass production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123154757A_ABST
    Figure CN123154757A_ABST
Patent Text Reader

Abstract

This invention discloses a C-Lens measurement method and testing equipment. The C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing outwards. Transmitted illumination is applied to the C-Lens, and its contour image is acquired. Subpixel edge detection is performed based on the contour image, and the measured values ​​of the C-Lens' feature parameters are obtained. A preset feature parameter tolerance range is acquired. If all the measured feature parameter values ​​are within the corresponding preset feature parameter tolerance range, a first judgment signal indicating that the C-Lens is a qualified product is output. If any of the measured feature parameter values ​​exceeds the corresponding preset feature parameter tolerance range, a second judgment signal indicating that the C-Lens is a defective product is output. This achieves high-efficiency, high-precision, and non-destructive testing of C-Lens.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of precision measurement technology, and in particular to a C-Lens measurement method and testing equipment. Background Technology

[0002] C-Lens are miniature spherical lenses widely used in optical communication and fiber lasers. The accuracy of their dimensional parameters, such as radius of curvature, outer diameter, bevel angle, and total length, directly determines the coupling efficiency and signal quality of the device. However, with the surge in production volume and increasing precision requirements, traditional detection methods face severe challenges in terms of efficiency and accuracy. Dimensional inspection is particularly important for C-Lens. Traditional measurement methods include CT measurement and contact measurement methods. CT measurement can achieve non-destructive testing of the internal structure of samples, but it has a long testing cycle and high cost, failing to meet the efficiency requirements of mass production for full inspection or high-frequency sampling. Contact measurement methods, using tools such as sphere gauges and coordinate measuring machines, can measure some dimensions of the sample, but may cause irreversible damage to precision optical surfaces and are slow. Therefore, there is an urgent need for a measurement method with high detection efficiency, low error, and no contact with the C-Lens sample surface. Summary of the Invention

[0003] This invention provides a C-Lens measurement method and testing equipment to achieve high-efficiency, high-precision, and non-destructive testing of C-Lens.

[0004] In a first aspect, the present invention provides a C-Lens measurement method, characterized in that it includes: The C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing out; wherein, along the horizontal direction, the first end of the C-Lens to be tested is a slope and the second end is a convex surface; Transmitted illumination is applied to the C-Lens under test, and a contour image of the C-Lens under test is acquired. Subpixel edge detection is performed based on the contour image, and the characteristic parameter measurements of the C-Lens under test are obtained; wherein, the characteristic parameter measurements include outer diameter measurement, radius of curvature measurement, slope angle measurement, and total length measurement. Obtain the preset characteristic parameter tolerance range value, wherein the preset characteristic parameter tolerance range value includes the preset outer diameter tolerance range value, the preset radius of curvature tolerance range value, the preset slope angle tolerance range value, and the preset total length tolerance range value; When the outer diameter measurement, the radius of curvature measurement, the slope angle measurement, and the total length measurement are all within the corresponding preset characteristic parameter tolerance range, a first judgment signal that the C-Lens to be tested is a qualified product is output. If any one of the measured outer diameter, the measured radius of curvature, the measured slope angle, and the measured total length exceeds the corresponding preset characteristic parameter tolerance range, a second judgment signal is output that the C-Lens to be tested is a defective product.

[0005] Optionally, before placing the C-Lens to be tested on the transparent glass stage, the following steps are also included: The parameters are configured based on the C-Lens under test. The parameter configuration includes at least the position and size of the image detection area, the edge detection threshold, the backlight brightness, the camera exposure time, the camera height, and the preset feature parameter tolerance range value.

[0006] Optionally, before placing the C-Lens under test on the transparent glass stage, the following steps are also included: Acquire images of standard blocks with known physical dimensions, and calculate the current pixel equivalent based on the images of the standard blocks; If the deviation between the current pixel equivalent and the preset standard pixel equivalent is within the preset deviation range, then the current pixel equivalent is determined as the conversion benchmark for converting pixel distance to physical size.

[0007] Optionally, after acquiring the contour image of the C-Lens under test, the method further includes: The contour image is then subjected to filtering and contrast enhancement processing in sequence.

[0008] Optionally, the characteristic parameter measurement values ​​of the C-Lens to be tested are obtained, including the outer diameter measurement value, which includes: Extract the two opposite sides of the cylindrical side surface of the C-Lens to be tested, the two opposite sides including a first edge and a second edge; A first edge point set is obtained based on the first edge, and a second edge point set is obtained based on the second edge; Based on the least squares fitting method, straight lines are fitted to the first edge point set and the second edge point set respectively to obtain the first fitted straight line and the second fitted straight line; Obtain the vertical pixel distance between the first fitted line and the second fitted line, and determine the outer diameter measurement value based on the current pixel equivalent.

[0009] Optionally, the characteristic parameter measurement values ​​of the C-Lens under test are obtained, including the radius of curvature measurement value, comprising: Extract the arc contour of one side of the second end of the C-Lens to be tested; Obtain the arc edge point set based on the arc contour; The set of points on the edge of the arc is fitted with a circle using the least squares method to obtain a fitted circle. The curvature radius pixel value is obtained based on the fitted circle, and the curvature radius measurement value is determined based on the current pixel equivalent.

[0010] Optionally, the characteristic parameter measurement values ​​of the C-Lens under test are obtained, including the slope angle measurement value, comprising: Extract the slope profile on one side of the first end of the C-Lens to be tested; The set of edge points of the inclined plane is obtained based on the inclined plane contour; The third fitted line is obtained by fitting the set of edge points of the inclined plane with a straight line using the least squares fitting method. The measured value of the slope angle is determined based on the second and third fitted lines.

[0011] Optionally, the characteristic parameter measurement values ​​of the C-Lens under test are obtained, including the total length measurement value, which includes: The first midline is obtained based on the first fitted line and the second fitted line; A fourth fitted straight line is obtained by fitting the fitted circle and its center, which is parallel to the first midline and passes through the center of the fitted circle. The first intersection point is determined based on the fourth fitted line and the fitted circle, and the second intersection point is determined based on the third fitted line and the four fitted lines. Obtain a first perpendicular line that is perpendicular to the first median and passes through the second intersection point; The total length pixel distance is determined based on the first vertical line and the first intersection point, and the total length measurement value is determined based on the current pixel equivalent.

[0012] In a second aspect, the present invention provides a C-Lens measurement device for performing the C-Lens measurement method according to any one of the first aspects, characterized in that the C-Lens measurement device comprises: A transparent glass stage is used to hold the C-Lens to be tested; A backlight source is positioned below the transparent glass stage to emit parallel light; A telecentric lens is positioned above the light-transmitting glass stage, with the optical axis of the telecentric lens perpendicular to the upper surface of the light-transmitting glass stage. An industrial camera is connected to the telecentric lens, which is mounted on the industrial camera. An industrial computer is connected to the industrial camera; The parallel light is incident perpendicularly onto the telecentric lens through the transparent glass stage, and then imaged onto the industrial camera by the telecentric lens to acquire the contour image of the C-Lens under test. The industrial computer measures the characteristic parameter measurement values of the C-Lens to be tested according to the contour image, compares the characteristic parameter measurement values with a preset characteristic parameter tolerance range value, and outputs a first judgment signal or a second judgment signal; wherein the characteristic parameter measurement values include an outer diameter measurement value, a curvature radius measurement value, a bevel angle measurement value, and a total length measurement value.

[0013] Optionally, the industrial computer at least includes: an image processing module, a characteristic parameter calculation module, and a judgment output module; The image processing module is configured to perform sub-pixel edge detection according to the contour image; The parameter calculation module is configured to acquire the characteristic parameter measurement values of the C-Lens to be tested; The judgment output module is configured to compare the characteristic parameter measurement values with the preset characteristic parameter tolerance range value, and output the first judgment signal or the second judgment signal.

[0014] In the technical solution of the embodiments of the present invention, a C-Lens to be tested is placed on a transparent glass stage with its cylindrical side surface, wherein along the horizontal direction, a first end of the C-Lens to be tested is a bevel surface, and a second end of the C-Lens to be tested is a convex surface; transmission illumination is performed on the C-Lens to be tested, and a contour image of the C-Lens to be tested is collected; sub-pixel edge detection is performed based on the contour image, and characteristic parameter measurement values of the C-Lens to be tested are acquired; wherein the characteristic parameter measurement values include an outer diameter measurement value, a curvature radius measurement value, a bevel angle measurement value, and a total length measurement value; a preset characteristic parameter tolerance range value is acquired, wherein the preset characteristic parameter tolerance range value includes a preset outer diameter tolerance range value, a preset curvature radius tolerance range value, a preset bevel angle tolerance range value, and a preset total length tolerance range value; when the outer diameter measurement value, the curvature radius measurement value, the bevel angle measurement value, and the total length measurement value all fall within the corresponding preset characteristic parameter tolerance range values, a first judgment signal indicating that the C-Lens to be tested is a qualified product is output; when any one of the outer diameter measurement value, the curvature radius measurement value, the bevel angle measurement value, and the total length measurement value exceeds the corresponding preset characteristic parameter tolerance range value, a second judgment signal indicating that the C-Lens to be tested is an unqualified product is output. Thus, high-efficiency, high-precision, and non-destructive detection of the C-Lens is realized.

[0015] It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become easy to understand through the following description. Description of the Drawings

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart of a C-Lens measurement method provided in an embodiment of the present invention; Figure 2 A flowchart of another C-Lens measurement method provided in an embodiment of the present invention; Figure 3 A flowchart of another C-Lens measurement method provided in an embodiment of the present invention; Figure 4 A flowchart of another C-Lens measurement method provided in an embodiment of the present invention; Figure 5 A flowchart illustrating a method for measuring outer diameter values ​​provided in an embodiment of the present invention; Figure 6 A schematic diagram of the contour image of a C-Lens under test provided in an embodiment of the present invention; Figure 7 A flowchart illustrating a method for measuring the radius of curvature in an embodiment of the present invention; Figure 8 A flowchart illustrating a method for measuring the inclination angle of an inclined plane, as provided in an embodiment of the present invention; Figure 9 A flowchart illustrating a method for measuring total length according to an embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of a C-Lens measurement device provided in an embodiment of the present invention; Figure 11 This is a schematic diagram of the structure of an industrial control computer provided in an embodiment of the present invention. Detailed Implementation

[0018] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0019] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0020] Figure 1 This is a flowchart illustrating a C-Lens measurement method provided in an embodiment of the present invention. This embodiment is applicable to C-Lens measurement scenarios. The method can be executed by a C-Lens measurement device, which can be implemented in hardware and / or software. Figure 1 As shown, the method includes: S101, the C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing out; wherein, along the horizontal direction, the first end of the C-Lens to be tested is an inclined surface and the second end is a convex surface.

[0021] The C-Lens under test is a cylindrical lens with an inclined surface at one end and a convex spherical surface at the other. During testing, the C-Lens is placed flat on a transparent glass stage, with the cylindrical side of the C-Lens in contact with the stage, to facilitate subsequent feature extraction.

[0022] S102, transmit illumination to the C-Lens under test and acquire the contour image of the C-Lens under test.

[0023] Before placing the C-Lens under test, the backlight, industrial camera, and industrial control computer must be turned on. The detection software on the industrial control computer is activated, and the industrial camera is connected to the industrial control computer to control the camera to acquire images of the C-Lens under test in real time. The images of the C-Lens under test can be used to determine whether the C-Lens is placed correctly. If it is not placed correctly, the position of the C-Lens under test needs to be adjusted until it is placed correctly. When it is placed correctly, the acquired image of the C-Lens under test is the contour image of the C-Lens. The specific process of acquiring the contour image of the C-Lens under test involves the parallel light emitted from the backlight illuminating the C-Lens under test located on the transparent glass stage. The C-Lens under test will block part of the light, and the unblocked light continues to travel upward in a straight line, carrying the contour edge information of the C-Lens under test. This part of the light enters the telecentric lens and converges to form an image on the image sensor of the industrial camera, forming the contour image.

[0024] S103, perform sub-pixel edge detection based on the contour image and obtain the feature parameter measurement values ​​of the C-Lens under test; among which, the feature parameter measurement values ​​include the outer diameter measurement value, the radius of curvature measurement value, the slope angle measurement value, and the total length measurement value.

[0025] The industrial camera acquires contour images, and the industrial control computer performs sub-pixel edge detection based on the contour images, extracts the sub-pixel contour edges, and then obtains the outer diameter measurement value, radius of curvature measurement value, slope angle measurement value, and total length measurement value of the C-Lens under test.

[0026] S104, obtain the preset characteristic parameter tolerance range value, wherein the preset characteristic parameter tolerance range value includes the preset outer diameter tolerance range value, the preset radius of curvature tolerance range value, the preset slope angle tolerance range value, and the preset total length tolerance range value.

[0027] The preset characteristic parameter tolerance range can be set according to the C-Lens to be measured, and the embodiments of the present invention do not impose specific limitations. For example, the preset outer diameter tolerance range can be the outer diameter measurement value ±0.03mm, the preset radius of curvature tolerance range can be the radius of curvature measurement value ±0.005mm, the preset slope angle tolerance range can be the slope angle measurement value ±0.5°, and the preset total length tolerance range can be the total length measurement value ±0.01mm.

[0028] S105, when the measured values ​​of outer diameter, radius of curvature, slope angle and total length are all within the corresponding preset characteristic parameter tolerance range, the first judgment signal that the C-Lens to be tested is a qualified product is output.

[0029] Specifically, the outer diameter measurement value is compared with the preset outer diameter tolerance range value, the curvature radius measurement value is compared with the preset curvature radius tolerance range value, the slope angle measurement value is compared with the preset slope angle tolerance range value, and the total length measurement value is compared with the preset total length tolerance range value. When the outer diameter measurement value, curvature radius measurement value, slope angle measurement value, and total length measurement value are all within the corresponding preset characteristic parameter tolerance range value, the current C-Lens under test is considered to be a qualified product, and the first judgment signal is output.

[0030] S106, if any one of the outer diameter measurement value, radius of curvature measurement value, slope angle measurement value, and total length measurement value exceeds the corresponding preset characteristic parameter tolerance range value, then output a second judgment signal that the C-Lens to be measured is a non-conforming product.

[0031] Specifically, the outer diameter measurement value is compared with the preset outer diameter tolerance range value, the curvature radius measurement value is compared with the preset curvature radius tolerance range value, the slope angle measurement value is compared with the preset slope angle tolerance range value, and the total length measurement value is compared with the preset total length tolerance range value. If any one of the outer diameter measurement value, curvature radius measurement value, slope angle measurement value, and total length measurement value exceeds the corresponding preset characteristic parameter tolerance range value, then the current C-Lens under test is considered to be a defective product, and a second judgment signal is output.

[0032] This invention involves placing the C-Lens under test on a transparent glass stage with its cylindrical side facing outwards; illuminating the C-Lens with transmitted light and acquiring its contour image; performing sub-pixel edge detection based on the contour image and obtaining the measured values ​​of the C-Lens' feature parameters; acquiring preset feature parameter tolerance ranges; and outputting a first judgment signal indicating that the C-Lens is a qualified product when all measured feature parameter values ​​are within the corresponding preset feature parameter tolerance ranges. Conversely, outputting a second judgment signal indicating that the C-Lens is a defective product when any measured feature parameter value exceeds the corresponding preset feature parameter tolerance range. This achieves high-efficiency, high-precision, and non-destructive testing of C-Lens.

[0033] Optional, Figure 2 A flowchart of another C-Lens measurement method provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method includes: S201, Configure parameters based on the C-Lens under test. The parameter configuration includes at least the position and size of the image detection area, the edge detection threshold, the backlight brightness, the camera exposure time, the camera height, and the preset feature parameter tolerance range.

[0034] The process involves configuring parameters for the C-Lens under test. Specifically, this includes determining the placement of the C-Lens on the transparent glass stage, i.e., determining the position and size of the image detection area, to constrain the search range for edge extraction in the subsequent feature extraction step based on the contour image. Setting an edge detection threshold ensures the sensitivity of edge extraction. Configuring the backlight brightness ensures sufficient luminous intensity for a clear contour. Configuring the camera exposure time controls the exposure duration of the industrial camera to ensure the acquired contour image has appropriate brightness and contrast. Configuring the camera height controls the vertical mounting height of the telecentric lens or industrial camera, ensuring the C-Lens contour is within the optimal imaging area. Configuring preset feature parameter tolerance ranges ensures accurate comparison with measured feature parameter values ​​to determine the C-Lens's qualification.

[0035] S202, the C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing out; wherein, along the horizontal direction, the first end of the C-Lens to be tested is an inclined surface and the second end is a convex surface.

[0036] S203, transmit illumination to the C-Lens under test and acquire the contour image of the C-Lens under test.

[0037] S204, perform sub-pixel edge detection based on the contour image and obtain the feature parameter measurement values ​​of the C-Lens under test; among which, the feature parameter measurement values ​​include the outer diameter measurement value, the radius of curvature measurement value, the slope angle measurement value, and the total length measurement value.

[0038] S205, obtain the preset characteristic parameter tolerance range value, wherein the preset characteristic parameter tolerance range value includes the preset outer diameter tolerance range value, the preset radius of curvature tolerance range value, the preset slope angle tolerance range value, and the preset total length tolerance range value.

[0039] S206, when the measured values ​​of outer diameter, radius of curvature, slope angle and total length are all within the corresponding preset characteristic parameter tolerance range, the first judgment signal that the C-Lens to be tested is a qualified product is output.

[0040] S207: If any one of the measured values ​​of outer diameter, radius of curvature, slope angle, and total length exceeds the corresponding preset characteristic parameter tolerance range, a second judgment signal is output indicating that the C-Lens to be measured is a non-conforming product.

[0041] This invention provides a method for configuring parameters based on the C-Lens under test. The parameter configuration includes at least the position and size of the image detection area, the edge detection threshold, the backlight brightness, the camera exposure time, the camera height, and the preset feature parameter tolerance range, ensuring high-precision detection of the C-Lens under test.

[0042] Optional, Figure 3 A flowchart of another C-Lens measurement method provided in an embodiment of the present invention is shown below. Figure 3 As shown, the method includes: S301, based on the C-Lens under test, parameter configuration includes at least the position and size of the image detection area, edge detection threshold, backlight brightness, camera exposure time, camera height, and preset feature parameter tolerance range values.

[0043] S302: Acquire an image of a standard block with known physical dimensions, and calculate the current pixel equivalent based on the image of the standard block.

[0044] The standard block can be an optical calibration plate, which has at least one array of dots with known center distances or a grid pattern with known line widths. During equipment inspection, the operator places the optical calibration plate on a transparent glass stage, and the equipment system automatically uses the above-mentioned parameter configuration to drive the camera to take pictures of the calibration plate, obtain an image of the standard block with known physical dimensions, and then calculate the current pixel equivalent.

[0045] S303, when the deviation between the current pixel equivalent and the preset standard pixel equivalent is within the preset deviation range, the current pixel equivalent is determined as the conversion benchmark for converting pixel distance to physical size.

[0046] The preset standard pixel equivalent is a reference value obtained under standard environmental conditions using the same calibration board during factory calibration or periodic maintenance. The device calculates the deviation between the current pixel equivalent and the preset standard pixel equivalent. If the deviation is within the allowable preset deviation range, the device is deemed to have passed inspection, and the current pixel equivalent is used as the conversion benchmark for all subsequent pixel distances to physical dimensions, automatically entering the formal C-Lens measurement process. Conversely, if the deviation exceeds the allowable preset deviation range, the device is deemed to have failed inspection, the system outputs an alarm signal, and automatically terminates the subsequent testing process to prevent batch misjudgments caused by continuing measurements under conditions of insufficient device accuracy.

[0047] S304, the C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing out; wherein, along the horizontal direction, the first end of the C-Lens to be tested is an inclined surface and the second end is a convex surface.

[0048] S305 provides transmitted illumination to the C-Lens under test and acquires a contour image of the C-Lens under test.

[0049] S306, performs sub-pixel edge detection based on the contour image and obtains the feature parameter measurement values ​​of the C-Lens under test; among which, the feature parameter measurement values ​​include the outer diameter measurement value, the radius of curvature measurement value, the slope angle measurement value, and the total length measurement value.

[0050] S307, obtain the preset characteristic parameter tolerance range value, wherein the preset characteristic parameter tolerance range value includes the preset outer diameter tolerance range value, the preset radius of curvature tolerance range value, the preset slope angle tolerance range value, and the preset total length tolerance range value.

[0051] S308: When the measured values ​​of outer diameter, radius of curvature, slope angle, and total length are all within the corresponding preset characteristic parameter tolerance range, the first judgment signal that the C-Lens to be tested is a qualified product is output.

[0052] S309: If any one of the measured values ​​of outer diameter, radius of curvature, slope angle, and total length exceeds the corresponding preset characteristic parameter tolerance range, a second judgment signal is output indicating that the C-Lens to be measured is a non-conforming product.

[0053] This invention acquires images of standard blocks with known physical dimensions and calculates the current pixel equivalent based on these images. If the deviation between the current pixel equivalent and a preset standard pixel equivalent is within a preset deviation range, the current pixel equivalent is determined as the conversion benchmark for converting pixel distance to physical dimensions. This prevents batch misjudgments caused by continued measurement under conditions of insufficient device accuracy, ensuring high-precision detection of the C-Lens under test.

[0054] Optional, Figure 4 A flowchart of another C-Lens measurement method provided in an embodiment of the present invention is shown below. Figure 4 As shown, the method includes: S401, the C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing out; wherein, along the horizontal direction, the first end of the C-Lens to be tested is an inclined surface and the second end is a convex surface.

[0055] S402, transmit illumination to the C-Lens under test and acquire the contour image of the C-Lens under test.

[0056] S403 performs filtering and contrast enhancement processing on the contour image sequentially.

[0057] The acquired contour image is filtered to eliminate image noise interference. The filtered contour image is then subjected to contrast enhancement to highlight the edge features of the C-Lens under test, ensuring the accuracy of subsequent feature extraction.

[0058] S404 performs sub-pixel edge detection based on the contour image and obtains the characteristic parameter measurements of the C-Lens under test; among which, the characteristic parameter measurements include the outer diameter measurement, the radius of curvature measurement, the slope angle measurement, and the total length measurement.

[0059] S405, obtain the preset characteristic parameter tolerance range value, wherein the preset characteristic parameter tolerance range value includes the preset outer diameter tolerance range value, the preset radius of curvature tolerance range value, the preset slope angle tolerance range value, and the preset total length tolerance range value.

[0060] S406, when the measured values ​​of outer diameter, radius of curvature, slope angle, and total length are all within the corresponding preset characteristic parameter tolerance range, the first judgment signal that the C-Lens to be tested is a qualified product is output.

[0061] S407: If any one of the measured values ​​of outer diameter, radius of curvature, slope angle, and total length exceeds the corresponding preset characteristic parameter tolerance range, a second judgment signal is output indicating that the C-Lens to be measured is a non-conforming product.

[0062] This invention ensures the accuracy of subsequent feature extraction and thus measurement accuracy by sequentially filtering and contrast enhancement processing the acquired contour image.

[0063] Optional, Figure 5 This is a flowchart illustrating a method for measuring the outer diameter of an object according to an embodiment of the present invention. Figure 6 This is a schematic diagram of the contour image of a C-Lens under test provided in an embodiment of the present invention, as shown below. Figure 5 and Figure 6 As shown, the characteristic parameter measurements of the C-Lens under test are obtained. These characteristic parameter measurements include the outer diameter measurement, which includes: S501, extract the two opposite edges of the cylindrical side surface of the C-Lens to be tested, including the first edge and the second edge.

[0064] The C-Lens under test is placed flat on a transparent glass stage with its cylindrical side resting against it. The first end of the stage is inclined, and the second end is convex. Under backlight transmission illumination, the opposite edges of the cylindrical portion of the C-Lens appear as two approximately parallel straight lines in the contour image: the first edge and the second edge.

[0065] S502, obtain the first edge point set based on the first edge and obtain the second edge point set based on the second edge.

[0066] Specifically, the first edge is extracted to obtain a first edge point set, and the second edge is extracted to obtain a second edge point set.

[0067] S503, based on the least squares fitting method, straight lines are fitted to the first edge point set and the second edge point set respectively to obtain the first fitted straight line and the second fitted straight line.

[0068] Specifically, the first edge point set is fitted with a straight line based on the least squares fitting method, and then fitted to the first fitted line L1; and the second edge point set is fitted with a straight line based on the least squares fitting method, and then fitted to the second fitted line L2.

[0069] S504, obtain the vertical pixel distance between the first fitted line and the second fitted line, and determine the outer diameter measurement value based on the current pixel equivalent.

[0070] Specifically, the vertical pixel distance between the first fitted line L1 and the second fitted line L2 is calculated based on the fitted lines. At this point, the vertical pixel distance needs to be converted into a physical distance in millimeters in combination with the current pixel equivalent, so as to determine the outer diameter measurement value W1.

[0071] This invention extracts the opposite two edges of the cylindrical side surface of the C-Lens under test, including a first edge and a second edge; obtains a first edge point set based on the first edge and a second edge point set based on the second edge; performs linear fitting on the first edge point set and the second edge point set respectively based on the least squares fitting method to obtain a first fitted line and a second fitted line; obtains the vertical pixel distance between the first fitted line and the second fitted line, and determines the outer diameter measurement value based on the current pixel equivalent, thereby achieving accurate acquisition of the outer diameter measurement value.

[0072] Optional, Figure 7 A flowchart illustrating a method for measuring the radius of curvature in an embodiment of the present invention is provided, as shown below. Figure 6 and Figure 7 As shown, the characteristic parameter measurements of the C-Lens under test are obtained. The characteristic parameter measurements include the radius of curvature measurement, including: S601, extract the arc profile on one side of the second end of the C-Lens to be tested.

[0073] In this process, the convex surface of the second end of the C-Lens under test is profiled to obtain an arc profile.

[0074] S602, obtain the set of points on the edge of the arc based on the arc contour.

[0075] Within the defined arc contour area, all sub-pixel edge points constituting the arc contour are extracted to form a circular arc edge point set.

[0076] S603 uses the least squares fitting method to fit the set of points on the edge of the arc to obtain the fitted circle.

[0077] Among them, the least squares method was used to fit the set of points on the edge of the arc to obtain the fitted circle 10.

[0078] S604: Obtain the radius of curvature pixel value based on the fitted circle, and determine the radius of curvature measurement value based on the current pixel equivalent.

[0079] Specifically, the curvature radius pixel value is obtained based on the fitted circle 10. Based on the current pixel equivalent, the curvature radius pixel value is converted into a physical size in millimeters, thus obtaining the curvature radius measurement value R1.

[0080] This invention embodiment extracts the arc contour of one side of the second end of the C-Lens to be tested; obtains a set of arc edge points based on the arc contour; performs circle fitting on the set of arc edge points based on the least squares fitting method to obtain a fitted circle; obtains the radius of curvature pixel value based on the fitted circle, and determines the radius of curvature measurement value based on the current pixel equivalent, thereby achieving accurate acquisition of the radius of curvature measurement value.

[0081] Optional, Figure 8 A flowchart illustrating a method for measuring the inclination angle of an inclined plane, as provided in an embodiment of the present invention, is shown below. Figure 6 and Figure 8 As shown, the characteristic parameter measurements of the C-Lens under test are obtained. The characteristic parameter measurements include the slope angle measurement, including: S701, extract the slope profile of one side of the first end of the C-Lens to be tested.

[0082] In this process, the profile of the inclined surface at the first end of the C-Lens to be tested is extracted to obtain the profile of the inclined surface.

[0083] S702, obtain the set of edge points of the inclined plane based on the inclined plane profile.

[0084] Within the defined slope contour area, all sub-pixel edge points constituting the slope contour are extracted to form a slope edge point set.

[0085] S703, based on the least squares fitting method, performs straight line fitting on the set of edge points of the inclined plane to obtain the third fitted straight line.

[0086] Among them, the least squares method is used to fit the set of edge points on the slope to obtain the third fitted line L3.

[0087] S704, determine the measured value of the slope angle based on the second and third fitted lines.

[0088] Among them, there is a certain angle between the third fitted line L3 and the second fitted line L2 extending in the horizontal direction, which is the measured value of the slope angle θ.

[0089] This invention provides an embodiment of the invention that extracts the slope profile of one side of the first end of the C-Lens to be tested; obtains the slope edge point set based on the slope profile; performs linear fitting on the slope edge point set based on the least squares fitting method to obtain a third fitted line; and determines the slope inclination measurement value based on the second and third fitted lines, thereby achieving accurate acquisition of the slope inclination measurement value.

[0090] Optional, Figure 9 A flowchart illustrating a method for measuring total length, as provided in an embodiment of the present invention, is shown below. Figure 6 and Figure 9 As shown, the characteristic parameter measurements of the C-Lens under test are obtained. The characteristic parameter measurements include the total length measurement, including: S801, Obtain the first midline based on the first fitted line and the second fitted line.

[0091] The first midline is obtained by using the first fitting line L1 and the second fitting line L2, which are set approximately parallel to each other. The first fitting line L1 and the second fitting line L2 are symmetrical about the first midline.

[0092] S802, based on the fitted circle and the center of the fitted circle, obtain a fourth fitted straight line that is parallel to the first median and overfits the center of the fitted circle.

[0093] Since the C-Lens may have arc eccentricity during the manufacturing process, that is, the center O of the convex arc is not located on the first center line, it is necessary to construct an auxiliary line that passes through the center O of the arc and is parallel to the center line to accurately locate the outermost point of the convex surface, that is, to fit the fourth fitted line.

[0094] S803, determine the first intersection point based on the fourth fitted line and the fitted circle, and determine the second intersection point based on the third fitted line and the fourth fitted line.

[0095] Among them, the fourth fitted line L4 intersects with the convex surface and the inclined surface respectively during its extension in the horizontal direction. That is, the intersection of the fourth fitted line L4 and the fitted circle 10 is determined as the first intersection point P1, and the intersection of the third fitted line L3 and the fourth fitted line L4 is determined as the second intersection point P2.

[0096] S804, obtain the first perpendicular line that is perpendicular to the first median and passes through the second intersection point.

[0097] In the actual manufacturing of C-Lens, there is usually a transition area between the inclined surface of the first end and the side surface of the cylinder, such as a chamfer or a small arc. Directly using the intersection of the inclined surface and the side surface of the cylinder as the end face reference may have uncertainty. Therefore, it is necessary to construct a first perpendicular line L5 that is perpendicular to the first centerline and passes through the second intersection point P2 to ensure the stability of the overall length measurement reference.

[0098] S805 determines the total length pixel distance based on the first vertical line and the first intersection point, and determines the total length measurement value based on the current pixel equivalent.

[0099] Wherein, the total length pixel distance W2 is equal to the vertical distance between the first intersection point of the second end and the first perpendicular line of the first end. Based on the current pixel equivalent, the total length pixel distance is converted into a physical size in millimeters, which is the total length measurement value W2.

[0100] This invention achieves accurate acquisition of the total length measurement value by obtaining a first midline based on a first fitted straight line and a second fitted straight line; fitting a fourth fitted straight line parallel to the first midline and passing through the center of the fitted circle based on the fitted circle and the center of the fitted circle; determining a first intersection point based on the fourth fitted straight line and the fitted circle, and determining a second intersection point based on the third fitted straight line and the fourth fitted straight line; obtaining a first perpendicular line perpendicular to the first midline and passing through the second intersection point; determining the total length pixel distance based on the first perpendicular line and the first intersection point, and determining the total length measurement value based on the current pixel equivalent.

[0101] Based on the same inventive concept, the present invention also provides a C-Lens measurement device for performing any of the C-Lens measurement methods in the first aspect. Figure 10 This is a schematic diagram of the structure of a C-Lens measurement device provided in an embodiment of the present invention, as shown below. Figure 10 As shown, the C-Lens measurement device includes: A transparent glass stage 101 is used to support the C-Lens under test; a backlight 102 is set below the transparent glass stage 101 to emit parallel light; a telecentric lens 103 is set above the transparent glass stage 101, with the optical axis of the telecentric lens 103 perpendicular to the upper surface of the transparent glass stage 101; an industrial camera 104 is connected to the telecentric lens, and the telecentric lens 103 is mounted on the industrial camera 104; and an industrial computer 105 is connected to the industrial camera 104. Parallel light is incident perpendicularly onto the telecentric lens 103 via the transparent glass stage 101, and imaged onto the industrial camera 104 by the telecentric lens 103 to acquire the contour image of the C-Lens under test. The industrial control computer 105 measures the characteristic parameters of the C-Lens under test based on the contour image, compares the measured values ​​of the characteristic parameters with the preset tolerance range of the characteristic parameters, and outputs a first judgment signal or a second judgment signal. The measured values ​​of the characteristic parameters include the outer diameter measurement value, the radius of curvature measurement value, the slope angle measurement value, and the total length measurement value.

[0102] The C-Lens measurement device provided in this embodiment of the invention includes the technical features of the C-Lens measurement method provided in any embodiment of the invention, and can achieve the beneficial effects of the C-Lens measurement method provided in any embodiment of the invention. The similarities can be referred to the above description of the C-Lens measurement method provided in this embodiment of the invention, and will not be repeated here.

[0103] Optional, Figure 11 This is a schematic diagram of the structure of an industrial control computer provided in an embodiment of the present invention, such as... Figure 11 As shown, the industrial control computer 105 includes at least: an image processing module 1051, a feature parameter calculation module 1052, and a judgment output module 1053; the image processing module 1051 is used to perform sub-pixel edge detection based on the contour image; the feature parameter calculation module 1052 is used to obtain the feature parameter measurement values ​​of the C-Lens under test; the judgment output module 1053 is used to compare the feature parameter measurement values ​​with the preset feature parameter tolerance range values, and output a first judgment signal or a second judgment signal.

[0104] The image processing module 1051 first performs preprocessing operations on the original contour image to improve image quality, enhance edge features, and suppress noise interference. The image processing module 1051 can also accurately locate the contour boundary of the C-Lens under test in the preprocessed image, employing a sub-pixel edge detection algorithm to improve edge positioning accuracy to the sub-pixel level, providing a high-precision data foundation for subsequent parameter calculations. The parameter calculation module 1052 is the core of the industrial control computer's measurement calculations. Its input is the sub-pixel level contour boundary data output by the image processing module 1051, and its output is the measured values ​​of various feature parameters of the C-Lens under test. These feature parameter measured values ​​are then passed to the judgment output module as input data for determining whether the C-Lens is qualified. The judgment output module 1053 is the core of the industrial control computer's decision output. Its input is the measurement result dataset output by the feature parameter calculation module 1052, and its output is a first or second judgment signal indicating whether the C-Lens under test is qualified. This allows operators to understand the specific reasons for the C-Lens's failure and guides subsequent quality analysis and process adjustments.

[0105] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A C-Lens measurement method characterized by, include: The C-Lens to be tested is placed on a transparent glass stage with its cylindrical side facing out; wherein, along the horizontal direction, the first end of the C-Lens to be tested is a slope and the second end is a convex surface; Transmitted illumination is applied to the C-Lens under test, and a contour image of the C-Lens under test is acquired. Subpixel edge detection is performed based on the contour image, and the characteristic parameter measurements of the C-Lens under test are obtained; wherein, the characteristic parameter measurements include outer diameter measurement, radius of curvature measurement, slope angle measurement, and total length measurement. Obtain the preset characteristic parameter tolerance range value, wherein the preset characteristic parameter tolerance range value includes the preset outer diameter tolerance range value, the preset radius of curvature tolerance range value, the preset slope angle tolerance range value, and the preset total length tolerance range value; When the outer diameter measurement, the radius of curvature measurement, the slope angle measurement, and the total length measurement are all within the corresponding preset characteristic parameter tolerance range, a first judgment signal that the C-Lens to be tested is a qualified product is output. If any one of the measured outer diameter, the measured radius of curvature, the measured slope angle, and the measured total length exceeds the corresponding preset characteristic parameter tolerance range, a second judgment signal is output that the C-Lens to be tested is a defective product.

2. The C-Lens measurement method according to claim 1, characterized in that, Before placing the C-Lens to be tested on the transparent glass stage, the following steps are also included: The parameters are configured based on the C-Lens under test. The parameter configuration includes at least the position and size of the image detection area, the edge detection threshold, the backlight brightness, the camera exposure time, the camera height, and the preset feature parameter tolerance range value.

3. The C-Lens measurement method according to claim 1, characterized in that, Before the C-Lens to be tested is placed on the transparent glass stage, the following steps are also included: Acquire images of standard blocks with known physical dimensions, and calculate the current pixel equivalent based on the images of the standard blocks; If the deviation between the current pixel equivalent and the preset standard pixel equivalent is within the preset deviation range, then the current pixel equivalent is determined as the conversion benchmark for converting pixel distance to physical size.

4. The C-Lens measurement method according to claim 1, characterized in that, After acquiring the contour image of the C-Lens under test, the process also includes: The contour image is then subjected to filtering and contrast enhancement processing in sequence.

5. The C-Lens measurement method according to claim 3, characterized in that, Obtain the measured values ​​of the characteristic parameters of the C-Lens to be tested, including the outer diameter measurement value, which includes: Extract the two opposite sides of the cylindrical side surface of the C-Lens to be tested, the two opposite sides including a first edge and a second edge; A first edge point set is obtained based on the first edge, and a second edge point set is obtained based on the second edge; Based on the least squares fitting method, straight lines are fitted to the first edge point set and the second edge point set respectively to obtain the first fitted straight line and the second fitted straight line; Obtain the vertical pixel distance between the first fitted line and the second fitted line, and determine the outer diameter measurement value based on the current pixel equivalent.

6. The C-Lens measurement method according to claim 5, characterized in that, Obtain the measured values ​​of the characteristic parameters of the C-Lens under test, including the radius of curvature measurement value, including: Extract the arc contour of one side of the second end of the C-Lens to be tested; Obtain the set of points on the arc edge based on the arc contour; The set of points on the edge of the arc is fitted with a circle using the least squares method to obtain a fitted circle. The curvature radius pixel value is obtained based on the fitted circle, and the curvature radius measurement value is determined based on the current pixel equivalent.

7. The C-Lens measurement method according to claim 6, characterized in that, Obtain the measured values ​​of the characteristic parameters of the C-Lens under test, including the measured values ​​of the slope angle, and the measured values ​​of the characteristic parameters are as follows: Extract the slope profile on one side of the first end of the C-Lens to be tested; The set of edge points of the inclined plane is obtained based on the inclined plane contour; The third fitted line is obtained by fitting the set of edge points of the inclined plane with a straight line using the least squares fitting method. The measured value of the slope angle is determined based on the second and third fitted lines.

8. The C-Lens measurement method according to claim 7, characterized in that, Obtain the measured values ​​of the characteristic parameters of the C-Lens under test, including the total length measurement value, which includes: The first midline is obtained based on the first fitted line and the second fitted line; A fourth fitted straight line is obtained by fitting the fitted circle and its center, which is parallel to the first midline and passes through the center of the fitted circle. The first intersection point is determined based on the fourth fitted line and the fitted circle, and the second intersection point is determined based on the third fitted line and the four fitted lines. Obtain a first perpendicular line that is perpendicular to the first median and passes through the second intersection point; The total length pixel distance is determined based on the first vertical line and the first intersection point, and the total length measurement value is determined based on the current pixel equivalent.

9. A C-Lens measurement device for performing the C-Lens measurement method according to any one of claims 1-8, characterized in that, The C-Lens measurement device includes: A transparent glass stage is used to hold the C-Lens to be tested; A backlight source is positioned below the transparent glass stage to emit parallel light; A telecentric lens is positioned above the light-transmitting glass stage, with the optical axis of the telecentric lens perpendicular to the upper surface of the light-transmitting glass stage. An industrial camera is connected to the telecentric lens, which is mounted on the industrial camera. An industrial computer is connected to the industrial camera; The parallel light is incident perpendicularly onto the telecentric lens through the transparent glass stage, and then imaged onto the industrial camera by the telecentric lens to acquire the contour image of the C-Lens under test. The industrial control computer measures the characteristic parameters of the C-Lens under test based on the contour image, compares the measured values ​​of the characteristic parameters with the preset tolerance range of the characteristic parameters, and outputs a first judgment signal or a second judgment signal; wherein, the measured values ​​of the characteristic parameters include the outer diameter measurement value, the radius of curvature measurement value, the slope angle measurement value, and the total length measurement value.

10. The C-Lens measuring device according to claim 9, characterized in that, The industrial control computer includes at least: an image processing module, a feature parameter calculation module, and a decision output module; The image processing module is used to perform subpixel edge detection based on the contour image; The parameter calculation module is used to obtain the measured values ​​of the characteristic parameters of the C-Lens under test; The determination output module is used to compare the measured value of the feature parameter with the preset feature parameter tolerance range value, and output the first determination signal or the second determination signal.