Brightness control method and system for warning lamp of 3D camera

By acquiring image data using a 3D camera to calculate depth information and adjusting the brightness of the warning light to address the issue of low flexibility, effective warning and energy-saving effects are achieved at different distances and installation heights.

CN121985105APending Publication Date: 2026-05-05HANGZHOU LINGXI ROBOT INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HANGZHOU LINGXI ROBOT INTELLIGENT TECH CO LTD
Filing Date
2025-12-31
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing 3D camera warning light brightness control solutions are inflexible, unable to effectively warn at different installation heights and distances, and consume a lot of power.

Method used

Image data is acquired by a 3D camera, the depth information of the object being measured is calculated, and it is determined whether it is within the maximum working distance threshold. If it is within the threshold, it works at maximum brightness; otherwise, the brightness is controlled by adjusting the driving current of the warning light according to the depth information. By combining the mapping relationship between depth information and current value, flexible brightness adjustment can be achieved.

Benefits of technology

It improves the flexibility and accuracy of brightness control, ensuring effective warnings at different distances and installation heights, while achieving energy-saving effects and avoiding impact on human eyes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121985105A_ABST
    Figure CN121985105A_ABST
Patent Text Reader

Abstract

The invention relates to a brightness control method and system for a warning lamp of a 3D camera, and the method comprises the steps: obtaining image data through the 3D camera, and obtaining the depth information of a measured object based on the image data. And based on the depth information, judging whether the measured object is at the maximum working distance threshold of the 3D camera. If the measured object is in the maximum working distance threshold value of the 3D camera, controlling the warning lamp to work at the maximum brightness; and if the measured object is not in the maximum working distance threshold of the 3D camera, the driving current of the warning lamp is adjusted through a preset rule according to the depth information, and the brightness of the warning lamp is controlled. The problem of how to improve the flexibility of brightness control of the warning lamp of the 3D camera in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of camera warning light control technology, and in particular to a brightness control method and system for a 3D camera warning light. Background Technology

[0002] The internal structure of a multi-line laser 3D camera is complex, and the warning light is one of its modules. When the multi-line laser 3D camera is working, it is necessary to warn nearby people not to look directly at the camera's laser projection window to avoid eye damage from the laser (lasers mostly use infrared or near-infrared light to improve their resistance to ambient light, which the human eye cannot see completely).

[0003] Currently, if the brightness of the warning light is too low, it cannot achieve the warning effect when the 3D camera is installed high. Multi-line laser 3D camera warning lights generally use more conspicuous high-brightness, high-power LED lights to achieve the warning effect. However, excessive brightness introduces new problems, not only increasing power consumption but also causing varying degrees of impact on human eyes (the impact is greater when the camera is installed low). The current common 3D camera warning light control scheme is relatively simple: turn on the warning light when working and turn it off when finishing, which has the problem of low flexibility.

[0004] Therefore, no effective solution has yet been proposed for improving the flexibility of brightness control in 3D camera warning lights. Summary of the Invention

[0005] This application provides a method and system for controlling the brightness of a 3D camera warning light, to at least solve the problem of how to improve the flexibility of brightness control of a 3D camera warning light in related technologies.

[0006] In a first aspect, embodiments of this application provide a brightness control method for a 3D camera warning light, the method being applied to a 3D camera, the method comprising: Image data is acquired using the 3D camera, and depth information of the object being measured is obtained based on the image data. Based on the depth information, it is determined whether the object being measured is within the maximum working distance threshold of the 3D camera; If the object under test is within the maximum working distance threshold of the 3D camera, the warning light is controlled to operate at maximum brightness; if the object under test is not within the maximum working distance threshold of the 3D camera, the driving current of the warning light is adjusted according to the depth information and a preset rule is used to control the brightness of the warning light.

[0007] In one embodiment, acquiring image data via a 3D camera and obtaining depth information of the object under test based on the image data includes: The image acquisition operation is initiated by a 3D camera to acquire image data including scene point cloud information; wherein, during the image acquisition operation, the warning light operates with a preset minimum driving current. Based on the image data, the depth values ​​corresponding to each pixel in the image scene are analyzed, and the region of the object under test is identified by the image segmentation algorithm. The average value of the depth values ​​of each pixel in the region is calculated, and the distance between the object under test and the 3D camera is obtained. The distance is used as the depth information of the object under test.

[0008] In one embodiment, controlling the warning light to operate at maximum brightness if the object under test is within the maximum working distance threshold of the 3D camera includes: When the object under test is at the maximum working distance threshold of the 3D camera, calculate whether the duration of the object under test at the maximum working distance threshold is greater than a preset time. By monitoring the fluctuation data of the distance in real time, it is calculated whether the fluctuation range is less than a preset error threshold; If the duration is longer than the preset time and the fluctuation range is less than the preset error threshold, the driving current of the warning light is set to the preset maximum value so that the warning light can operate at maximum brightness.

