Focus offset compensation method and device for laser cutting head and medium
By setting up a light source group and an image acquisition system inside the laser cutting head, the beam image is automatically analyzed, the focus position is calculated, and the automatic compensation of the focus offset of the laser cutting head is realized, which solves the problems of complex operation and inaccurate compensation in the traditional method, and improves the efficiency of the laser cutting head. Improve cutting quality and stability.
Patent Information
- Application Number
- CN202410838943.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-06-05
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-26
AI Technical Summary
During the high-power laser cutting process, the heat accumulation in the lens and lens barrel causes the focus position to shift. The traditional timing compensation method is complicated to operate and difficult to achieve accurate and real-time focus shift compensation, especially in a variety of working conditions.
By setting a light source group inside the laser cutting head, the beam passes through the half-reflecting mirror and reaches the image acquisition area, the beam image is obtained, the outline size is analyzed, the actual focus position is calculated based on the mapping relationship generated by pre-testing, and based on the difference between the target focus position and the actual focus position The difference is used for automatic focus shift compensation.
It realizes automated focus offset compensation, reduces the skill requirements for operators, improves the accuracy and stability of compensation, and reduces the impact of ambient light and focus position changes on the compensation results.
Smart Images

Figure CN118808884A_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application CN 2024107237134, filed on June 5, 2024.
[0002] This application cites the full text of the above-mentioned Chinese patent application. Technical Field
[0003] The present application relates to the field of laser cutting, and in particular to a focus offset compensation method, device and medium for a laser cutting head. Background Art
[0004] With the development of technology, laser processing power continues to increase in the laser cutting industry.
[0005] During the high-power laser cutting process, as the processing time increases, the heat absorbed and accumulated by components such as lenses and lens barrels will continue to increase. The resulting "thermal lens effect" of the lens itself and the deformation of the lens barrel caused by uneven heating can easily cause the focal position to shift, making the cutting parameters no longer objective. This situation will seriously affect the cutting quality and reduce the cutting performance.
[0006] In traditional solutions, the timed compensation method is used to solve this type of focus offset problem. The focus is adjusted within a pre-set time period, and the focus compensation parameters are manually adjusted and optimized based on the cutting effect.
[0007] The above traditional solutions require high operating skills of operators, which are difficult for ordinary employees to master, and are easily affected by various other objective factors, making it difficult to achieve accurate and real-time compensation. In addition, the compensation method of timing compensation is not real-time compensation based on the actual change of optical focus, and is difficult to apply to various working conditions. Summary of the invention
[0008] In order to solve the above problems, the present application proposes a focus offset compensation method for a laser cutting head, comprising:
[0009] Controlling a light source group disposed inside the laser cutting head to emit a light beam so that the light beam reaches a preset image acquisition area after passing through one or more semi-reflective mirrors;
[0010] Acquire a beam image generated by the beam in the image acquisition area;
[0011] Analyzing the light beam image to obtain the outline size of the shape formed by the light beam in the light beam image;
[0012] Based on the mapping relationship between the outline size, the focus setting value, and the actual focus position generated in the pre-test, the actual focus position in the current work is obtained according to the outline size of the beam forming shape and the focus setting value in the current work;
[0013] Focus offset compensation is performed according to the difference between the target focus position in the current work and the actual focus position.
[0014] On the other hand, the present application also proposes a focus offset compensation device for a laser cutting head, comprising:
[0015] at least one processor; and,
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the focus offset compensation method for the laser cutting head as described in the above example.
[0018] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as: the focus offset compensation method for a laser cutting head as described in the above example.
[0019] The focus offset compensation method for a laser cutting head proposed in this application can bring the following beneficial effects:
[0020] Compared with the method of timing compensation, the focus shift compensation process can be automatically implemented through the pre-obtained mapping relationship, and there is no requirement for the operating level of the employees, making the compensation result more accurate and stable.
[0021] In addition, factors such as changes in ambient light intensity and focus position have a greater impact on the contour recognition of a single light spot image, but have a smaller impact on the recognition of the center point of the light spot. Moreover, the large outline of the light source group is easier to achieve a larger outline than the light beam of a single laser module, which facilitates the recognition of image changes under the same lens distortion and focus shift conditions. In other words, during the image acquisition and analysis process, the center position of each light spot is relatively less affected by changes in ambient light, clarity, spot size, and beam intensity.
[0022] Compared with the change in the contour of each light spot itself, the position of the center point of each light spot is relatively easy to calculate by visual analysis, and the overall graphic contour fitted by the center points of each light spot is relatively stable and clear. Therefore, the method of using light source group imaging, fitting the contour size, and inferring the actual focus position and focus offset based on the contour size, calibration data model or calculation, and performing focus compensation has better stability and recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 It is a flow chart of a focus offset compensation method for a laser cutting head in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of focus shift in an embodiment of the present application;
[0026] Figure 3 This is a schematic diagram of the structure of a light source group and a half-reflecting mirror in one situation in an embodiment of the present application;
[0027] Figure 4 This is a schematic diagram of the interaction between the industrial computer and the image acquisition device in the first situation in the embodiment of the present application;
[0028] Figure 5 This is a schematic diagram of the interaction between the industrial computer and the image acquisition device in the second situation in the embodiment of the present application;
[0029] Figure 6 A schematic diagram of generating a contour of a light beam image in an embodiment of the present application;
[0030] Figure 7 A schematic diagram of the duration of periodic light emission in an embodiment of the present application;
[0031] Figure 8 Schematic diagram of the process of obtaining the actual focus position in the embodiment of the present application;
[0032] Fig. 9 This is a schematic diagram of the process of obtaining the focus offset in an embodiment of the present application;
[0033] Fig.10 This is a schematic diagram of determining the geometric center in an embodiment of the present application;
[0034] Fig.11 It is a schematic diagram of a focus offset compensation device for a laser cutting head in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0036] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0037] like Figure 1 As shown, the embodiment of the present application provides a focus offset compensation method for a laser cutting head, comprising:
[0038] S101: Control the light source group disposed inside the laser cutting head to emit a light beam, so that the light beam reaches a preset image acquisition area after passing through one or more semi-reflective mirrors.
[0039] like Figure 2 As shown in the figure, during the actual use of the laser cutting head, focus shift may occur. Focus shift is essentially the accumulation of heat in the lens, the increase in lens temperature, and the increase in the curvature of the lens group composed of lenses such as the collimator and focusing lens, which shows the characteristics of a convex lens. When focus shift occurs, the focus changes toward the positive focus direction. The greater the increase in curvature, the greater the focus shifts toward the positive focus direction.
[0040] exist Figure 2 In the figure, position 1 is the theoretical focus position, and position 2 is the actual focus position after the lens is deformed (the focus has shifted). To address the problems in timing compensation, a camera or image sensor can be installed inside the laser cutting head to infer the focus shift amount based on the change in the size of the spot image of the indicator light emitted by the laser fiber crystal head. Of course, matching lenses and filters can also be installed to filter out light from non-light source group spectrum bands and eliminate the influence of scattered light, so that the photosensitive element of the camera or image sensor can more completely observe the entire group of spot images at the current position.
[0041] However, in the process of observing the spot of a single indicator light source, it is easily affected by factors such as unclear spot boundaries, the spot image being greatly affected by ambient scattered light, the irregular spot of the original indicator light source, and the non-fixed spot size. It is difficult to effectively judge the change in focus offset by observing the contour changes of an original indicator light spot.
[0042] In addition, when setting the focal position, the position of the collimator or focusing lens of the laser cutting head is adjustable and variable, so the observed spot size itself is variable. From the perspective of the image, the edge of a single spot (also called the outline) is easily affected by factors such as the irregularity of the original indicator light source spot, its own stray light, and changes in the intensity of ambient scattered light, making it difficult to define the edge change.
[0043] Based on this, setting a light source group and relying on the light source group to complete the calculation of the focus shift can solve the problems caused by a single indicator light source.
[0044] The light source group includes multiple active light sources, which can actively emit corresponding light beams under control. The active light sources are arranged based on preset shapes, and their shapes can be rings, multiple parallel lines, or other irregular shapes. When the shape is a ring, it can be a circular ring, a fan-shaped ring, or a rectangular ring, and the multiple active light sources in the light source group can be evenly distributed. For example, it can be multiple active light sources distributed in a circular ring shape, emitting multiple beams of parallel light to form a ring-like light beam combination.
[0045] Factors such as changes in ambient light intensity and focus position have a greater impact on the contour recognition of a single light spot image, but less impact on the recognition of the center point of the light spot. Moreover, the large outline of the light source group is easier to achieve a larger outline than the light beam of a single laser module, which facilitates the recognition of image changes under the same lens distortion and focus shift conditions. In other words, during the image acquisition and analysis process, the center position of each light spot is relatively less affected by changes in ambient light, clarity, spot size, and beam intensity.
[0046] Compared with the change in the contour of each light spot itself, the position of the center point of each light spot is relatively easy to calculate by visual analysis, and the overall graphic contour fitted by the center points of each light spot is relatively stable and clear. Therefore, the method of using light source group imaging, fitting the contour size, and inferring the actual focus position and focus offset based on the contour size, calibration data model or calculation, and performing focus compensation has better stability and recognition accuracy.
[0047] In addition, the brightness and output power of each active light source in the light source group are relatively consistent. The brightness of the active light source can be designed to be fixed or adjustable. The light emitted by the light source group can be a parallel or regular indicator laser at a certain angle, or a non-laser beam.
[0048] By setting the position and angle of the light source group accordingly, the light beam can pass through the lenses that may cause focus shift (for example, collimating lenses, focusing lenses), and be reflected by the semi-reflecting mirror to reach the image acquisition area.
[0049] Specifically, you can Figure 3 As shown, the light source group is arranged around the output end of the processing laser light source. When the light source group is ring-shaped, it can be arranged around the processing laser light source, and the light beam is emitted from top to bottom and enters the laser processing channel.
[0050] At this time, the number of the semi-reflective mirror can be one, which is set below the focusing mirror and has a preset angle with the focusing mirror, for example, 45 degrees between the two. Of course, another semi-reflective mirror can be set below the light source group and above the collimating mirror. Whether to add the semi-reflective mirror can be determined based on demand. At this time, Figure 3 The multiple mirrors in the image are, from top to bottom, a half-reflecting mirror, a collimating mirror, a focusing mirror, and a half-reflecting mirror.
[0051] The image acquisition area is set on the side of the lower semi-reflective mirror. When the upper semi-reflective mirror is not set, the light beam emitted by the light source group passes through the collimating mirror and the focusing mirror, is reflected by the semi-reflective mirror, and enters the image acquisition area. The image acquisition device acquires the light beam image in the image acquisition area.
[0052] certainly, Figure 3 The structure in is only an example, and other implementation schemes that can be easily associated with those skilled in the art can all be used as the protection scope of the embodiments of the present application. For example, the number of semi-reflective mirrors is increased, so that the semi-reflective mirror is set on one side of the processing laser light source. Through the added semi-reflective mirror, the light beam entering from the side can pass through the collimating mirror and the focusing mirror and enter the image acquisition area. At this time, the position of the light source group can still be set at the top, and the image acquisition area is still set at the bottom, or the two can be interchanged, so that the position of the light source group is set at the bottom, and the image acquisition area is still set at the top.
[0053] In addition, the light beams emitted by the light source group may be a group of parallel light beams or non-parallel light beams. For example, they may be at a certain angle to the central axis and diverge inwards or outwards.
[0054] S102: Acquire, by an image acquisition device, a beam image generated by the light beam in the image acquisition area.
[0055] After the light beam of the light source group reaches the image acquisition area, the corresponding light beam image is acquired by the image acquisition device (which may be a camera or an image sensor). The light beam may be directly injected into the photosensitive element of the camera or image sensor for shooting. Alternatively, a corresponding screen or shadow cloth (whose material may be a semi-transparent screen, a double-sided shadow cloth, a semi-transparent PVC board, etc.) is set in the image acquisition area, the light beam is imaged on the screen or shadow cloth, and the image acquisition device observes the light spot caused by the light beam on the screen or shadow cloth to perform image acquisition and obtain the light beam image. The image acquisition device and the screen or shadow cloth may be located on the same side of the semi-reflecting mirror, or the image acquisition device and the screen or shadow cloth may be located on different sides of the semi-reflecting mirror, and the light beam image can be acquired.
[0056] Furthermore, when a screen or a shadow cloth is provided, the light beam irradiated on the screen or the shadow cloth may be an image before the light beam group-focus (indicating that the focus of the light beam is located outside the semi-reflecting mirror and the screen), or an image after the light beam group-focus (indicating that the focus of the light beam is located between the semi-reflecting mirror and the screen). There is no limitation here, as long as the position of the screen or the shadow cloth is fixed and the outline size of the image on the screen or the shadow cloth is larger than a preset value, thereby ensuring that when measuring the outline size, the image on the screen will not alternate between before and after the light beam group-focus due to changes in the actual focal position, thereby causing errors in the calculation of the outline size.
[0057] S103: Analyze the light beam image to obtain the outline size of the shape formed by the light beam in the light beam image.
[0058] An image processing unit is pre-set. After the image acquisition device acquires the light beam image, the image acquisition device sends the light beam image to the image processing unit for processing.
[0059] like Figure 4 As shown, the image processing unit is a module in the industrial computer, which is mainly used for image processing and contour size calculation. In addition, the industrial computer also includes other modules, such as a focus compensation calculation module, which is used to calculate the focus offset that needs to be compensated and send control instructions to the laser cutting head to perform focus offset compensation.
[0060] like Figure 5 As shown, the image processing unit can also be the software and hardware processing part integrated in the embedded programmable camera, or an embedded module integrated with the image sensor. It is a module in the image acquisition device. When transmitting data to the industrial computer, it no longer transmits the beam image but transmits the calculated contour size.
[0061] The industrial computer and the image acquisition device communicate with each other in a bus manner to transfer image data, for example, using an Ethernet bus to transfer data according to a GigE interface.
[0062] Each light beam is presented in the form of a light spot in the light beam image. Generally speaking, the preset shape corresponding to the light source group can also be reflected in the light beam image. Therefore, the preset shape in the preset image is usually a regular shape. Figure 6 As shown in the figure, taking the preset shape of a ring as an example, in the image analysis process, the position of the center point of each light spot is obtained, and then the positions of the center points of each light spot are used to fit a total contour. When the preset shape is a ring, the final contour is a circle. At this time, its contour size is calculated. In addition to being related to the installation position and installation angle of the light source group, the contour size is also related to the lenses inside the laser cutting head.
[0063] S104: Based on the mapping relationship between the outline size, the focus setting value, and the actual focus position generated in advance, the actual focus position in the current work is obtained according to the outline size of the light beam forming shape and the focus setting value in the current work.
[0064] Generally speaking, when there is no focus shift, that is, when the focus setting value is the same as the actual focus position, the outline size will change accordingly with the change of the focus setting value. When there is a focus shift, the actual focus position will change accordingly with the change of the focus setting value. At this time, due to the change of the actual focus position, the outline size will also change accordingly. Therefore, there is a corresponding mapping relationship between the three, and the other one can be obtained based on two of them.
[0065] The mapping relationship between the contour size, focus setting value and actual focus position is generated in advance. In the current working process, the contour size formed by the light beam has been obtained based on image analysis, and the focus setting value is used to be set in advance before work, so the actual focus position can be inferred based on the mapping relationship.
[0066] Specifically, the mapping relationship can be generated through multiple rounds of testing. In each round of testing, first, for a single focus setting value, the corresponding light emission duration and intermittent duration in the periodic light emission are set. Periodic light emission means that the light is continuously emitted during the light emission duration, and then the light is stopped during the intermittent duration to complete a cycle of light emission.
[0067] Through the processing laser light source, the laser processing test is carried out in a periodic light emission mode to simulate the actual working conditions until the test parameters are stable. The test parameters include the lens temperature (including the corresponding problems of the collimating lens and the focusing lens respectively), the degree of lens deformation, and the focus offset. The stability of the test parameters means that when the periodic light emission continues, the test parameters no longer change, or the change range is very low, lower than the preset range.
[0068] Get the actual focus position and outline size in the current state. The outline size has been obtained above, and the actual focus position can be obtained based on a variety of methods. For example, under the above conditions, during the multi-cycle "periodic" light emission process, the corresponding measures are briefly inserted to determine the actual focus position.
[0069] Specifically, corresponding measures may include:
[0070] Measure 1: Blue spark method. When the focus is correct, the nozzle can be removed, and the pulse laser can be blown onto the stainless steel plate, so that the cutting head moves up and down until the blue spark is the focus.
[0071] Measure 2, thin plate slit method. By cutting the thin plate, the smallest slit that can be obtained is cut to obtain the focal position. This measure can only be used for negative focus cutting calibration.
[0072] Measure 3, beam analysis method. Use a beam analyzer to observe the beam to obtain the focal position. During the observation process, the nozzle, ceramic ring, and even the bottom module can be removed to facilitate observation of the entire beam.
[0073] Measure 4: Plastic plate oblique pulling method: Use a plastic plate at a certain angle to the vertical axis to pull horizontally, and find the minimum point of the light beam as the focus.
[0074] Measure 5, plastic plate printing method. Move the laser cutting head up and down, and print the light beam on the plastic plate, with the smallest printing diameter as the focus. This measure can only be used for negative focus cutting calibration.
[0075] At this time, the focus setting value is set. When the light is emitted periodically and the continuous light emission duration in each cycle is fixed, the intermittent duration in each cycle remains unchanged. After multiple cycles, the focus offset tends to be stable. Gradually adjusting the intermittent duration of the periodic light output can gradually change the focus offset. After changing the intermittent duration, repeat the laser processing test until the actual focus position and contour size corresponding to all focus offsets (from 0 to the maximum value) under the current single focus setting value are obtained to generate the mapping relationship corresponding to the current single focus setting value.
[0076] In the mapping relationship, as the light emission duration in the periodic light emission increases and the intermittent duration decreases, the focus offset increases.
[0077] Specifically, when the duration of the periodic light output is short and the intermittent duration is long enough, the lens temperature is not high and there is usually no focus shift. When the duration of the periodic light output is fixed and the intermittent duration is short enough, after multiple cycles, the lens heat accumulates, the lens temperature rises, and the focus shift occurs, which is an increase process from nothing to something.
[0078] When the intermittent time is zero (at this time, the laser cutting head is in the state of continuous light emission), after multiple cycles, the lens temperature can rise to the highest, the lens curvature changes to the maximum, and the focus offset increases to the maximum.
[0079] Under the condition of fixed focus setting value and intermission time, after multiple cycles, the lens temperature and deformation tend to be stable, and the focus offset is basically stable. Under each focus setting value, a fixed intermission time, after multiple cycles, a stable profile size can be obtained, and the profile size corresponds to the actual focus position and focus offset under the focus setting value.
[0080] For example, Figure 7 As shown, the continuous light emission time is T1 and the intermittent time is T2. One cycle T = T1 + T2. Under the current focus setting value and intermittent time, a sufficient number of cycles are tested continuously, because the lens temperature can be stabilized, the focus offset can be stabilized. Under this focus setting value, as long as the number of test cycles is sufficient, the larger the intermittent time T2, the closer the focus offset is to the minimum value 0; the smaller the intermittent time T2, the closer the focus offset is to the maximum value.
[0081] Therefore, by adjusting the value of the interval time T2, the focus offset is gradually changed from 0 to the maximum value. By extension, under all focus setting values, the focus offset can be gradually changed by adjusting the value of the interval time T2.
[0082] Finally, the focus setting value is changed and calibration is continued until the mapping relationships corresponding to all focus setting values are generated, thus obtaining the mapping relationship among the focus setting value, the contour size, and the actual focus position, which is then generated into an associated list and stored.
[0083] S105: Perform focus offset compensation according to the difference between the target focus position in the current operation and the actual focus position.
[0084] like Figure 8 As shown, based on the mapping relationship (also referred to as the calibration relationship) in the above text, the actual focus position has been obtained based on the focus setting value and the contour size.
[0085] At this time, according to the user processing parameters, the desired target focus position (that is, the actual focus position under the user processing parameters if no focus shift occurs) is obtained, such as Fig. 9 As shown, the offset (also the focus offset) that needs to be compensated is calculated based on the difference between the target focus position and the actual focus position.
[0086] According to the focus setting value, the difference between it and the focus offset is calculated to obtain the focus setting value that needs to be updated in the next step, thereby completing the update of the focus setting value, and using the updated focus setting value as a readjusted user processing parameter to achieve focus offset compensation.
[0087] In the process of real-time compensation, the current focus setting value is used as input, and the current contour size is used as feedback to infer the current actual focus position and focus compensation value.
[0088] During the dynamic adjustment process, the current focus setting value is used as the intermediate process debugging quantity, the current contour size and the current actual focus position are used as feedback quantities, and the target focus position required by the user's processing parameters is used as the target quantity.
[0089] In one embodiment, the active light source and the processing laser light source belong to different spectral bands, and the spectral band of the processing laser light source is higher than that of the active light source. At this time, the light beam emitted by the light source group has a certain transmittance to the collimator and the focusing mirror, and the semi-reflecting mirror has a high transmittance to the processing laser, and its transmittance is higher than the first preset threshold, which will not affect the work of the processing laser, and has a certain reflectivity to the active light source, and the reflectivity is higher than the second preset threshold, which can realize the reflection of the light beam of the active light source.
[0090] In one embodiment, when analyzing the beam image, the beam image is preprocessed, for example, image filtering is performed. By median filtering, the grayscale values of all pixels in a certain area centered on any pixel can be sorted from small to large, and the middle value after sorting is used as the grayscale value of the pixel. By applying nonlinear stretching processing, the grayscale value of the background interference pixel point often has a large difference compared with the grayscale value of its adjacent pixels. Taking the median after sorting can make the interference pixel consistent with the grayscale value of its adjacent pixels, thereby removing the interference and better maintaining the edge of the image.
[0091] Based on the binarization threshold, the pre-processed beam image is binarized, and the spot image is processed using the threshold processing region segmentation technology. The data difference in grayscale values between the background and the spot in the image is fully utilized, and according to the binarization threshold, the grayscale value characteristics of each pixel in the beam image are judged to meet the requirements, so as to identify whether the pixel belongs to the spot area or the background area, thereby generating a binary image.
[0092] The binarized beam image is subjected to morphological processing, such as dilation, erosion, opening and closing operations, to remove large noise at the edge of the binarized image to smooth the edge of the light spot.
[0093] For the beam image after morphological processing, determine the center position of the light spot presented by each beam in the image. Fig.10 As shown, the minimum circumscribed rotation rectangle of each light spot outline is calculated, and the central coordinates of the rectangle are used as the geometric center of the light spot, that is, the center position.
[0094] Fitting is performed according to the center positions of all light spots to obtain the corresponding contour, and the contour size corresponding to the contour is determined.
[0095] According to the center point of each light spot, the total profile is fitted and the current focus position is inferred. Although the change of the position of the collimator or focusing lens causes the focus to move, or the lens distortion caused by high temperature causes the focus to shift, which can cause the profile of each light spot to change, the geometric center point of each light spot is relatively clear in the visual image and can be effectively observed. Extracting the center point of the light spot from the visual image is less susceptible to interference factors such as ambient light and focus than extracting the light spot profile.
[0096] In the visual image, the total outline size fitted by the center points of each light spot (for example, the total annular outline of the annular light spot group generated by the annular light source group in the visual image) is valid data. According to the outline size fitted by the center points of each light spot and the current set focus value, the current actual focus position and focus offset can be inferred based on the mapping relationship, so that focus compensation can be performed. Figure 6 As shown, when the light source group is in the shape of a circular ring, the diameter of the ring finally obtained is the outline size. Of course, the area can also be obtained according to the diameter as the outline size.
[0097] Furthermore, in order to better analyze the light spot imaging of the light source group, a light intensity sensor for real-time acquisition of the intensity of scattered light in the laser cutting head cavity may be installed inside the laser cutting head, near the image acquisition area.
[0098] The scattered light intensity in the laser cutting head cavity is collected by the light intensity sensor, and the corresponding binary threshold is determined by the scattered light intensity. A data model of processing status, scattered light intensity value and image average brightness value is established in advance before the laser cutting head leaves the factory. Through this data model, the laser processing state and non-processing state are distinguished, the scattered light intensity value collected inside the laser cutting head is introduced, the beam image data of the light source group is collected in batches, and the image brightness value is obtained, thereby establishing a data model of processing status, scattered light intensity value and image average brightness value.
[0099] At this time, through this data model, the average brightness value of the image can be obtained based on the scattered light intensity value. Generally speaking, the higher the scattered light intensity, the higher the average brightness of the image. At this time, in the light beam image before binarization, it is necessary to set the binarization threshold based on the average brightness of the image. When the average brightness of the image is high, the binarization threshold should keep as many pixels as black as possible, and when the brightness is low, it is necessary to keep as many pixels as white as possible, so as to achieve automatic adjustment of the brightness of the image.
[0100] like Fig.11 As shown, the embodiment of the present application also provides a focus offset compensation device for a laser cutting head, comprising:
[0101] at least one processor; and,
[0102] a memory communicatively connected to the at least one processor; wherein,
[0103] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the focus offset compensation method for a laser cutting head as described in any of the above embodiments.
[0104] An embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to be: a focus offset compensation method for a laser cutting head as described in any of the above embodiments.
[0105] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0106] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0107] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0108] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0111] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0112] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0113] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0114] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0115] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A focus offset compensation method for a laser cutting head, characterized in that: include: Controlling a light source group disposed inside the laser cutting head to emit a light beam so that the light beam reaches a preset image acquisition area after passing through one or more semi-reflective mirrors; Acquire a beam image generated by the beam in the image acquisition area; Analyzing the light beam image to obtain the outline size of the shape formed by the light beam in the light beam image; Based on the mapping relationship between the outline size, the focus setting value, and the actual focus position generated in the pre-test, the actual focus position in the current work is obtained according to the outline size of the beam forming shape and the focus setting value in the current work; Focus offset compensation is performed according to the difference between the target focus position in the current work and the actual focus position.
2. The method according to claim 1, characterized in that Before controlling the light source group disposed inside the laser cutting head to emit a light beam, the method further comprises: A light source group installed inside the laser cutting head is determined, wherein the light source group includes a plurality of active light sources, and the active light sources are arranged based on a preset shape.
3. The method according to claim 1, characterized in that The active light source and the processing laser light source belong to different spectral bands, and the spectral band of the processing laser light source is higher than that of the active light source; The transmittance of the semi-reflective mirror to the processing laser is higher than a first preset threshold, and the reflectance of the semi-reflective mirror to the active light source is higher than a second preset threshold.
4. The method according to claim 1, characterized in that: The mapping relationship between the outline size, focus setting value, and actual focus position generated in advance by the test includes: For a single focus setting value, set the corresponding light emission duration and intermittent duration in the periodic light emission; By processing the laser light source, a laser processing test is performed in the manner of periodic light emission until the test parameters are stable, wherein the test parameters include lens temperature, lens deformation degree, and focus offset; Get the actual focus position and outline size in the current state; After changing the intermittent time, repeat the laser processing test until the actual focus position and contour size corresponding to all focus offsets under the current single focus setting value are obtained to generate a mapping relationship corresponding to the current single focus setting value; The focus setting value is changed until all mapping relationships are generated.
5. The method according to claim 4, characterized in that The mapping relationship is such that as the light emission duration in the periodic light emission increases and the intermittent duration decreases, the focus offset increases.
6. The method according to claim 1, characterized in that Focus offset compensation is performed according to the difference between the target focus position in the current work and the actual focus position, specifically including: According to the processing parameters set by the user, obtain the target focus position in the current work; Obtaining a focus offset according to a difference between the target focus position and the actual focus position; The focus offset is used as the offset that needs to be compensated, the focus setting value is updated according to the focus offset, and the updated focus setting value is used for focus offset compensation.
7. The method according to claim 1, characterized in that Analyzing the light beam image to obtain the outline size of the shape formed by the light beam in the light beam image specifically includes: Preprocessing the light beam image, wherein the preprocessing at least includes image filtering processing; Based on a binarization threshold, binarizing the preprocessed light beam image, and performing morphological processing on the binarized light beam image; For the light beam image after morphological processing, determine the center position of the light spot presented by each light beam in the image; Fitting is performed according to the center positions of all light spots to obtain a corresponding contour, and a contour size corresponding to the contour is determined.
8. The method according to claim 7, characterized in that Before binarizing the preprocessed light beam image based on the binarization threshold, the method further includes: Determine the light intensity sensor provided inside the laser cutting head; The scattered light intensity in the laser cutting head cavity is collected by the light intensity sensor, and the corresponding binarization threshold is determined by the scattered light intensity.
9. A focus shift compensation device for a laser cutting head, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the focus offset compensation method for a laser cutting head as described in any one of claims 1 to 8.
10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured as: a focus offset compensation method for a laser cutting head as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Positioning method and electronic device
CN105138194A
Image processing-based corona detection method
CN110146791A
Part morphology three-dimensional reconstruction method and device in electron beam fuse additive manufacturing process
CN110576251A
Laser marking appearance that has focus self correction based on CCD detects
CN205705768U
Focusing leveling device
US20160327875A1
Cited By
Detection and correction device and method for focus drift and laser processing system and method
CN119187846A
Focus compensation method, system and device and storage medium
CN119457468A
Method and device for dynamically adjusting focus in laser flight processing
CN119703341A
