Lamp control method and device, lamp and storage medium

By acquiring information about the distance, posture, and skin characteristics between the red light therapy lamp and the user's body area, and combining this information to control the lamp's illumination, the problem of inaccurate control of existing red light therapy lamps has been solved, achieving more precise lamp control and safer therapeutic effects.

CN121985448APending Publication Date: 2026-05-05SHENZHEN SUNGROW LED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN SUNGROW LED TECH CO LTD
Filing Date
2025-12-31
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing red light therapy lamps have low accuracy in recognizing the user's physical condition during use, resulting in the lamp adjustment results not matching the actual needs, affecting the therapeutic effect and potentially causing skin damage.

Method used

By acquiring distance information between the target light fixture and the area of ​​the user's body to be illuminated, and by recognizing the user's body posture and skin characteristics, the illumination of the light fixture is controlled in combination with this information.

Benefits of technology

It enables more precise and intelligent control of the lighting fixtures, ensuring that the illumination better meets the actual needs of users in different states, improving the therapeutic effect and ensuring skin safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121985448A_ABST
    Figure CN121985448A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides a lamp control method and device, a lamp and a storage medium, and the method comprises the steps: obtaining distance information between a target lamp and a to-be-irradiated body region of a user, and obtaining a body image of the user, the body image comprising a target image region corresponding to the to-be-irradiated body region; recognizing the body posture of the user based on the body image to obtain body posture information of the user; identifying a target image area in the body image to obtain skin feature information of the body area to be irradiated; and based on the distance information, the body posture information and the skin feature information, controlling the target lamp to irradiate the to-be-irradiated body area. According to the method, the lamp can be more accurately and intelligently regulated and controlled, and the actual requirements of a user in different states can be better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of intelligent decision-making, and in particular to a lighting control method, control device, lighting fixture, and storage medium. Background Technology

[0002] Red light therapy lamps are devices that utilize specific wavelengths of red or near-infrared light. They primarily promote blood circulation through photobiological regulation, thereby relieving muscle fatigue and other effects. Traditional red light therapy lamps are similar to regular lamps; during use, users manually adjust the irradiation parameters according to their needs.

[0003] Currently, some red light therapy lamps have integrated smart sensors that can monitor and identify the user's physical condition in real time and intelligently adjust the lamps based on the detection results. However, the accuracy of these products in identifying the user's physical condition is relatively low, which often results in a discrepancy between the lamp's adjustment and the user's actual needs. This not only affects the therapeutic effect but may even damage the user's skin. Summary of the Invention

[0004] The main purpose of this application is to provide a lighting control method, control device, lighting fixture and storage medium, which can more accurately and intelligently regulate the lighting fixture and better meet the actual needs of users in different states.

[0005] In a first aspect, this application provides a lighting control method, including: The distance information between the target lamp and the user's body area to be illuminated is obtained, and the user's body image is obtained, wherein the body image includes the target image area corresponding to the body area to be illuminated; Based on the body image, the user's body posture is identified to obtain the user's body posture information; and The target image region in the body image is identified to obtain skin feature information of the body region to be irradiated; Based on the distance information, the body posture information, and the skin feature information, the target lamp is controlled to illuminate the body area to be illuminated.

[0006] Secondly, this application also provides a control device, which includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, it implements the lighting control method described above.

[0007] Thirdly, this application also provides a lighting fixture, the lighting fixture comprising: The lamp body is used to emit light; The camera device captures images of the user's body. The control device described above is connected to the lamp body and the shooting device.

[0008] Fourthly, this application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the lighting control method described above.

[0009] This application provides a lighting control method, control device, lighting fixture, and storage medium. The method involves acquiring distance information between a target lighting fixture and a user's body area to be illuminated, and acquiring a body image of the user. Based on the body image, the user's body posture is identified to obtain body posture information. A target image region within the body image is identified to obtain skin feature information of the body area to be illuminated. Based on the aforementioned distance information, body posture information, and skin feature information, the target lighting fixture is controlled to illuminate the body area. In this embodiment, the combination of distance information, body posture information, and skin feature information allows for a more comprehensive and accurate identification of the user's body state, enabling more precise and intelligent control of the lighting fixture and better meeting the user's actual needs in different states. Attached Figure Description

[0010] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a flowchart illustrating the steps of a lighting control method provided in an embodiment of this application. Figure 2 A schematic diagram of a scenario for implementing the lighting control method provided in this embodiment; Figure 3 for Figure 1 A flowchart illustrating the sub-steps of the lighting control method in the diagram; Figure 4 A schematic block diagram of a control device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the mechanism of a lamp provided in an embodiment of this application.