[0009] In one embodiment, if the object being measured is not within the maximum working distance of the 3D camera, then adjusting the driving current of the warning light according to the depth information and a preset rule to control the brightness of the warning light includes: Based on the depth information, the target driving current value is obtained according to preset rules; Based on the target drive current value, a corresponding control signal is generated; The driving current of the warning light is adjusted according to the control signal to control the brightness of the warning light.

[0010] In one embodiment, obtaining the target drive current value based on the depth information according to a preset rule includes: Based on the depth information, the current value corresponding to the current depth information is queried through the mapping relationship between the depth information and the current value, and the target driving current value corresponding to the current depth information is obtained. The mapping relationship is configured such that, within the effective working distance range of the 3D camera, the driving current value increases with the increase of the distance to the object being measured.

[0011] In one embodiment, generating a corresponding control signal based on the target drive current value includes: Based on the target driving current value, the main control module of the 3D camera generates a pulse width modulation signal with a corresponding duty cycle. The pulse width modulation signal is input to the analog dimming circuit, which converts the pulse width modulation signal into an analog voltage signal and uses the analog voltage signal as a control signal.

[0012] In one embodiment, adjusting the drive current of the warning light according to the control signal to control the brightness of the warning light includes: The analog voltage signal is input to the brightness adjustment pin of the driver chip in the constant current drive circuit to set the internal current reference of the driver chip. The actual current value flowing through the warning light is obtained in real time through the current sampling network in the constant current driving circuit, and the actual current value is fed back to the current feedback pin of the driving chip. Based on the internal current reference and the actual current value of the current feedback pin, the driver chip generates an adjustment signal through an internal control loop to control the conduction state of the power switch. By adjusting the conduction state, the current change is controlled, and the output current of the constant current drive circuit is made consistent with the internal current reference, so as to control the brightness of the warning light.

[0013] In one embodiment, after adjusting the driving current of the warning light according to a preset rule to control the brightness of the warning light, the method further includes: Each time the 3D camera captures an image, it determines whether there are people in the field of view of the 3D camera; If personnel are present, the warning light will be controlled to flash at a preset frequency; If there are no personnel present, the warning light will remain constantly lit at its current brightness.

[0014] In one embodiment, the 3D camera includes a driving circuit, wherein the driving circuit includes a driving module, an analog dimming module, and a flicker control module; The driving module is a constant current driver, used to make the warning light operate with a constant current; The analog dimming module is used to convert pulse width modulation into an analog signal and output an analog signal to the drive module to control the output current of the drive module; The strobe control module is used to control the warning light to flash at a preset frequency by judging the high or low level of the enable pin to turn on or off the output current.

[0015] In a second aspect, embodiments of this application provide a brightness control system for a 3D camera warning light. The system is used to execute the method described in the first aspect above. The system includes a depth information module, a judgment module, and a warning light brightness control module; wherein: The depth information module is used to acquire image data through a 3D camera and, based on the image data, acquire depth information of the object being measured. The judgment module, based on the depth information, is used to determine whether the object being measured is within the maximum working distance of the 3D camera; The warning light brightness control module is used to control the warning light to operate at maximum brightness if the object being measured is within the maximum working distance of the 3D camera; if the object being measured is not within the maximum working distance of the 3D camera, the module adjusts the driving current of the warning light according to the depth information and a preset rule to control the brightness of the warning light.

[0016] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a brightness control method for a 3D camera warning light as described in the first aspect above.

[0017] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a brightness control method for a 3D camera warning light as described in the first aspect above.

[0018] The brightness control method and system for a 3D camera warning light provided in this application embodiment have at least the following technical effects.

[0019] By acquiring image data through a 3D camera and using this data to obtain depth information of the object under test, the depth is calculated directly from the image data, avoiding errors caused by relying on external sensors and improving the accuracy and response speed of brightness adjustment. Based on the depth information, it is determined whether the object under test is within the maximum working distance threshold of the 3D camera. Setting the maximum working distance threshold as a judgment benchmark lays the foundation for the brightness control of the warning light. If the object under test is within the maximum working distance threshold of the 3D camera, the warning light is controlled to operate at maximum brightness. When the scene is determined to be at the farthest distance, the maximum brightness output is automatically triggered to ensure that the warning signal is clearly visible even at a certain distance. If the object under test is not within the maximum working distance threshold of the 3D camera, the drive current of the warning light is adjusted according to the depth information and preset rules to control the brightness of the warning light. The brightness of the warning light can be controlled according to the actual installation height or working distance of the camera, thereby controlling the brightness level of the warning light. While ensuring effective warning, energy saving is also achieved, improving the flexibility of 3D camera warning light brightness control and solving the problem of how to improve the flexibility of 3D camera warning light brightness control in related technologies.

