A laser focus laser brightness adjusting method

By combining adaptive laser morphology adjustment and approximation algorithms, the problem of slow brightness adjustment in existing laser focusing sensors has been solved, achieving a fast response and high-precision laser focusing process, and avoiding sudden changes in laser brightness.

CN116027542BActive Publication Date: 2026-04-10MU TENGGUANG (SHENZHEN) INTELLIGENT OPTICAL CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MU TENGGUANG (SHENZHEN) INTELLIGENT OPTICAL CO LTD
Filing Date
2022-12-29
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing laser autofocus sensors have a slow brightness adaptive adjustment process and cannot respond quickly, resulting in inaccurate focusing and a tendency to produce strobe lasers.

Method used

A method combining adaptive laser shape adjustment and approximation algorithm is adopted to automatically adjust the laser brightness, ensuring fast response and adjustment accuracy, and avoiding integral overshoot.

Benefits of technology

It achieves rapid response and adjustment accuracy of the laser focusing sensor during the focusing process, avoids sudden changes in laser brightness, and ensures the stability and accuracy of the focusing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116027542B_ABST
    Figure CN116027542B_ABST
Patent Text Reader

Abstract

The application discloses a laser focusing laser brightness adjusting method, comprising the following steps: in the focusing process, the brightness of the laser is adjusted to the acceptable threshold range through a preset adaptive laser mode adjusting mode; when the brightness of the laser needs to be adjusted again, the brightness of the laser is adjusted to the threshold range through a preset approximation algorithm; in the focusing process, the brightness of the laser is adjusted through a preset laser mode adjusting mode, and the laser mode adjusting mode has an adaptive function, so that the brightness of the laser can be adaptively adjusted; when the brightness of the laser needs to be adjusted again, the brightness of the laser is adjusted through a preset approximation algorithm, and the approximation algorithm is also adaptive adjustment, so that the manual intervention is reduced, the laser focusing sensor can quickly respond in the focusing process, and the adjustment precision is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of laser focusing sensor, in particular to a laser brightness adjusting method for laser focusing. BACKGROUND

[0002] Most of the current focusing is based on image contrast for focusing. This way has slow response speed and it is difficult to accurately control the focus point. It is difficult to focus successfully when facing multiple surfaces or there is no contrast difference. Moreover, it cannot achieve coaxial focus. Laser brightness adaptive adjustment is usually based on brightness feedback value for approximation adjustment, wherein the adjustment process is slow and cannot achieve fast response, which is a fatal defect for laser focusing which strives for fast focusing. SUMMARY

[0003] The embodiment of the present application provides a laser brightness adjusting method for laser focusing, aiming at solving the problem that the existing laser focusing sensor, laser brightness adaptive adjustment is usually based on brightness feedback value for approximation adjustment, wherein the adjustment process is slow and cannot achieve fast response.

[0004] The embodiment of the present application provides a laser brightness adjusting method for laser focusing, which can automatically adjust the laser brightness and protect the laser focusing sensor, so that the laser focusing sensor will not be over-adjusted and will not appear flash laser.

[0005] In a first aspect, a laser brightness adjusting method for laser focusing comprises:

[0006] In the focusing process, the brightness of the laser is adjusted by a preset adaptive laser form adjusting mode;

[0007] When the brightness of the laser needs to be adjusted again, the brightness of the laser is adjusted by a preset approximation algorithm.

[0008] Preferably, the adjusting the brightness of the laser by the preset adaptive laser form adjusting mode in the focusing process comprises:

[0009] An average gray value corresponding to the brightness of the laser is obtained;

[0010] Whether adaptive laser form adjustment is needed is determined according to the average gray value;

[0011] If adaptive laser form adjustment is needed, the brightness of the laser is adjusted by a preset adaptive laser form adjusting mode.

[0012] Preferably, the determining whether adaptive laser form adjustment is needed according to the average gray value comprises:

[0013] calculating a current gray value corresponding to the laser brightness, and determining that the laser brightness needs to be adjusted again if a difference between the current gray value and the average gray value is less than a preset value.

[0014] Preferably, when the laser brightness needs to be adjusted again, the method further comprises:

[0015] calculating a current gray value corresponding to the laser brightness, and determining that the laser brightness needs to be adjusted again if a difference between the current gray value and the average gray value is less than a preset value.

[0016] Preferably, the method further comprises:

[0017] In the adjusting process, the adjusting process is limited by a preset limitation condition.

[0018] Preferably, the adjusting the laser brightness by the preset adaptive laser shape adjustment mode further comprises:

[0019] obtaining a current laser shape value, a shape change rate and a brightness initial deviation of the laser;

[0020] calculating a current target brightness of the laser according to the current laser shape value, the shape change rate and the brightness initial deviation of the laser;

[0021] adjusting the laser according to the current target brightness.

[0022] Preferably, the adjusting the laser brightness by the preset approximation algorithm comprises:

[0023] obtaining a brightness deviation of the laser and a preset coefficient;

[0024] calculating a brightness adjustment increment according to the brightness deviation of the laser and the preset coefficient;

[0025] adjusting the laser according to the brightness adjustment increment.

[0026] In a second aspect, a laser focusing sensor comprises:

[0027] a first adjusting module configured to adjust the laser brightness by a preset adaptive laser shape adjustment mode in a focusing process;

[0028] a second adjusting module configured to adjust the laser brightness by a preset approximation algorithm when the laser brightness needs to be adjusted again.

[0029] In a third aspect, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the laser focusing and laser brightness adjustment method according to any one of the aspects when executing the computer program.

[0030] In a fourth aspect, a computer readable storage medium stores a computer program, and the computer program implements the steps of the laser focusing and laser brightness adjustment method according to any one of the aspects when executed by a processor.

[0031] The above scheme of the present application at least includes the following beneficial effects: in the focusing process, the brightness of the laser is adjusted by the preset laser mode adjustment mode, and the laser mode adjustment mode has an adaptive function, and the brightness of the laser can be adjusted adaptively; when the brightness of the laser needs to be adjusted again, the brightness of the laser is adjusted by the preset approximation algorithm, and the approximation algorithm is also adaptive adjustment, reduces the intervention of artificial, so that the laser focusing sensor can quickly respond in the focusing process while ensuring the adjustment accuracy. BRIEF DESCRIPTION OF DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from the structures shown in the drawings without creative labor.

[0033] Figure 1 The laser focusing and laser brightness adjustment method flow chart provided for the embodiments of the present application;

[0034] Figure 2 The software MZF_Console operation interface diagram provided for the embodiments of the present application;

[0035] Figure 3 The adjustment diagram of the software MZF_Console operation interface diagram provided for the embodiments of the present application;

[0036] Figure 4 The software MZF_Console operation interface diagram provided for the embodiments of the present application;

[0037] Figure 5 The architecture diagram of the laser focusing and laser brightness adjustment method provided for the embodiments of the present application.

[0038] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort fall within the scope of the present application.

[0040] The terms "first", "second", and "third" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish different objects, rather than to describe a particular order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product, or device.

[0041] First, the network architecture to which the scheme of the embodiments of the present application can be applied will be exemplarily introduced with reference to the relevant drawings.

[0042] As shown in Figure 1 The specific embodiments of the present application provide a flowchart of a laser focus laser brightness adjustment method, as shown in Figure 1 The laser focus laser brightness adjustment method includes the following steps:

[0043] In a first aspect, a laser focus laser brightness adjustment method includes:

[0044] In the focusing process, the brightness of the laser is adjusted to the acceptable threshold range by the preset adaptive laser form adjustment mode.

[0045] The embodiments of the present application have two laser brightness adjustment modes: one is an adaptive laser form adjustment mode, and the other is an approximation algorithm adjustment mode; wherein the adaptive laser form adjustment mode is used to automatically trigger the adaptive laser form adjustment mode during the focusing process, and the adaptive laser form adjustment mode can effectively reduce the laser brightness response time, so as to quickly respond when the focus point changes.

[0046] The above-mentioned focusing process is a target that needs to be focused. After determining the focusing target, the preset adaptive laser form adjustment mode is used for adjustment, so that the focus point change during the focusing process can be quickly responded.

[0047] The above-mentioned focusing process emits laser by a laser focus sensor, focuses on the target by the emitted laser, and the focused target emits a light beam to the laser focus sensor.