[0012] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0014] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0015] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0016] It should be noted that since the method in this application embodiment is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, the time described in this document is actually time information used to characterize time. It is understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they will all exist in the corresponding data form so that the computer device can process them. Specific details will not be elaborated here.

[0017] This application provides a lighting control method, control device, lighting fixture, and storage medium, which will be explained below.

[0018] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0019] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the steps of a lighting control method provided in an embodiment of this application.

[0020] like Figure 1 As shown, the lighting control method includes steps S101 to S104.

[0021] Step S101: Obtain the distance information between the target lamp and the area of ​​the user's body to be illuminated, and obtain the user's body image.

[0022] The target light fixture can be a light source that emits light of a specific wavelength to achieve certain special effects, such as a red light therapy lamp or a red-blue light acne treatment lamp. The body image can include the target image area corresponding to the body region to be irradiated. The body region to be irradiated can be a specific body part of the user currently receiving irradiation, such as the face, shoulders, neck, or back. It should be noted that "to be irradiated" can refer to the body region that is currently being irradiated and will soon continue, or it can refer to the body region that is planned to begin irradiation. The user's body image is used to reflect the location, posture, and skin condition of the user's body region to be irradiated.

[0023] There are several ways to obtain distance information between a target light fixture and the area of ​​the body to be illuminated. Specifically, it can be done by using a distance sensor integrated on the target light fixture, such as an infrared distance sensor or an ultrasonic sensor, to directly collect the real-time distance between the target light fixture and the area of ​​the user's body to be illuminated at a certain acquisition frequency. Alternatively, it can be done by using image acquisition devices, such as cameras, deployed around the target light fixture to capture images containing both the target light fixture and the area of ​​the user's body to be illuminated, and then using image recognition and ranging algorithms to determine the distance between the two.

[0024] Similarly, images of the user's body can also be captured by an image acquisition device, which can be deployed around the target light fixture as described above, or it can be an independent image acquisition device that is communicatively connected to the target light fixture.

[0025] For example, refer to Figure 2 , Figure 2 This is a schematic diagram illustrating a scenario for implementing the lighting control method provided in this embodiment. The target lighting fixture is a red light therapy lamp. A user, seated, receives red light irradiation on their back from the lamp. The red light therapy lamp is equipped with an infrared distance sensor, a camera, and a controller. Specifically, the infrared distance sensor collects real-time distance data between the red light therapy lamp and the user's back and sends it to the controller. The camera captures an image of the user's back and transmits it to the controller. The controller executes subsequent control steps based on the received distance information and the body image.

[0026] In one embodiment, acquiring a user's body image includes: performing image preprocessing on multiple frames of the user's first body image to obtain multiple frames of second body image; identifying each frame of the second body image to determine at least one frame containing the body area to be illuminated from the multiple frames of second body image, thereby obtaining the user's body image.

[0027] In this process, image preprocessing using the first body image helps improve the accuracy and efficiency of subsequent identification of the body region to be illuminated in the image. For example, Gaussian filtering is used to denoise each frame of the body image to remove noise; furthermore, histogram equalization is used to adjust the contrast of each frame of the body image to enhance the distinction between the body region to be illuminated and the background in each frame.

[0028] Specifically, preset object detection algorithms or pre-trained detection models, such as the YOLO algorithm or the Faster R-CNN model, can be used to detect each frame of the second body image to identify the pixel regions corresponding to the body region to be illuminated in various second body images. For example, when the body region to be illuminated is the back, the back region can be selected from the second body image using a preset algorithm or model, thereby determining that the second body image in that frame contains the body region to be illuminated.

[0029] It should be noted that the determination of the body area to be illuminated is usually based on the user's active selection of the illumination mode before using the target light fixture. For example, the user can pre-set the body area to be illuminated through the target light fixture's accompanying mobile app, remote control, or voice commands, ensuring that subsequent image acquisition, detection, and recognition are more targeted.

[0030] Step S102: Recognize the user's body posture based on the body image to obtain the user's body posture information.

[0031] The recognition of body images can be achieved by extracting key points of the human skeleton based on MediaPipe's human pose estimation model, OpenPose, etc., thereby determining the user's current body pose information. Body pose information can include feature parameters characterizing the user's body dynamics, such as the stability and displacement velocity of various joints; it can also include feature parameters characterizing the body statics, such as the relative positions of different body parts, the angular relationships between the torso and limbs, and the user's pose category, such as standing, bending over, or turning sideways. Obtaining the user's body pose information helps to more accurately determine the most suitable lighting reference for the user in their current state.

