Beam shaping method and system for a VCSEL laser enhancement module
The beam shaping method using VCSEL laser enhancement modules combines an initial compensation phase matrix with a genetic algorithm to dynamically generate a compensation phase matrix. This solves the problems of wavelength sensitivity of static optical elements and local optima in iterative algorithms, achieving high-precision beam shaping results.
Patent Information
- Application Number
- CN202510430904.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2045-04-08
AI Technical Summary
Existing beam shaping methods rely on static optical elements, which suffer from high wavelength sensitivity and cannot dynamically adapt to VCSEL manufacturing tolerances and environmental changes. Traditional iterative algorithms are prone to getting trapped in local optima in complex beam shaping.
A beam shaping method using a VCSEL laser enhancement module is proposed. By acquiring the original spot distribution map and the target spot distribution map, an initial compensation phase matrix is generated. Then, a genetic algorithm is used to perform beam shaping and dynamically generate the compensation phase matrix to overcome the defects of static optical elements and avoid the local optimum solution of the iterative algorithm.
It achieves dynamic correction of real-time beam distribution map, improves beam shaping accuracy and uniformity, overcomes the problems of wavelength sensitivity and poor environmental adaptability of traditional methods, and enhances beam uniformity.
Smart Images

Figure CN119944423B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of laser beam shaping, in particular to a VCSEL laser enhancement module beam shaping method and system. BACKGROUND
[0002] VCSEL (Vertical Cavity Surface Emitting Laser) is widely used in 3D sensing, laser radar, optical communication and other fields due to its small size, low power consumption and easy integration. With the increasing demand for laser beam quality in application scenarios, how to achieve high-precision beam shaping has become one of the key technical challenges in the industry.
[0003] Current beam shaping methods mainly rely on static optical elements or dynamic phase modulation based on iterative algorithms. However, static optical elements have high wavelength sensitivity and cannot dynamically adapt to VCSEL manufacturing tolerances and environmental changes, while traditional iterative algorithms are prone to local optimal solutions in complex spot shaping. SUMMARY
[0004] The present application provides a VCSEL laser enhancement module beam shaping method and system. To solve the problems raised in the background technology.
[0005] In a first aspect, the present application provides a VCSEL laser enhancement module beam shaping method, comprising:
[0006] obtaining an original spot distribution map and a target spot distribution map;
[0007] determining whether to perform beam shaping processing on the original spot distribution map based on the original spot distribution map and the target spot distribution map;
[0008] If yes, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map;
[0009] performing beam shaping on the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm.
[0010] In a possible implementation manner, the determination of whether to perform beam shaping on the original spot distribution map based on the original spot distribution map and the target spot distribution map comprises:
[0011] performing segmentation processing on the original spot distribution map and the target spot distribution map based on a preset image segmentation algorithm to obtain a plurality of first sub-images and a plurality of second sub-images;
[0012] for each first sub-image, determining a difference coefficient between the first sub-image and its corresponding second sub-image;
[0013] compare each of the difference coefficients with a preset difference coefficient respectively;
[0014] If any of the difference coefficients is greater than the preset difference coefficient, it is determined that the original light spot distribution map is subjected to beam shaping processing.
[0015] In a possible implementation, the determining of the difference coefficient between the first sub-image and the corresponding second sub-image includes:
[0016] obtaining a first light intensity gradient corresponding to each first pixel in the first sub-image, and obtaining a second light intensity gradient corresponding to each second pixel in the second sub-image, and obtaining an absolute difference value of the first light intensity gradient and the second light intensity gradient;
[0017] For each first pixel in the first sub-image, an absolute difference value of light intensity between the first pixel and a corresponding second pixel in the second sub-image is obtained, and when the absolute difference value of light intensity is greater than a preset absolute difference value of light intensity, the first pixel is determined as a target first pixel;
[0018] The difference coefficient is determined based on the absolute difference value of the light intensity gradient and each target first pixel.
[0019] In a possible implementation, the determining of the difference coefficient based on the absolute difference value of the light intensity gradient and each target first pixel includes:
[0020] determining whether the absolute difference value of the light intensity gradient is greater than a preset absolute difference value of the light intensity gradient;
[0021] If yes, it is determined that the difference coefficient is infinite.
[0022] If no, the number of target first pixels is counted, and it is determined whether the number of target first pixels is greater than a preset number;
[0023] If yes, it is determined that the difference coefficient is infinite.
[0024] If no, a distance value between two target first pixels farthest away from each other in the target first pixels is calculated, and a ratio of the absolute difference value of the light intensity gradient to the distance value is determined as the difference coefficient.
[0025] In a possible implementation, the generating of the initial compensation phase matrix based on the original light spot distribution map and the target light spot distribution map includes:
[0026] For each first pixel of the original light spot distribution map, an initial compensation phase corresponding to the first pixel is generated based on a first light intensity of the first pixel and a second light intensity of a second pixel corresponding to the first pixel in the target light spot distribution map.
[0027] The initial compensation phase matrix is generated based on the position of the pixel corresponding to each initial compensation phase in the original spot distribution map.
[0028] In one possible implementation, generating the initial compensation phase corresponding to the first pixel based on the first light intensity of the first pixel and the second light intensity of the second pixel corresponding to the first pixel in the target light spot distribution map includes:
[0029] pass Generate the initial input ray corresponding to the first pixel; wherein, For the initial input light, This is the first light intensity. The initial phase is randomly assigned;
[0030] right Perform a Fourier transform to obtain ;in, The first far-field ray corresponding to the first pixel;
[0031] pass right After correction, the first corrected far-field ray is obtained; among which, This is the second light intensity. For the first corrected far-field ray;
[0032] Perform an inverse Fourier transform on the first corrected far-field ray to obtain the first input ray. ;
[0033] right Perform a Fourier transform to obtain ;in, The second far-field ray corresponding to the first pixel;
[0034] judge Whether the absolute difference in light intensity between the second light intensity and the second light intensity is less than a preset light intensity difference;
[0035] If not less than, then pass right After correction, a second corrected far-field ray is obtained; where, The second light intensity, For the second corrected far-field ray;
[0036] Perform an inverse Fourier transform on the second corrected far-field ray to obtain the second input ray. ;
[0037] right Perform a Fourier transform to obtain ; wherein, is a third far-field light ray corresponding to the first pixel;
[0038] determining whether an absolute difference of light intensity of the second light intensity is less than a preset light intensity difference;
[0039] if yes, determining a second input light ray corresponding to the first pixel is an initial compensation phase corresponding to the first pixel;
[0040] if no, iterating the step of determining whether an absolute difference of light intensity of the second light intensity is less than a preset light intensity difference.
[0041] In a possible implementation manner, the beam shaping of the original light spot distribution based on the initial compensation phase matrix and the preset genetic algorithm comprises:
[0042] performing mutation processing on the initial compensation phase matrix to obtain a first generation population;
[0043] for each first generation chromosome of the first generation population, obtaining a first fitness corresponding to the first generation chromosome;
[0044] determining whether a maximum first fitness in the first fitness is greater than a preset fitness;
[0045] if no, determining, in each first generation chromosome, a first generation chromosome with a first fitness in a top 30% as a target first generation chromosome;
[0046] performing cross and mutation processing on each target first generation chromosome to obtain a second generation population;
[0047] for each second generation chromosome of the second generation population, obtaining a second fitness corresponding to the second generation chromosome;
[0048] determining whether a maximum second fitness in the second fitness is greater than a preset fitness;
[0049] if yes, performing beam shaping processing on the original light spot distribution based on a second generation chromosome corresponding to the maximum second fitness;
[0050] if no, iterating the step of determining whether a maximum first fitness in the first fitness is greater than a preset fitness.
[0051] In a second aspect, the application provides a light beam shaping system of a VCSEL laser enhancement module, comprising:
[0052] an acquisition module configured to acquire an original light spot distribution and a target light spot distribution;
[0053] The judgment module is used to determine whether to perform beam shaping processing on the original spot distribution map based on the original spot distribution map and the target spot distribution map;
[0054] The generation module is used to generate an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map when performing beam shaping processing on the original spot distribution map.
[0055] The beam shaping module is used to shape the original beam distribution map based on the initial compensation phase matrix and a preset genetic algorithm.
[0056] This application provides a beam shaping method and system for a VCSEL laser enhancement module. The method includes: acquiring an original beam distribution map and a target beam distribution map; determining whether to perform beam shaping on the original beam distribution map based on the original beam distribution map and the target beam distribution map; if so, generating an initial compensation phase matrix based on the original beam distribution map and the target beam distribution map; and performing beam shaping on the original beam distribution map based on the initial compensation phase matrix and a preset genetic algorithm. This method, on the one hand, can acquire the original beam distribution map in real time and dynamically generate the compensation phase matrix, effectively overcoming the problems of wavelength sensitivity and poor environmental adaptability of traditional static optical elements; on the other hand, by combining the genetic algorithm with the initial compensation phase matrix, it effectively avoids the problem of traditional iterative algorithms easily getting trapped in local optima, which is beneficial for improving beam uniformity in complex structured light shaping scenarios. Attached Figure Description
[0057] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0058] Figure 1 A schematic flowchart of the beam shaping method for the VCSEL laser enhancement module provided in the embodiments of this application;
[0059] Figure 2 A schematic block diagram of the beam shaping system for the VCSEL laser enhancement module provided in the embodiments of this application;
[0060] Figure 3 A schematic block diagram illustrating the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0061] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0062] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it require execution in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0063] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0064] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the relevant listed items and all possible combinations, and includes such combinations.
[0065] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0066] Please see Figure 1 , Figure 1 This is a schematic flowchart of the beam shaping method for the VCSEL laser enhancement module provided in the embodiments of this application, as shown below. Figure 1 As shown, the beam shaping method for the VCSEL laser enhancement module provided in this application embodiment includes steps S1 to S4.
[0067] Step S1: Obtain the original light spot distribution map and the target light spot distribution map.
[0068] Step S2: Based on the original spot distribution map and the target spot distribution map, determine whether to perform beam shaping processing on the original spot distribution map.
[0069] Step S3: If yes, generate an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map.
[0070] Step S4: Perform beam shaping on the original spot distribution map based on the initial compensation phase matrix and the preset genetic algorithm.
[0071] In this embodiment, it specifically includes:
[0072] In step S1 above, the emitted beam of the VCSEL laser enhancement module is projected onto the diffuse reflection screen, and the original spot distribution map on the diffuse reflection screen is captured by a camera, and the target spot distribution map of the VCSEL laser enhancement module is obtained from a preset database.
[0073] In step S2 above, firstly, the original light spot distribution map and the target light spot distribution map are segmented based on a preset image segmentation algorithm to obtain multiple first sub-images and multiple second sub-images. Then, for each first sub-image, the difference coefficient between the first sub-image and its corresponding second sub-image is determined. Next, each difference coefficient is compared with a preset difference coefficient. Finally, if any difference coefficient is greater than the preset difference coefficient, it is determined that the original light spot distribution map is to be subjected to beam shaping processing.
[0074] In step S3 above, when determining to perform beam shaping processing on the original spot distribution map, firstly, for each first pixel of the original spot distribution map, an initial compensation phase corresponding to the first pixel is generated based on the first light intensity of the first pixel and the second light intensity of the second pixel corresponding to the first pixel in the target spot distribution map. Then, the initial compensation phase matrix is generated based on the position of the pixel corresponding to each initial compensation phase in the original spot distribution map.
[0075] In step S4 above, the original spot distribution map is shaped by the beam shaping system based on the initial compensation phase matrix and the preset genetic algorithm.
[0076] The method provided in this embodiment can, on the one hand, acquire the original spot distribution map in real time and dynamically generate the compensation phase matrix, effectively overcoming the problems of wavelength sensitivity and poor environmental adaptability of traditional static optical elements. On the other hand, by combining the genetic algorithm with the initial compensation phase matrix, it effectively avoids the problem that traditional iterative algorithms are prone to getting trapped in local optima. In complex structured light shaping scenarios, it is beneficial to improve the uniformity of the spot.
[0077] In some embodiments, determining whether to perform beam shaping on the original beam distribution map based on the original beam distribution map and the target beam distribution map includes the following steps:
[0078] Based on a preset image segmentation algorithm, the original light spot distribution map and the target light spot distribution map are segmented to obtain multiple first sub-images and multiple second sub-images;
[0079] For each of the first sub-images, determine the difference coefficient between the first sub-image and its corresponding second sub-image;
[0080] Each of the aforementioned difference coefficients is compared with a preset difference coefficient;
[0081] If any of the difference coefficients is greater than the preset difference coefficient, it is determined that the original spot distribution map will be subjected to beam shaping processing.
[0082] The method provided in this embodiment, by establishing a regional difference coefficient evaluation method, can accurately identify light intensity distribution anomalies at the microscale, which helps to reduce the system's misjudgment rate.
[0083] The step of determining the difference coefficient between the first sub-image and its corresponding second sub-image includes the following steps:
[0084] Obtain the first light intensity gradient corresponding to each first pixel in the first sub-image, and obtain the second light intensity gradient corresponding to each second pixel in the second sub-image, and obtain the absolute difference of light intensity gradient between the first light intensity gradient and the second light intensity gradient; wherein, the absolute difference of light intensity gradient is the absolute value of the difference between the first light intensity gradient and the second light intensity gradient.
[0085] For each first pixel in the first sub-image, the absolute difference in light intensity between the first pixel and its corresponding second pixel in the second sub-image is obtained, and when the absolute difference in light intensity is greater than a preset absolute difference in light intensity, the first pixel is determined to be a target first pixel; wherein, the absolute difference in light intensity is the absolute value of the difference between the first light intensity of the first pixel and the second light intensity of the second pixel;
[0086] The difference coefficient is determined based on the absolute difference of the light intensity gradient and the first pixel of each target.
[0087] Understandably, the method described above for determining the difference coefficient between the first sub-image and its corresponding second sub-image first captures the subtle deformation features of the light spot edge and transition region through light intensity gradient analysis, then locates the local abnormal bright and dark areas by combining pixel-level light intensity difference detection, and finally calculates the difference coefficient by combining the two types of feature parameters. This achieves multi-level accurate identification of light spot distortion features, which can not only accurately identify macroscopic intensity deviations in the light spot distribution, but also keenly capture microscopic gradient feature changes.
[0088] The step of determining the difference coefficient based on the absolute difference of the light intensity gradient and each of the target first pixels includes the following steps:
[0089] Determine whether the absolute difference of the light intensity gradient is greater than a preset absolute difference of the light intensity gradient;
[0090] If it is greater than that, the difference coefficient is determined to be infinite;
[0091] If it is not greater than, count the number of the first target pixels and determine whether the number of the first target pixels is greater than a preset number;
[0092] If it is greater than that, the difference coefficient is determined to be infinite;
[0093] If it is not greater than, calculate the distance between the two farthest first pixels of each target, and determine the ratio of the absolute difference of the light intensity gradient to the distance value as the difference coefficient.
[0094] Understandably, the method described above for determining the difference coefficient based on the absolute difference of the light intensity gradient and each of the target first pixels, on the one hand, helps to reduce the system's misjudgment rate through a multi-level judgment strategy, and on the other hand, when the absolute difference of the light intensity gradient is not greater than a preset absolute difference of the light intensity gradient and the number of the target first pixels is not greater than a preset number, determining the ratio of the absolute difference of the light intensity gradient to the distance value as the difference coefficient further reduces the system's misjudgment rate.
[0095] In some embodiments, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map includes the following steps:
[0096] For each first pixel in the original light spot distribution map, an initial compensation phase corresponding to the first pixel is generated based on the first light intensity of the first pixel and the second light intensity of the second pixel corresponding to the first pixel in the target light spot distribution map.
[0097] The initial compensation phase matrix is generated based on the position of the pixel corresponding to each initial compensation phase in the original spot distribution map.
[0098] The step of generating the initial compensation phase corresponding to the first pixel based on the first light intensity of the first pixel and the second light intensity of the second pixel corresponding to the first pixel in the target light spot distribution map includes the following steps:
[0099] pass Generate the initial input ray corresponding to the first pixel; wherein, For the initial input light, This is the first light intensity. The initial phase is randomly assigned;
[0100] right Perform a Fourier transform to obtain ;in, The first far-field ray corresponding to the first pixel;
[0101] pass right After correction, the first corrected far-field ray is obtained; among which, The second light intensity, For the first corrected far-field ray;
[0102] Perform an inverse Fourier transform on the first corrected far-field ray to obtain the first input ray. ;
[0103] right Perform a Fourier transform to obtain ;in, The second far-field ray corresponding to the first pixel;
[0104] judge Whether the absolute difference in light intensity between the second light intensity and the second light intensity is less than a preset light intensity difference;
[0105] If not less than, then pass right After correction, a second corrected far-field ray is obtained; where, The second light intensity, For the second corrected far-field ray;
[0106] Perform an inverse Fourier transform on the second corrected far-field ray to obtain the second input ray. ;
[0107] right Perform a Fourier transform to obtain ;in, The third far-field ray corresponding to the first pixel;
[0108] judge Whether the absolute difference between the light intensity and the second light intensity is less than the difference between the preset light intensity;
[0109] If so, determine the second input light. The corresponding phase is the initial compensation phase corresponding to the first pixel;
[0110] If not, iterate through the judgment. The next step is to check whether the absolute difference between the light intensity and the second light intensity is less than the difference of the preset light intensity.
[0111] The method provided in this embodiment can accurately correct local light intensity anomalies through pixel-level independent processing, improving the shaping accuracy to the pixel level and helping to improve the effectiveness of beam shaping.
[0112] In some embodiments, the beam shaping of the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm includes the following steps:
[0113] The initial compensation phase matrix is mutated to obtain the first generation population;
[0114] For each first-generation chromosome in the first-generation population, the first fitness corresponding to the first-generation chromosome is obtained; specifically, the beam shaping system is controlled based on the compensation phase matrix corresponding to the first-generation chromosome to perform beam shaping on the original spot distribution map, to obtain the shaped spot distribution map, and the difference coefficient between the shaped spot distribution map and the target spot distribution map is obtained. The reciprocal of the difference coefficient is determined as the first fitness. Regarding the method for obtaining the difference coefficient, refer to the method for determining the difference coefficient between the first sub-image and its corresponding second sub-image described above, which will not be repeated here.
[0115] Determine whether the largest first fitness among all the first fitness values is greater than the preset fitness;
[0116] If not, identify the first-generation chromosomes with the top 30% fitness among all first-generation chromosomes as the target first-generation chromosome;
[0117] The first-generation chromosomes of each target species are subjected to crossover and mutation processing to obtain the second-generation population.
[0118] For each second-generation chromosome in the second-generation population, the second fitness corresponding to the second-generation chromosome is obtained; the method for obtaining the second fitness is the same as the method for obtaining the first fitness described above, and will not be repeated here.
[0119] Determine whether the largest second fitness among all second fitness values is greater than the preset fitness;
[0120] If so, the original spot distribution map is subjected to beam shaping processing based on the second-generation chromosome corresponding to the maximum second fitness.
[0121] If not, iterate through the steps following the determination of whether the largest first fitness among the first fitnesss is greater than the preset fitness.
[0122] The method provided in this embodiment, on the one hand, retains the top 30% of high-fit individuals through an elite selection mechanism, which can effectively maintain population diversity and avoid premature convergence problems; on the other hand, it uses the reciprocal of the difference coefficient as the fitness function to achieve accurate quantitative evaluation of the spot quality.
[0123] Please see Figure 2 , Figure 2 A schematic block diagram of the beam shaping system 100 for the VCSEL laser enhancement module provided in this application embodiment, as shown below. Figure 2As shown, the beam shaping system 100 for the VCSEL laser enhancement module provided in this application embodiment includes:
[0124] The acquisition module 110 is used to acquire the original light spot distribution map and the target light spot distribution map.
[0125] The judgment module 120 is used to determine whether to perform beam shaping processing on the original spot distribution map based on the original spot distribution map and the target spot distribution map.
[0126] The generation module 130 is used to generate an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map when performing beam shaping processing on the original spot distribution map.
[0127] The beam shaping module 140 is used to perform beam shaping on the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm.
[0128] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the system and each module described above can be referred to the process in the aforementioned embodiment of the beam shaping method for VCSEL laser enhancement module, and will not be repeated here.
[0129] The beam shaping system 100 of the VCSEL laser enhancement module provided in the above embodiments can be implemented as a computer program, which can, for example, Figure 3 The terminal device 200 shown is running on it.
[0130] Please see Figure 3 , Figure 3 The present invention provides a schematic block diagram of the structure of a terminal device 200. The terminal device 200 includes a processor 201 and a memory 202, which are connected via a device bus 203. The memory 202 may include a non-volatile storage medium and internal memory.
[0131] The non-volatile storage medium can store a computer program. The computer program includes program instructions that, when executed by the processor 201, cause the processor 201 to perform any of the beam shaping methods of the VCSEL laser enhancement module described above.
[0132] The processor 201 provides computing and control capabilities to support the operation of the entire terminal device 200.
[0133] The internal memory provides an environment for the execution of computer programs in non-volatile storage media. When the computer program is executed by the processor 201, the processor 201 can execute any of the beam shaping methods of the VCSEL laser enhancement module described above.
[0134] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the terminal device 200 involved in the present application. The specific terminal device 200 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0135] It should be understood that processor 201 can be a Central Processing Unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0136] In some embodiments, the processor 201 is configured to run a computer program stored in memory to perform the following steps:
[0137] Obtain the original spot distribution map and the target spot distribution map;
[0138] Based on the original spot distribution map and the target spot distribution map, determine whether to perform beam shaping processing on the original spot distribution map;
[0139] If so, an initial compensation phase matrix is generated based on the original spot distribution map and the target spot distribution map;
[0140] The original spot distribution map is beam shaped based on the initial compensation phase matrix and a preset genetic algorithm.
[0141] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the terminal device 200 described above can be referred to the beam shaping method of the aforementioned VCSEL laser enhancement module, and will not be repeated here.
[0142] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to implement the beam shaping method of the VCSEL laser enhancement module provided in this application.
[0143] The computer-readable storage medium can be an internal storage unit of the terminal device 200 in the aforementioned embodiments, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium can also be an external storage device of the terminal device 200, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped with the terminal device 200.
[0144] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A beam shaping method for a VCSEL laser enhancement module, characterized in that, include: Obtain the original spot distribution map and the target spot distribution map; Based on the original spot distribution map and the target spot distribution map, determine whether to perform beam shaping processing on the original spot distribution map; If so, an initial compensation phase matrix is generated based on the original spot distribution map and the target spot distribution map; Beam shaping is performed on the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm; The step of determining whether to perform beam shaping on the original spot distribution map based on the original spot distribution map and the target spot distribution map includes: Based on a preset image segmentation algorithm, the original light spot distribution map and the target light spot distribution map are segmented to obtain multiple first sub-images and multiple second sub-images; For each of the first sub-images, determine the difference coefficient between the first sub-image and its corresponding second sub-image; Each of the aforementioned difference coefficients is compared with a preset difference coefficient; If any of the aforementioned difference coefficients is greater than the preset difference coefficient, it is determined that the original spot distribution map will be subjected to beam shaping processing. Determining the difference coefficient between the first sub-image and its corresponding second sub-image includes: Obtain the first light intensity gradient corresponding to each first pixel in the first sub-image, obtain the second light intensity gradient corresponding to each second pixel in the second sub-image, and obtain the absolute difference of light intensity gradient between the first light intensity gradient and the second light intensity gradient. For each first pixel in the first sub-image, the absolute difference in light intensity between the first pixel and its corresponding second pixel in the second sub-image is obtained, and when the absolute difference in light intensity is greater than a preset absolute difference in light intensity, the first pixel is determined to be the target first pixel; The difference coefficient is determined based on the absolute difference of the light intensity gradient and the first pixel of each target. The step of determining the difference coefficient based on the absolute difference of the light intensity gradient and each of the target first pixels includes: Determine whether the absolute difference of the light intensity gradient is greater than a preset absolute difference of the light intensity gradient; If it is greater than that, the difference coefficient is determined to be infinite; If it is not greater than, count the number of the first target pixels and determine whether the number of the first target pixels is greater than a preset number; If it is greater than that, the difference coefficient is determined to be infinite; If it is not greater than, calculate the distance between the two farthest first pixels of each target, and determine the ratio of the absolute difference of the light intensity gradient to the distance value as the difference coefficient.
2. The beam shaping method for the VCSEL laser enhancement module according to claim 1, characterized in that, The step of generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map includes: For each first pixel in the original light spot distribution map, an initial compensation phase corresponding to the first pixel is generated based on the first light intensity of the first pixel and the second light intensity of the second pixel corresponding to the first pixel in the target light spot distribution map. The initial compensation phase matrix is generated based on the position of the pixel corresponding to each initial compensation phase in the original spot distribution map.
3. The beam shaping method for the VCSEL laser enhancement module according to claim 2, characterized in that, The step of generating the initial compensation phase corresponding to the first pixel based on the first light intensity of the first pixel and the second light intensity of the second pixel corresponding to the first pixel in the target light spot distribution map includes: pass Generate the initial input ray corresponding to the first pixel; wherein, For the initial input light, This is the first light intensity. The initial phase is randomly assigned; right Perform a Fourier transform to obtain ;in, The first far-field ray corresponding to the first pixel; pass right After correction, the first corrected far-field ray is obtained; among which, The second light intensity, For the first corrected far-field ray; Perform an inverse Fourier transform on the first corrected far-field ray to obtain the first input ray. ; right Perform a Fourier transform to obtain ;in, The second far-field ray corresponding to the first pixel; judge Whether the absolute difference in light intensity between the second light intensity and the second light intensity is less than a preset light intensity difference; If not less than, then pass right After correction, a second corrected far-field ray is obtained; where, The second light intensity, For the second corrected far-field ray; Perform an inverse Fourier transform on the second corrected far-field ray to obtain the second input ray. ; right Perform a Fourier transform to obtain ;in, The third far-field ray corresponding to the first pixel; judge Whether the absolute difference between the light intensity and the second light intensity is less than the difference between the preset light intensity; If so, determine the second input light. The corresponding phase is the initial compensation phase corresponding to the first pixel; If not, iterate through the judgment. The next step is to check whether the absolute difference between the light intensity and the second light intensity is less than the difference of the preset light intensity.
4. The beam shaping method for the VCSEL laser enhancement module according to claim 1, characterized in that, The beam shaping of the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm includes: The initial compensation phase matrix is mutated to obtain the first generation population; For each first-generation chromosome in the first-generation population, obtain the first fitness corresponding to the first-generation chromosome; Determine whether the largest first fitness among all the first fitness values is greater than the preset fitness; If not, identify the first-generation chromosomes with the top 30% fitness among all first-generation chromosomes as the target first-generation chromosome; The first-generation chromosomes of each target species are subjected to crossover and mutation processing to obtain the second-generation population. For each second-generation chromosome in the second-generation population, obtain the second fitness corresponding to the second-generation chromosome; Determine whether the largest second fitness among all second fitness values is greater than the preset fitness; If so, the original spot distribution map is subjected to beam shaping processing based on the second-generation chromosome corresponding to the maximum second fitness. If not, iterate through the steps following the determination of whether the largest first fitness among the first fitnesss is greater than the preset fitness.
5. A beam shaping system for a VCSEL laser enhancement module, characterized in that, include: The acquisition module is used to acquire the original spot distribution map and the target spot distribution map; The judgment module is used to determine whether to perform beam shaping processing on the original spot distribution map based on the original spot distribution map and the target spot distribution map; The generation module is used to generate an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map when performing beam shaping processing on the original spot distribution map. A beam shaping module is used to shape the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm. The step of determining whether to perform beam shaping on the original spot distribution map based on the original spot distribution map and the target spot distribution map includes: Based on a preset image segmentation algorithm, the original light spot distribution map and the target light spot distribution map are segmented to obtain multiple first sub-images and multiple second sub-images; For each of the first sub-images, determine the difference coefficient between the first sub-image and its corresponding second sub-image; Each of the aforementioned difference coefficients is compared with a preset difference coefficient; If any of the aforementioned difference coefficients is greater than the preset difference coefficient, it is determined that the original spot distribution map will be subjected to beam shaping processing. Determining the difference coefficient between the first sub-image and its corresponding second sub-image includes: Obtain the first light intensity gradient corresponding to each first pixel in the first sub-image, obtain the second light intensity gradient corresponding to each second pixel in the second sub-image, and obtain the absolute difference of light intensity gradient between the first light intensity gradient and the second light intensity gradient. For each first pixel in the first sub-image, the absolute difference in light intensity between the first pixel and its corresponding second pixel in the second sub-image is obtained, and when the absolute difference in light intensity is greater than a preset absolute difference in light intensity, the first pixel is determined to be the target first pixel; The difference coefficient is determined based on the absolute difference of the light intensity gradient and the first pixel of each target. The step of determining the difference coefficient based on the absolute difference of the light intensity gradient and each of the target first pixels includes: Determine whether the absolute difference of the light intensity gradient is greater than a preset absolute difference of the light intensity gradient; If it is greater than that, the difference coefficient is determined to be infinite; If it is not greater than, count the number of the first target pixels and determine whether the number of the first target pixels is greater than a preset number; If it is greater than that, the difference coefficient is determined to be infinite; If it is not greater than, calculate the distance between the two farthest first pixels of each target, and determine the ratio of the absolute difference of the light intensity gradient to the distance value as the difference coefficient.
Citation Information
Patent Citations
Diffraction optical element design method for shaping excimer laser light beams
CN103777472A
Device for realizing light beam automatic shaping using shape changing lens
CN1987546A