[0020] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart of a method for controlling the brightness of a 3D camera warning light; Figure 2 This is an overall flowchart illustrating the brightness control of a 3D camera warning light according to an exemplary embodiment; Figure 3 This is a flowchart illustrating a warning light strobe control according to an exemplary embodiment; Figure 4 This is a schematic diagram illustrating the camera's field of view and the presence of people within the field of view, according to an exemplary embodiment. Figure 5 This is a circuit diagram of a drive module according to an exemplary embodiment; Figure 6 This is a circuit diagram of an analog dimming module according to an exemplary embodiment; Figure 7 This is a system structure block diagram illustrating a brightness control system for a 3D camera warning light according to an exemplary embodiment; Figure 8 This is a structural block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0023] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.

[0024] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0025] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.

[0026] In this document, it should be understood that the terms used may be technical means used to implement part of the present invention or other summary technical terms. For example, the terms may include: Duty cycle: The percentage of time a high-level ("on") signal lasts within a complete cycle of a pulse-width modulation (PWM) signal. It's the digital knob for adjusting brightness on the main control chip. A higher duty cycle results in a higher equivalent average voltage and ultimately, a brighter warning light.

[0027] Pulse Width Modulation (PWM): A technique that controls average voltage or power by adjusting the duty cycle of a digital square wave.

[0028] Analog voltage signal: An electrical signal whose voltage value changes continuously in both time and amplitude. In this application, it is generated by smoothing and filtering a PWM square wave using an "analog dimming module." It is a smooth, jitter-free DC voltage used for precise control of subsequent drive circuits.

[0029] Brightness adjustment pin: A specific pin on the dedicated LED driver chip, which in this application receives an analog voltage signal from the "analog dimming module". The voltage value on this pin directly sets the desired output current target value inside the chip.

[0030] Internal current reference: A precise and stable voltage or current source inside the driver chip, serving as the "target value" or "ruler" for closed-loop control. In this application, the voltage input to the brightness adjustment pin is compared or scaled against this internal reference to determine the specific output current target.

[0031] Current feedback pin: A pin on the driver chip used to monitor the actual output current. In this application, the current sampling resistor connected to the outside converts the real current flowing through the LED into a small voltage signal and feeds it back to the chip, telling the chip "what is the current actual output".

[0032] Internal control loop: Continuously compares the target reference set by the brightness adjustment pin with the actual feedback value read from the current feedback pin. The loop adjusts immediately if a discrepancy is found.

[0033] Power switching transistor: A semiconductor switching device capable of controlled, rapid current switching on and off. In this application, it serves as the execution terminus of an internal control loop. The loop precisely controls the output current value by adjusting the duty cycle of this switching transistor's on-time, ultimately stabilizing the output current at a target value.

[0034] In a first aspect, embodiments of this application provide a method for controlling the brightness of a 3D camera warning light. Figure 1 This is a flowchart of a method for controlling the brightness of a 3D camera warning light, such as... Figure 1 As shown, the method includes: Step S101: Acquire image data using a 3D camera, and obtain depth information of the object under test based on the image data.

[0035] Step S102: Based on depth information, determine whether the object being measured is within the maximum working distance threshold of the 3D camera.

[0036] Step S103: If the object being measured is within the maximum working distance threshold of the 3D camera, the warning light is controlled to operate at maximum brightness; if the object being measured is not within the maximum working distance threshold of the 3D camera, the driving current of the warning light is adjusted according to the depth information and a preset rule is used to control the brightness of the warning light.

[0037] In summary, this application provides a method for controlling the brightness of a 3D camera warning light. Figure 2 This is an overall flowchart illustrating the brightness control of a 3D camera warning light according to an exemplary embodiment, such as... Figure 2 As shown, image data is acquired through a 3D camera, and depth information of the object under test is obtained based on this image data. Depth is calculated directly from the image data, avoiding errors caused by relying on external sensors and improving the accuracy and response speed of brightness adjustment. Based on the depth information, it is determined whether the object under test is within the maximum working distance threshold of the 3D camera. Setting the maximum working distance threshold as a judgment benchmark lays the foundation for warning light brightness control. If the object under test is within the maximum working distance threshold of the 3D camera, the warning light is controlled to operate at maximum brightness. When the scene is determined to be at the farthest distance, maximum brightness output is automatically triggered, ensuring that the warning signal is clearly visible even at a certain distance. If the object under test is not within the maximum working distance threshold of the 3D camera, the driving current of the warning light is adjusted according to the depth information and preset rules to control the brightness of the warning light. The brightness of the warning light can be controlled according to the actual installation height or working distance of the camera, thereby controlling the brightness level. While ensuring effective warning, energy saving is also achieved, improving the flexibility of 3D camera warning light brightness control and solving the problem of how to improve the flexibility of 3D camera warning light brightness control in related technologies.