[0032] It is also important to emphasize that in some cases, when the body area to be illuminated is the legs, other body areas such as the hands or head are in motion, having little or no impact on the legs. Therefore, in some situations, the user's body posture information can include both the feature parameters associated with the body area to be illuminated and the feature parameters of other body areas, so that the degree of influence of the movement state of different body areas on illumination requirements can be distinguished during comprehensive analysis. In other cases, the user's body posture information can include only the feature parameters associated with the body area to be illuminated, to reduce interference from irrelevant or weakly correlated information, which helps to improve the targeting and accuracy of subsequent illumination control.

[0033] In one embodiment, the body image includes multiple body images; the user's body posture is identified based on the body images to obtain the user's body posture information, including: detecting skeletal key points in the multiple body images to obtain the position coordinates of multiple skeletal key points corresponding to each body image; calculating the stability of multiple skeletal key points based on the position coordinates of multiple skeletal key points corresponding to each body image; and determining the user's body posture information based on the stability of multiple skeletal key points.

[0034] Stability can be obtained by calculating the rate of change of position of each skeletal keypoint. For example, it can be calculated the rate of change of position coordinates of the same skeletal keypoint in five consecutive frames of body images. Understandably, the smaller the rate of change of position coordinates, the slower the position change of the skeletal keypoint, and the higher the stability; conversely, the larger the rate of change of position coordinates, the lower the stability.

[0035] Understandably, by analyzing the stability of multiple skeletal key points, it is possible to more accurately determine whether the user is currently in a dynamic or relatively static state, providing a more precise attitude basis for subsequent lighting reference selection.

[0036] In one embodiment, after determining the user's body posture information based on the stability of multiple skeletal key points, the method further includes: obtaining the distance information between the target light fixture and the user's body area to be illuminated corresponding to each frame of body image, calculating the standard deviation of the distance information corresponding to a preset number of consecutive frames of body images, and updating the user's body posture information based on the standard deviation and a preset standard deviation threshold.

[0037] In this process, the acquisition of each frame of body image and the acquisition of the distance information between the corresponding target light fixture and the user's body area to be illuminated can be performed simultaneously. For example, while acquiring body images using an image acquisition device, a distance sensor can be used to acquire distance data between the target light fixture and the user's body area to be illuminated in real time, thereby establishing a one-to-one correspondence between each frame of image data and each distance data.

[0038] For example, the standard deviation of distance values ​​corresponding to 10 consecutive frames of body images is calculated. If the standard deviation is less than 2cm, the user is determined to be stationary or in a stable position; if it is greater than 5cm, the user is determined to be moving. This updates the original body posture information determined based on the stability of multiple skeletal keypoints.

[0039] Step S103: Identify the target image region in the body image to obtain skin feature information of the body region to be irradiated. The target image region is the portion of the image containing the user's body area to be illuminated, which can be obtained through various methods. Skin feature information can include parameters such as skin color, skin texture, and skin roughness of the body area to be illuminated, which can be obtained through image recognition algorithms, edge detection, gray-level co-occurrence matrix (GLCM) algorithms, etc. For example, image recognition algorithms can be used to extract color feature values ​​of pixels within the target image region, such as the channel values ​​in the RGB color space or the hue, saturation, and brightness values ​​in the HSV color space, and these color feature values ​​can be used to quantify skin color; another example is using edge detection or GLCM methods to analyze the skin texture of the body area to be illuminated, and so on.

[0040] It is understandable that the skin is the direct target of the luminaire. Therefore, by obtaining information about the body area to be irradiated, a more reliable basis can be provided for the subsequent precise control of the luminaire.

[0041] In one embodiment, identifying a target image region in a body image to obtain skin feature information of the body region to be irradiated includes: identifying a target image region in a body image to obtain skin color feature information of the body region to be irradiated; detecting a target image region in a body image to obtain skin texture feature information of the body region to be irradiated; and determining the skin feature information of the body region to be irradiated based on the skin color feature information and the skin texture feature information.

[0042] Understandably, the skin feature information determined by combining skin color feature information and skin texture feature information can relatively comprehensively depict the skin condition of the body area to be irradiated.

