Beam shaping method and system of VCSEL (Vertical Cavity Surface Emitting Laser) laser enhancement module

By obtaining and judging the spot distribution map in the VCSEL laser enhancement module and beam shaping combined with genetic algorithms, the wavelength sensitivity and local optimal solution problems of the beam shaping method in the prior art are solved, and efficient beam shaping effect is achieved.

CN119944423AActive Publication Date: 2025-05-06CYBRIGHT IR LED TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510430904.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-05-06
Estimated Expiration
2045-04-08

AI Technical Summary

Technical Problem

The existing beam shaping methods have problems such as high wavelength sensitivity and inability to dynamically adapt to VCSEL manufacturing tolerances and environmental changes, and traditional iterative algorithms are prone to fall into local optimal solutions in complex spot shaping.

Method used

A beam shaping method of VCSEL laser enhancement module is provided. By obtaining the original spot distribution map and the target spot distribution map, it determines whether beam shaping is needed, generates an initial compensation phase matrix, and uses a genetic algorithm to shape the beam.

Benefits of technology

The generation of real-time dynamic compensation phase matrix is ​​realized, which overcomes the problems of poor wavelength sensitivity and environmental adaptability of traditional static optical elements, and avoids local optimal solutions through genetic algorithms, and improves the uniformity of the spot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119944423A_ABST
    Figure CN119944423A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of laser beam shaping, and provides a beam shaping method and system for a VCSEL laser enhancement module, and the method comprises the steps: obtaining an original light spot distribution diagram and a target light spot distribution diagram; based on the original light spot distribution diagram and the target light spot distribution diagram, whether light beam shaping processing is carried out on the original light spot distribution diagram or not is judged; if yes, generating an initial compensation phase matrix based on the original light spot distribution diagram and the target light spot distribution diagram; and performing beam shaping on the original light spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm. According to the method, the problems of poor wavelength sensitivity and environmental adaptability of a traditional static optical element are effectively solved, the problem that a traditional iterative algorithm is prone to falling into a local optimal solution is effectively avoided, and the light spot uniformity can be improved in a complex structured light shaping scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of laser beam shaping, and in particular to a beam shaping method and system for a VCSEL laser enhancement module. Background Art

[0002] Vertical Cavity Surface Emitting Lasers (VCSELs) are widely used in 3D sensing, LiDAR, optical communications, etc. due to their small size, low power consumption, and easy integration. As the application scenarios have increasing requirements for laser beam quality, 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 the problems of high wavelength sensitivity and inability to dynamically adapt to VCSEL manufacturing tolerances and environmental changes, while traditional iterative algorithms are prone to fall into local optimal solutions in complex spot shaping. Summary of the invention

[0004] The present application provides a beam shaping method and system for a VCSEL laser enhancement module to solve the problems raised by the above background technology.

[0005] In a first aspect, the present application provides a beam shaping method for a VCSEL laser enhancement module, comprising: Obtaining an original light spot distribution map and a target light spot distribution map; Determining whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map; If yes, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map; The original light spot distribution diagram is beam shaped based on the initial compensation phase matrix and a preset genetic algorithm.

[0006] In a possible implementation, the determining whether to perform beam shaping on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map includes: Segmenting the original light spot distribution map and the target light 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; For each of the first sub-images, determining a difference coefficient between the first sub-image and its corresponding second sub-image; Comparing each of the difference coefficients with a preset difference coefficient; If any of the difference coefficients is greater than the preset difference coefficient, it is determined to perform beam shaping processing on the original light spot distribution diagram.

[0007] In a possible implementation manner, determining a difference coefficient between the first sub-image and its corresponding second sub-image includes: Acquire a first light intensity gradient corresponding to each first pixel in the first sub-image, acquire a second light intensity gradient corresponding to each second pixel in the second sub-image, and acquire a light intensity gradient absolute difference between the first light intensity gradient and the second light intensity gradient; For each first pixel in the first sub-image, obtaining an absolute difference in light intensity between the first pixel and a second pixel corresponding to the first pixel in the second sub-image, and determining that the first pixel is a target first pixel when the absolute difference in light intensity is greater than a preset absolute difference in light intensity; The difference coefficient is determined based on the absolute difference of the light intensity gradient and each of the target first pixels.