[0038] In one embodiment, step S101 involves acquiring image data using a 3D camera and obtaining depth information of the object being measured based on the image data. Specifically, this includes the following steps: Step S1011: Start the image acquisition operation through the 3D camera to acquire image data including scene point cloud information; wherein, during the image acquisition operation, the warning light operates with a preset minimum drive current; Step S1012: Based on the image data, analyze the depth value corresponding to each pixel in the image scene, identify the region of the object to be measured through the image segmentation algorithm, calculate the average value of the depth value of each pixel in the region, obtain the distance between the object to be measured and the 3D camera, and use the distance as the depth information of the object to be measured.

[0039] Optionally, by controlling the warning light to operate at a preset minimum drive current when the 3D camera performs image acquisition, interference from high-brightness warning light to the camera's optical sensing unit is effectively avoided, thereby ensuring the accuracy and reliability of the acquired scene point cloud information and image data. Secondly, by using an image segmentation algorithm to accurately identify the area of ​​the object being measured and calculating the average depth value within that area as the final distance information, a precise and reliable basis is provided for subsequent adaptive brightness control based on this depth information, thereby improving the accuracy of the warning light brightness control.

[0040] In one embodiment, step S102 involves determining, based on depth information, whether the object being measured is within the maximum working distance threshold of the 3D camera. Specifically, this includes: Step S1021: Obtain the maximum working distance threshold pre-stored or calibrated by the 3D camera; Step S1022: Compare the depth information of the object obtained in step S101 with the maximum working distance threshold; Step S1023: If the depth information is greater than or equal to the maximum working distance threshold, the object under test is determined to be at the maximum working distance; otherwise, the object under test is determined not to be at the maximum working distance.

[0041] Optionally, firstly, a pre-stored maximum working distance threshold is retrieved from the 3D camera's non-volatile memory or configuration file (e.g., the 3D camera's maximum working distance threshold can be 3m-3.5m, or fixed at 3.5m depending on the camera model, or a specific value between 3m and 3.5m, such as 3.2m, set by a technician during installation and calibration). Then, the depth information of the object being measured calculated in step S101 of the previous embodiment (e.g., a value representing "the distance between the object being measured and the installation height of the 3D camera" or "the distance between the object being measured and the 3D camera", such as 3.4m) is arithmetically compared with the threshold. If the depth information is greater than or equal to the threshold (e.g., 3.4m ≥ 3.2m), it is determined that the object being measured is in the maximum working distance state, and a "true" or "yes" judgment signal is output; otherwise, a "no" signal is output. This judgment signal will directly serve as the sole decision basis for subsequent brightness control logic (activating the maximum brightness mode or entering the adaptive brightness adjustment mode).

[0042] Step S102 lays the foundation for controlling the brightness of the warning light by setting the maximum working distance threshold as the judgment criterion.

[0043] In one embodiment, if the object being measured is within the maximum working distance threshold of the 3D camera in step S103, the warning light is controlled to operate at maximum brightness, specifically including the following steps: Step 1: When the object being measured is at the maximum working distance threshold of the 3D camera, calculate whether the duration of the object being measured at the maximum working distance threshold is greater than the preset time. Step 2: Calculate whether the fluctuation range is less than the preset error threshold by monitoring the distance fluctuation data in real time; Step 3: If the duration is longer than the preset time and the fluctuation range is less than the preset error threshold, then the driving current of the warning light is set to the preset maximum value so that the warning light can operate at maximum brightness.

[0044] Optionally, after determining that the object under test is at the maximum working distance threshold according to step S102, the maximum brightness is not immediately triggered. Instead, a dual-confirmation steady-state judgment mechanism is activated. Specifically, the system's timer begins recording the duration for which the depth information continuously meets the condition of "greater than or equal to the maximum working distance threshold" (e.g., 3.0-3.5 meters). Simultaneously, during this period, the system continuously collects depth data and calculates its fluctuation range (e.g., calculating the difference between the maximum and minimum values, or the standard deviation). Then, a bitwise AND operation is performed on the two conditions: first, whether the aforementioned duration exceeds a preset steady-state confirmation duration (e.g., 2 seconds); second, whether the fluctuation range of the real-time distance data is less than a preset allowable error threshold (e.g., 0.1 meters). Only when both conditions are simultaneously met is a deterministic instruction finally generated, setting the current of the warning light drive circuit to a preset maximum value (e.g., 500mA), thereby causing the warning light to enter and maintain the maximum brightness working state. The adjustable range of the warning light current is 0-500mA.