[0043] In one embodiment, identifying a target image region in a body image to obtain skin color feature information of the body region to be irradiated includes: performing color recognition on the target image region in the body image to obtain a first color value, a second color value, and a third color value to characterize the skin color of the body region to be irradiated; calculating the sum of the second color value and the third color value to obtain a fourth color value; and calculating the ratio of the first color value to the fourth color value to obtain the skin color feature information of the body region to be irradiated.

[0044] For example, let the first color value be the R channel value, the second color value be the G channel value, and the third color value be the B channel value. The RGB color feature values ​​of the pixels in the target image area are extracted using an image recognition algorithm. The sum of the G channel value and the B channel value is calculated as the fourth color value. The R channel value is then compared with the fourth color value, i.e., (R / G+B). Finally, the skin skin color feature information that can reflect the skin color of the body area to be irradiated is obtained.

[0045] In one embodiment, detecting a target image region in a body image to obtain skin texture feature information of the body region to be irradiated includes: performing texture feature detection on the target image region in the body image to determine the target texture feature region in the target image region; obtaining the image area of ​​the target texture feature region and the target image region; and calculating the ratio of the image area of ​​the target texture feature region to the image area of ​​the target image region to obtain the skin texture feature information of the body region to be irradiated.

[0046] For example, the Canny algorithm is used to identify and detect target image regions in a body image to determine whether there are highlight areas on the skin surface that characterize the reflection of sweat beads. If so, the highlight area is taken as the target feature region. Further, by extracting the contours of the target texture feature region and the target image region, the image area of ​​the target texture feature region (S1) and the image area of ​​the target image region (S2) are calculated. The ratio of the two is S1 / S2, which is used to reflect the density of sweat beads or the degree of sweating on the skin surface of the body area to be illuminated.

[0047] Step S104: Based on distance information, body posture information, and skin feature information, control the target lamp to illuminate the body area to be illuminated.

[0048] Among them, the distance information reflects the distance between the target lamp and the area of ​​the body to be illuminated. The magnitude of the distance affects the degree of attenuation of the illumination power of the target lamp. The greater the distance, the greater the attenuation of the illumination power, and vice versa.

[0049] Specifically, body posture information reflects the dynamic information of the body area to be irradiated. When the body area is in motion, the light from the target lamp cannot accurately cover the area, resulting in irradiation deviation and making it difficult to achieve the desired therapeutic effect. Therefore, controlling the target lamp based on body posture information can avoid the problem of irradiation deviation and ensure that the light from the target lamp can always accurately cover the body area to be irradiated.

[0050] Specifically, skin characteristic information reflects the overall skin condition of the area to be irradiated. For example, if the skin is highly red or sweaty, it indicates that the temperature of the area is high, and continuing to maintain the original irradiation power may cause damage to the skin. Therefore, controlling the target lamp based on skin characteristic information can avoid problems such as skin damage, achieving a dual guarantee of therapeutic effect and safety of use.

[0051] In one embodiment, based on distance information, body posture information, and skin feature information, controlling a target lamp to irradiate a body area to be irradiated includes: comparing the distance information, body posture information, and skin feature information with corresponding preset value ranges; if the distance information, body posture information, or skin feature information are all within the corresponding preset value ranges, then the body area to be irradiated is determined to be in a normal state, and the target lamp is controlled to irradiate the body area to be irradiated according to a preset first parameter; if any one of the distance information, body posture information, or skin feature information is not within the corresponding preset value range, then the body area to be irradiated is determined to be in an abnormal state; based on the distance information, body posture information, or skin feature information representing the abnormal state and the corresponding preset value range, the first parameter is adjusted, and the target lamp is controlled to irradiate the body area to be irradiated according to the adjusted first parameter.

[0052] Among them, the preset value range corresponding to the distance information is used to characterize the range of irradiation distances that are more suitable for most users, the preset value range corresponding to the body posture information is used to define the posture stability threshold when the body area to be irradiated is in a relatively stable state, and the preset value range corresponding to the skin feature information is used to characterize the range of skin feature parameters that are in a normal skin condition and suitable for continuing to receive irradiation therapy.

[0053] Understandably, by comparing distance information, body posture information, and skin feature information with the corresponding preset value ranges, it is possible to quickly and accurately determine whether the current illumination parameters of the target lamp are within a reasonable range or whether they match the user's various needs. This ensures that the lamp illuminates according to the preset safe and effective first parameters under normal conditions, and when an abnormal state occurs, the first parameters can be adjusted in a timely manner based on the specific abnormal information to balance the safety of the illumination process and the optimization of the therapeutic effect.