[0008] In a possible implementation manner, 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 light intensity gradient absolute difference is greater than a preset light intensity gradient absolute difference; If it is greater than, the difference coefficient is determined to be infinite; If not, counting the number of the target first pixels, and determining whether the number of the target first pixels is greater than a preset number; If it is greater than, the difference coefficient is determined to be infinite; If not, the distance between the two target first pixels that are farthest from each other among the target first pixels is calculated, and the ratio of the absolute difference of the light intensity gradient to the distance value is determined as the difference coefficient.

[0009] In a possible implementation manner, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map includes: For each first pixel of the original light spot distribution diagram, generating an initial compensation phase corresponding to the first pixel 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 diagram; The initial compensation phase matrix is ​​generated based on the positions of pixels corresponding to each of the initial compensation phases in the original spot distribution map.

[0010] In a 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 diagram includes: pass Generate an initial input light corresponding to the first pixel; wherein, is the initial input light, is the first light intensity, is the randomly assigned initial phase; right Perform Fourier transform and get ;in, is a first far-field light corresponding to the first pixel; pass right Correction is performed to obtain the first corrected far-field light; wherein, is the second light intensity, for said first corrected far-field ray; Perform an inverse Fourier transform on the first corrected far-field light to obtain a first input light ; right Perform Fourier transform and get ;in, is the second far-field light corresponding to the first pixel; judge whether the absolute difference in light intensity with the second light intensity is less than a preset light intensity difference; If not less than, pass right Correction is performed to obtain the second corrected far-field light; wherein, is the second light intensity, correcting far-field rays for said second; Perform an inverse Fourier transform on the second corrected far-field light to obtain a second input light ; right Perform Fourier transform and get ;in, is a third far-field light corresponding to the first pixel; judge whether the absolute difference between the light intensity of the second light intensity and the light intensity of the second light intensity is less than the difference between the preset light intensity and the second light intensity; If yes, determine the second input ray The corresponding phase is the initial compensation phase corresponding to the first pixel; If not, iterate the judgment The step after determining whether the absolute difference of the light intensity with the second light intensity is less than the difference of the preset light intensity.

[0011] In a possible implementation, the beam shaping of the original spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm includes: Performing mutation processing on the initial compensation phase matrix to obtain a first generation population; For each first-generation chromosome of the first-generation population, obtaining a first fitness corresponding to the first-generation chromosome; Determining whether the maximum first fitness among the first fitnesses is greater than a preset fitness; If not, determining the first-generation chromosome whose first fitness is in the top 30% among the first-generation chromosomes as the target first-generation chromosome; Performing crossover and mutation processing on each of the target first-generation chromosomes to obtain a second-generation population; For each second-generation chromosome of the second-generation population, obtaining a second fitness corresponding to the second-generation chromosome; Determining whether the maximum second fitness among the second fitnesses is greater than a preset fitness; If yes, performing beam shaping processing on the original light spot distribution diagram based on the second generation chromosome corresponding to the maximum second fitness; If not, iterate the steps after determining whether the maximum first fitness among the first fitnesses is greater than the preset fitness.

[0012] In a second aspect, the present application provides a beam shaping system for a VCSEL laser enhancement module, comprising: An acquisition module, used to acquire an original light spot distribution map and a target light spot distribution map; A judgment module, used for judging whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map; A generating module, configured to generate an initial compensation phase matrix based on the original light spot distribution diagram and the target light spot distribution diagram when performing beam shaping processing on the original light spot distribution diagram; A beam shaping module is used to perform beam shaping on the original light spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm.

[0013] The present application provides a beam shaping method and system for a VCSEL laser enhancement module, the method comprising: obtaining an original spot distribution map and a target spot distribution map; judging whether to perform beam shaping on the original spot distribution map based on the original spot distribution map and the target spot distribution map; if so, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map; and beam shaping the original spot distribution map based on the initial compensation phase matrix and a preset genetic algorithm. This method, on the one hand, can obtain the original spot distribution map in real time and dynamically generate a compensation phase matrix, effectively overcoming the problems of poor wavelength sensitivity and 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 the traditional iterative algorithm is prone to fall into a local optimal solution, which is beneficial to improving the uniformity of the spot in complex structured light shaping scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0015] Figure 1 A schematic diagram of a process flow of a beam shaping method for a VCSEL laser enhancement module provided in an embodiment of the present application; Figure 2 A schematic block diagram of the structure of a beam shaping system of a VCSEL laser enhancement module provided in an embodiment of the present application; Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0017] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0018] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0019] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0020] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0021] See also Figure 1 , Figure 1 A schematic diagram of a process flow of a beam shaping method for a VCSEL laser enhancement module provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the beam shaping method of the VCSEL laser enhancement module provided in the embodiment of the present application includes steps S1 to S4.