[0048] When the brightness of the laser needs to be adjusted again, the brightness of the laser is adjusted to the range of the threshold value through a preset approximation algorithm.

[0049] In the embodiment of the present application, the approximation algorithm calculates whether a static deviation occurs when the adaptive laser form adjustment mode is used, and adjusts the generated static deviation if the static deviation exists, so that the brightness adjustment accuracy of the laser is guaranteed.

[0050] In the embodiment of the present application, the target may generate a static deviation after being adjusted by the adaptive laser form adjustment mode. When the static deviation is found after the adaptive laser form adjustment mode is used, the brightness of the laser is adjusted again through a preset approximation algorithm, and the approximation algorithm is adaptive adjustment.

[0051] Preferably, in the focusing process, the brightness of the laser is adjusted through a preset adaptive laser form adjustment mode, including: obtaining an average gray value corresponding to the brightness of the laser; determining whether adaptive laser form adjustment is needed according to the average gray value; and if adaptive laser form adjustment is needed, adjusting the brightness of the laser through a preset adaptive laser form adjustment mode.

[0052] The average gray value corresponding to the brightness of the laser is obtained through a preset software MZF_Console, and the range of the preset average gray value in the software MZF_Console is such that the adaptive laser form and the approximation algorithm have the average gray value for reference adjustment in the adjustment process.

[0053] The determination of whether adaptive laser form adjustment is needed according to the average gray value includes: calculating a current gray value corresponding to the brightness of the laser, and determining that adaptive laser form adjustment is needed if the difference between the current gray value and the average gray value is less than a preset value.

[0054] The current gray value corresponding to the brightness of the laser is calculated through a preset software MZF_Console, and the calculated gray value is fed back to a laser focusing sensor and adjusted through the adaptive laser form adjustment or the approximation algorithm.

[0055] As Figure 2As shown, in this embodiment of the invention, the maximum grayscale value preset in the software MZF_Console is 225, and the minimum grayscale value is 0. When the average grayscale value of the image in the software MZF_Console is adjusted to the laser brightness of 159 so that the average grayscale value approaches the preset value of the mark: 100, the current position is 4mm and the current grayscale value is 100.78. The preset movement adjustment value in the software is 1mm, and by continuously adjusting, the current grayscale value is made to be less than 50 compared with the preset average grayscale value.

[0056] If the difference between the current grayscale value and the average grayscale value is less than a preset value, the preset value range can be set in the software MZF_Console. If the current grayscale value is less than 50, an approximation algorithm will be used for adjustment. When the difference between the preset average grayscale value and the current grayscale value is 10 or less, the adjustment is considered complete.

[0057] Before adjusting the laser brightness using a preset approximation algorithm when the laser brightness needs to be adjusted again, the method further includes: calculating the current grayscale value corresponding to the laser brightness; calculating the current grayscale value using the software MZF_Console; if the difference between the current grayscale value and the average grayscale value is greater than a preset value, then determining that the laser brightness needs to be adjusted again; and dividing by comparing the average grayscale value.

[0058] The above applies if the difference between the current grayscale value and the average grayscale value is greater than a preset value. If the current grayscale value is greater than 50, it indicates a fast response.

[0059] A grayscale value greater than 50 indicates a fast response. If the grayscale value is calculated to be greater than 50 using the MZF_Console software, it is fed back to the laser focusing sensor, and adjustment is initiated using laser shape adjustment or an approximation algorithm.

[0060] like Figure 3 As shown, in an embodiment of the present invention, the maximum grayscale value preset in the software MZF_Console is 225, and the minimum grayscale value is 0. When the average grayscale value of the image in the software MZF_Console is adjusted to the laser brightness of 800 so that the average grayscale value approaches the preset value of the mark: 100, the current position is 3mm and the current grayscale value is 100.45, and the preset movement adjustment value in the software MZF_Console is 1mm; and by continuously adjusting, the current grayscale value is made to be less than 50 compared with the preset average grayscale value.

[0061] like Figure 4 As shown, different distances represent out-of-focus states; when the position is in focus, as... Figure 4The light spot is the smallest, and the average gray value is close to 100 at this time. The maximum gray value is 225 and the minimum gray value is 0 in the preset parameters of the software MZF_Console. The moving adjustment value is 0.01 mm in the preset parameters of the software MZF_Console.