[0045] By introducing a dual confirmation mechanism based on time continuity and data stability, transient interference or measurement noise is effectively filtered out, preventing unexpected and frequent switching of the warning light brightness mode between "maximum brightness" and "adaptive brightness" due to occasional and brief changes in distance data, thus improving the stability and professionalism of the system output.

[0046] In one embodiment, if the object being measured is not within the maximum working distance threshold of the 3D camera in step S103, the driving current of the warning light is adjusted according to the depth information and a preset rule to control the brightness of the warning light. Specifically, this includes the following steps: Step S1031: Obtain the target drive current value according to the depth information and preset rules. Specifically, this includes: Based on the depth information, the current value corresponding to the current depth information is queried through the mapping relationship between the depth information and the current value, and the target driving current value corresponding to the current depth information is obtained. The mapping relationship is configured such that, within the effective working distance range of the 3D camera, the driving current value increases with the increase of the distance to the object being measured.

[0047] Optionally, the system has a built-in or pre-set depth-current mapping table (or a corresponding calculation formula). When it is determined that the object being measured is not within the maximum working distance threshold, the control unit uses the specific depth information obtained in step S101 (e.g., 2.1 meters) as input to query this mapping relationship. This relationship is pre-configured so that within the effective range of the 3D camera's minimum working distance (e.g., 1.5 meters) to the maximum working distance threshold (e.g., 3.5 meters), the target value of the output current monotonically increases with the increase of the input depth value. For example, the mapped current is 50mA at a depth of 1.5 meters, and the current increases by a certain value for every 0.5 meters increase in depth, until the mapped current reaches its maximum value of 500mA at a depth of 3.5 meters. By looking up the table or calculating, the system can automatically and accurately obtain the target driving current value uniquely corresponding to this specific distance (e.g., 220mA for 2.1 meters) and use this value as a precise command for brightness adjustment.

[0048] Step S1032: Generate the corresponding control signal based on the target drive current value. Specifically, this includes: Based on the target driving current value, the main control module of the 3D camera generates a pulse width modulation signal with a corresponding duty cycle. The pulse width modulation signal is input to the analog dimming circuit, which converts the pulse width modulation signal into an analog voltage signal and uses the analog voltage signal as a control signal.

[0049] Optionally, after obtaining the target drive current value, the precise pulse width modulation (PWM) signal duty cycle required to achieve that current is first calculated based on a preset "current-duty cycle" correspondence. For example, if the target current is 220mA (corresponding to 44% of the maximum current of 500mA), the main controller will generate a PWM square wave signal with a fixed frequency (e.g., 1kHz) and a duty cycle of 44%. Subsequently, this digital PWM signal is fed into an analog dimming circuit composed of an RC low-pass filter circuit and an operational amplifier voltage follower. The RC circuit integrates and averages the PWM square wave, converting it into a primary DC voltage with minimal pulsation; the voltage follower provides high input impedance and low output impedance, effectively isolating the preceding and following stages and ensuring the stability of the DC voltage. Finally, the circuit outputs an analog voltage signal (e.g., 0.8V) that is smooth with respect to the PWM duty cycle and has no high-frequency components. This signal serves as the control signal for directly controlling the subsequent drive circuit.

[0050] Step S1033: Adjust the drive current of the warning light according to the control signal to control the brightness of the warning light. Specifically, this includes: The analog voltage signal is input to the brightness adjustment pin of the driver chip in the constant current drive circuit to set the internal current reference of the driver chip. The actual current value flowing through the warning light is obtained in real time through the current sampling network in the constant current drive circuit, and the actual current value is fed back to the current feedback pin of the drive chip. Based on the internal current reference and the actual current value of the current feedback pin, the driver chip generates an adjustment signal through the internal control loop to control the conduction state of the power switch. By adjusting the conduction state, the current change is controlled, and the output current of the constant current drive circuit is made consistent with the internal current reference, thereby controlling the brightness of the warning light.

[0051] Optionally, the smoothed analog voltage signal (e.g., 0.8V) generated in the previous step is connected to the brightness adjustment pin of the constant current drive circuit (e.g., a circuit based on the LM3409 chip). This pin voltage is precisely read by the chip's internal circuitry (e.g., an error amplifier) ​​and directly and linearly set as an internal current reference (e.g., corresponding to a target current of 220mA). Simultaneously, a sampling resistor connected in series in the warning light circuit converts the actual current flowing through the LED into a small feedback voltage, which is sent to the chip's current feedback pin. The chip's internal control loop (typically composed of a comparator, error amplifier, and logic circuitry) continuously compares this feedback voltage with the internal reference voltage determined by the brightness adjustment pin voltage. Once a deviation is detected, the loop immediately generates an adjustment signal, changing the gate voltage of the power switch to adjust its duty cycle, thereby regulating the charging and discharging energy of the energy storage inductor. Ultimately, the average value of the output current is precisely locked to the target value set by the internal current reference, completing closed-loop control of the brightness.