[0022] Step S1, obtaining an original light spot distribution map and a target light spot distribution map.

[0023] Step S2: judging whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map.

[0024] Step S3: If yes, generate an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map.

[0025] Step S4: performing beam shaping on the original light spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm.

[0026] In this embodiment, it specifically includes: In the above step S1, the outgoing light beam of the VCSEL laser enhancement module is projected onto a diffuse reflection screen, and a camera is used to collect an original spot distribution map on the diffuse reflection screen, and a target spot distribution map of the VCSEL laser enhancement module is obtained from a preset database.

[0027] In the above step S2, first, the original spot distribution map and the target spot distribution map are segmented based on a preset image segmentation algorithm to obtain a plurality of first sub-images and a plurality of second sub-images. Then, for each of the first sub-images, a difference coefficient between the first sub-image and its corresponding second sub-image is determined. Secondly, each of the difference coefficients is compared with a preset difference coefficient. Finally, if any of the difference coefficients is greater than the preset difference coefficient, it is determined to perform beam shaping processing on the original spot distribution map.

[0028] In the above step S3, when determining to perform beam shaping processing on the original spot distribution diagram, first, for each first pixel of the original spot distribution diagram, 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 diagram, and 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 diagram.

[0029] In the above step S4, a beam shaping system is controlled based on the initial compensation phase matrix and a preset genetic algorithm to perform beam shaping on the original light spot distribution diagram.

[0030] The method provided in this embodiment, on the one hand, can obtain the original spot distribution map in real time and dynamically generate a compensation phase matrix, which effectively overcomes the problems of poor wavelength sensitivity and 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 the traditional iterative algorithm is prone to fall into the local optimal solution, which is beneficial to improving the uniformity of the spot in complex structured light shaping scenarios.

[0031] In some embodiments, the determining whether to perform beam shaping on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map comprises the following steps: Segmenting the original light spot distribution map and the target light 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; For each of the first sub-images, determining a difference coefficient between the first sub-image and its corresponding second sub-image; Comparing each of the difference coefficients with a preset difference coefficient; If any of the difference coefficients is greater than the preset difference coefficient, it is determined to perform beam shaping processing on the original light spot distribution diagram.

[0032] The method provided in this embodiment can accurately identify abnormal light intensity distribution on a microscopic scale by establishing a regionalized difference coefficient evaluation method, which helps to reduce the system misjudgment rate.

[0033] Wherein, determining the difference coefficient between the first sub-image and its corresponding second sub-image comprises the following steps: Acquire a first light intensity gradient corresponding to each first pixel in the first sub-image, acquire a second light intensity gradient corresponding to each second pixel in the second sub-image, and acquire an absolute light intensity gradient difference between the first light intensity gradient and the second light intensity gradient; wherein the absolute light intensity gradient difference is an absolute value of the difference between the first light intensity gradient and the second light intensity gradient; For each first pixel in the first sub-image, an absolute difference in light intensity between the first pixel and a second pixel corresponding to the first 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 an absolute value of a difference between a first light intensity of the first pixel and a second light intensity of the second pixel; The difference coefficient is determined based on the absolute difference of the light intensity gradient and each of the target first pixels.

[0034] It can be understood that the method for determining the difference coefficient between the first sub-image and its corresponding second sub-image described above first captures the subtle deformation characteristics of the edge and transition area of ​​the light spot through light intensity gradient analysis, and then locates the local abnormal bright and dark areas by combining pixel-level light intensity difference detection. Finally, the difference coefficient is calculated by combining the two types of feature parameters, thereby realizing multi-level and precise recognition of the light spot distortion characteristics, which can not only accurately identify the macro intensity deviation in the light spot distribution, but also keenly capture the changes in micro gradient characteristics.