[0062] In the adjustment process, the adjustment process is limited by the preset limit condition.

[0063] The condition triggered by the above-mentioned limit condition is that when the focused target is suddenly out of focus or is blocked by other measured objects, the laser brightness can be quickly adjusted, and the laser focusing sensor will not be integrated and adjusted, so that the flash laser appears.

[0064] In order to avoid various sudden situations in the process of adjusting the brightness of the laser, the above-mentioned limit condition is adjusted by an adaptive laser shape adjustment method or an approximation algorithm to prevent the adjustment from entering the adjustment error zone, and the adaptive laser shape adjustment method ensures the response speed, and the approximation algorithm ensures the accuracy of the adjustment.

[0065] Preferably, the brightness of the laser is adjusted by the preset adaptive laser shape adjustment method, further comprising: obtaining the current laser shape value, the shape change rate and the brightness initial deviation of the laser; according to the current laser shape value, the shape change rate and the brightness initial deviation of the laser, the current target brightness of the laser is calculated; and the laser is adjusted according to the current target brightness.

[0066] The formula of the adaptive laser shape adjustment method is as follows:

[0067] Formula: Y = aX + b;

[0068] Where Y represents the current target brightness, X represents the current laser shape value, a represents the shape change rate, and b represents the brightness initial deviation.

[0069] Preferably, the brightness of the laser is adjusted by the preset approximation algorithm, comprising: obtaining the brightness deviation of the laser and the preset coefficient; according to the brightness deviation of the laser and the preset coefficient, the brightness adjustment increment is calculated; and the laser is adjusted according to the brightness adjustment increment.

[0070] The formula of the approximation algorithm is as follows:

[0071] Formula: y = (r + Abs(x) / 1000) * x;

[0072] Where y represents the brightness adjustment increment, x represents the brightness deviation, r represents the common coefficient, and Abs(x) represents the absolute value of x.

[0073] In a second aspect, a laser focusing sensor is provided, comprising:

[0074] a first adjusting module, configured to adjust the brightness of the laser during the focusing process by a preset adaptive laser shape adjusting mode;

[0075] a second adjusting module, configured to adjust the brightness of the laser by a preset approximation algorithm when the brightness of the laser needs to be adjusted again.

[0076] Preferably, the first adjusting module is further configured to calculate the brightness of the current focusing laser, and if the calculated value exceeds a preset value, the brightness of the laser is adjusted by the adaptive laser shape adjusting mode.

[0077] Preferably, the second adjusting module is further configured to calculate the brightness of the current laser, and the brightness of the laser is adjusted by comparing the calculated value of the static deviation generated by the adaptive laser shape adjusting mode with a preset value.

[0078] Preferably, the second adjusting module is further configured to compare the average gray value, divide the gray value, and when the value is greater than 50, fast response is performed, when the value is less than 50, approximation algorithm is performed, and when the average gray value differs from the target value by 10, it is indicated that the adjustment is completed.

[0079] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the laser brightness adjusting method for laser focusing when executing the computer program.

[0080] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program implements the steps of the laser brightness adjusting method for laser focusing when executed by a processor.

[0081] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware, and the program can be stored in a computer readable storage medium, and the program can include the processes of the above-mentioned embodiments when executed.

[0082] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0083] The above only describes the preferred embodiments of the present application, and does not limit the patent scope of the present application. Any equivalent structural transformation made by using the content of the present application specification and drawings, or direct / indirect application in other related technical fields within the concept of the present application is included in the patent protection scope of the present application.

Claims

