Array laser beam collimation measurement method, device and equipment and storage medium
By capturing the array laser spot image and cropping the beam boundary box with an industrial camera to determine the center position of the spot, the problem of low efficiency in array laser alignment measurement is solved, and rapid identification and adjustment of the array element beam is achieved, thereby improving the collimation and adjustment efficiency.
Patent Information
- Application Number
- CN202510687842.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-09-05
AI Technical Summary
In the prior art, the collimation measurement efficiency of array lasers is low and there is a lack of judgment on the beam quality of each array element, resulting in randomness and uncertainty in the adjustment process.
The array laser beam collimation measurement method is adopted to capture the spot image through an industrial camera, crop the beam boundary box, determine the center position of the spot, and quickly find the deviated array element based on the overall spot distribution map and the preset standard distribution radius.
It realizes efficient collimation measurement of array laser beams, can quickly identify and adjust deviated array elements, and improves adjustment efficiency and accuracy.
Smart Images

Figure CN120594038A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of light beam collimation measurement technology, and in particular to an array laser light beam collimation measurement method, device, equipment and storage medium. Background Art
[0002] An array laser is a high-power, high-brightness laser composed of multiple independent laser units, which can easily process materials of various shapes and improve production efficiency.
[0003] However, due to installation errors during the production process of array lasers, the laser beams generated by each array element are not collimated, that is, the emitted beams are not parallel. Therefore, it is necessary to install a fly-eye lens in front of the array to adjust the alignment of the beams to ensure the alignment of the beams. Therefore, it is particularly important to measure the alignment of laser beams.
[0004] Currently, the alignment measurement of array lasers is usually performed through overall beam spot imaging. The problem is that it is impossible to know the beam quality and spot distribution of each array element, and the adjustment process is mostly manual. Such operation is not only inefficient but also has a certain degree of randomness. At the same time, it is impossible to judge the individual quality of the laser. For example, if the brightness of a laser array element does not meet the standard or the beam deviates seriously, it cannot be screened out. Summary of the Invention
[0005] Based on this, it is necessary to address the technical problem that the collimation measurement effect of the array laser in the prior art is poor, and propose an array laser beam collimation measurement method, device, computer equipment and storage medium.
[0006] In a first aspect, a method for measuring the alignment of an array laser beam is provided, which is applied to an array laser beam alignment measurement system. The array laser beam alignment measurement system includes an array laser, a chopper, a lens, a display screen, and an industrial camera. The chopper has a hole for passing a single array element beam. A movable chopper is placed parallel to the front of the array laser, and a lens is placed in front of the chopper. The beam emitted by the array laser sequentially passes through the hole of the chopper and the lens, is refracted by the lens, and falls on the display screen to form a light spot. The industrial camera captures the light spot image behind the display screen.
[0007] The array laser beam collimation measurement method comprises:
[0008] Obtaining a spot image of each array in the array laser and an overall spot distribution map captured by an industrial camera, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images;
[0009] For each of the light spot images, cropping the light spot image based on the light beam bounding box of the light spot image, and obtaining pixel values within the light beam bounding box on the light spot image as the target image;
[0010] Determining the spot center position of the target image corresponding to the target image on the spot image according to the fast axis center and the slow axis center of each target image;
[0011] The position of the offset array element and the center of the light spot distribution are determined based on the overall light spot distribution map, the overall bounding box of the overall light spot distribution map, the center position of the light spot and a preset standard distribution radius.
[0012] In a second aspect, an array laser beam collimation measurement device is provided, the device comprising:
[0013] An acquisition module is used to acquire the spot image of each array in the array laser and the overall spot distribution map captured by the industrial camera, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images;
[0014] a cropping module, configured to crop each of the light spot images based on a light beam bounding box of the light spot image, and obtain pixel values within the light beam bounding box on the light spot image as a target image;
[0015] A first determining module is configured to determine the spot center position of the target image on the spot image according to the fast axis center and the slow axis center of each target image;
[0016] The second determining module is configured to determine the position of the offset array element and the spot distribution center based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position, and a preset standard distribution radius.
[0017] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned array laser beam collimation measurement method when executing the computer program.
[0018] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned array laser beam collimation measurement method are implemented.
[0019] The array laser beam collimation measurement method proposed in the present invention obtains the spot image of each array in the array laser captured by the industrial camera and the overall spot distribution map, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images. Then, for each of the spot images, based on the beam bounding box of the spot image, the spot image is cropped to obtain the pixel value within the beam bounding box on the spot image as the target image. Then, based on the fast axis center and slow axis center of each of the target images, the spot center position corresponding to the target image on the spot image is determined. Finally, based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position and the preset standard distribution radius, the position of the offset array element and the spot distribution center are determined. The present invention finds the spot center position of each spot image through the spot image, and then determines the position of the deviated array element based on the overall spot distribution map and the spot distribution center, thereby quickly finding the deviated array element and facilitating subsequent adjustment of the array machine laser. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] in:
[0022] Figure 1 is a schematic diagram of an array laser beam collimation measurement system of an array laser beam collimation measurement method in one embodiment;
[0023] Figure 2 is a flow chart of a method for measuring array laser beam alignment in one embodiment;
[0024] Figure 3 is a structural block diagram of an array laser beam collimation measurement device in one embodiment;
[0025] Figure 4 is a structural block diagram of a computer device in one embodiment;
[0026] Figure 5 It is a structural block diagram of a computer device in another embodiment. DETAILED DESCRIPTION
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application are for the purpose of describing specific embodiments only and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0028] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0030] The array laser beam alignment measurement method provided by the embodiment of the present invention can be applied in the following fields: Figure 1In an array laser beam collimation measurement system, a spot center calculation device communicates with an industrial camera via a network. The spot center calculation device obtains the spot image of each array in the array laser captured by the industrial camera and the overall spot distribution map, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images. Then, the spot center calculation device crops each of the spot images based on the beam bounding box of the spot image, and obtains the pixel values within the beam bounding box on the spot image as the target image. Then, the spot center calculation device determines the spot center position corresponding to the target image on the spot image based on the fast axis center and slow axis center of each of the target images. Finally, the spot center calculation device determines the position of the offset array element and the spot distribution center based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position, and the preset standard distribution radius. The present invention uses spot images to locate the center of each spot image. Based on the overall spot distribution map and the spot distribution center, the position of any deviated array element is determined. This allows for rapid identification of deviated array elements and facilitates subsequent adjustment of the array machine laser. The spot center calculation device can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The present invention is described in detail below using specific embodiments.
[0031] See also Figure 2 As shown, Figure 2 A flow chart of an array laser beam collimation measurement method provided in one embodiment of the present invention is provided. The array laser beam collimation measurement method is applied to an array laser beam collimation measurement system, wherein the array laser beam collimation measurement system includes an array laser, a chopper, a lens, a display screen, and an industrial camera, wherein the chopper has a hole for passing a single array element beam, a chopper that can move up and down and left and right is placed in parallel in front of the array laser, and a lens is placed in front of the chopper; the light beam emitted by the array laser passes through the hole of the chopper and the lens in sequence, is refracted by the lens, and falls on the display screen to form a light spot, and the industrial camera collects the light spot image after the display screen; specifically, referring to Figure 1First, a chopper, which can move up and down and left and right, is placed parallel to the front of the array laser. The chopper has a hole that allows the beam of a single array element to pass through (this number does not have to be one; it can be increased based on actual needs). The chopper is controlled by two motors in both directions, allowing the hole to align with each array element in turn, allowing the beam to pass through. A lens is placed in front of the chopper to focus the beam on the working plane, that is, the display screen in front. The focal length of the lens is the actual working distance of the laser. Laser light emitted by the laser is refracted by the lens and hits the display screen, forming a spot. Ideally, a parallel beam passing through the lens will converge strictly at the focal point. Therefore, the distribution of the spot can be used to determine the collimation of the beam of each element in the laser array. A high-pixel industrial camera captures images behind the display screen. The image is then used to calculate the spot beam using an algorithm to determine the beam parameters and array distribution. The technical principle of the present invention is as follows: the laser emitted by the array laser is projected onto the display screen through the chopper at the corresponding position to form an image, which is then captured by an industrial camera to measure the center of the light spot. After the light spot images of all array elements are collected in sequence, the beam center fitting calculation of the entire laser array is performed to provide the area of the distribution center and determine the offset array element and position.
[0032] The array laser beam collimation measurement method comprises:
[0033] Step S101: acquiring a light spot image of each array in an array laser and an overall light spot distribution map captured by an industrial camera, wherein the light spot image is a pseudo-RGB thermal distribution map, and the overall light spot distribution map includes the light spots on each of the light spot images;
[0034] Step S102: For each of the light spot images, based on the light beam bounding box of the light spot image, the light spot image is cropped to obtain pixel values within the light beam bounding box on the light spot image as a target image;
[0035] Specifically, for each of the spot images, according to the contour of the set threshold, the largest contour area is searched in the spot image as the large contour, and the contours in the spot image except the large contour are taken as small contours; if the bounding box of the small contour intersects with the bounding box of the large contour or the y coordinate of the center of the small contour is within the bounding box of the large contour, the small contour and the large contour are merged to obtain the beam bounding box, otherwise the small contour is eliminated; the pixel values within the beam bounding box are cropped from the spot image as the target image.
[0036] For example, in the spot image, the contour area that is larger than a set threshold is regarded as a large contour. It should be noted that there may be multiple contours in the spot image.
[0037] Step S103: determining the spot center position corresponding to the target image on the spot image according to the fast axis center and the slow axis center of each target image;
[0038] In this embodiment, the fast axis center of the target image is first determined. Specifically, the target image is filtered at 95% of the maximum assigned value to obtain the peak energy point and the y-coordinate value of the pixel corresponding to the peak energy point. The y-coordinate values of the pixels corresponding to each peak energy point are sorted in ascending order, and the y-coordinate value in the middle of the sorted results is used as the fast axis center. For example, the target image is filtered at 95% of the maximum assigned value (adjustable coefficient) to obtain the y-coordinate values of all pixels within the range and convert them into coordinate numbers, that is, the number of peak energy points at each y position. After sorting the set of yN data by y value, the median of the y values is calculated as the center position of the fast axis.
[0039] Next, the slow axis center is determined based on the fast axis center. Specifically, the image values from left to right of the target image at the fast axis center are extracted to form the lateral energy distribution data of the light spot. A Gaussian fit is performed on this lateral energy distribution data to obtain the peak point position after fitting as the slow axis center. For example, based on the fast axis center position, the image values from left to right at that position in the image are extracted to form the lateral energy distribution data of the light spot. This data is then Gaussian fitted, and the peak point position after fitting is the center position of the slow axis.
[0040] Finally, the fast axis center and the slow axis center are reversed according to the original cropped position to obtain the spot center position corresponding to the target image on the spot image. For example, the fast and slow axis centers are reversed according to the cropped position and restored to the coordinate position of the original image, and this position is the spot center position.
[0041] Step S104: determining the position of the offset array element and the spot distribution center based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position, and a preset standard distribution radius.
[0042] In this embodiment, the edge position of the distribution is first calculated through the overall light spot distribution map, and an overall bounding box is generated accordingly. Then, according to the overall bounding box of the overall light spot distribution map, the overall light spot distribution map is divided into regions of fixed size to obtain various sub-regions, wherein the sub-regions are rectangular; for each sub-region, a circular region is generated with the center of the sub-region as the center of the circle and the preset standard distribution radius; the light spot within the sub-region and outside the circular region corresponding to the sub-region is regarded as the offset light spot, and the position of the offset array element is determined according to the light spot center position of the offset light spot; based on the circular area and the average distribution center of the overall light spot, the light spot distribution center of the overall light spot distribution map is determined.
[0043] Record the number of light spot center positions in each circular area, and determine the circular area with the largest number of light spot center positions as the target circular area; calculate the average distribution center of the entire light spot; if there is only one target circular area, the center of the target circular area is the light spot distribution center; if there is more than one target circular area, the center of the circular area closest to the average distribution center is the light spot distribution center.
[0044] For example, first, determine the standard distribution radius r of the light beam, and calculate the edge position of the distribution through the overall spot distribution in the overall spot distribution map, that is, the upper and lower, left and right boundaries of the search, that is, the overall bounding box; divide the spot area according to the overall bounding box in the overall spot distribution map to obtain various sub-areas;
[0045] Secondly, set the search step size step, which is used to increment the x and y values of the search center of the sub-region. The search center refers to the center of the sub-region;
[0046] Then, according to the set step size, from left to right and from top to bottom, determine the circular area formed by the center of the current sub-area and the distribution radius r, retrieve the number of light spot center positions contained in the circular area, and record the circular area with the largest number;
[0047] Next, the average distribution center of the overall light spot in the overall light spot distribution map is calculated;
[0048] Finally, if there is only one circular area with the largest number of retrieved ones, the center of the circular area is taken as the distribution center of the light spot. If there are multiple circular areas, the center of the circular area closest to the average distribution center is taken as the distribution center of the light spot.
[0049] See also Figure 3 As shown, in one embodiment, an array laser beam collimation measurement device is provided, the device comprising:
[0050] An acquisition module 10 is configured to acquire a light spot image of each array in an array laser and an overall light spot distribution map captured by an industrial camera, wherein the light spot image is a pseudo-RGB thermal distribution map, and the overall light spot distribution map includes the light spots on each of the light spot images;
[0051] a cropping module 20 for cropping each of the light spot images based on a light beam bounding box of the light spot image, and obtaining pixel values within the light beam bounding box on the light spot image as a target image;
[0052] A first determining module 30 is configured to determine the spot center position of the target image on the spot image according to the fast axis center and the slow axis center of each target image;
[0053] The second determining module 40 is configured to determine the position of the offset array element and the spot distribution center based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position, and a preset standard distribution radius.
[0054] In one embodiment, the cutting module 20 is configured to:
[0055] For each of the light spot images, according to the contour of the set threshold, searching for the largest contour area in the light spot image as the large contour, and taking the contours in the light spot image except the large contour as the small contour;
[0056] If the bounding box of the small contour intersects with the bounding box of the large contour or the y coordinate of the center of the small contour is within the bounding box of the large contour, the small contour is merged with the large contour to obtain the beam bounding box, otherwise the small contour is eliminated;
[0057] Pixel values within the light beam boundary box are cropped from the light spot image as a target image.
[0058] The first determining module 30 is configured to:
[0059] determining a fast axis center of the target image;
[0060] determining a slow axis center based on the fast axis center;
[0061] According to the original cropping position, the fast axis center and the slow axis center are reversely calculated to obtain the spot center position on the spot image corresponding to the target image.
[0062] The first determining module 30 is configured to:
[0063] Filter the target image at 95% of the maximum assigned value to obtain the peak energy point and the y-coordinate value of the pixel corresponding to the peak energy point;
[0064] The y-coordinate values of the pixels corresponding to the peak energy points are sorted in ascending order, and the y-coordinate value in the middle of the sorting result is used as the fast axis center.
[0065] The first determining module 30 is configured to:
[0066] Extract the image values from left to right of the target image at the center of the fast axis to form the lateral energy distribution data of the spot;
[0067] Gaussian fitting is performed on the transverse energy distribution data to obtain the peak point position after fitting as the slow axis center.
[0068] In one embodiment, the second determining module 40 is configured to:
[0069] The edge position of the distribution is calculated through the overall spot distribution map, and the overall bounding box is generated accordingly;
[0070] According to the overall bounding box of the overall light spot distribution map, the overall light spot distribution map is divided into regions of fixed size to obtain sub-regions;
[0071] For each of the sub-areas, a circular area is generated with the center of the sub-area as the center and the preset standard distribution radius;
[0072] A light spot within the sub-area and outside the circular area corresponding to the sub-area is used as a shifted light spot, and a position of a shifted array element is determined according to a center position of the shifted light spot;
[0073] Based on the circular area and the average distribution center of the overall light spot, the light spot distribution center of the overall light spot distribution diagram is determined.
[0074] In one embodiment, the second determining module 40 is configured to:
[0075] Record the number of light spot center positions in each circular area, and determine the circular area with the largest number of light spot center positions as the target circular area
[0076] Calculate the average distribution center of the overall light spot;
[0077] If there is only one target circular area, the center of the target circular area is the center of the light spot distribution;
[0078] If there is more than one target circular area, the center of the circular area closest to the average distribution center is taken as the spot distribution center.
[0079] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, memory, network interface and database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements the functions or steps on the service side of a method for measuring the alignment of an array laser beam.
[0080] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, memory, network interface, display screen, and input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When executed by the processor, the computer program implements the functions or steps on the client side of a method for measuring array laser beam collimation.
[0081] In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0082] Obtaining a spot image of each array in the array laser and an overall spot distribution map captured by an industrial camera, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images;
[0083] For each of the light spot images, cropping the light spot image based on the light beam bounding box of the light spot image, and obtaining pixel values within the light beam bounding box on the light spot image as the target image;
[0084] Determining the spot center position of the target image corresponding to the target image on the spot image according to the fast axis center and the slow axis center of each target image;
[0085] The position of the offset array element and the center of the light spot distribution are determined based on the overall light spot distribution map, the overall bounding box of the overall light spot distribution map, the center position of the light spot and a preset standard distribution radius.
[0086] The array laser beam collimation measurement method proposed in the present invention obtains the spot image of each array in the array laser captured by the industrial camera and the overall spot distribution map, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images. Then, for each of the spot images, based on the beam bounding box of the spot image, the spot image is cropped to obtain the pixel value within the beam bounding box on the spot image as the target image. Then, based on the fast axis center and slow axis center of each of the target images, the spot center position corresponding to the target image on the spot image is determined. Finally, based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position and the preset standard distribution radius, the position of the offset array element and the spot distribution center are determined. The present invention finds the spot center position of each spot image through the spot image, and then determines the position of the deviated array element based on the overall spot distribution map and the spot distribution center, thereby quickly finding the deviated array element and facilitating subsequent adjustment of the array machine laser.
[0087] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0088] Obtaining a spot image of each array in the array laser and an overall spot distribution map captured by an industrial camera, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images;
[0089] For each of the light spot images, cropping the light spot image based on the light beam bounding box of the light spot image, and obtaining pixel values within the light beam bounding box on the light spot image as the target image;
[0090] Determining the spot center position of the target image corresponding to the target image on the spot image according to the fast axis center and the slow axis center of each target image;
[0091] The position of the offset array element and the center of the light spot distribution are determined based on the overall light spot distribution map, the overall bounding box of the overall light spot distribution map, the center position of the light spot and a preset standard distribution radius.
[0092] The array laser beam collimation measurement method proposed in the present invention obtains the spot image of each array in the array laser captured by the industrial camera and the overall spot distribution map, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images. Then, for each of the spot images, based on the beam bounding box of the spot image, the spot image is cropped to obtain the pixel value within the beam bounding box on the spot image as the target image. Then, based on the fast axis center and slow axis center of each of the target images, the spot center position corresponding to the target image on the spot image is determined. Finally, based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position and the preset standard distribution radius, the position of the offset array element and the spot distribution center are determined. The present invention finds the spot center position of each spot image through the spot image, and then determines the position of the deviated array element based on the overall spot distribution map and the spot distribution center, thereby quickly finding the deviated array element and facilitating subsequent adjustment of the array machine laser.
[0093] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can be found in the relevant descriptions of the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0094] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchl ink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0095] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0096] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A method for measuring the alignment of an array laser beam, characterized in that: The invention is applied to an array laser beam collimation measurement system, which includes an array laser, a chopper, a lens, a display screen, and an industrial camera. The chopper has a hole for passing a single array element beam. A movable chopper is placed in parallel in front of the array laser, and a lens is placed in front of the chopper. The light beam emitted by the array laser passes through the hole of the chopper and the lens in sequence, and is refracted by the lens and falls on the display screen to form a light spot. The industrial camera behind the display screen collects the light spot image. The array laser beam collimation measurement method comprises: Obtaining a spot image of each array in the array laser and an overall spot distribution map captured by an industrial camera, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images; For each of the light spot images, cropping the light spot image based on the light beam bounding box of the light spot image, and obtaining pixel values within the light beam bounding box on the light spot image as the target image; Determining the spot center position of the target image corresponding to the target image on the spot image according to the fast axis center and the slow axis center of each target image; The position of the offset array element and the center of the light spot distribution are determined based on the overall light spot distribution map, the overall bounding box of the overall light spot distribution map, the center position of the light spot and a preset standard distribution radius.
2. The array laser beam collimation measurement method according to claim 1, characterized in that: For each of the light spot images, the step of cropping the light spot image based on the light beam bounding box of the light spot image to obtain pixel values within the light beam bounding box on the light spot image as the target image includes: For each of the light spot images, according to the contour of the set threshold, searching for the largest contour area in the light spot image as the large contour, and taking the contours in the light spot image except the large contour as the small contour; If the bounding box of the small contour intersects with the bounding box of the large contour or the y coordinate of the center of the small contour is within the bounding box of the large contour, the small contour is merged with the large contour to obtain the beam bounding box, otherwise the small contour is eliminated; Pixel values within the light beam boundary box are cropped from the light spot image as a target image.
3. The array laser beam collimation measurement method according to claim 1, characterized in that: The step of determining the spot center position corresponding to the target image on the spot image according to the fast axis center and the slow axis center of each target image includes: determining a fast axis center of the target image; determining a slow axis center based on the fast axis center; According to the original cropping position, the fast axis center and the slow axis center are reversely calculated to obtain the spot center position on the spot image corresponding to the target image.
4. The array laser beam collimation measurement method according to claim 3, characterized in that: The step of determining the fast axis center of the target image comprises: Filter the target image at 95% of the maximum assigned value to obtain the peak energy point and the y-coordinate value of the pixel corresponding to the peak energy point; The y-coordinate values of the pixels corresponding to the peak energy points are sorted in ascending order, and the y-coordinate value in the middle of the sorting result is used as the fast axis center.
5. The array laser beam collimation measurement method according to claim 4, characterized in that: The step of determining the slow axis center based on the fast axis center comprises: Extract the image values from left to right of the target image at the center of the fast axis to form the lateral energy distribution data of the spot; Gaussian fitting is performed on the transverse energy distribution data to obtain the peak point position after fitting as the slow axis center.
6. The array laser beam collimation measurement method according to claim 1, characterized in that: The step of determining the position of the offset array element and the center of the light spot distribution based on the overall light spot distribution map, the overall bounding box of the overall light spot distribution map, the center position of the light spot and a preset standard distribution radius includes: The edge position of the distribution is calculated through the overall spot distribution map, and the overall bounding box is generated accordingly; According to the overall bounding box of the overall light spot distribution map, the overall light spot distribution map is divided into regions of fixed size to obtain sub-regions; For each of the sub-areas, a circular area is generated with the center of the sub-area as the center and the preset standard distribution radius; A light spot within the sub-area and outside the circular area corresponding to the sub-area is used as a shifted light spot, and a position of a shifted array element is determined according to a center position of the shifted light spot; Based on the circular area and the average distribution center of the overall light spot, the light spot distribution center of the overall light spot distribution diagram is determined.
7. The array laser beam collimation measurement method according to claim 6, characterized in that: The step of determining the spot distribution center of the overall spot distribution diagram based on the circular area and the average distribution center of the overall spot includes: Record the number of light spot center positions in each circular area, and determine the circular area with the largest number of light spot center positions as the target circular area Calculate the average distribution center of the overall light spot; If there is only one target circular area, the center of the target circular area is the center of the light spot distribution; If there is more than one target circular area, the center of the circular area closest to the average distribution center is taken as the spot distribution center.
8. An array laser beam collimation measurement device, characterized in that: The array laser beam collimation measurement device comprises: An acquisition module is used to acquire the spot image of each array in the array laser and the overall spot distribution map captured by the industrial camera, wherein the spot image is a pseudo-RGB thermal distribution map, and the overall spot distribution map includes the spots on each of the spot images; a cropping module, configured to crop each of the light spot images based on a light beam bounding box of the light spot image, and obtain pixel values within the light beam bounding box on the light spot image as a target image; A first determining module is configured to determine the spot center position of the target image on the spot image according to the fast axis center and the slow axis center of each target image; The second determining module is configured to determine the position of the offset array element and the spot distribution center based on the overall spot distribution map, the overall bounding box of the overall spot distribution map, the spot center position, and a preset standard distribution radius.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the array laser beam collimation measurement method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the array laser beam collimation measurement method according to any one of claims 1 to 7 are implemented.