[0035] Wherein, determining the difference coefficient based on the absolute difference of the light intensity gradient and each of the target first pixels comprises the following steps: Determine whether the light intensity gradient absolute difference is greater than a preset light intensity gradient absolute difference; If it is greater than, the difference coefficient is determined to be infinite; If not, counting the number of the target first pixels, and determining whether the number of the target first pixels is greater than a preset number; If it is greater than, the difference coefficient is determined to be infinite; If not, the distance between the two target first pixels that are farthest from each other among the target first pixels is calculated, and the ratio of the absolute difference of the light intensity gradient to the distance value is determined as the difference coefficient.

[0036] It can be understood that the above-mentioned method of 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 the preset absolute difference of the light intensity gradient, and the number of the target first pixels is not greater than the preset number, the ratio of the absolute difference of the light intensity gradient to the distance value is determined as the difference coefficient, thereby further reducing the system's misjudgment rate.

[0037] In some embodiments, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map comprises the following steps: For each first pixel of the original light spot distribution diagram, generating an initial compensation phase corresponding to the first pixel 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 diagram; The initial compensation phase matrix is ​​generated based on the positions of pixels corresponding to each of the initial compensation phases in the original spot distribution map.

[0038] The step of generating an 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 diagram comprises the following steps: pass Generate an initial input light corresponding to the first pixel; wherein, is the initial input light, is the first light intensity, is the randomly assigned initial phase; right Perform Fourier transform and get ;in, is a first far-field light corresponding to the first pixel; pass right Correction is performed to obtain the first corrected far-field light; wherein, is the second light intensity, for said first corrected far-field ray; Perform an inverse Fourier transform on the first corrected far-field light to obtain a first input light ; right Perform Fourier transform and get ;in, is the second far-field light corresponding to the first pixel; judge whether the absolute difference in light intensity with the second light intensity is less than a preset light intensity difference; If not less than, pass right Correction is performed to obtain the second corrected far-field light; wherein, is the second light intensity, correcting far-field rays for said second; Perform an inverse Fourier transform on the second corrected far-field light to obtain a second input light ; right Perform Fourier transform and get ;in, is a third far-field light corresponding to the first pixel; judge whether the absolute difference between the light intensity of the second light intensity and the light intensity of the second light intensity is less than the difference between the preset light intensity and the second light intensity; If yes, determine the second input ray The corresponding phase is the initial compensation phase corresponding to the first pixel; If not, iterate the judgment The step after determining whether the absolute difference of the light intensity with the second light intensity is less than the difference of the preset light intensity.

[0039] The method provided in this embodiment can accurately correct local light intensity anomalies through independent pixel-level processing, improve the shaping accuracy to the pixel level, and help improve the effectiveness of beam shaping.

[0040] In some embodiments, the beam shaping of the original spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm comprises the following steps: Performing mutation processing on the initial compensation phase matrix to obtain a first generation population; For each first-generation chromosome of the first-generation population, a first fitness corresponding to the first-generation chromosome is obtained; specifically, based on the compensation phase matrix corresponding to the first-generation chromosome, a beam shaping system is controlled to perform beam shaping on the original spot distribution diagram to obtain a shaped spot distribution diagram, and a difference coefficient between the shaped spot distribution diagram and the target spot distribution diagram is obtained, and the reciprocal of the difference coefficient is determined as the first fitness. Regarding the method for obtaining the difference coefficient, refer to the aforementioned method for determining the difference coefficient between the first sub-image and the corresponding second sub-image, which will not be repeated here; Determining whether the maximum first fitness among the first fitnesses is greater than a preset fitness; If not, determining the first-generation chromosome whose first fitness is in the top 30% among the first-generation chromosomes as the target first-generation chromosome; Performing crossover and mutation processing on each of the target first-generation chromosomes to obtain a second-generation population; For each second-generation chromosome of the second-generation population, obtain a second fitness corresponding to the second-generation chromosome; the method for obtaining the second fitness is referred to the method for obtaining the first fitness described above, which will not be repeated here; Determining whether the maximum second fitness among the second fitnesses is greater than a preset fitness; If yes, performing beam shaping processing on the original light spot distribution diagram based on the second generation chromosome corresponding to the maximum second fitness; If not, iterate the steps after determining whether the maximum first fitness among the first fitnesses is greater than the preset fitness.