[0054] In one embodiment, the first parameter is adjusted based on distance information, body posture information, or skin feature information representing an abnormal state, including: if the distance information is less than the lower limit of the corresponding preset value range, and / or the skin feature information is greater than the lower limit of the corresponding preset value range, then the irradiation power in the first parameter is reduced according to a preset first ratio; if the distance information is greater than the upper limit of the corresponding preset value range, then the irradiation power in the first parameter is increased according to a preset second ratio; if the body posture information is greater than the lower limit of the corresponding preset value range, then the target lamp stops irradiating the body area to be irradiated until it is determined that the body posture information is less than the lower limit of the corresponding preset value range, and then the target lamp is controlled to resume irradiating the body area to be irradiated according to the first parameter.

[0055] For example, let distance information be the distance between the emitter of the target luminaire and the area of ​​the user's body to be illuminated, with a corresponding value range of [30, 50], in centimeters. Let skin feature information include the R / (G+B) value used to characterize the degree of skin redness and the skin highlight ratio value used to characterize the degree of sweating, with preset ranges of [1.2, +∞) and [10%, +∞), respectively. Let body posture information be the rate of change of key point positions used to characterize body stability, with a preset range of [5%, +∞).

[0056] Specifically, when the actual distance between the user and the target light fixture is detected to be 25cm (i.e., less than the lower limit of 30cm), or when the R / (G+B) value of the user's skin redness is detected to be 1.3 (i.e., greater than the lower limit of 1.2), or when the user's skin highlight ratio is detected to be 12% (i.e., greater than the lower limit of 10%), it is determined that the irradiation distance is too close or the irradiation power is too high, posing a risk of burns. Therefore, the irradiation power is reduced by 30% according to the preset first ratio, and the user is prompted to adjust the irradiation distance through voice or APP push.

[0057] Specifically, when the actual distance between the user and the target light fixture is detected to be 60cm (i.e., greater than the upper limit of 50cm), it is determined that the illumination distance is too far. Therefore, the illumination power is increased by 20% according to the preset second ratio to achieve the ideal illumination effect.

[0058] Specifically, when the rate of change of key point position is detected to be 6% (i.e., greater than the lower limit of 5%), it is determined that the user is in an unstable body posture. Therefore, the target light is immediately stopped illuminating the area to be illuminated, and the user is prompted to keep their body stable through voice or APP push. After the rate of change of key point position is continuously detected to drop below 5% (i.e., less than the lower limit of the preset value range), and the user's body posture is confirmed to have returned to stability, the target light is restarted, and the target light is controlled to resume normal illumination of the area to be illuminated according to the first parameter.

[0059] In one embodiment, such as Figure 3 As shown, step S104 includes sub-steps S1041 to S1043.

[0060] Sub-step S1041: Perform information fusion processing on distance information, body posture information and skin feature information to obtain the current state information of the body area to be irradiated.

[0061] Information fusion processing can be weighted fusion, for example, by weighting and summing distance information, body posture information and skin feature information according to preset weights, thereby obtaining the current state information of the body area to be irradiated; information fusion processing can also be based on neural network model fusion, for example, by taking distance information, body posture information and skin feature information as input parameters and inputting them into a pre-trained neural network model that can learn the relationship between each piece of information, thereby obtaining the current state information of the body area to be irradiated, and so on.

[0062] Understandably, by fusing data from different sources and of different types, such as distance information, body posture information, and skin feature information, it is possible to reduce the errors that may exist when using only a single type or dimension of user-related information, thereby reflecting the current state of the body area to be irradiated more accurately and comprehensively.

[0063] In one embodiment, information fusion processing is performed on distance information, body posture information, and skin feature information to obtain the current state information of the body area to be irradiated. This includes: performing data transformation processing on the distance information, body posture information, and skin feature information respectively to obtain distance score data, posture score data, and skin score data; performing weighted summation on the distance score data, posture score data, and skin score data based on preset weight values ​​corresponding to the distance score data, posture score data, and skin score data respectively to obtain a target state score; and determining the current state information of the body area to be irradiated based on the target state score.

[0064] For example, if the confidence levels of the distance sensor, image detection device, and skin condition recognition device used to acquire distance information, body posture information, and skin feature information are 0.3, 0.4, and 0.3, respectively, then the weight values ​​of the distance score data, posture score data, and skin score data can be set to 0.3, 0.4, and 0.3, respectively. Furthermore, different target state scores in different ranges correspond to different current state levels. Specifically, when the target state score is in the range of 85-100 points, it corresponds to state 1, at which point the system determines that the body area to be irradiated is in an ideal state of stable distance, stable posture, and normal skin. When the target state score is in the range of 60-84 points, it corresponds to state 2, indicating that the distance may be too close or the skin may be red. When the target state score is in the range of 40-59 points, it corresponds to state 3, indicating that the distance is too far but the posture remains stable. When the target state score is below 40 points, it corresponds to state 4, indicating that the user's posture has changed dynamically or that movement has occurred.

