A lighting control method and device for LED lamps
By integrating the camera device and intelligent adjustment technology on LED lamps, the position of objects is automatically detected and the illumination angle and light intensity is adjusted, and the problem of low control and use efficiency in the existing technology is solved, achieving efficient and energy-saving lighting control.
Patent Information
- Application Number
- CN202411020734.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The control and use efficiency of existing LED lamps is low, and there may be problems with large electricity consumption.
The imaging device installed on the lamp acquires the environmental image, detects the object area, adjusts the illumination angle and light intensity until the preset image position and imaging parameter conditions are met, and automated lighting control is realized.
It improves lighting effects and user experience, achieves energy saving and consumption reduction, and demonstrates a high level of intelligence and automation.
Smart Images

Figure CN118591043B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for controlling lighting of an LED lamp. Background Art
[0002] With the continuous advancement of LED technology, the high efficiency, energy saving, long life, and environmental protection of LED lamps have become increasingly prominent. This has led to more and more extensive applications of LED lamps in the field of lighting, and has also promoted the continuous innovation and development of lighting control technology. As people's requirements for the quality of life increase, the demand for intelligent and personalized lighting systems is also increasing. The lighting control method of LED lamps can meet these needs and provide a more convenient, comfortable, and energy-saving lighting experience. However, in the prior art, the control and application of LED lamps are all carried out through manual control, which results in low control and use efficiency, and may also have the problem of high power consumption. Summary of the invention
[0003] The embodiments of the present application provide a method and device for controlling the lighting of an LED lamp, thereby at least to a certain extent solving the problem of low control and use efficiency.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of the present application, a lighting control method for an LED lamp is provided, comprising: acquiring an environmental image by means of a camera installed on the lamp; detecting an object area in the environmental image, and determining an illumination angle of the lamp based on a position of the object area in the environmental image; adjusting the illumination angle of the lamp based on the object area until the object area meets a preset image position condition; after adjusting the angle, reacquiring the environmental image, and performing image analysis on the environmental image to determine imaging parameters corresponding to the environmental image under a current light intensity; and adjusting the light intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environmental image meet set conditions.
[0006] In the present application, based on the aforementioned scheme, the object area in the environmental image is detected, and the illumination angle of the lamp is determined based on the position of the object area in the environmental image, including: enhancing the environmental image to generate an enhanced image; detecting the object area corresponding to each object in the enhanced image, and extracting feature points from each object area; and determining the illumination angle of the lamp based on the pixel coordinates of at least two of the feature points in the environmental image.
[0007] In the present application, based on the aforementioned scheme, the illumination angle of the lamp is determined based on the pixel coordinates of at least two of the feature points in the environmental image, including: obtaining the three-dimensional coordinates of the lamp in the environment; obtaining the pixel coordinates corresponding to the feature points in each object area in the enhancement, performing coordinate transformation based on the pixel coordinates, and determining the three-dimensional coordinates of the object corresponding to the feature points in the environment; and modeling based on the three-dimensional coordinates of the lamp and the three-dimensional coordinates of the object to determine the illumination angle of the lamp relative to the object.
[0008] In the present application, based on the aforementioned scheme, the illumination angle of the lamp is adjusted based on the object area until the object area meets the preset image position condition, including: generating a control instruction for the illumination angle based on the object area and the illumination angle; controlling the lamp to perform adaptive illumination direction adjustment through the control instruction, and acquiring an environmental image during the direction adjustment process; detecting the object area in the environmental image until the object area meets the preset image position condition.
[0009] In the present application, based on the aforementioned scheme, the image analysis of the environmental image is performed to determine the imaging parameters corresponding to the environmental image under the current light intensity, including: generating a grayscale image corresponding to the environmental image, and obtaining the grayscale pixel value corresponding to each pixel in the grayscale image; identifying the target area corresponding to the set object in the environmental image, and obtaining the target pixel value corresponding to the pixel in the target area; based on the grayscale pixel value of the grayscale image and the target pixel value of the target area, determining the imaging parameters corresponding to the environmental image under the current light intensity.
[0010] In the present application, based on the aforementioned scheme, the light intensity and brightness of the lamp are adjusted based on the imaging parameters until the imaging parameters of the environmental image reach the set conditions, including: adjusting the light intensity and brightness of the lamp based on the comparison result between the imaging parameters and the set threshold value; acquiring the environmental image for evaluation while adjusting until the imaging parameters of the environmental image reach the set conditions.
[0011] In the present application, based on the aforementioned scheme, it also includes: obtaining image information of the target object to be tracked; obtaining an environmental image, and identifying the target object in the environmental image based on the image information; adjusting the light intensity, brightness and angle to track the light source of the target object.
[0012] According to one aspect of the present application, a lighting control device for an LED lamp is provided, comprising:
[0013] An acquisition unit, used for acquiring an environmental image through a camera device installed on the lamp;
[0014] A detection unit, configured to detect an object region in the environment image, and determine an illumination angle of the lamp based on a position of the object region in the environment image;
[0015] An angle unit, used to adjust the illumination angle of the lamp based on the object area until the object area meets a preset image position condition;
[0016] An analysis unit, used to reacquire the environment image after adjusting the angle, and perform image analysis on the environment image to determine imaging parameters corresponding to the environment image under the current light intensity;
[0017] A brightness unit is used to adjust the illumination intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environment image reach set conditions.
[0018] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for controlling the lighting of an LED lamp as described in the above embodiment is implemented.
[0019] According to one aspect of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the lighting control method of the LED lamp as described in the above-mentioned embodiments.
[0020] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the lighting control method of the LED lamp provided in the above various optional implementations.
[0021] In the technical solution of the present application, in the technical solution of the present application, an environmental image is acquired by a camera installed on a lamp; an object area in the environmental image is detected, and the illumination angle of the lamp is determined based on the position of the object area in the environmental image; based on the object area, the illumination angle of the lamp is adjusted until the object area meets the preset image position condition; after adjusting the angle, the environmental image is acquired again, and image analysis is performed on the environmental image to determine the imaging parameters corresponding to the environmental image under the current light intensity; based on the imaging parameters, the light intensity and brightness of the lamp are adjusted until the imaging parameters of the environmental image meet the set conditions. The technical solution of the present application realizes precise lighting control of lamps by integrating a camera device with intelligent adjustment technology. The system can automatically detect the position of an object and adjust the illumination angle and light intensity to meet the lighting requirements of the object. It not only improves the lighting effect and user experience, but also achieves energy saving and consumption reduction, showing a high level of intelligence and automation.
[0022] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 The flowchart of a lighting control method of an LED lamp in an embodiment of the present application is schematically shown.
[0025] Figure 2 The flowchart for determining the illumination angle of a lamp in one embodiment of the present application is schematically shown.
[0026] Figure 3 A schematic diagram of a lighting control device for an LED lamp in an embodiment of the present application is schematically shown.
[0027] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0029] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0032] The implementation details of the technical solution of this application are described in detail below:
[0033] Figure 1 FIG. 1 is a flow chart showing a method for controlling the lighting of an LED lamp according to an embodiment of the present application. Figure 1 As shown, the lighting control method of the LED lamp includes at least steps S110 to S150, which are described in detail as follows:
[0034] In step S110, an environmental image is acquired by a camera installed on the lamp.
[0035] In one embodiment of the present application, when the camera device on the lamp receives a start signal (which may be from a central control system, a timed task or a user instruction), the camera device starts working and transmits the acquired digital image data to a computer or a central control system via wired or wireless means.
[0036] In one embodiment of the present application, an environmental image is captured by a camera device mounted on a lamp. By starting a driver of the camera device, setting appropriate parameters such as resolution and frame rate, and capturing image data of the current frame, the captured image is preprocessed. This includes but is not limited to image denoising, contrast enhancement, color correction, etc., to improve the accuracy and efficiency of subsequent image processing.
[0037] In step S120, an object region in the environment image is detected, and an illumination angle of the lamp is determined based on a position of the object region in the environment image.
[0038] In one embodiment of the present application, a computer first reads an environmental image transmitted by a camera mounted on a lamp. The image is denoised to reduce noise interference in the image and improve the accuracy of subsequent processing. Denoising methods include median filtering, Gaussian filtering, etc. The contrast of the image is enhanced by methods such as histogram equalization or contrast stretching, so that objects in the image are clearer and more discernible.
[0039] like Figure 2 As shown, in one embodiment of the present application, the above process step S120 detects the object area in the environment image, and determines the illumination angle of the lamp based on the position of the object area in the environment image, including:
[0040] S210, performing enhancement processing on the environment image to generate an enhanced image;
[0041] S220, detecting an object region corresponding to each object in the enhanced image, and extracting feature points from each object region;
[0042] S230: Determine an illumination angle of the lamp based on pixel coordinates of at least two of the feature points in the environment image.
[0043] In one embodiment of the present application, based on traditional image processing techniques (such as edge detection, morphological operations, color segmentation, etc.) or modern deep learning algorithms (such as convolutional neural networks CNN, YOLO, SSD, etc.), objects in the image are identified through a pre-trained model. Identify the object area in the image. Output the bounding box of each detected object, that is, the position and size of the object in the image. By enhancing the environmental image, such as improving contrast, sharpening edges, removing noise, etc., the visual effect and signal-to-noise ratio of the image can be significantly improved. This helps to more accurately detect and identify objects in the image in subsequent steps, thereby improving the performance of the entire system.
[0044] Optionally, the detected objects are classified. If an object detection algorithm capable of classification is used, a class label can be given to each object (such as person, furniture, pet, etc.).
[0045] In one embodiment of the present application, a feature point detection algorithm is used to identify key feature points of an object in an image. These feature points are points in an image that are easy to identify and locate, such as corner points, edge points, etc. The detected feature points are extracted from the image and their pixel coordinates in the image are recorded.
[0046] The above process extracts feature points from the detected object area, and these feature points represent the key information of the object, such as corner points, edge points, etc. Since the feature point extraction is performed on the enhanced image, the extracted feature points are more stable and reliable, which is conducive to the accurate calculation of the illumination angle based on these feature points in the subsequent steps.
[0047] In the above step S230, based on the pixel coordinates of at least two of the feature points in the environment image, determining the illumination angle of the lamp specifically includes:
[0048] Obtaining the three-dimensional coordinates of the lamp in the environment;
[0049] Obtain pixel coordinates corresponding to feature points in each object area in the enhancement, perform coordinate transformation based on the pixel coordinates, and determine the three-dimensional coordinates of the object corresponding to the feature point in the environment;
[0050] Modeling is performed based on the three-dimensional coordinates of the lamp and the three-dimensional coordinates of the object to determine an illumination angle of the lamp relative to the object.
[0051] In one embodiment of the present application, the position of the lamp in the environment is fixed, so the corresponding three-dimensional coordinates of the lamp can be pre-stored in the system or device so that it can be directly obtained.
[0052] In one embodiment of the present application, the pixel coordinates corresponding to the feature points in each object area in the enhancement are obtained, and the coordinate transformation is performed based on the pixel coordinates to determine the three-dimensional coordinates of the object corresponding to the feature point in the environment. The camera's intrinsic parameters (focal length, optical center, etc.) and extrinsic parameters (camera position and posture in the world coordinate system) are obtained through camera calibration. Camera calibration is a key step in establishing a mapping relationship between image coordinates and world coordinates. Using the parameters obtained by camera calibration, the pixel coordinates in the image are converted to coordinates in three-dimensional space through a perspective projection model.
[0053] The three-dimensional coordinates of the lamp and the object's 3D coordinates As input data, the horizontal angle between the lamp and the object on the x-axis is calculated as:
[0054]
[0055] Calculate the angle between the direction of the lamp and the object on the y-axis:
[0056]
[0057] Calculate the angle between the direction of the lamp and the object on the z-axis:
[0058]
[0059] The specific angle of the lamp relative to the object, such as the horizontal angle and the pitch angle, is calculated based on the vectors corresponding to the multiple feature points. The angles between the lamp and the object in three dimensions obtained based on the above calculations are used as the illumination angle.
[0060] The above process can calculate the illumination angle that needs to be adjusted for the lamp through the pixel coordinates of at least two feature points in the environment image. The advantage of this method is that it directly uses the actual information in the image and avoids complex spatial mapping and calculation errors. At the same time, due to the accuracy and stability of feature point extraction, the calculated illumination angle is more accurate and reliable.
[0061] In step S130, based on the object area, the illumination angle of the lamp is adjusted until the object area meets a preset image position condition.
[0062] In one embodiment of the present application, after the object region is acquired, the illumination angle of the lamp is adjusted based on the state of the object region in the environmental image, so that the object region shows clearer information in the environmental image.
[0063] In one embodiment of the present application, adjusting the illumination angle of the lamp based on the object area until the object area meets a preset image position condition includes:
[0064] generating a control instruction for the illumination angle based on the object area and the illumination angle;
[0065] Controlling the lamp to perform adaptive illumination direction adjustment through the control instruction, and acquiring an environmental image during the direction adjustment process;
[0066] An object region in the environment image is detected until the object region meets a preset image position condition.
[0067] In one embodiment of the present application, the position and shape of the object area to be illuminated in three-dimensional space are determined by image recognition or preset marking points, and the illumination angle (including the pitch angle and the horizontal angle) that the lamp needs to adjust is calculated according to the method described above based on the three-dimensional coordinates of the lamp and the three-dimensional coordinates of the object area. Based on the calculated illumination angle, a control instruction for controlling the lamp to adjust the direction is generated, which includes the specific angle or direction that the lamp needs to rotate. By generating control instructions based on the object area and the illumination angle, and controlling the lamp to perform adaptive illumination direction adjustment, the system can adjust the lighting direction in real time according to the position and changes of objects in the environment. This adaptive lighting optimization not only improves the pertinence and efficiency of lighting, but also reduces energy waste, achieving a more environmentally friendly and intelligent lighting solution.
[0068] The generated control instructions are sent to the control system of the lamp through wired or wireless communication. After receiving the instructions, the control system of the lamp drives the mechanical structure of the lamp (such as rotating the head or adjusting the reflector) to make corresponding directional adjustments. During the adjustment process, the environmental image can be obtained through the built-in sensor of the lamp or the external monitoring device to observe the adjustment effect in real time. As the illumination direction of the lamp is adjusted, the position of the object area in the environmental image will also change. The system continuously detects the object area in the environmental image and adjusts the illumination angle of the lamp until the object area meets the preset image position conditions. This process ensures that the lighting effect always meets the user's expectations and needs. For example, in the office area, the system can ensure that the desktop is always evenly and fully illuminated, thereby improving work efficiency and comfort.
[0069] Use a camera or other image acquisition device to continuously acquire environmental images during the process of adjusting the direction of the lamp. Apply image recognition algorithms (such as edge detection, feature matching, deep learning, etc.) to detect object areas in the environmental image. Compare the detected object area with the preset image position conditions to evaluate whether it meets the requirements. These conditions can include the position, size, shape, etc. of the object in the image.
[0070] Specifically, in this embodiment, when controlling the angle and direction of the lamp, the environment image within the current illumination range is acquired in real time. After acquisition, the object area in the environment image is identified, and the occupied area of the object area corresponding to an object in the environment image is acquired. , the area of the environment image , and the distance between the luminaire and the object , the focal length of the camera when acquiring the environment image Based on the above information, the regional parameters are calculated for:
[0071]
[0072] Among them, i represents the identity of the object.
[0073] After the regional parameters are calculated, the regional parameters are compared with the preset thresholds. When the regional parameters are greater than or equal to the preset thresholds, it means that the lamps are adjusted to the appropriate positions.
[0074] The above process continuously acquires environmental images during the direction adjustment process and detects the object area in real time, so that the system can respond quickly to changes in the environment. Once the change in the position of the object is detected or a new object enters the field of view, the system can immediately adjust to ensure the optimization of the lighting effect. This real-time feedback and adjustment mechanism greatly improves the flexibility and response speed of the system. Through continuous detection and adjustment, the system can gradually adapt to various complex environmental conditions, such as changes in lighting, object movement, occlusion, etc. This dynamic adjustment process enhances the stability and robustness of the system, allowing the system to maintain good lighting effects in various environments.
[0075] In step S140, after adjusting the angle, the environment image is reacquired, and image analysis is performed on the environment image to determine imaging parameters corresponding to the environment image under the current light intensity.
[0076] In one embodiment of the present application, a camera device installed on a lamp or in the environment is used to reacquire an environment image under current lighting conditions. Image analysis is performed on the environment image to determine imaging parameters corresponding to the environment image under current lighting intensity. The imaging parameters are used to measure whether the illumination angle of the lamp meets the lighting requirements of the current area.
[0077] In one embodiment of the present application, performing image analysis on the environment image to determine imaging parameters corresponding to the environment image under the current illumination intensity includes:
[0078] Generate a grayscale image corresponding to the environment image, and obtain the grayscale pixel value corresponding to each pixel in the grayscale image;
[0079] Identify a target area corresponding to a set object in the environment image, and obtain target pixel values corresponding to pixel points in the target area;
[0080] Based on the grayscale pixel values of the grayscale image and the target pixel values of the target area, imaging parameters corresponding to the environment image under the current light intensity are determined.
[0081] In one embodiment of the present application, grayscale processing is performed on the environment image to convert the color image into a grayscale image, so that each pixel has only one brightness value, that is, an integer between 0 and 255, which is convenient for subsequent processing.
[0082] At the same time, a target area corresponding to the set object in the environment image is identified, that is, the target area where the set object is located. The target area in this embodiment is a rectangular area to facilitate the subsequent brightness determination. After identifying the target area corresponding to the set object in the environment image, the target pixel value corresponding to the pixel point in the target area is obtained.
[0083] Then, based on the grayscale pixel value of the grayscale image and the target pixel value of the target area , determine the imaging parameters corresponding to the environment image under the current light intensity for:
[0084]
[0085] in, Represents the coordinates of the pixel in the grayscale image. Represents the coordinates of the pixel points in the target area; Indicates the number of horizontal and vertical pixels of the grayscale image. Indicates the number of pixels in the horizontal and vertical directions of the target area. After the imaging parameters are calculated, it is determined whether to adjust the light intensity and brightness of the lamp based on the comparison result between the imaging parameters and the set threshold.
[0086] The above process evaluates and calculates the imaging parameters corresponding to the environment image under the current light intensity based on the pixel values of the pixels in the grayscale image and the pixel values of the pixels in the target area, and focuses on judging the target area identified in the environment image. By comparing the pixels between the target area and the environment image, the imaging effect of the target area under the current light intensity is determined. The above process can simulate the human vision under the actual light environment, and obtain the light evaluation result in a way that is closer to the actual application, which is more objective and accurate.
[0087] In step S150, the illumination intensity and brightness of the lamp are adjusted based on the imaging parameters until the imaging parameters of the environment image reach set conditions.
[0088] In one embodiment of the present application, adjusting the illumination intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environment image reach the set conditions specifically includes:
[0089] Based on the comparison result between the imaging parameter and the set threshold, adjusting the illumination intensity and brightness of the lamp;
[0090] While adjusting, an environmental image is acquired for evaluation until imaging parameters of the environmental image reach set conditions.
[0091] In one embodiment of the present application, setting conditions for imaging parameters of the environment image are preset, such as a set threshold range. The extracted imaging parameter value is compared with the preset threshold range to determine whether the imaging quality of the current image meets the requirements. Based on the comparison results, it is determined whether the illumination intensity and brightness of the lamp need to be adjusted. If the imaging parameter is within the threshold range, the current illumination setting is kept unchanged; if it is not within the range, the illumination intensity and brightness value that needs to be adjusted is calculated based on the deviation size and direction.
[0092] According to the decision result, the light intensity and brightness of the lamp are adjusted through the control system. This can be achieved by changing the power of the lamp, adjusting the focus or diffusion of the light, etc. After adjusting the lamp, the imaging device is used to capture the environmental image again. The process of imaging parameter extraction, comparison and decision-making, and lighting adjustment is repeated until the imaging parameters of the environmental image reach or approach the set target value and stabilize within the threshold range.
[0093] When the imaging parameters of the ambient image meet or exceed the set conditions, the closed-loop control process is considered to be over. At this point, the light intensity and brightness of the lamp have been adjusted to the optimal state to support the required imaging quality. In some cases, in order to cope with sudden changes in ambient light, the system may also need to continuously monitor the imaging parameters and make fine adjustments when necessary.
[0094] In the above process, automation and intelligence are achieved, and the light intensity and brightness of the lamps can be automatically adjusted according to the environmental image without human intervention. This greatly improves work efficiency, reduces human errors, and can maintain stable imaging quality in complex and changing environments. By continuously adjusting the lighting settings, the imaging parameters of the environmental image (such as brightness, contrast, clarity, etc.) can approach or reach the preset target values, thereby significantly improving the imaging quality of the image. This is especially important for application scenarios that require high-quality images (such as medical imaging, security monitoring, product photography, etc.).
[0095] The process is highly adaptable and can cope with lighting changes under different environmental conditions. Whether indoors or outdoors, day or night, the system can automatically adjust the lighting settings according to the ambient image to ensure the stability of imaging quality. In scenes that require high-quality image display (such as museums, art galleries, exhibition halls, etc.), by optimizing the lighting settings, the audience's visual experience can be enhanced, making the exhibits more vivid and realistic in front of the audience.
[0096] In one embodiment of the present application, it also includes:
[0097] Acquire image information of a target object to be tracked; acquire an environmental image and identify the target object in the environmental image based on the image information; adjust the light intensity, brightness and angle to track the light source of the target object.
[0098] In one embodiment of the present application, a deep learning algorithm (such as a convolutional neural network (CNN)) is used to more accurately and robustly identify and track the target object. The unique features of the target object are identified by training the model, and stable tracking can be achieved even in complex backgrounds or occlusions. Considering that the target object may appear at different scales (sizes) and perspectives (directions, positions), a multi-scale tracker and a multi-perspective fusion algorithm are designed to achieve all-round tracking of the target object.
[0099] Combine the target object's movement trajectory and speed to predict its future position, and adjust the position and angle of the light source in advance to achieve smoother and more continuous light source tracking. When adjusting the lighting, not only the brightness and intensity are considered, but also factors such as the uniformity of the lighting, the reduction of shadows, and the true restoration of colors are considered to optimize the lighting effect of the target object. The integrated ambient light sensor monitors the changes in the natural lighting of the surrounding environment in real time, and adjusts the intensity of the artificial light source accordingly to maintain the stability of the lighting of the target object.
[0100] Allow users to customize the tracking area through the user interface, and the system will only identify and track the target object in this area, improving the accuracy and efficiency of tracking. Provide a variety of lighting modes for users to choose, such as spotlight mode, floodlight mode, dynamic change mode, etc. Users can choose the appropriate mode for light source tracking according to their needs.
[0101] Optionally, multiple light sources are deployed in large scenes or complex environments for coordinated tracking through a central control system. Based on the position and movement trajectory of the target object, the illumination angle and brightness of each light source are dynamically allocated to achieve more comprehensive lighting coverage and more uniform lighting effects. When multiple light sources are tracking the same target object at the same time, priority is set based on factors such as the position, angle, and brightness of the light source to ensure that the most important light source can continuously and stably track the target object.
[0102] In the technical solution of the present application, an environmental image is acquired by a camera installed on a lamp; the object area in the environmental image is detected, and the illumination angle of the lamp is determined based on the position of the object area in the environmental image; based on the object area, the illumination angle of the lamp is adjusted until the object area meets the preset image position condition; after adjusting the angle, the environmental image is acquired again, and image analysis is performed on the environmental image to determine the imaging parameters corresponding to the environmental image under the current light intensity; based on the imaging parameters, the light intensity and brightness of the lamp are adjusted until the imaging parameters of the environmental image meet the set conditions. The technical solution of the present application realizes precise lighting control of lamps by integrating a camera device with intelligent adjustment technology. The system can automatically detect the position of an object and adjust the illumination angle and light intensity to meet the lighting requirements of the object. It not only improves the lighting effect and user experience, but also achieves energy saving and consumption reduction, demonstrating a high level of intelligence and automation.
[0103] The following describes an embodiment of the device of the present application, which can be used to execute the method for controlling the lighting of an LED lamp in the above-mentioned embodiment of the present application. It is understandable that the device can be a computer program (including program code) running in a computer device, for example, the device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method for controlling the lighting of an LED lamp in the above-mentioned embodiment of the present application.
[0104] Figure 3 A block diagram of a lighting control device for an LED lamp according to an embodiment of the present application is shown.
[0105] Reference Figure 3 As shown, a lighting control device for an LED lamp according to an embodiment of the present application includes:
[0106] An acquisition unit 310 is used to acquire an environmental image through a camera installed on the lamp;
[0107] A detection unit 320, configured to detect an object region in the environment image, and determine an illumination angle of the lamp based on a position of the object region in the environment image;
[0108] An angle unit 330, used to adjust the illumination angle of the lamp based on the object area until the object area meets a preset image position condition;
[0109] The analysis unit 340 is used to reacquire the environment image after adjusting the angle, and perform image analysis on the environment image to determine the imaging parameters corresponding to the environment image under the current light intensity;
[0110] The brightness unit 350 is used to adjust the illumination intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environment image reach set conditions.
[0111] In the present application, based on the aforementioned scheme, the object area in the environmental image is detected, and the illumination angle of the lamp is determined based on the position of the object area in the environmental image, including: enhancing the environmental image to generate an enhanced image; detecting the object area corresponding to each object in the enhanced image, and extracting feature points from each object area; and determining the illumination angle of the lamp based on the pixel coordinates of at least two of the feature points in the environmental image.
[0112] In the present application, based on the aforementioned scheme, the illumination angle of the lamp is determined based on the pixel coordinates of at least two of the feature points in the environmental image, including: obtaining the three-dimensional coordinates of the lamp in the environment; obtaining the pixel coordinates corresponding to the feature points in each object area in the enhancement, performing coordinate transformation based on the pixel coordinates, and determining the three-dimensional coordinates of the object corresponding to the feature points in the environment; and modeling based on the three-dimensional coordinates of the lamp and the three-dimensional coordinates of the object to determine the illumination angle of the lamp relative to the object.
[0113] In the present application, based on the aforementioned scheme, the illumination angle of the lamp is adjusted based on the object area until the object area meets the preset image position condition, including: generating a control instruction for the illumination angle based on the object area and the illumination angle; controlling the lamp to perform adaptive illumination direction adjustment through the control instruction, and acquiring an environmental image during the direction adjustment process; detecting the object area in the environmental image until the object area meets the preset image position condition.
[0114] In the present application, based on the aforementioned scheme, the image analysis of the environmental image is performed to determine the imaging parameters corresponding to the environmental image under the current light intensity, including: generating a grayscale image corresponding to the environmental image, and obtaining the grayscale pixel value corresponding to each pixel in the grayscale image; identifying the target area corresponding to the set object in the environmental image, and obtaining the target pixel value corresponding to the pixel in the target area; based on the grayscale pixel value of the grayscale image and the target pixel value of the target area, determining the imaging parameters corresponding to the environmental image under the current light intensity.
[0115] In the present application, based on the aforementioned scheme, the light intensity and brightness of the lamp are adjusted based on the imaging parameters until the imaging parameters of the environmental image reach the set conditions, including: adjusting the light intensity and brightness of the lamp based on the comparison result between the imaging parameters and the set threshold value; acquiring the environmental image for evaluation while adjusting until the imaging parameters of the environmental image reach the set conditions.
[0116] In the present application, based on the aforementioned scheme, it also includes: obtaining image information of the target object to be tracked; obtaining an environmental image, and identifying the target object in the environmental image based on the image information; adjusting the light intensity, brightness and angle to track the light source of the target object.
[0117] In the technical solution of the present application, an environmental image is acquired by a camera installed on a lamp; the object area in the environmental image is detected, and the illumination angle of the lamp is determined based on the position of the object area in the environmental image; based on the object area, the illumination angle of the lamp is adjusted until the object area meets the preset image position condition; after adjusting the angle, the environmental image is acquired again, and image analysis is performed on the environmental image to determine the imaging parameters corresponding to the environmental image under the current light intensity; based on the imaging parameters, the light intensity and brightness of the lamp are adjusted until the imaging parameters of the environmental image meet the set conditions. The technical solution of the present application realizes precise lighting control of lamps by integrating a camera device with intelligent adjustment technology. The system can automatically detect the position of an object and adjust the illumination angle and light intensity to meet the lighting requirements of the object. It not only improves the lighting effect and user experience, but also achieves energy saving and consumption reduction, demonstrating a high level of intelligence and automation.
[0118] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0119] It should be noted that the computer system 400 of the electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0120] The computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 403. The CPU 401, the ROM 402 and the RAM 403 are connected to each other through the bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.
[0121] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0122] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 409, and / or installed from a removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0123] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0124] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0126] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0127] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0128] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0129] Through the description of the above implementation methods, the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.
[0130] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0131] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A lighting control method for an LED lamp, characterized in that: include: Acquire environmental images through a camera device installed on the lamp; Detecting an object area in the environment image, and determining an illumination angle of the lamp based on a position of the object area in the environment image; Based on the object area, adjusting the illumination angle of the lamp until the object area meets a preset image position condition; After adjusting the angle, reacquire the environment image, and perform image analysis on the environment image to determine the imaging parameters corresponding to the environment image under the current light intensity; Adjusting the illumination intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environment image reach set conditions; Wherein, detecting the object area in the environment image and determining the illumination angle of the lamp based on the position of the object area in the environment image includes: Performing enhancement processing on the environment image to generate an enhanced image; Detecting object regions corresponding to each object in the enhanced image, and extracting feature points from each object region; Determine the illumination angle of the lamp based on the pixel coordinates of at least two of the feature points in the environment image; Wherein, determining the illumination angle of the lamp based on the pixel coordinates of at least two of the feature points in the environment image includes: Obtaining the three-dimensional coordinates of the lamp in the environment; Obtain pixel coordinates corresponding to feature points in each object area in the enhancement, perform coordinate transformation based on the pixel coordinates, and determine the three-dimensional coordinates of the object corresponding to the feature point in the environment; Modeling is performed based on the three-dimensional coordinates of the lamp and the three-dimensional coordinates of the object to determine the illumination angle of the lamp relative to the object. Specifically, the three-dimensional coordinates of the lamp are and the object's 3D coordinates As input data, the horizontal angle between the lamp and the object on the x-axis is calculated as: Calculate the angle between the direction of the lamp and the object on the y-axis: Calculate the angle between the direction of the lamp and the object on the z-axis: The angles between the lamp and the object in three dimensions obtained based on the above calculation are used as the illumination angle.
2. The method according to claim 1, characterized in that: Based on the object area, adjusting the illumination angle of the lamp until the object area meets a preset image position condition, including: generating a control instruction for the illumination angle based on the object area and the illumination angle; Controlling the lamp to perform adaptive illumination direction adjustment through the control instruction, and acquiring an environmental image during the direction adjustment process; An object region in the environment image is detected until the object region meets a preset image position condition.
3. The method according to claim 1, characterized in that Performing image analysis on the environment image to determine imaging parameters corresponding to the environment image under the current light intensity includes: Generate a grayscale image corresponding to the environment image, and obtain the grayscale pixel value corresponding to each pixel in the grayscale image; Identify a target area corresponding to a set object in the environment image, and obtain target pixel values corresponding to pixel points in the target area; Based on the grayscale pixel values of the grayscale image and the target pixel values of the target area, imaging parameters corresponding to the environment image under the current light intensity are determined.
4. The method according to claim 1, characterized in that: Adjusting the illumination intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environment image reach set conditions includes: Based on the comparison result between the imaging parameter and the set threshold, adjusting the illumination intensity and brightness of the lamp; While adjusting, an environmental image is acquired for evaluation until imaging parameters of the environmental image reach set conditions.
5. The method according to claim 4, characterized in that Also includes: Acquire image information of the target object to be tracked; Acquire an environmental image, and identify a target object in the environmental image based on the image information; The light intensity, brightness and angle are adjusted to track the light source of the target object.
6. A lighting control device for an LED lamp, characterized in that: include: An acquisition unit, used for acquiring an environmental image through a camera device installed on the lamp; A detection unit, configured to detect an object region in the environment image, and determine an illumination angle of the lamp based on a position of the object region in the environment image; An angle unit, used to adjust the illumination angle of the lamp based on the object area until the object area meets a preset image position condition; An analysis unit, used to reacquire the environment image after adjusting the angle, and perform image analysis on the environment image to determine imaging parameters corresponding to the environment image under the current light intensity; A brightness unit, used to adjust the illumination intensity and brightness of the lamp based on the imaging parameters until the imaging parameters of the environment image reach set conditions; Wherein, detecting the object area in the environment image and determining the illumination angle of the lamp based on the position of the object area in the environment image includes: Performing enhancement processing on the environment image to generate an enhanced image; Detecting object regions corresponding to each object in the enhanced image, and extracting feature points from each object region; Determine the illumination angle of the lamp based on the pixel coordinates of at least two of the feature points in the environment image; Wherein, determining the illumination angle of the lamp based on the pixel coordinates of at least two of the feature points in the environment image includes: Obtaining the three-dimensional coordinates of the lamp in the environment; Obtain pixel coordinates corresponding to feature points in each object area in the enhancement, perform coordinate transformation based on the pixel coordinates, and determine the three-dimensional coordinates of the object corresponding to the feature point in the environment; Modeling is performed based on the three-dimensional coordinates of the lamp and the three-dimensional coordinates of the object to determine the illumination angle of the lamp relative to the object. Specifically, the three-dimensional coordinates of the lamp are and the object's 3D coordinates As input data, the horizontal angle between the lamp and the object on the x-axis is calculated as: Calculate the angle between the direction of the lamp and the object on the y-axis: Calculate the angle between the direction of the lamp and the object on the z-axis: The angles between the lamp and the object in three dimensions obtained based on the above calculation are used as the illumination angle.
7. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the lighting control method of the LED lamp according to any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the lighting control method of the LED lamp as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent lamplight adjusting device, method and system for art hall
CN111712021A
Realization method of live-broadcasting light-supplementing lamp for face tracking illumination and light-supplementing lamp of live-broadcasting light-supplementing lamp
CN115240251A