[0041] The method provided in this embodiment, on the one hand, retains the top 30% of high fitness individuals through an elite selection mechanism, which can effectively maintain population diversity and avoid premature convergence problems. On the other hand, the inverse of the difference coefficient is used as the fitness function to achieve accurate quantitative evaluation of the spot quality.

[0042] See also Figure 2 , Figure 2 The structure schematic block diagram of the beam shaping system 100 of the VCSEL laser enhancement module provided in the embodiment of the present application is as follows: Figure 2 As shown, the beam shaping system 100 of the VCSEL laser enhancement module provided in the embodiment of the present application includes: The acquisition module 110 is used to acquire an original light spot distribution map and a target light spot distribution map.

[0043] The judgment module 120 is used to judge whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map.

[0044] The generating module 130 is used to generate an initial compensation phase matrix based on the original spot distribution diagram and the target spot distribution diagram when performing beam shaping processing on the original spot distribution diagram.

[0045] The beam shaping module 140 is used to perform beam shaping on the original light spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm.

[0046] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and simplicity of description, the specific working process of the system and each module described above can refer to the process in the aforementioned VCSEL laser enhancement module beam shaping method embodiment, and will not be repeated here.

[0047] The beam shaping system 100 of the VCSEL laser enhancement module provided in the above embodiment can be implemented in the form of a computer program. The computer program can be implemented in the following manner: Figure 3 The system is run on the terminal device 200 shown.

[0048] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of the structure of a terminal device 200 according to an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 can include a non-volatile storage medium and an internal memory.

[0049] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned beam shaping methods of the VCSEL laser enhancement module.

[0050] The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.

[0051] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned beam shaping methods of the VCSEL laser enhancement module.

[0052] Those skilled in the art will understand that Figure 3The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the terminal device 200 involved in the scheme of the present application. The specific terminal device 200 can include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0053] It should be understood that the processor 201 can be a central processing unit (CPU), and the processor 201 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0054] In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps: Obtaining an original light spot distribution map and a target light spot distribution map; Determining whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map; If yes, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map; The original light spot distribution diagram is beam shaped based on the initial compensation phase matrix and a preset genetic algorithm.

[0055] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the terminal device 200 described above can refer to the process of the beam shaping method of the aforementioned VCSEL laser enhancement module, and will not be repeated here.

[0056] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the beam shaping method of the VCSEL laser enhancement module provided in the embodiment of the present application.

[0057] The computer-readable storage medium can be an internal storage unit of the terminal device 200 in the aforementioned embodiment, 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, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal device 200.

[0058] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A beam shaping method for a VCSEL laser enhancement module, characterized in that: include: Obtaining an original light spot distribution map and a target light spot distribution map; Determining whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map; If yes, generating an initial compensation phase matrix based on the original spot distribution map and the target spot distribution map; The original light spot distribution diagram is beam shaped based on the initial compensation phase matrix and a preset genetic algorithm.

2. The beam shaping method of the VCSEL laser enhancement module according to claim 1, characterized in that: The determining whether to perform beam shaping on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map includes: Segmenting the original light spot distribution map and the target light 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; For each of the first sub-images, determining a difference coefficient between the first sub-image and its corresponding second sub-image; Comparing each of the difference coefficients with a preset difference coefficient; If any of the difference coefficients is greater than the preset difference coefficient, it is determined to perform beam shaping processing on the original light spot distribution diagram.

3. The beam shaping method of the VCSEL laser enhancement module according to claim 2, characterized in that: The determining a difference coefficient between the first sub-image and its corresponding second sub-image includes: Acquire a first light intensity gradient corresponding to each first pixel in the first sub-image, acquire a second light intensity gradient corresponding to each second pixel in the second sub-image, and acquire a light intensity gradient absolute difference between the first light intensity gradient and the second light intensity gradient; For each first pixel in the first sub-image, obtaining an absolute difference in light intensity between the first pixel and a second pixel corresponding to the first pixel in the second sub-image, and determining that the first pixel is a target first pixel when the absolute difference in light intensity is greater than a preset absolute difference in light intensity; The difference coefficient is determined based on the absolute difference of the light intensity gradient and each of the target first pixels.