[0052] In one embodiment, Figure 3 This is a flowchart illustrating a warning light strobe control according to an exemplary embodiment, such as... Figure 3 As shown, after adjusting the drive current of the warning light and controlling its brightness according to preset rules, the method further includes: Each time the 3D camera captures an image, it determines whether there are people in the 3D camera's field of view; If personnel are present, the warning lights will flash at a preset frequency. If there are no personnel present, the warning light will remain constantly lit at its current brightness.

[0053] Optionally, Figure 4 This is a schematic diagram illustrating the camera's field of view and the presence of people within it, according to an exemplary embodiment. Figure 4As shown, after completing distance-based adaptive brightness adjustment, the system analyzes the acquired image data and depth point cloud in real time each time the 3D camera starts an image acquisition cycle. Using an integrated person detection algorithm (e.g., point cloud shape feature recognition, image skeleton extraction, or machine learning model), the system determines whether a person is present in the current field of view. If the algorithm determines that a person is present, it immediately outputs a square wave signal of a preset frequency (e.g., 5Hz-10Hz) to the enable pin of the constant current drive chip. This signal rapidly and periodically enables and disables the drive circuit, causing the warning light to flash at a high frequency. If no person is detected in the field of view, the enable pin remains at a constant high level, the drive circuit remains continuously conducting, and the warning light remains constantly lit at the distance-adjusted brightness. This judgment and control process is executed cyclically during each image acquisition, achieving dynamic response.

[0054] When personnel enter a hazardous or work area, the high-frequency flashing mode provides a stronger and more urgent visual warning than constant illumination, greatly enhancing the alert effect and proactively preventing potential safety hazards. Conversely, in a safe state where no personnel are present, it automatically reverts to constant illumination, maintaining basic status indication while avoiding unnecessary flashing that could cause light pollution and interference to the surrounding environment.

[0055] In one embodiment, the 3D camera includes a driving circuit, wherein the driving circuit includes a driving module, an analog dimming module, and a flicker control module; Figure 5 This is a circuit diagram of a drive module illustrated according to an exemplary embodiment, such as... Figure 5 As shown, the drive module is a constant current drive, used to operate the warning light with a constant current. The constant current drive design ensures that the warning light maintains a stable current under complex voltage environments, thus avoiding brightness fluctuations.

[0056] Figure 6 This is a circuit diagram of an analog dimming module illustrated according to an exemplary embodiment, such as... Figure 6 As shown, the analog dimming module is used to convert pulse width modulation into an analog signal and output an analog signal to the drive module to control the output current of the drive module.

[0057] Optionally, the camera main control module outputs a PWM signal with a fixed frequency (e.g., 1kHz) (duty cycle 0-100%, with the current output by the drive circuit reaching its maximum at 100%). After being smoothed by RC, the PWM signal enters a voltage follower to obtain a basically stable analog voltage. After passing through a voltage divider circuit and capacitor filtering, it finally passes through a two-stage voltage follower to obtain a stable target analog voltage, thereby controlling the output current of the drive module.

[0058] The analog dimming module, through fine processing of PWM-to-analog signals, converts the digital signals from the main control module into analog voltages, thereby regulating the drive current. Figure 6 The complete signal chain of the module was demonstrated, enabling brightness control to meet the high brightness requirements at long distances while automatically reducing power consumption at close range, thus balancing energy efficiency and eye safety.

[0059] The strobe control module is used to turn the output current on or off by judging the high or low level of the enable pin, so as to control the warning light to flash at a preset frequency.

[0060] Optionally, the driver module supports an enable function, which turns the output on or off by judging the level of the enable pin; therefore, a square wave enable signal with an output frequency of 5Hz-10Hz can control the flashing of the warning light.

[0061] The strobe control module utilizes the enable function of the drive module to quickly switch the working state of the warning light using a 5Hz-10Hz square wave signal. When a person is detected entering the field of vision, a strobe warning is triggered, which enhances the timeliness of safety reminders. In summary, this application provides a method for controlling the brightness of a 3D camera warning light. Figure 2 This is an overall flowchart illustrating the brightness control of a 3D camera warning light according to an exemplary embodiment, such as... Figure 2 As shown, image data is acquired through a 3D camera, and depth information of the object under test is obtained based on this image data. Depth is calculated directly from the image data, avoiding errors caused by relying on external sensors and improving the accuracy and response speed of brightness adjustment. Based on the depth information, it is determined whether the object under test is within the maximum working distance threshold of the 3D camera. Setting the maximum working distance threshold as a judgment benchmark lays the foundation for warning light brightness control. If the object under test is within the maximum working distance threshold of the 3D camera, the warning light is controlled to operate at maximum brightness. When the scene is determined to be at the farthest distance, maximum brightness output is automatically triggered, ensuring that the warning signal is clearly visible even at a certain distance. If the object under test is not within the maximum working distance threshold of the 3D camera, the driving current of the warning light is adjusted according to the depth information and preset rules to control the brightness of the warning light. The brightness of the warning light can be controlled according to the actual installation height or working distance of the camera, thereby controlling the brightness level. While ensuring effective warning, energy saving is also achieved, improving the flexibility of 3D camera warning light brightness control and solving the problem of how to improve the flexibility of 3D camera warning light brightness control in related technologies.