1. A laser focus laser intensity adjustment method, characterized in that, Comprise: In the focusing process, the brightness of the laser is adjusted to the acceptable threshold range by a preset adaptive laser mode adjustment method. Specifically, the current laser mode value, the mode change rate and the initial brightness deviation of the laser are obtained, and the current target brightness of the laser is calculated according to the current laser mode value, the mode change rate and the initial brightness deviation of the laser. The laser is adjusted according to the current target brightness. The adaptive laser mode adjustment method is used to automatically trigger the adaptive laser mode adjustment method during the focusing process. The formula of the adaptive laser mode adjustment method is as follows: Formula: Y=aX+b; Wherein Y represents the current target brightness, X represents the current laser mode value, a represents the mode change rate, and b represents the initial brightness deviation; When the brightness of the laser needs to be adjusted again, the brightness of the laser is adjusted to the threshold range by a preset approximation algorithm. Specifically, the brightness deviation of the laser and the preset coefficient are obtained. According to the brightness deviation of the laser and the preset coefficient, the brightness adjustment increment is calculated; the laser is adjusted according to the brightness adjustment increment; the preset approximation algorithm is used to calculate whether there is static deviation when the adaptive laser mode adjustment method is used. If there is static deviation, the approximation algorithm adjusts the generated static deviation, so that the brightness adjustment accuracy of the laser is guaranteed. The formula of the approximation algorithm is as follows: Formula: y=(r+Abs(x) / 1000)*x; Wherein y represents the brightness adjustment increment, x represents the brightness deviation, r represents the common coefficient, and Abs(x) represents the absolute value of x.

2. The laser focusing and laser brightness adjusting method of claim 1, wherein, The method comprises: Obtaining the average gray value corresponding to the laser brightness; According to the average gray value, it is determined whether adaptive laser mode adjustment is needed; If adaptive laser mode adjustment is needed, the brightness of the laser is adjusted by a preset adaptive laser mode adjustment method.

3. The laser focusing and laser brightness adjusting method of claim 2, wherein, According to the average gray value, it is determined whether adaptive laser mode adjustment is needed, which comprises: Calculate the current gray value corresponding to the laser brightness. If the difference between the current gray value and the average gray value is greater than the preset value, it is determined that adaptive laser mode adjustment is needed.

4. The laser focusing and laser brightness adjusting method of claim 2, wherein, Before the method further comprises: Calculate the current gray value corresponding to the laser brightness. If the difference between the current gray value and the average gray value is less than the preset value, it is determined that the brightness of the laser needs to be adjusted again.

5. The laser focusing and laser brightness adjusting method of claim 4, wherein, The method further comprises: In the adjustment process, the adjustment process is limited by a preset limit condition.

6. A laser focus sensor, characterized by The laser focusing sensor comprises: The first adjusting module is configured to adjust the brightness of the laser to be within an acceptable threshold range during the focusing process by using a preset adaptive laser mode adjusting method. Specifically, a current laser mode value, a mode change rate, and a brightness initial deviation of the laser are obtained, and a current target brightness of the laser is calculated according to the current laser mode value, the mode change rate, and the brightness initial deviation. The laser is adjusted according to the current target brightness. The adaptive laser mode adjusting method is used to automatically trigger the adaptive laser mode adjusting method during the focusing process. The formula of the adaptive laser mode adjusting method is as follows: Formula: Y = aX + b wherein Y represents the current target brightness, X represents the current laser mode value, a represents the mode change rate, and b represents the brightness initial deviation. The second adjusting module is configured to adjust the brightness of the laser to be within the threshold range by using a preset approximation algorithm when the brightness of the laser needs to be adjusted again. Specifically, a brightness deviation of the laser and a preset coefficient are obtained, a brightness adjustment increment is calculated according to the brightness deviation of the laser and the preset coefficient, and the laser is adjusted according to the brightness adjustment increment. The preset approximation algorithm is used to calculate whether a static deviation occurs when the adaptive laser mode adjusting method is calculated. If the static deviation exists, the approximation algorithm adjusts the generated static deviation, so that the brightness adjustment accuracy of the laser is guaranteed. The formula of the approximation algorithm is as follows: Formula: y = (r + Abs(x) / 1000)*x wherein y represents the brightness adjustment increment, x represents the brightness deviation, r represents a common coefficient, and Abs(x) represents the absolute value of x.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the steps of the laser brightness adjusting method for laser focusing according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, the computer-readable storage medium comprising: The computer program is executed by the processor to implement the steps of the laser brightness adjusting method for laser focusing according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for self-adapting to image brightness and focal length of laser assisted imaging

    CN106412434A

  • Surface automatic tracking method and system for laser processing, and storage medium

    CN111360395A

  • Laser energy automatic adjusting method of LDI system

    CN114598851A