4. The beam shaping method of the VCSEL laser enhancement module according to claim 3, characterized in that: The 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 light intensity gradient absolute difference is greater than a preset light intensity gradient absolute difference; If it is greater than, the difference coefficient is determined to be infinite; If not, counting the number of the target first pixels, and determining whether the number of the target first pixels is greater than a preset number; If it is greater than, the difference coefficient is determined to be infinite; If not, the distance between the two target first pixels that are farthest from each other among the target first pixels is calculated, and the ratio of the absolute difference of the light intensity gradient to the distance value is determined as the difference coefficient.

5. The beam shaping method of the VCSEL laser enhancement module according to claim 1, characterized in that: The generating an initial compensation phase matrix based on the original spot distribution diagram and the target spot distribution diagram comprises: For each first pixel of the original light spot distribution diagram, generating an initial compensation phase corresponding to the first pixel 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 diagram; The initial compensation phase matrix is ​​generated based on the positions of pixels corresponding to each of the initial compensation phases in the original spot distribution map.

6. The beam shaping method of the VCSEL laser enhancement module according to claim 5, characterized in that: The step of generating an initial compensation phase corresponding to the first pixel 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 diagram comprises: pass Generate an initial input light corresponding to the first pixel; wherein, is the initial input light, is the first light intensity, is the randomly assigned initial phase; right Perform Fourier transform and get ;in, is a first far-field light corresponding to the first pixel; pass right Correction is performed to obtain the first corrected far-field light; wherein, is the second light intensity, for said first corrected far-field ray; Perform an inverse Fourier transform on the first corrected far-field light to obtain a first input light ; right Perform Fourier transform and get ;in, is the second far-field light corresponding to the first pixel; judge whether the absolute difference in light intensity with the second light intensity is less than a preset light intensity difference; If not less than, pass right Correction is performed to obtain the second corrected far-field light; wherein, is the second light intensity, correcting the far-field rays for the second one; Perform an inverse Fourier transform on the second corrected far-field light to obtain a second input light ; right Perform Fourier transform and get ;in, is a third far-field light corresponding to the first pixel; judge whether the absolute difference between the light intensity of the second light intensity and the light intensity of the second light intensity is less than the difference between the preset light intensity and the second light intensity; If yes, determine the second input ray The corresponding phase is the initial compensation phase corresponding to the first pixel; If not, iterate the judgment The step after determining whether the absolute difference of the light intensity with the second light intensity is less than the difference of the preset light intensity.

7. The beam shaping method of the VCSEL laser enhancement module according to claim 1, characterized in that: The beam shaping of the original spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm includes: Performing mutation processing on the initial compensation phase matrix to obtain a first generation population; For each first-generation chromosome of the first-generation population, obtaining a first fitness corresponding to the first-generation chromosome; Determining whether the maximum first fitness among the first fitnesses is greater than a preset fitness; If not, determining the first-generation chromosome whose first fitness is in the top 30% among the first-generation chromosomes as the target first-generation chromosome; Performing crossover and mutation processing on each of the target first-generation chromosomes to obtain a second-generation population; For each second-generation chromosome of the second-generation population, obtaining a second fitness corresponding to the second-generation chromosome; Determining whether the maximum second fitness among the second fitnesses is greater than a preset fitness; If yes, performing beam shaping processing on the original light spot distribution diagram based on the second generation chromosome corresponding to the maximum second fitness; If not, iterate the steps after determining whether the maximum first fitness among the first fitnesses is greater than the preset fitness.

8. A beam shaping system for a VCSEL laser enhancement module, characterized in that: include: An acquisition module, used to acquire an original light spot distribution map and a target light spot distribution map; A judgment module, used for judging whether to perform beam shaping processing on the original light spot distribution map based on the original light spot distribution map and the target light spot distribution map; A generating module, configured to generate an initial compensation phase matrix based on the original light spot distribution diagram and the target light spot distribution diagram when performing beam shaping processing on the original light spot distribution diagram; A beam shaping module is used to perform beam shaping on the original light spot distribution diagram based on the initial compensation phase matrix and a preset genetic algorithm.

Citation Information

Patent Citations

  • Diffraction optical element design method for shaping excimer laser light beams

    CN103777472A

  • Iterative algorithm for performing shaping on amplitude and phase of light beam simultaneously

    CN104777612A

  • High-power ultrafast laser shaping method and device, medium and product

    CN119703340A

  • Device for realizing light beam automatic shaping using shape changing lens

    CN1987546A

  • Diffractive optical beam shaping element

    US20170276951A1