[0062] Secondly, embodiments of this application provide a brightness control system for a 3D camera warning light. Figure 7 This is a system structure block diagram illustrating a brightness control system for a 3D camera warning light according to an exemplary embodiment. For example... Figure 7As shown, the system includes a depth information module, a judgment module, and a warning light brightness control module; wherein: The depth information module is used to acquire image data through a 3D camera and, based on the image data, to obtain the depth information of the object being measured. The judgment module, based on depth information, is used to determine whether the object being measured is within the maximum working distance of the 3D camera; The warning light brightness control module is used to control the warning light to work at maximum brightness if the object being measured is within the maximum working distance of the 3D camera; if the object being measured is not within the maximum working distance of the 3D camera, the driving current of the warning light is adjusted according to the depth information and a preset rule to control the brightness of the warning light.

[0063] In summary, the brightness control system for a 3D camera warning light provided in this application, through a depth information module, a judgment module, and a warning light brightness control module, ensures effective warning while achieving energy saving, improves the flexibility of 3D camera warning light brightness control, and solves the problem of how to improve the flexibility of 3D camera warning light brightness control in related technologies.

[0064] It should be noted that the brightness control system for a 3D camera warning light provided in this embodiment is used to implement the above-described embodiments, and details already described will not be repeated. As used above, the terms "module," "unit," "subunit," etc., can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the above embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0065] Thirdly, embodiments of this application provide an electronic device, Figure 8 This is a block diagram illustrating an electronic device according to an exemplary embodiment. (e.g.) Figure 8 As shown, the electronic device may include a processor 81 and a memory 82 storing computer program instructions.

[0066] Specifically, the processor 81 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0067] The memory 82 may include a mass storage device for data or instructions. For example, and not limitingly, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include removable or non-removable (or fixed) media. Where appropriate, the memory 82 may be internal or external to a data processing device. In a particular embodiment, the memory 82 is non-volatile memory. In a particular embodiment, the memory 82 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), an electrically alterable read-only memory (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, the RAM can be Static Random-Access Memory (SRAM) or Dynamic Random-Access Memory (DRAM). DRAM can be Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), Extended Data Out Dynamic Random-Access Memory (EDODRAM), Synchronous Dynamic Random-Access Memory (SDRAM), etc.

[0068] The memory 82 can be used to store or cache various data files that need to be processed and / or communicated, as well as possible computer program instructions executed by the processor 81.

[0069] The processor 81 reads and executes computer program instructions stored in the memory 82 to implement any of the brightness control methods for the 3D camera warning light in the above embodiments.

[0070] In one embodiment, a brightness control device for a 3D camera warning light may further include a communication interface 83 and a bus 80. Wherein, as Figure 8 As shown, the processor 81, memory 82, and communication interface 83 are connected through bus 80 and complete communication with each other.

[0071] The communication interface 83 is used to enable communication between the various modules, devices, units, and / or equipment in the embodiments of this application. The communication interface 83 can also enable data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.

[0072] Bus 80 includes hardware, software, or both, that couples together components of a brightness control device for a 3D camera warning light. Bus 80 includes, but is not limited to, at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. For example, and not as a limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0073] Fourthly, embodiments of this application provide a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements a brightness control method for a 3D camera warning light provided in the first aspect.

[0074] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.

[0075] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, causes the terminal device to perform steps implementing the brightness control method for a 3D camera warning light provided in the first aspect.

[0076] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.

[0077] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0078] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for controlling the brightness of a 3D camera warning light, characterized in that, The method is applied to a 3D camera, and the method includes: Image data is acquired using the 3D camera, and depth information of the object being measured is obtained based on the image data. Based on the depth information, it is determined whether the object being measured is within the maximum working distance threshold of the 3D camera; If the object under test is within the maximum working distance threshold of the 3D camera, the warning light is controlled to operate at maximum brightness; if the object under test is not within the maximum working distance threshold of the 3D camera, the driving current of the warning light is adjusted according to the depth information and a preset rule is used to control the brightness of the warning light.