[0065] Specifically, when a user receives red light therapy on their back while in a static prone position, if the distance sensor detects that the distance between the user's back and the emitter of the red light therapy lamp is within the preset ideal distance of 30-50cm, the image detection device recognizes that the user's back posture remains stable without significant shaking, and the skin condition recognition device does not detect any redness or sweating on the back skin, then the target status score will fall within the range of 85-100 points, corresponding to state 1, where the system determines that the user's distance is stable, posture is stable, and skin is normal. If the user turns over during the red light therapy on their back while in a static prone position, causing a significant change in back posture, the image detection device captures the dynamic change in posture, and the posture score drops sharply to 0 points. At this time, the target status score will fall below 40 points due to the sudden drop in posture score, corresponding to state 4, where the system determines that the user's posture has undergone dynamic changes or movement.

[0066] Sub-step S1042: Based on the preset mapping table, determine the target ray parameters that match the current state information.

[0067] The mapping table records the mapping relationship between different state information and the corresponding light parameters.

[0068] For example, the mapping relationship table is shown below:

[0069] Understandably, compared to relatively complex logical judgments, mapping tables can quickly determine specific parameter adjustment schemes, effectively improving the response speed and accuracy of lighting control.

[0070] Sub-step S1043: Based on the target light parameters, control the target lamp to illuminate the area of ​​the body to be irradiated.

[0071] For example, if the target light parameter is "increase irradiation power by 20%", the corresponding control unit in the target lamp will increase the current output power from the initial power of 100W to 120W, while other parameters remain unchanged. If the target light parameter is "pause physiotherapy and restart after the state stabilizes", the control unit will immediately cut off the irradiation output of the lamp and issue a prompt (normal / warning / pause) through the lamp body indicator light (green / yellow / red) or buzzer. At the same time, it will continuously monitor the body posture information. When the posture is detected to be stable for a certain period of time, it will automatically restart the physiotherapy irradiation process and restore the light parameter settings before the pause or the default light irradiation parameters corresponding to the actual irradiation mode (such as back mode, leg mode, etc.).

[0072] The lighting control method provided in the above embodiments obtains distance information between the target lighting fixture and the user's body area to be illuminated, and obtains the user's body image; identifies the user's body posture based on the body image to obtain the user's body posture information; and identifies the target image area in the body image to obtain skin feature information of the body area to be illuminated. The combination of distance information, body posture information, and skin feature information can more comprehensively and accurately identify the user's body state, thereby achieving more precise control of the target lighting fixture and making the illumination of the target lighting fixture more suitable for the user's actual needs.

[0073] This application also provides a control device. Please refer to... Figure 4 , Figure 4 This is a schematic block diagram of a control device provided in an embodiment of this application.

[0074] like Figure 4 As shown, the control device 300 includes a processor 301, a memory 302, and a network interface 303 connected via a system bus. The memory 302 may include a storage medium and internal memory 302. The storage medium may be non-volatile or volatile.

[0075] The storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor 301 to perform any lighting control method.

[0076] The processor 301 provides computing and control capabilities to support the operation of the entire control unit 300.

[0077] The internal memory 302 provides an environment for the execution of computer programs stored in the storage medium. When the computer program is executed by the processor 301, the processor 301 can execute any lighting control method.

[0078] This network interface 303 is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the control device 300 to which the present application is applied. The specific control device 300 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0079] It should be understood that processor 301 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, the general-purpose processor can be a microprocessor or any conventional processor.

[0080] In one embodiment, the processor is configured to run a computer program stored in memory to perform the following steps: Obtain distance information between the target light fixture and the user's body area to be illuminated, and obtain the user's body image, wherein the body image includes the target image area corresponding to the body area to be illuminated; Based on body images, the user's body posture is identified to obtain the user's body posture information; and Identify the target image region in the body image to obtain skin feature information of the body region to be irradiated; Based on distance information, body posture information, and skin feature information, the target lamp is controlled to illuminate the area of ​​the body to be illuminated.

