Fiber array coordinate calculation method, computer device and computer readable storage medium
By introducing correction parameters and optical power scanning into the fiber array, combining evaluation functions and approximate Heiser matrix, the problem of large errors and time-consuming calculation of fiber array coordinates is solved, and efficient and accurate fiber channel coordinate correction is achieved, and the adjustment accuracy of optical switches is improved.
Patent Information
- Application Number
- CN202211584447.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-12-09
AI Technical Summary
The prior art has problems of large errors in coordinate calculations and long time in optical fiber arrays. Especially when there are many fiber channels in optical switches, the existing methods cannot effectively solve the inaccurate coordinate calculations caused by the center translation, plane tilt and plane rotation of the optical fiber array.
By obtaining the image recognition coordinates of the optical fiber array, combining optical power scanning to obtain the reference actual coordinates, using correction parameters to correct the initial actual coordinates, and using evaluation functions and approximate Heiser matrix to calculate the final actual coordinates, reducing the number of scans and improving the accuracy of coordinate calculation.
The accuracy of fiber array coordinate calculation is improved, the calculation time and cost are reduced, and the adjustment accuracy of optical switches is improved.
Smart Images

Figure CN115878940B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical fiber array coordinate calculation, and in particular to a method for correcting the coordinates of each optical fiber channel in an optical fiber array, and also to a computer device and a computer-readable storage medium for implementing the method. Background Art
[0002] Optical switch is a common optical device, which usually integrates a large number of optical fibers, such as Figure 1 As shown, a plurality of optical fibers are provided in the optical switch 10, and each optical fiber can be a fiber channel, such as fiber channels 11 and 12. Figure 2 As shown, a collimating lens 22 is usually provided in the optical switch. A fiber head 21 is provided at the first end of the collimating lens 22. Multiple optical fibers are arranged in the fiber head 21. A reflector 23 is provided at the other end of the collimating lens 22. By adjusting the angle of the reflector 23, the angle of the outgoing light beam can be changed, thereby changing the fiber channel through which the light beam is emitted.
[0003] Specifically, when the light beam is incident from the optical fiber channel 15, if the reflector 23 is in the initial state, for example, the mirror surface of the reflector 23 is parallel to the end face of the collimating lens 22, the light beam emitted from the optical fiber channel 15 will be reflected on the surface of the reflector 23, and the reflected light beam will be emitted from the optical fiber channel 16. If it is necessary to switch the initial optical fiber channel of the light beam, the angle of the reflector 23 needs to be adjusted, for example, to Figure 2 At the position indicated by the dashed line, a certain angle is formed between the mirror surface of reflector 23 and the end face of collimating lens 22. At this point, the incident light beam from fiber channel 15, after passing through reflector 23, will be reflected along a different optical path than that in the initial state of reflector 23, and will now be emitted from fiber channel 17. Therefore, by adjusting the tilt angle of reflector 23, the fiber channel of the outgoing light beam can be changed, thereby achieving the function of optical path selection.
[0004] Typically, the reflector 23 is driven by a micro-electromechanical system (MEMS). By applying different voltages to the MEMS, the reflector 23 is rotated in the X-axis and Y-axis directions, thereby adjusting the tilt angle of the reflector 23. The voltage applied to the MEMS is usually represented by a DAC value after analog-to-digital conversion. Since the reflector needs to rotate in both the X-axis and Y-axis directions, the voltage applied to the MEMS includes a voltage value that drives the reflector 23 to rotate in the X-axis direction and a voltage value that drives the reflector 23 to rotate in the Y-axis direction. These two voltage values are also called the actual coordinates of the fiber channel. When the reflector 23 is rotated to different angles, the light beam will be emitted from different fiber channels.
[0005] Since the fiber array has a large number of fiber channels, in order to accurately control the rotation angle of the reflector 23, it is necessary to accurately calculate the position of each fiber channel, such as recording the position of the center point of the fiber channel. When adjusting the rotation angle of the reflector 23, it is necessary to apply a suitable driving voltage so that the light beam reflected by the reflector 23 is incident on the corresponding fiber channel. The existing method is to obtain an image of the fiber array and calculate the specific position of each fiber channel based on the image of the fiber array. For example, a coordinate system is established in the fiber array image, and the position of each fiber channel in the image is identified based on the image. The position in the image is usually calculated in pixels. The position is then converted into an actual size to obtain the image recognition coordinates of the center point of each fiber channel in the fiber array.
[0006] Since the reflector 23 needs to be controlled when the optical switch is controlled, in order to facilitate the control of the rotation angle of the reflector 23, the coordinates of each optical fiber channel need to be converted into a DAC value represented by the driving voltage applied to the micro-electromechanical system, that is, the image recognition coordinates of each optical fiber channel are converted into DAC coordinates, which are also called actual coordinates. Usually, after obtaining the image recognition coordinates of the center point of each optical fiber channel by performing image recognition on the optical fiber array, the actual coordinates corresponding to each optical fiber channel can be calculated. However, optical switch products have very high requirements for coordinate positioning accuracy, and there are non-ideal situations in the actual production process, such as center translation, plane tilt, plane rotation, etc. of the optical switch optical fiber array. The actual coordinates calculated by the existing method have certain errors.
[0007] To this end, another existing method for obtaining actual coordinates is to scan the fiber array. Specifically, after inputting an optical signal from a specific fiber channel, the optical power output from each fiber channel is monitored. Theoretically, for a single-input optical switch, the optical fiber channel corresponding to the light beam reflected by reflector 23 ideally has only one actual coordinate. When reflector 23 rotates, only that specific fiber channel should monitor an optical power that meets the requirements, while other fiber channels should not monitor higher optical powers. However, for a multi-input optical switch, multiple fiber channels may monitor optical powers that meet the requirements. Therefore, by establishing a corresponding relationship between the DAC value of the drive voltage of reflector 23 and the fiber channels that monitor optical powers that meet the requirements, the actual coordinates of each fiber channel can be obtained.
[0008] However, when the fiber array has a large number of fiber channels, it takes a lot of time to scan the fiber array, resulting in excessively long time and high cost for obtaining the actual coordinates of the fiber array.
[0009] In addition, if a formula is used to convert image recognition coordinates into actual coordinates, the calculated actual coordinates will have certain errors due to the center translation, plane tilt, plane rotation, etc. of the optical fiber array of the optical switch, which will affect the use of the calculated actual coordinates. Summary of the Invention
[0010] The first object of the present invention is to provide a method for calculating the coordinates of an optical fiber array, which has the advantages of accurate actual coordinates and short time consumption.
[0011] The second object of the present invention is to provide a computer device for implementing the above-mentioned method for calculating the coordinates of the optical fiber array of the operating device.
[0012] A third object of the present invention is to provide a computer-readable storage medium for implementing the above-mentioned method for calculating the coordinates of the optical fiber array of the operating device.
[0013] To achieve the main purpose of the present invention, the present invention provides a method for calculating optical fiber array coordinates, comprising acquiring an optical fiber array image and determining image recognition coordinates of the center points of each optical fiber channel in the optical fiber array; and acquiring reference actual coordinates of at least two reference channels in the optical fiber array, the reference actual coordinates being obtained by performing optical power scanning on the reference channels within a portion of the optical fiber array; calculating correction parameters using the reference actual coordinates and the image recognition coordinates corresponding to the reference channels: calculating initial corrected coordinates of the reference channels using initial correction parameters, calculating initial corrected actual coordinates using the initial corrected coordinates, calculating an evaluation function and a gradient of the evaluation function at the center point of the reference channel using the initial corrected actual coordinates and the reference actual coordinates, calculating an approximate Hessian matrix using the gradient, calculating a next correction parameter using the approximate Hessian matrix and an initial damping coefficient, and correcting the initial corrected coordinates using the next correction parameter until the damping coefficient is greater than a preset damping coefficient threshold to obtain a final correction parameter; and correcting the initial actual coordinates of the center points of each optical fiber channel using the final correction parameter to obtain the final actual coordinates of each optical fiber channel.
[0014] As can be seen from the above scheme, when using the formula to convert image recognition coordinates into actual coordinates, the initial calculated actual coordinates are corrected by introducing correction parameters to obtain the corrected final actual coordinates. During the correction calculation process, the evaluation function is used to judge whether the current set of correction parameters is appropriate. If the current set of correction parameters is not appropriate, the correction parameters are continuously updated to obtain the most appropriate set of correction parameters, thereby obtaining accurate correction parameters to meet the requirements of actual coordinate calculation.
[0015] In a preferred solution, the correction parameters include: origin coordinate offset correction parameters, scaling correction parameters, and rotation correction parameters.
[0016] It can be seen that when designing the correction parameters, the offset, scaling, and rotation of the optical fiber array plane are taken into consideration, and the setting of the correction parameters is more reasonable.
[0017] A further solution is that the origin coordinate offset correction parameter includes: a horizontal coordinate offset correction parameter and a vertical coordinate offset correction parameter; the scaling correction parameter includes: a horizontal coordinate scaling correction parameter and a vertical coordinate correction parameter.
[0018] It can be seen that the offset correction parameters and the scaling correction parameters both include parameters of the horizontal coordinate and the vertical coordinate, so that the correction parameters can reflect the correction of the horizontal coordinate and the vertical coordinate, and the final actual coordinates after correction are more accurate.
[0019] A further solution is that the gradient of the evaluation function at the center point of the reference channel is a matrix obtained by derivation of each correction parameter of the evaluation function at the center point of the reference channel.
[0020] A preferred solution is that if the evaluation function calculated by the current set of correction parameters is greater than or equal to the evaluation function calculated by the previous set of correction parameters, the current set of correction parameters will replace the previous set of correction parameters and the damping coefficient will be increased.
[0021] An optional solution is to reduce the damping coefficient if the evaluation function calculated by the current set of correction parameters is smaller than the evaluation function calculated by the previous set of correction parameters.
[0022] In this way, by continuously adjusting the damping coefficient, changing the specific values of each correction parameter and changing the value of the evaluation function, the damping coefficient is used as one of the conditions for stopping the iterative calculation, thereby setting a suitable iteration termination condition.
[0023] A further solution is that obtaining the reference actual coordinates of at least two reference channels in the optical fiber array includes: the plurality of reference channels are located in at least two or more quadrants.
[0024] In this way, multiple different reference channels are obtained in multiple different quadrants as the basis for correction calculation, so that the obtained correction parameters can meet the actual coordinate correction calculation requirements of the optical fiber channels in multiple different quadrants, making the final actual coordinates after correction more accurate.
[0025] In a further embodiment, the actual coordinates are represented by a voltage applied to a drive system of the mirror.
[0026] To achieve the second objective, the present invention provides a computer device comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, each step of the optical fiber array coordinate calculation method is implemented.
[0027] To achieve the third objective, the present invention provides a computer-readable storage medium storing a computer program, which implements the steps of the above-mentioned method for calculating the optical fiber array coordinates when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a schematic diagram of the optical fiber array.
[0029] Figure 2 Schematic diagram of the optical fiber array and reflector.
[0030] Figure 3 It is a flow chart of an embodiment of the optical fiber array coordinate calculation method of the present invention.
[0031] Figure 4 It is a schematic diagram of the image recognition coordinates and initial actual coordinates of each optical fiber channel of the optical fiber array.
[0032] Figure 5 This is a schematic diagram of the image recognition coordinates and the final actual coordinates of each fiber channel of the modified fiber array.
[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0034] The fiber array coordinate calculation method of the present invention is used to calculate the actual coordinates of each fiber channel in a fiber array. For example, the image recognition coordinates of each fiber channel are first obtained by a computer, and the actual coordinates of the fiber channel are calculated using the computer. Preferably, the computer is provided with a processor and a memory, and the memory stores a computer program, which implements the fiber array coordinate calculation method.
[0035] Fiber Array Coordinate Calculation Method Example:
[0036] When calculating the coordinates of each fiber channel in a fiber array, it is first necessary to capture an image of the fiber array and identify the image to obtain the image-recognized coordinates of the center point of each fiber channel. Then, a formula is used to calculate the preliminary actual coordinates of the center point of each fiber channel. However, due to non-ideal conditions in the production process, these preliminary actual coordinates may deviate. In this embodiment, a correction algorithm is used to correct these preliminary actual coordinates to obtain the final actual coordinates. The final actual coordinates obtained are more consistent with the actual coordinates obtained by scanning than the preliminary actual coordinates. Therefore, using the corrected final actual coordinates to adjust the reflector allows for more accurate adjustment of the optical path and more precise adjustment of the optical switch.
[0037] See also Figure 3This embodiment first performs step S1 to perform image recognition on the image of the optical fiber array. The image recognition coordinates are scaled to the actual size of the optical fiber array end face, and the units of the image recognition coordinates are converted from pixels to length units, such as microns. Thus, the image recognition coordinates are represented by length.
[0038] Typically, the following formula can be used to convert image recognition coordinates into actual coordinates:
[0039]
[0040] Among them, x DAC 、y DAC They are the horizontal and vertical coordinates of the actual coordinates, DAC max is the maximum value of the DAC coordinate, V max is the maximum voltage that can be applied by the MEMS, L f is the focal length of the collimating lens, f θ→V is the coefficient of the mirror voltage and angle. This coefficient is related to the model of the mirror chip and can be determined based on the mirror chip. x and y are the coordinates obtained through image recognition, that is, the image recognition coordinates. x0 and y0 are the horizontal and vertical coordinates of the actual coordinates corresponding to the DAC coordinate origin. Among them, the DAC coordinates are also actual coordinates, that is, coordinates represented by the voltage applied to the drive system (MEMS) of the reflector. Therefore, the horizontal and vertical coordinates of the DAC coordinates are both voltage values, for example, the voltage is represented by a 16-bit binary number.
[0041] However, due to non-ideal conditions in the production process, the actual coordinates calculated by formula 1 often have deviations, such as Figure 4 As shown in the figure, the circles represent the image recognition coordinates, while the triangles represent the real coordinates obtained by scanning. Converting the image recognition coordinates into real coordinates according to formula 1 only changes the representation of the real coordinates, but does not change the position of the real coordinates in the coordinate system. Figure 4 It can be seen that there is a certain deviation between the image recognition coordinates and the actual coordinates obtained by scanning. For some fiber channels, the deviation is too large, resulting in the reflected light beam being unable to be emitted from the set fiber channel, affecting the operation of the optical switch.
[0042] In order to solve this problem, it is necessary to correct the actual coordinates calculated according to Formula 1. Therefore, the actual coordinates calculated according to Formula 1 are preliminary actual coordinates, and the actual coordinates obtained after correction are final actual coordinates. Specifically, in this embodiment, a portion of the area of the optical fiber array is first scanned, for example, multiple optical fiber channels are selected as reference optical fiber channels, and the reference actual coordinates of multiple reference optical fiber channels are obtained by scanning. These reference actual coordinates are used as the basis for the correction calculation. Preferably, the number of reference channels is two or more. The more reference channels there are, the more accurate the correction parameters obtained by the correction calculation. In addition, multiple reference channels need to be located in multiple different quadrants. Specifically, the geometric center of the image of the optical fiber array is used as the origin of the coordinate system. According to the coordinate system, the image of the optical fiber array can be divided into four quadrants. When selecting a reference channel, multiple reference channels are obtained from more than two quadrants. Most preferably, at least one reference channel is obtained in each of the four quadrants.
[0043] This embodiment uses the following steps to correct the preliminary actual coordinates. First, introduce the following correction formula:
[0044]
[0045] Wherein, x and y are coordinates obtained by image recognition, that is, image recognition coordinates, and x' and y' are intermediate variables of calculation, which can be understood as the corrected image recognition coordinates. This embodiment uses multiple correction parameters, including origin coordinate offset correction parameters, scaling correction parameters, and rotation correction parameters. Among them, the origin coordinate offset correction parameters include the horizontal coordinate origin coordinate offset correction parameter x0' and the vertical coordinate origin coordinate offset correction parameter y0', and the scaling correction parameters include the horizontal coordinate scaling correction parameter A x And the vertical axis scaling correction parameter A y , θ in Equation 2 is the rotation correction parameter. It should be noted that Equation 2 selects the coordinates of the reference channel.
[0046] During the initialization phase, initial values for the correction parameters are set, i.e., step S2 is executed to obtain the initial correction parameters and the initial damping coefficient. After obtaining the initial correction parameters, step S3 is executed to determine whether the damping coefficient is greater than a preset damping coefficient threshold. The damping coefficient threshold is a pre-set reference value. If the judgment result in step S3 is yes, indicating that the correction coefficient meets the preset requirements, step S11 is executed. Preferably, the initially set damping coefficient is no greater than the damping coefficient threshold.
[0047] If the judgment result of step S3 is no, then step S4 is executed to calculate the evaluation function and the derivative of the evaluation function. The derivative of the evaluation function is the gradient of the evaluation function at the center point of the reference channel. Specifically, the evaluation function is as follows:
[0048]
[0049] Among them, f(x',y') is the evaluation function, x S 、y S is the actual coordinate obtained by scanning the reference channel, that is, the reference coordinate of the reference channel, represented by the drive voltage of the reflector. n is the number of the reference channel. If 10 reference channels are selected, the value of n can be 1 to 10. As can be seen from Equation 3, the evaluation function is essentially the sum of the squares of the differences between the image recognition coordinates of each reference channel and the actual reference coordinates obtained by scanning.
[0050] Step S4 also requires calculating the derivative of the evaluation function, for example, using the following formula:
[0051]
[0052] The gradient of the evaluation function is the matrix of the derivative of each variable at the point pairs corresponding to the current set of variables.
[0053] Next, step S5 is executed to calculate the approximate Hessian matrix using the derivative of the evaluation function, for example, using the following formula:
[0054] H=▽f(x',y')▽f(x',y') (Formula 5)
[0055] After calculating the approximate Hessian matrix, step S6 is executed to calculate the next set of correction parameters using the following formula.
[0056]
[0057] The next set of variable values can be calculated from the approximate Hessian matrix. In Equation 6, λ is the damping coefficient, I is the identity matrix, the -1th power of the matrix is the matrix inversion matrix, and ΔA x , ΔA y , Δx0', Δy0', and Δθ are the differences between the current set of correction parameters and the next set. By adding the corresponding differences to the current set of correction parameters, we can calculate the parameters of the next set of correction parameters. As Equation 6 shows, the damping coefficient λ will affect the results of the next set of correction parameters and is also a major factor in the termination of the correction algorithm iteration.
[0058] After calculating the next set of correction parameters, substitute the next set of correction parameters into Formula 2, and then use the new correction parameters to calculate the evaluation function according to Formula 3, and execute step S7 to determine whether the value of the new evaluation function is less than the value of the evaluation function calculated under the previous set of correction parameters. If the judgment result is yes, execute step S8 to replace the previous set of correction parameters with the new correction parameters, and execute step S9 to reduce the damping coefficient, for example, divide the damping coefficient by 10, that is, the new damping coefficient is 1 / 10 of the original damping coefficient, and return to execute step S3 to determine whether the damping coefficient is greater than the damping coefficient threshold.
[0059] If the result of step S7 is negative, step S10 is executed to increase the damping coefficient, for example, to a new damping coefficient that is 10 times the original damping coefficient, and the process returns to step S3 to determine whether the damping coefficient is greater than the damping coefficient threshold. It should be noted that if the result of step S7 is negative, the calculated new correction parameter does not need to be replaced. Instead, the damping coefficient is directly increased and the process returns to step S3. It is understood that if the initially set damping coefficient is very small, the damping coefficient needs to be increased. In this case, returning to step S3 does not change the initially set correction parameter.
[0060] It can be seen that when the damping coefficient is large, the correction algorithm is closer to the orthogonal descent method, and when the damping coefficient is small, the correction algorithm is closer to the Gauss-Newton method.
[0061] If the judgment result of step S3 is yes, step S11 is executed, and the current correction parameters are used as the final correction parameters. Step S12 is then executed to calculate the final actual coordinates of each fiber channel based on the correction parameters. Specifically, the corrected image recognition coordinates are calculated using formula 2 based on the final correction parameters. The coordinates obtained by formula 2 are then substituted into formula 1 to calculate the final actual coordinates. The x' and y' in formula 2 replace the x-x0 and y-y0 in formula 1, respectively. That is, the x' in formula 2 replaces the x-x0 in formula 1, and the y' in formula 2 replaces the y-y0 in formula 1, thereby calculating the final actual coordinates of the fiber channel.
[0062] After applying the above method to correct the actual coordinates, Figure 5 As shown, the corrected actual coordinates substantially overlap with the true coordinates obtained by scanning, and the corrected coordinates are substantially within the box. The box represents the allowable error for the actual coordinates calculated by the fiber channel. That is, if the actual coordinates are within the box, they are acceptable. The method of this embodiment can effectively adjust the coordinates of the fiber channel.
[0063] In addition, since this embodiment does not need to scan all fiber channels, it only needs to scan a part of the fiber channels and use the formula to calculate the actual coordinates, which can greatly save the time of calculating the actual coordinates of each fiber channel and improve the efficiency of obtaining the actual coordinates of each fiber channel.
[0064] Computer device embodiment:
[0065] The computer device of this embodiment can be a smart terminal device or a desktop computer. The computer device has a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an information processing program for implementing the above-mentioned information processing method. When the processor executes the computer program, each step of the above-mentioned optical fiber array coordinate calculation method is implemented.
[0066] For example, a computer program can be divided into one or more modules, one or more of which are stored in a memory and executed by a processor to implement the various modules of the present invention. One or more modules can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0067] It should be noted that a terminal device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. A terminal device may include, but is not limited to, a processor and memory. Those skilled in the art will appreciate that the schematic diagrams of the present invention are merely examples of terminal devices and do not limit the scope of terminal devices. Terminal devices may include more or fewer components than shown, or may combine certain components or have different components. For example, a terminal device may also include input / output devices, network access devices, buses, and the like.
[0068] The processor referred to in the present invention may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor. The processor is the control center of the terminal device and connects various parts of the entire terminal device using various interfaces and lines.
[0069] The memory can be used to store computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created based on the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory can include high-speed random access memory and non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0070] Computer readable storage medium:
[0071] If a computer program stored in a computer device is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement each step of the above-mentioned fiber array coordinate calculation method.
[0072] Among them, computer programs include computer program code, which can be in source code form, object code form, executable file, or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording media, USB flash drives, mobile hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in computer-readable media can be appropriately increased or decreased based on the requirements of legislation and patent practice within a jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, computer-readable media does not include electric carrier signals and telecommunications signals.
[0073] Finally, it should be emphasized that the present invention is not limited to the above-mentioned embodiments. For example, changes in the correction parameters and the initial values of the damping coefficient, and changes in the evaluation function should also be included in the scope of protection of the claims of the present invention.
Claims
1. Fiber array coordinate calculation method, including: Acquire an optical fiber array image and determine the image recognition coordinates of the center point of each optical fiber channel in the optical fiber array; Its characteristics are: Obtaining reference actual coordinates of at least two reference channels in the optical fiber array, wherein the reference actual coordinates are obtained by performing optical power scanning on the reference channels within a portion of the optical fiber array; Applying the reference actual coordinates and the image recognition coordinates corresponding to the reference channel to calculate correction parameters: applying initial correction parameters to calculate initial correction coordinates of the reference channel, applying the initial correction coordinates to calculate initial correction actual coordinates, applying the initial correction actual coordinates and the reference actual coordinates to calculate an evaluation function and a gradient of the evaluation function at the center point of the reference channel, applying the gradient to calculate an approximate Hessian matrix, applying the approximate Hessian matrix and an initial damping coefficient to calculate a next correction parameter, and using the next correction parameter to perform correction calculation on the initial correction coordinates until the damping coefficient is greater than a preset damping coefficient threshold, thereby obtaining a final correction parameter; The final correction parameters are applied to correct the initial actual coordinates of the center points of the optical fiber channels to obtain the final actual coordinates of the optical fiber channels.
2. The optical fiber array coordinate calculation method according to claim 1, wherein: The correction parameters include: origin coordinate offset correction parameters, scaling correction parameters, and rotation correction parameters.
3. The optical fiber array coordinate calculation method according to claim 2, wherein: The origin coordinate offset correction parameters include: a horizontal coordinate offset correction parameter and a vertical coordinate offset correction parameter; The scaling correction parameters include: a horizontal coordinate scaling correction parameter and a vertical coordinate correction parameter.
4. The optical fiber array coordinate calculation method according to any one of claims 1 to 3, characterized in that: The gradient of the evaluation function at the center point of the reference channel is a matrix obtained by derivation of the evaluation function at the center point of the reference channel for each correction parameter.
5. The optical fiber array coordinate calculation method according to any one of claims 1 to 3, characterized in that: If the evaluation function calculated by the current set of correction parameters is greater than or equal to the evaluation function calculated by the previous set of correction parameters, the current set of correction parameters will replace the previous set of correction parameters, and the damping coefficient will be increased.
6. The optical fiber array coordinate calculation method according to any one of claims 1 to 3, characterized in that: Also includes: If the evaluation function calculated by the current set of correction parameters is less than the evaluation function calculated by the previous set of correction parameters, the damping coefficient is reduced.
7. The optical fiber array coordinate calculation method according to any one of claims 1 to 3, characterized in that: Acquiring the reference actual coordinates of at least two reference channels in the optical fiber array includes: a plurality of the reference channels are located in at least two or more quadrants.
8. The optical fiber array coordinate calculation method according to any one of claims 1 to 3, characterized in that: The actual coordinates are characterized by the voltage applied to the drive system of the mirror.
9. A computer device, characterized in that The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method implements each step of the optical fiber array coordinate calculation method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the optical fiber array coordinate calculation method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Error correcting method for high-order tooth surface of spiral bevel gear
CN108873809A
Calculation method, device and equipment of coordinate transformation matrix and readable storage medium
CN114186189A