Optical device lens coupling searching method
By setting calibration points during the lens coupling process of optical devices and optimizing the search direction using pheromone concentration center of gravity, the problem of low lens coupling efficiency is solved, and more efficient lens coupling is achieved.
Patent Information
- Application Number
- CN202510961748.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-14
- Publication Date
- 2025-08-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the initial position and search direction of the optical device lens coupling process are wasted, and the lens coupling efficiency is low.
Set a calibration point in the coupling space, calculate the pheromone concentration value through linear interpolation, and use the pheromone concentration center to indicate the search direction, reduce the search range, and optimize the lens coupling process.
It significantly improves lens coupling efficiency and saves search time.
Smart Images

Figure CN120447155A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lens coupling, and in particular to a method for searching for lens coupling of an optical device. Background Art
[0002] During the optical device production process, lens coupling is required. This involves finding the optimal lens position within the coupling range that enables the optical device to achieve the target optical power. Related technologies begin each lens coupling process with a fixed initial position and search along a fixed direction. The search direction is then adjusted based on optical power feedback until the target optical power point is found.
[0003] However, since the initial position and the starting search direction are fixed, there will be a certain degree of invalid movement during the search process, which will cause a waste of search time and lead to low lens coupling efficiency. Summary of the Invention
[0004] The main purpose of the present invention is to provide a method for searching for optical device lens coupling, aiming to solve the technical problem of poor accuracy in searching for optical device lens coupling in related technologies.
[0005] To achieve the above object, the present invention provides a method for searching for lens coupling of an optical device, the method comprising the following steps:
[0006] S1, set the target optical power, start searching for the optical power of the stay point from the original initial point in the coupling space of the first optical device, until the optical power of a stay point is found to be equal to the target optical power;
[0007] S2, setting a number of calibration points in the coupling space and setting the current pheromone concentration value of the calibration points to 0;
[0008] S3, calculating the second pheromone concentration value of each calibration point by linear interpolation based on the optical power of the stop point and the current pheromone concentration value of the calibration point, and calculating the pheromone concentration center of gravity in the coupling space based on the second pheromone concentration value;
[0009] S4, taking the calibration point with the maximum second pheromone concentration value as the new initial point, searching for the target optical power point of the new optical device along the direction indicated by the pheromone concentration center of gravity. If the target optical power point is not found, searching in the opposite direction indicated by the pheromone concentration center of gravity until the target optical power point is found, thereby completing the coupling of the optical device;
[0010] S5, based on the stop point in the coupling process of the optical device, updates the stop point in S3, and based on the second pheromone concentration value of the calibration point, updates the current pheromone concentration value, and returns to execute S3 to couple the next optical device until all optical devices are coupled.
[0011] The present invention evenly arranges calibration points within the coupling space. Based on the optical power of the dwell point during the previous coupling process and the target optical power, the first pheromone concentration value at each calibration point is calculated. The second pheromone concentration value is then calculated based on the current pheromone concentration value at the calibration point and the first pheromone concentration value. This allows the distribution of pheromone concentrations within the coupling space to be determined, i.e., the probability distribution of the target optical power point within the coupling space. Based on this, the calibration point with the maximum second pheromone concentration value is used as the new initial point. The pheromone concentration center of gravity is calculated based on the second pheromone concentration value and used as the search direction. The search can be performed within a local area with a high probability of the target optical power point appearing, significantly reducing the search range, thereby saving search time and significantly improving lens coupling efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a flow chart of an embodiment of the optical device lens coupling search method of the present invention;
[0013] Figure 2 Schematic diagram of the target optical power point search process.
[0014] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0015] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0016] The inventive concept of the present application is further described below with reference to some specific embodiments and implementation methods.
[0017] The embodiment of the present invention provides a method for searching for lens coupling of an optical device, referring to Figure 1 , Figure 1 The figure is a flow chart of an embodiment of a method for searching for lens coupling of an optical device according to the present invention.
[0018] In this embodiment, the optical device lens coupling search method includes the following steps:
[0019] Step S1: setting a target optical power, searching for the optical power of a stay point from an original initial point in the coupling space of the first optical device until a stay point is found whose optical power is equal to the target optical power.
[0020] Specifically, the coupling space refers to a set spatial range of a three-dimensional space. A three-dimensional spatial coordinate system is established with the original initial point as the origin. In this three-dimensional spatial coordinate system, the range is -1mm to 1mm on the X-axis, -1mm to 1mm on the Y-axis, and -0.05mm to 0.05mm on the Z-axis. The constructed space is the coupling space.
[0021] During the lens coupling process, starting from the initial point, a search begins along any limit direction within the coupling space at a preset step. Each preset step is considered a dwell point, and each dwell point also represents a lens position, so the optical power of the current dwell point can be collected. During the search process, if the optical power of a dwell point is equal to the set target optical power, the dwell point is selected as the lens position, also known as the target optical power point.
[0022] During the search process, if the optical power of a dwell point is detected to be decreasing along a coordinate axis within the coupling space, the movement direction is adjusted, moving in the space opposite to the coordinate axis corresponding to the current movement direction until a dwell point corresponding to the target optical power is found. Therefore, during the search for a dwell point corresponding to the target optical power, several dwell points and their corresponding optical powers can be obtained for use in subsequent optimization searches.
[0023] For example, if the current movement direction is from the original starting point (0,0,0) toward the first limit of the three-dimensional coordinate system, and the optical power at the dwell point (0.02,0.07,0.09) decreases according to the preset step, the movement direction is adjusted, that is, moving in the direction opposite to the Z axis to continue the search. It should be noted that the direction opposite to the Z axis refers to any direction in which the Z coordinate of the dwell point decreases. On the other hand, since the Z-axis movement distance is the largest in the search direction, movement in the direction opposite to the Z axis is possible.
[0024] Alternatively, for example, if the optical power of the stop point is found to be decreasing when moving only along the positive direction of the X-axis, the system is adjusted to randomly move in the plane directions of the negative X-axis and the positive Y-axis. During the movement process, if the optical power of the stop point is found to be increasing, the system continues to move and is adjusted to randomly move in the spatial directions of the negative X-axis, the positive Y-axis, and the positive Z-axis. During the movement process, if the optical power of the stop point is still increasing, the system continues to move until the target optical power point is found. If the optical power of the stop point is found to be decreasing, the system is adjusted to randomly move in the spatial directions of the negative X-axis, the positive Y-axis, and the negative Z-axis until the target optical power point is found.
[0025] Step S2: Set a number of calibration points in the coupling space, and set the current pheromone concentration value of the calibration point to 0.
[0026] The step S2 specifically includes the following steps:
[0027] Starting from the origin in the coupling space, 20 scales can be taken on the X-axis and 20 scales can be taken on the Y-axis at intervals of 0.1 mm; 10 scales can be taken on the Z-axis at intervals of 0.01 mm; ultimately 4000 (that is, 20*20*10) calibration points are obtained.
[0028] Step S3: Based on the optical power of the stop point and the current pheromone concentration value of the calibration point, the second pheromone concentration value of each calibration point is calculated by linear interpolation, and the pheromone concentration center of gravity in the coupling space is calculated based on the second pheromone concentration value.
[0029] The step S3 specifically includes the following steps:
[0030] Step S31: Calculate the pheromone concentration value of each stay point based on the light power of the stay point:
[0031] ;
[0032] Among them, t xyz represents the pheromone concentration value of the stop point with coordinates (x, y, z); P max Indicates the target optical power; P xyz Indicates the optical power at the stop point with coordinates (x, y, z).
[0033] Step S32: performing linear interpolation calculation based on the pheromone concentration values at the stop points to obtain the first pheromone concentration value at each calibration point.
[0034] The step S32 specifically includes the following steps:
[0035] Step S32-1: Using the scale on the Z axis as a dividing point, a plurality of Z axis planes are divided from the coupling space. For example, a Z axis plane can be divided every 0.01 mm.
[0036] Step S32-2: For each Z-axis plane, traverse all the stay points within the spatial range that are a first preset distance (less than 0.01 mm) from the Z-axis plane, and select the two stay points that are closest to the Z-axis plane and closest to each other in the spatial range as the first reference points, namely the first reference point 1 and the first reference point 2; and the first reference point 1 is closer to the Z-axis plane than the first reference point 2.
[0037] Step S32-3: Based on the pheromone concentration value of the first reference point and the z-coordinate of the first reference point, calculate the pheromone concentration value of the projection point of the first reference point 1 on the Z-axis plane using the point interpolation formula:
[0038] ;
[0039] Where T represents the pheromone concentration value at the projection point; T11 represents the pheromone concentration value of the first reference point 1; T 12 represents the pheromone concentration value of the first reference point 2; z represents the z coordinate of the projection point; z1 represents the z coordinate of the first reference point 1; z2 represents the z coordinate of the first reference point 2.
[0040] Step S32-4: Eliminate the two dwelling points corresponding to the first reference point, and return to step S32-2 until all dwelling points within the first preset distance are used as first reference points for calculation, thereby obtaining pheromone concentration values for multiple projection points. For example, if there are N dwelling points within the first preset distance, the pheromone concentration values for N / 2 projection points can be obtained.
[0041] Step S32-5: For each Z-axis plane, based on the pheromone concentration value of the projection point, calculate the first pheromone concentration value of all calibration points on the Z-axis plane by linear interpolation.
[0042] Specifically, for each calibration point on the same Z-axis plane, the three projection points closest to the calibration point within a second preset distance (less than 0.1 mm) from the calibration point on the Z-axis plane are selected as the second reference points, namely, second reference point 1, second reference point 2 and second reference point 3.
[0043] Based on the coordinates of the second reference point and the pheromone concentration value of the second reference point, calculate the coordinates of the point (x0, y0) where the pheromone concentration is zero and the concentration-distance ratio coefficient w:
[0044] ;
[0045] Where w represents the concentration-distance proportional coefficient; (x0, y0) represents the coordinates of the point where the pheromone concentration is zero; (x1, y1) represents the coordinates of the second reference point 1; (x2, y2) represents the coordinates of the second reference point 2; (x3, y3) represents the coordinates of the second reference point 3; T 21 represents the pheromone concentration value of the second reference point 1; T 22 represents the pheromone concentration value of the second reference point 2; T 23 represents the pheromone concentration value of the second reference point 3; wT 21 Indicates that the pheromone concentration in the plane is T 21 The distance from the point to the point (x0, y0); wT 22 Indicates that the pheromone concentration in the plane is T 22 The distance from the point to the point (x0, y0); wT 23 Indicates that the pheromone concentration in the plane is T 23 The distance from point to point (x0,y0).
[0046] Based on the coordinates (x0, y0) of the point where the pheromone concentration is zero, the concentration-distance proportional coefficient w, and the coordinates of the calibration point, the first pheromone concentration value of the calibration point is calculated:
[0047] ;
[0048] Among them, (x a ,y a ) represents the coordinates of the calibration point; T a Indicates the first pheromone concentration value at the calibration point; wT a Indicates that the pheromone concentration in the plane is T a The distance from point to point (x0,y0).
[0049] For each Z-axis plane, linear interpolation calculation is performed based on the calibration points that have been calculated in the plane to obtain the first pheromone concentration values of all calibration points.
[0050] Step S32-6: If there is an uninterpolated Z-axis plane, the first pheromone concentration value of the calibrated point in the uninterpolated Z-axis plane is calculated based on the first pheromone concentration value of the interpolated Z-axis plane on both sides of the uninterpolated Z-axis plane by using the point interpolation formula, until the first pheromone concentration value of the calibrated point in all Z-axis planes is obtained.
[0051] For example, if there is an uninterpolated Z-axis plane A, and there are interpolated Z-axis planes B1 and B2 on both sides of Z-axis plane A, respectively. Since the calibration points on Z-axis plane B1 and Z-axis plane B2 have a one-to-one correspondence in their projection points on Z-axis plane A, the projection points are also calibration points on Z-axis plane A. Based on the first pheromone concentration values of the corresponding two calibration points and the point interpolation formula, the first pheromone concentration values of all calibration points on Z-axis plane A can be calculated.
[0052] In the entire step S32, linear interpolation is first performed on the projection point of the stop point on the Z-axis plane according to the pheromone concentration value of the stop point in the coupling process, and then linear interpolation is performed on the calibration point on the Z-axis plane according to the pheromone concentration value of the projection point. This can make full use of the pheromone concentration value of each stop point, and thus obtain a pheromone concentration distribution that is closer to the actual situation, laying the foundation for the subsequent accurate calculation of the new initial point and the center of gravity of the pheromone concentration.
[0053] Step S33: Based on the first pheromone concentration value of the calibration point and its current pheromone concentration value, calculate the second pheromone concentration value of the calibration point:
[0054] ;
[0055] in, Indicates the second pheromone concentration value at the calibration point; Indicates the current pheromone concentration value of the calibration point; Indicates the first pheromone concentration value at the calibration point; Indicates the evaporation rate of pheromone concentration, usually a constant between 0 and 1.
[0056] Step S34: Based on the second pheromone concentration values and coordinates of all the calibration points in the coupling space, the pheromone concentration center of gravity of the coupling space is calculated using the pheromone concentration center of gravity formula:
[0057] ;
[0058] in, represents the center of gravity of pheromone concentration; represents the second pheromone concentration value of the i-th calibration point; (x i ,y i ,z i ) represents the coordinates of the i-th calibration point.
[0059] Step S4: Take the calibration point with the maximum second pheromone concentration value as the new initial point, and search for the target optical power point of the new optical device along the direction indicated by the pheromone concentration center of gravity. If it is not found, search in the opposite direction indicated by the pheromone concentration center of gravity until the target optical power point is found, completing the coupling of the optical device.
[0060] See also Figure 2 If the calculated pheromone concentration center of gravity is in the positive X-axis, negative Y-axis, and positive Z-axis directions relative to the new initial point, then during the coupling process, starting from the initial point, the search is conducted along the direction indicated by the pheromone concentration center of gravity. Specifically, the search is prioritized along the areas in the positive X-axis, negative Y-axis, and positive Z-axis directions, gradually approaching the pheromone concentration center of gravity at a preset step distance to find the target optical power point. If the target optical power point is not found, the search is conducted in the opposite direction indicated by the pheromone concentration center of gravity. Specifically, the search is conducted along the areas in the negative X-axis, positive Y-axis, and negative Z-axis directions to find the target optical power point. This avoids searching the entire coupling space, saving search time.
[0061] Step S5: Update the stay point in step S3 based on the stay point in the coupling process of the optical device, and update the current pheromone concentration value of the calibration point based on the second pheromone concentration value of the calibration point, return to step S3, and couple the next optical device until all optical devices are coupled.
[0062] Taking the coupling of a batch of M optical devices as an example, step S1 is first executed for the first optical device, that is, searching for the target optical power point using a traditional search method, and obtaining the optical powers of multiple stay points in the coupling space during the search process.
[0063] Execute step S2 to set a number of calibration points in the coupling space, and set the current pheromone concentration value of the calibration points to 0.
[0064] Execute step S3, calculate the second pheromone concentration value of the calibration point according to the optical power of the stay point, take the calibration point with the largest second pheromone concentration value as the new initial point, and calculate the pheromone concentration center of the coupling space according to the second pheromone concentration values of all calibration points in the coupling space.
[0065] Step S4 is performed for the second optical device, that is, starting from a new initial point, searching for the target optical power point of the second optical device along the direction indicated by the pheromone concentration center of gravity.
[0066] Execute step S5 to update the stay point in step S3 according to the stay point in the coupling process of the second optical device, and update the current pheromone concentration value of the calibration point according to the second pheromone concentration value of the calibration point in step S4.
[0067] For the third optical device, step S3 and step S4 are executed in sequence. After the coupling of the third optical device is completed, step S5 is executed, and so on until all M optical devices are coupled.
[0068] In this embodiment, calibration points are evenly set within the coupling space. The first pheromone concentration value at each calibration point is calculated based on the optical power of the dwell point during the previous coupling process and the target optical power. The second pheromone concentration value is then calculated based on the current pheromone concentration value at the calibration point and the first pheromone concentration value. This allows the distribution of pheromone concentrations within the coupling space to be determined, i.e., the probability distribution of the target optical power point within the coupling space. Based on this, the calibration point with the maximum second pheromone concentration value is used as the new starting point. The pheromone concentration center is calculated based on this second pheromone concentration value and used as the search direction. The search can be performed within a local area with a high probability of the target optical power point appearing, significantly reducing the search range, thereby saving search time and significantly improving lens coupling efficiency.
[0069] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0070] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for searching for lens coupling of an optical device, characterized in that: The method comprises the following steps: S1, set the target optical power, start searching for the optical power of the stay point from the original initial point in the coupling space of the first optical device, until the optical power of a stay point is found to be equal to the target optical power; S2, setting a number of calibration points in the coupling space and setting the current pheromone concentration value of the calibration points to 0; S3, calculating the second pheromone concentration value of each calibration point by linear interpolation based on the optical power of the stop point and the current pheromone concentration value of the calibration point, and calculating the pheromone concentration center of gravity in the coupling space based on the second pheromone concentration value; S4, taking the calibration point with the maximum second pheromone concentration value as the new initial point, searching for the target optical power point of the new optical device along the direction indicated by the pheromone concentration center of gravity. If the target optical power point is not found, searching in the opposite direction indicated by the pheromone concentration center of gravity until the target optical power point is found, thereby completing the coupling of the optical device; S5, based on the stop point in the coupling process of the optical device, updates the stop point in S3, and based on the second pheromone concentration value of the calibration point, updates the current pheromone concentration value, and returns to execute S3 to couple the next optical device until all optical devices are coupled.
2. The optical device lens coupling search method according to claim 1, wherein: The S2 specifically includes: Starting from the origin in the coupling space, 20 scales are taken on the X-axis and 20 scales are taken on the Y-axis at intervals of 0.1 mm; 10 scales are taken on the Z-axis at intervals of 0.01 mm; and finally 4000 calibration points are obtained.
3. The optical device lens coupling search method according to claim 1, wherein: The S3 specifically includes: S31, calculating the pheromone concentration value of each stop point based on the light power of the stop point: ; Among them, t xyz represents the pheromone concentration value of the stop point with coordinates (x, y, z); P max Indicates the target optical power; P xyz Represents the optical power of the stop point with coordinates (x, y, z); S32, performing linear interpolation calculation based on the pheromone concentration values at the stop points to obtain a first pheromone concentration value at each calibration point; S33, based on the first pheromone concentration value of the calibration point and its current pheromone concentration value, calculate the second pheromone concentration value of the calibration point: ; in, Indicates the second pheromone concentration value at the calibration point; Indicates the current pheromone concentration value of the calibration point; Indicates the first pheromone concentration value at the calibration point; The evaporation rate represents the pheromone concentration; S34: Based on the second pheromone concentration values and coordinates of all calibration points in the coupling space, the pheromone concentration center of gravity of the coupling space is calculated using the pheromone concentration center of gravity formula: ; in, represents the center of gravity of pheromone concentration; represents the second pheromone concentration value of the i-th calibration point; (x i ,y i ,z i ) represents the coordinates of the i-th calibration point.
4. The optical device lens coupling search method according to claim 3, wherein: The S32 specifically includes: S32-1, using the scale on the Z axis as a dividing point, dividing multiple Z axis planes from the coupling space; S32-2: For each Z-axis plane, traverse all the stop points within a spatial range that are a first preset distance from the Z-axis plane, and select the two stop points within the spatial range that are closest to the Z-axis plane and are the closest to each other as first reference points, namely, first reference point 1 and first reference point 2; and first reference point 1 is closer to the Z-axis plane than first reference point 2. S32-3, based on the pheromone concentration value of the first reference point and the z-coordinate of the first reference point, calculate the pheromone concentration value of the projection point of the first reference point 1 on the Z-axis plane using the point interpolation formula: ; Where T represents the pheromone concentration value at the projection point; T 11 represents the pheromone concentration value of the first reference point 1; T 12 represents the pheromone concentration value of the first reference point 2; z represents the z coordinate of the projection point; z1 represents the z coordinate of the first reference point 1; z2 represents the z coordinate of the first reference point 2; S32-4, eliminating the two stay points corresponding to the first reference point, and returning to S32-2, until all stay points within the spatial range of the first preset distance are used as the first reference points for calculation, thereby obtaining pheromone concentration values of multiple projection points; S32-5, for each Z-axis plane, based on the pheromone concentration value of the projection point, calculate the first pheromone concentration value of all calibration points on the Z-axis plane by linear interpolation; S32-6, if there is an uninterpolated Z-axis plane, then based on the first pheromone concentration values of the calibrated points in the interpolated Z-axis planes on both sides of the uninterpolated Z-axis plane, the first pheromone concentration values of the calibrated points in the uninterpolated Z-axis plane are calculated using the point interpolation formula until the first pheromone concentration values of the calibrated points in all Z-axis planes are obtained.