[0081] In one embodiment, the body image includes multiple frames of body images, and the processor, when recognizing the user's body posture based on the body image to obtain the user's body posture information, is used to: The skeletal key points in multiple body images are detected to obtain the position coordinates of multiple skeletal key points corresponding to each body image. Based on the position coordinates of multiple skeletal key points corresponding to each frame of body image, the stability of multiple skeletal key points is calculated. The user's body posture information is determined based on the stability of multiple skeletal key points.

[0082] In one embodiment, when the processor identifies a target image region in a body image to obtain skin feature information of the body region to be irradiated, it is configured to: Identify the target image region in the body image to obtain skin color feature information of the body region to be illuminated; Target image regions are detected in body images to obtain skin texture feature information of the body region to be illuminated; Based on skin color feature information and skin texture feature information, the skin feature information of the body area to be irradiated is determined.

[0083] In one embodiment, when the processor controls the target lamp to irradiate the body area based on distance information, body posture information, and skin feature information, it is used to: The distance information, body posture information, and skin feature information are compared with their respective preset value ranges. If the distance information, body posture information, or skin feature information are all within the corresponding preset value range, then the body area to be irradiated is determined to be in a normal state, and the target lamp is controlled to irradiate the body area to be irradiated according to the preset first parameter. If any of the distance information, body posture information, or skin feature information is not within the corresponding preset value range, then the body area to be irradiated is determined to be in an abnormal state; and Based on distance information, body posture information, or skin feature information representing abnormal states, as well as the corresponding preset value range, the first parameter is adjusted, and the target lamp is controlled to irradiate the body area to be irradiated according to the adjusted first parameter.

[0084] In one embodiment, when the processor adjusts the first parameter based on distance information, body posture information, or skin feature information representing an abnormal state, it is configured to: If the distance information is less than the lower limit of the corresponding preset value range, and / or the skin feature information is greater than the lower limit of the corresponding preset value range, then the irradiation power in the first parameter is reduced according to the preset first ratio. If the distance information is greater than the upper limit of the corresponding preset value range, the irradiation power in the first parameter is increased according to the preset second ratio. If the body posture information is greater than the lower limit of the corresponding preset value range, the target lamp stops illuminating the body area to be irradiated until it is determined that the body posture information is less than the lower limit of the corresponding preset value range, and the target lamp resumes irradiating the body area to be irradiated according to the first parameter.

[0085] In one embodiment, when the processor controls the target lamp to irradiate the body area based on distance information, body posture information, and skin feature information, it is used to: The distance information, body posture information, and skin feature information are fused to obtain the current state information of the body area to be irradiated. Based on a preset mapping table, the target ray parameters that match the current state information are determined; the mapping table records the mapping relationship between different state information and the corresponding ray parameters. Based on the target light parameters, the target lamp is controlled to illuminate the area of ​​the body to be irradiated.

[0086] In one embodiment, when the processor performs information fusion processing on distance information, body posture information, and skin feature information to obtain the current state information of the body area to be irradiated, it is used to: The distance information, body posture information, and skin feature information are respectively transformed and processed to obtain distance score data, posture score data, and skin score data. Based on the preset weight values ​​corresponding to the distance score data, posture score data, and skin score data, the distance score data, posture score data, and skin score data are weighted and summed to obtain the target state score; Based on the target state score, the current state information of the body area to be irradiated is determined.

[0087] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the computer equipment described above can be referred to the corresponding process in the aforementioned lamp control method embodiments, and will not be repeated here.

[0088] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0089] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a lamp provided in an embodiment of this application.

[0090] like Figure 5 As shown, the lamp 200 includes: The lamp body 201 is used to emit light; The camera device 202 acquires images of the user's body. Control device 203 is connected to the lamp body and the shooting device.

[0091] The control device 203 is at least used to acquire distance information between the lamp body 201 and the user's body area to be illuminated, and to acquire a body image of the user, wherein the body image includes a target image area corresponding to the body area to be illuminated; to identify the user's body posture based on the body image to obtain the user's body posture information; and to identify the target image area in the body image to obtain skin feature information of the body area to be illuminated; and to control the lamp body 201 to illuminate the body area to be illuminated based on the distance information, body posture information and skin feature information.

[0092] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the above-described device and its modules and units can be referred to the corresponding processes in the aforementioned lamp control method embodiments, and will not be repeated here.

[0093] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the method implemented when the program instructions are executed can be referred to various embodiments of the lighting control method of this application.

[0094] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device.