2. The brightness control method for a 3D camera warning light according to claim 1, characterized in that, The step of acquiring image data through a 3D camera and obtaining depth information of the object under test based on the image data includes: The image acquisition operation is initiated by a 3D camera to acquire image data including scene point cloud information; wherein, during the image acquisition operation, the warning light operates with a preset minimum driving current. Based on the image data, the depth values ​​corresponding to each pixel in the image scene are analyzed, and the region of the object under test is identified by the image segmentation algorithm. The average value of the depth values ​​of each pixel in the region is calculated, and the distance between the object under test and the 3D camera is obtained. The distance is used as the depth information of the object under test.

3. The brightness control method for a 3D camera warning light according to claim 2, characterized in that, The step of controlling the warning light to operate at maximum brightness if the object under test is within the maximum working distance threshold of the 3D camera includes: When the object under test is at the maximum working distance threshold of the 3D camera, calculate whether the duration of the object under test at the maximum working distance threshold is greater than a preset time. By monitoring the fluctuation data of the distance in real time, it is calculated whether the fluctuation range is less than a preset error threshold; If the duration is longer than the preset time and the fluctuation range is less than the preset error threshold, the driving current of the warning light is set to the preset maximum value so that the warning light can operate at maximum brightness.

4. The brightness control method for a 3D camera warning light according to claim 1, characterized in that, If the object being measured is not within the maximum working distance of the 3D camera, then based on the depth information, the driving current of the warning light is adjusted according to a preset rule to control the brightness of the warning light, including: Based on the depth information, the target driving current value is obtained according to preset rules; Based on the target drive current value, a corresponding control signal is generated; Based on the control signal, the driving current of the warning light is adjusted to control the brightness of the warning light.

5. The brightness control method for a 3D camera warning light according to claim 4, characterized in that, The step of obtaining the target drive current value according to the depth information and a preset rule includes: Based on the depth information, the current value corresponding to the current depth information is queried through the mapping relationship between the depth information and the current value, and the target driving current value corresponding to the current depth information is obtained. The mapping relationship is configured such that, within the effective working distance range of the 3D camera, the driving current value increases with the increase of the distance to the object being measured.

6. The brightness control method for a 3D camera warning light according to claim 4, characterized in that, The step of generating a corresponding control signal based on the target drive current value includes: Based on the target driving current value, the main control module of the 3D camera generates a pulse width modulation signal with a corresponding duty cycle. The pulse width modulation signal is input to the analog dimming circuit, which converts the pulse width modulation signal into an analog voltage signal and uses the analog voltage signal as a control signal.

7. The brightness control method for a 3D camera warning light according to claim 6, characterized in that, The step of adjusting the driving current of the warning light according to the control signal to control the brightness of the warning light includes: The analog voltage signal is input to the brightness adjustment pin of the driver chip in the constant current drive circuit to set the internal current reference of the driver chip. The actual current value flowing through the warning light is obtained in real time through the current sampling network in the constant current driving circuit, and the actual current value is fed back to the current feedback pin of the driving chip. Based on the internal current reference and the actual current value of the current feedback pin, the driver chip generates an adjustment signal through an internal control loop to control the conduction state of the power switch. By adjusting the conduction state, the current change is controlled, and the output current of the constant current drive circuit is made consistent with the internal current reference, so as to control the brightness of the warning light.

8. The brightness control method for a 3D camera warning light according to claim 1, characterized in that, After adjusting the driving current of the warning light according to preset rules to control the brightness of the warning light, the method further includes: Each time the 3D camera captures an image, it determines whether there are people in the field of view of the 3D camera; If personnel are present, the warning light will be controlled to flash at a preset frequency; If there are no personnel present, the warning light will remain constantly lit at its current brightness.

9. A brightness control method for a 3D camera warning light according to any one of claims 1 to 8, characterized in that, The 3D camera includes a driving circuit, wherein the driving circuit includes a driving module, an analog dimming module, and a flicker control module; The driving module is a constant current driver, used to make the warning light operate with a constant current; The analog dimming module is used to convert pulse width modulation into an analog signal and output an analog signal to the drive module to control the output current of the drive module; The strobe control module is used to control the warning light to flash at a preset frequency by judging the high or low level of the enable pin to turn on or off the output current.

10. A brightness control system for a 3D camera warning light, characterized in that, The system is used to perform the method according to any one of claims 1 to 7, and the system includes a depth information module, a judgment module, and a warning light brightness control module; wherein: The depth information module is used to acquire image data through a 3D camera and, based on the image data, acquire depth information of the object being measured. The judgment module, based on the depth information, is used to determine whether the object being measured is within the maximum working distance of the 3D camera; The warning light brightness control module is used to control the warning light to operate at maximum brightness if the object being measured is within the maximum working distance of the 3D camera; if the object being measured is not within the maximum working distance of the 3D camera, the module adjusts the driving current of the warning light according to the depth information and a preset rule to control the brightness of the warning light.