[0095] Furthermore, the computer-usable storage medium may primarily include a stored program area and a stored data area, wherein the stored program area may store the operating system, applications required for at least one function, etc.; the stored data area may store data created based on the use of blockchain nodes, etc. It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0096] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0097] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above descriptions are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A lighting control method, characterized in that, include: The distance information between the target lamp and the user's body area to be illuminated is obtained, and the user's body image is obtained, wherein the body image includes the target image area corresponding to the body area to be illuminated; Based on the body image, the user's body posture is identified to obtain the user's body posture information; and The target image region in the body image is identified to obtain skin feature information of the body region to be irradiated; Based on the distance information, the body posture information, and the skin feature information, the target lamp is controlled to illuminate the body area to be illuminated.

2. The lighting control method as described in claim 1, characterized in that, The step of controlling the target lamp to illuminate the body area to be illuminated based on the distance information, the body posture information, and the skin feature information includes: The distance information, the body posture information, and the skin feature information are compared with their respective preset value ranges. If the distance information, the body posture information, or the skin feature information are all within the corresponding preset value range, then the body area to be irradiated is determined to be in a normal state, and the target lamp is controlled to irradiate the body area to be irradiated according to the preset first parameter; If any one of the distance information, the body posture information, or the skin feature information is not within the corresponding preset value range, then the body area to be irradiated is determined to be in an abnormal state; and Based on the distance information, body posture information, or skin feature information characterizing the abnormal state and the corresponding preset value range, the first parameter is adjusted, and the target lamp is controlled to irradiate the body area to be irradiated according to the adjusted first parameter.

3. The lighting control method as described in claim 2, characterized in that, The adjustment of the first parameter based on distance information, body posture information, or skin feature information characterizing the abnormal state includes: If the distance information is less than the lower limit of the corresponding preset value range, and / or the skin feature information is greater than the lower limit of the corresponding preset value range, then the irradiation power in the first parameter is reduced according to the preset first ratio. If the distance information is greater than the upper limit of the corresponding preset value range, then the irradiation power in the first parameter is increased according to the preset second ratio; If the body posture information is greater than the lower limit of the corresponding preset value range, the target lamp stops illuminating the body area to be irradiated until it is determined that the body posture information is less than the lower limit of the corresponding preset value range, and the target lamp resumes irradiating the body area to be irradiated according to the first parameter.

4. The lighting control method as described in claim 1, characterized in that, The step of controlling the target lamp to illuminate the body area to be illuminated based on the distance information, the body posture information, and the skin feature information includes: The distance information, the body posture information, and the skin feature information are fused to obtain the current state information of the body region to be irradiated. Based on a preset mapping table, target ray parameters that match the current state information are determined; wherein, the mapping table records the mapping relationship between different state information and corresponding ray parameters; Based on the target light parameters, the target lamp is controlled to illuminate the area of ​​the body to be irradiated.

5. The lighting control method as described in claim 4, characterized in that, The step of fusing the distance information, the body posture information, and the skin feature information to obtain the current state information of the body region to be irradiated includes: The distance information, the body posture information, and the skin feature information are respectively processed by data transformation to obtain distance score data, posture score data, and skin score data; Based on the preset weight values ​​corresponding to the distance score data, the posture score data, and the skin score data, the distance score data, the posture score data, and the skin score data are weighted and summed to obtain the target state score; Based on the target state score, the current state information of the body region to be irradiated is determined.

6. The lighting control method as described in claim 1, characterized in that, The step of identifying the target image region in the body image to obtain skin feature information of the body region to be irradiated includes: The target image region in the body image is identified to obtain skin color feature information of the body region to be irradiated; The target image region in the body image is detected to obtain skin texture feature information of the body region to be illuminated; Based on the skin color feature information and the skin texture feature information, the skin feature information of the body area to be irradiated is determined.

7. The lighting control method as described in claim 1, characterized in that, The body image includes multiple frames of body images; the step of recognizing the user's body posture based on the body image to obtain the user's body posture information includes: The skeletal key points in multiple frames of the body image are detected respectively to obtain the position coordinates of multiple skeletal key points corresponding to each frame of the body image; Based on the position coordinates of multiple skeletal key points corresponding to each frame of the body image, the stability of the multiple skeletal key points is calculated. The user's body posture information is determined based on the stability of the multiple skeletal key points.

8. A control device comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the lighting control method as described in any one of claims 1 to 7.

9. A lamp, characterized in that, The lighting fixture includes: The lamp body is used to emit light; The camera device captures images of the user's body. The control device as described in claim 8 is connected to the lamp body and the shooting device.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the lighting control method as described in any one of claims 1 to 7.