A smart lighting system for bedrooms designed for age-friendly spaces

By acquiring real-time image information and adjusting lighting strategies, indoor brightness is gradually increased, solving the problem of eye discomfort caused by opening curtains for the elderly and improving the user experience.

CN117939759BActive Publication Date: 2026-11-10未来城市爱家智能科技(上海)有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410267374.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-08
Publication Date
2026-11-10
Estimated Expiration
2044-03-08

AI Technical Summary

Technical Problem

When elderly people close the curtains before going to bed and open them after waking up, the sudden exposure of the indoor environment to bright light causes eye discomfort and a poor user experience.

Method used

The real-time image information acquisition module determines the maximum grayscale value, generates lighting strategy information, and controls the lamps to gradually adjust their brightness, reducing the difference in brightness between indoors and outdoors and reducing eye discomfort caused by changes in light.

Benefits of technology

It effectively reduces eye discomfort caused by changes in light when the curtains are opened, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117939759B_ABST
    Figure CN117939759B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of intelligent elderly care monitoring, and provides an intelligent lighting system for bedrooms designed for age-friendly spaces. The system first responds to a received user wake-up signal, acquires real-time image information of a designated area, then determines the maximum grayscale value of the real-time image information, and further determines the target brightness value of the target lighting fixtures based on the maximum grayscale value. Then, based on the target brightness value and the number of adjustment attempts, it generates lighting strategy information, and finally intelligently adjusts the bedroom lighting fixtures. This application enables intelligent adjustment of indoor ambient brightness, reducing the difference between indoor and outdoor brightness, achieving a harmonious balance between indoor and outdoor brightness, reducing discomfort caused to the eyes of the elderly by changes in light when curtains are opened, greatly improving the user experience, significantly enhancing the intelligence of the lighting system, and providing a more comfortable and healthy living environment for the elderly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of intelligent elderly care monitoring, and more specifically, to an intelligent lighting system for bedrooms in an age-friendly space. Background Technology

[0002] Age-friendly bedrooms typically feature intelligent temperature control, emergency call functionality, and sleep monitoring, catering to the actual needs of seniors. Because age-friendly bedrooms enhance comfort and convenience, they are gaining popularity among the elderly.

[0003] Currently, in order to achieve better sleep quality, elderly people usually close the curtains before going to bed and open them after waking up. When the curtains are opened, the dark indoor environment is suddenly exposed to bright light, and the eyes are more sensitive to changes in ambient brightness, which causes the elderly's pupils to suddenly constrict, resulting in a poor user experience that needs further improvement. Summary of the Invention

[0004] Based on this, this application provides an intelligent lighting system for bedrooms in an age-friendly space to solve the problem of poor user experience in the prior art.

[0005] In a first aspect, embodiments of this application provide an intelligent lighting system for bedrooms designed for age-friendly spaces, the system comprising:

[0006] Real-time image information acquisition module: used to acquire real-time image information of a specified area in response to the received user wake-up signal;

[0007] Maximum grayscale value information determination module: used to determine the maximum grayscale value information of the real-time image information based on the real-time image information and a preset grayscale conversion function;

[0008] Target brightness value information determination module: used to determine the target brightness value information of the target lamp based on the maximum grayscale value information;

[0009] Illumination strategy information generation module: used to generate illumination strategy information based on the target brightness value information and preset adjustment number information, wherein the illumination strategy information is used to indicate the illumination changes of the target lamp within a specified time period;

[0010] Intelligent lighting feedback adjustment module: used to adjust the target lamp based on the lighting strategy information to control the lighting state of the target lamp.

[0011] Compared with existing technologies, the beneficial effects are as follows: The intelligent lighting system for bedrooms in age-friendly spaces provided in this application embodiment can first respond to the received user wake-up signal, instantly acquire real-time image information of a designated area, and then accurately determine the maximum grayscale value of the real-time image information based on the real-time image information and the grayscale conversion function. Based on the maximum grayscale value, it can then accurately determine the target brightness value of the target lamp. Based on the target brightness value and the number of adjustments, it can generate lighting strategy information and adjust the lighting state of the lamp according to the feedback of the lighting strategy information. This achieves an appropriate and gradual increase in indoor brightness, reduces the difference between indoor ambient brightness and outdoor brightness, reduces eye discomfort caused by changes in light caused by opening curtains, effectively improves the user experience, and to a certain extent solves the problem of poor user experience currently.

[0012] Secondly, embodiments of this application provide a smart lighting method for bedrooms in age-friendly spaces, the method comprising:

[0013] In response to the received user wake-up signal, acquire real-time image information of the specified area;

[0014] Based on the real-time image information and the preset grayscale conversion function, determine the maximum grayscale value information of the real-time image information;

[0015] Based on the maximum grayscale value information, the target brightness value information of the target lamp is determined;

[0016] Based on the target brightness value information and the preset number of adjustment times information, lighting strategy information is generated, wherein the lighting strategy information is used to indicate the lighting changes of the target luminaire within a specified time period;

[0017] Based on the illumination strategy information, the target luminaire is adjusted in response to control its illumination state.

[0018] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the functions of the system described in the first aspect above.

[0019] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the functions of the system described in the first aspect above.

[0020] It is understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0022] Figure 1 This is a flowchart illustrating an embodiment of an age-friendly smart lighting method for bedrooms provided in this application.

[0023] Figure 2 This is a flowchart illustrating step S200 of the intelligent lighting method for an age-friendly bedroom provided in an embodiment of this application.

[0024] Figure 3 This is a flowchart illustrating step S240 of the intelligent lighting method for an age-friendly bedroom provided in an embodiment of this application.

[0025] Figure 4 This is a flowchart illustrating step S300 of the intelligent lighting method for an age-friendly bedroom provided in an embodiment of this application.

[0026] Figure 5 This is a flowchart illustrating step S400 of the intelligent lighting method for an age-friendly bedroom provided in an embodiment of this application.

[0027] Figure 6 This is a block diagram of a smart lighting system for an age-friendly bedroom provided in one embodiment of this application;

[0028] Figure 7 This is a schematic diagram of a terminal device provided in an embodiment of this application. Detailed Implementation

[0029] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0030] In the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0031] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0032] To illustrate the technical solution described in this application, specific embodiments are provided below.

[0033] Please see Figure 1 , Figure 1 This is a flowchart illustrating the intelligent lighting method for bedrooms in age-friendly spaces provided in this embodiment. In this embodiment, the executing entity of the intelligent lighting method for bedrooms in age-friendly spaces is a terminal device. It is understood that the types of terminal devices include, but are not limited to, mobile phones, tablets, laptops, Ultra-Mobile Personal Computers (UMPCs), netbooks, Personal Digital Assistants (PDAs), etc. This embodiment does not impose any restrictions on the specific type of terminal device.

[0034] Please see Figure 1 The intelligent lighting method for bedrooms in age-friendly spaces provided in this application includes, but is not limited to, the following steps:

[0035] In S100, in response to the received user wake-up signal, real-time image information of the specified area is acquired.

[0036] Without loss of generality, the wake-up signal for the user can be emitted by a smart bracelet worn by the elderly. The ability of the smart bracelet to detect when an elderly person has ended their sleep is existing technology and will not be elaborated upon. In one possible implementation, the wake-up signal can be linked to a curtain button located at the elderly person's bedside. When the elderly person triggers the curtain button to open the curtains, the wake-up signal can be automatically generated.

[0037] Specifically, cameras can be pre-installed in the bedrooms designed for age-friendly living spaces. The camera lens should be pointed towards the curtains of the bedroom, and the camera's shooting range should include the entire area covered by the curtains.

[0038] Specifically, the terminal device can respond to the received user wake-up signal and then acquire real-time image information of a designated area based on a preset camera, wherein the designated area is used to describe the area where the curtains are located.

[0039] In S200, the maximum grayscale value of the real-time image information is determined based on the real-time image information and the preset grayscale conversion function.

[0040] Specifically, after the terminal device acquires real-time image information, it can determine the maximum grayscale value of the real-time image information based on the real-time image information and a preset grayscale conversion function.

[0041] In some possible implementations, for the purpose of accurately determining the optimal brightness of the luminaire, please refer to [link / reference needed]. Figure 2 Step S200 includes, but is not limited to, the following steps:

[0042] In S210, the real-time image information is divided into grids to generate multiple real-time sub-image information of the same size.

[0043] Specifically, the terminal device can divide the real-time image information into grids to generate multiple real-time sub-image information of the same size, wherein the shape of the grid is preferably a square.

[0044] In S220, for any real-time sub-image information: based on a preset grayscale conversion function, the real-time sub-image information is processed to grayscale to generate grayscale sub-image information.

[0045] Specifically, after the terminal device generates multiple real-time sub-image information, the terminal device can perform this processing on any one of the real-time sub-image information: based on a preset grayscale conversion function, the real-time sub-image information is converted to grayscale to generate grayscale sub-image information, wherein the grayscale conversion function can be:

[0046] GRAY=0.299×R+0.587×G+0.114×B,

[0047] In the formula, GRAY represents the grayscale value, R represents the value corresponding to the red channel of the real-time sub-image, G represents the value corresponding to the green channel of the real-time sub-image, and B represents the value corresponding to the blue channel of the real-time sub-image. In one possible implementation, the grayscale conversion function can also be:

[0048] GRAY = (R + G + B) ÷ 3

[0049] In the formula, GRAY represents the grayscale value, R represents the value corresponding to the red channel of the real-time sub-image, G represents the value corresponding to the green channel of the real-time sub-image, and B represents the value corresponding to the blue channel of the real-time sub-image.

[0050] In S230, the pixel grayscale value information corresponding to each pixel point in the grayscale sub-image information is obtained.

[0051] Specifically, after the terminal device generates grayscale sub-image information, the terminal device can sequentially obtain the pixel grayscale value information corresponding to each pixel in the grayscale sub-image information.

[0052] In S240, the average gray value information of the gray sub-image information is determined based on the gray value information of multiple pixels.

[0053] Specifically, after the terminal device acquires all pixel grayscale value information, the terminal device can determine the average grayscale value information of the grayscale sub-image information based on the grayscale value information of multiple pixels.

[0054] In some possible implementations, to improve the effectiveness and representativeness of the average grayscale value information, please refer to [link / reference needed]. Figure 3 Step S240 includes, but is not limited to, the following steps:

[0055] In S241, the number of pixels in the grayscale sub-image information is obtained.

[0056] Specifically, the terminal device can obtain the number of pixels in the grayscale sub-image information. The number of pixels is used to describe the number of pixels in the grayscale sub-image information. The specific method for obtaining the number of pixels can use existing technologies, so it will not be elaborated here.

[0057] In S242, the sum of pixel grayscale values ​​is generated based on the sum of the grayscale values ​​of each pixel.

[0058] Specifically, the terminal device can generate a total pixel grayscale value information based on the sum of the grayscale values ​​of each pixel. This total pixel grayscale value information is used to describe the sum of the grayscale values ​​of each pixel.

[0059] In S243, the average gray value information of the gray sub-image information is generated based on the quotient of the sum of pixel gray values ​​divided by the number of pixels.

[0060] Specifically, the terminal device can generate the average gray value of the gray sub-image information by dividing the sum of the pixel gray values ​​by the number of pixels, thereby improving the effectiveness, representativeness, and correlation between the average gray value information and the gray sub-image information.

[0061] In S250, the target sub-image information is determined by comparing the average gray value information corresponding to each gray-scale sub-image information.

[0062] Specifically, the terminal device can compare the average grayscale value information corresponding to each grayscale sub-image information to determine the target sub-image information, where the target sub-image information is used to describe the grayscale sub-image information with the largest average grayscale value information.

[0063] In S260, the average gray value information corresponding to the target sub-image information is determined to be the maximum gray value information of the real-time image information.

[0064] Specifically, after the terminal device determines the target sub-image information, the terminal device can determine the average gray value information corresponding to the target sub-image information as the maximum gray value information of the real-time image information, thereby determining the effective maximum gray value information.

[0065] In S300, the target brightness value of the target luminaire is determined based on the maximum grayscale value information.

[0066] Specifically, the target lighting fixtures can be pre-installed in bedrooms designed for aging in nature. In one possible implementation, the target lighting fixtures can be located on the ceiling between the bed and the window. The terminal device can determine the target brightness value of the target lighting fixtures based on the maximum grayscale value information. This target brightness value describes the optimal brightness of the target lighting fixtures. When the specific brightness of the target lighting fixtures matches the target brightness value, it can appropriately increase the indoor ambient brightness, reduce the difference between indoor ambient brightness and outdoor brightness, minimize eye discomfort caused by changes in light when curtains are opened, and effectively improve the user experience.

[0067] In some possible implementations, for accurate determination of target brightness value information, please refer to [link / reference needed]. Figure 4 Step S300 includes, but is not limited to, the following steps:

[0068] In S310, the grayscale ratio information is determined by dividing the maximum grayscale value information by the preset grayscale peak value information.

[0069] Specifically, the terminal device can determine the grayscale ratio information by dividing the maximum grayscale value information by the preset grayscale peak information. The grayscale ratio information describes the quotient of the maximum grayscale value information divided by the grayscale peak information, and the grayscale peak information can be 255.

[0070] In S320, the target brightness value of the target lamp is determined by multiplying the grayscale ratio information by the preset brightness peak information.

[0071] Specifically, after the terminal device determines the grayscale ratio information, the terminal device can determine the target brightness value information of the target lamp by multiplying the grayscale ratio information by the preset brightness peak information. The target brightness value information describes the product of the grayscale ratio information and the brightness peak information, where the brightness peak information is the maximum brightness of the target lamp.

[0072] In S400, illumination strategy information is generated based on the target brightness value information and the preset number of adjustment times.

[0073] Specifically, the terminal device can generate illumination strategy information based on the target brightness value information and the preset number of adjustment times information. The specific value of the number of adjustment times information can be set by the administrator according to the needs or preferences of the elderly. The number of adjustment times information can be any positive integer. For example, the number of adjustment times information can be 3, 5 or 8. The illumination strategy information is used to indicate the lighting changes of the target lamps within a specified time period.

[0074] Specifically, the terminal device can generate lighting strategy information based on the target brightness value and the preset number of adjustments, thereby increasing indoor brightness, reducing the difference between indoor and outdoor brightness, and gradually increasing indoor brightness to help the elderly adapt to changes in light.

[0075] In some possible implementations, to further improve the effectiveness of lighting strategy information, please refer to [link / reference]. Figure 5 Step S400 includes, but is not limited to, the following steps:

[0076] In S410, the real-time brightness value information of the target lamp is obtained.

[0077] Specifically, the terminal device can obtain the real-time brightness value information of the target lamp, which is used to describe the real-time brightness of the target lamp.

[0078] In S420, the brightness range information to be adjusted is generated based on the real-time brightness value information and the target brightness value information.

[0079] Specifically, the terminal device can generate brightness range information to be adjusted based on real-time brightness value information and target brightness value information. The real-time brightness value information is the initial value of the brightness range information to be adjusted, and the target brightness value information is the final value of the brightness range information to be adjusted.

[0080] In S430, target brightness values ​​for multiple stages are generated based on preset adjustment count information and brightness range information to be adjusted.

[0081] Specifically, the terminal device can generate multiple stage target brightness value information based on preset adjustment number information and brightness range information to be adjusted. For example, the terminal device can divide the brightness range information to be adjusted based on the adjustment number information, and then determine the brightness value corresponding to each division node as the stage target brightness value information, until multiple stage target brightness value information are generated.

[0082] In S440, illumination strategy information is generated based on target brightness values ​​from multiple stages and preset time intervals.

[0083] Specifically, after the terminal device generates multiple target brightness value information for each stage, it can generate illumination strategy information based on the multiple target brightness value information for each stage and a preset time interval. The illumination strategy information can instruct the target lamps to increase their brightness sequentially to the corresponding target brightness value information for each stage according to the specified time interval, until the brightness value is increased to the target brightness value information. This achieves intelligent and gradual enhancement of indoor ambient brightness, reduces eye discomfort caused by changes in light caused by opening curtains, and significantly improves the user experience.

[0084] In the S500, the target luminaire is adjusted based on the illumination strategy information to control its illumination status.

[0085] Specifically, the terminal device can intelligently adjust the target lamps based on the lighting strategy information to control the lighting status of the target lamps, so as to achieve the required brightness at the required time point and greatly improve the user experience.

[0086] The implementation principle of the intelligent lighting method for bedrooms in age-friendly spaces according to this application is as follows: The terminal device can first respond to the received user wake-up signal, obtain real-time image information of a designated area, and then effectively determine the maximum gray value information of the real-time image information based on the real-time image information and the grayscale conversion function. Based on the maximum gray value information, the target brightness value information of the target lamp is accurately determined. Then, based on the target brightness value information and the number of adjustment times information, lighting strategy information is generated. The lighting strategy information indicates the lighting changes of the target lamp within a specified time period, thereby intelligently and appropriately improving the indoor ambient brightness, reducing the difference between the indoor ambient brightness and the brightness outside the window, reducing the discomfort to the eyes caused by the light changes caused by opening the curtains, and effectively improving the user experience of the elderly.

[0087] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0088] Embodiments of this application also provide an intelligent lighting system for bedrooms in age-friendly spaces. For ease of explanation, only the parts relevant to this application are shown, such as... Figure 6 As shown, the system 60 includes:

[0089] Real-time image information acquisition module 61: used to acquire real-time image information of a specified area in response to the received user wake-up signal;

[0090] Maximum grayscale value information determination module 62: used to determine the maximum grayscale value information of the real-time image information based on the real-time image information and the preset grayscale conversion function;

[0091] Target brightness value information determination module 63: used to determine the target brightness value information of the target lamp based on the maximum grayscale value information;

[0092] Illumination strategy information generation module 64: used to generate illumination strategy information based on target brightness value information and preset adjustment number information, wherein the illumination strategy information is used to indicate the illumination changes of the target luminaire within a specified time period.

[0093] The intelligent lighting feedback adjustment module 65 is used to adjust the target lamp according to the lighting strategy information to control the lighting state of the target lamp.

[0094] Optionally, the above-mentioned maximum grayscale value information determination module 62 includes:

[0095] Real-time sub-image information generation submodule: used to divide real-time image information into grids and generate multiple real-time sub-image information of the same size;

[0096] Grayscale sub-image information generation sub-module: Used to perform grayscale processing on real-time sub-image information based on a preset grayscale conversion function to generate grayscale sub-image information for any given real-time sub-image information;

[0097] Pixel grayscale value information acquisition submodule: used to acquire the pixel grayscale value information corresponding to each pixel in the grayscale sub-image information;

[0098] Average grayscale value determination submodule: used to determine the average grayscale value of grayscale sub-image information based on the grayscale value information of multiple pixels;

[0099] The target sub-image information determination sub-module is used to compare the average gray value information corresponding to each gray-level sub-image information to determine the target sub-image information. The target sub-image information is used to describe the gray-level sub-image information with the largest average gray value information.

[0100] Maximum grayscale value information determination submodule: used to determine the average grayscale value information corresponding to the target sub-image information as the maximum grayscale value information of the real-time image information.

[0101] Optionally, the above-mentioned average grayscale value information determination submodule includes:

[0102] Pixel count information acquisition unit: used to acquire pixel count information of grayscale sub-image information;

[0103] Pixel grayscale value summation information generation unit: used to generate pixel grayscale value summation information based on the sum of the grayscale values ​​of each pixel;

[0104] Average grayscale value generation unit: used to generate average grayscale value information of grayscale sub-image information based on the quotient of the sum of pixel grayscale values ​​divided by the number of pixels.

[0105] Optionally, the target brightness value information determination module 63 includes:

[0106] Real-time brightness value information acquisition submodule: used to acquire the real-time brightness value information of the target lamp;

[0107] The submodule for generating brightness range information to be adjusted is used to generate brightness range information to be adjusted based on real-time brightness value information and target brightness value information.

[0108] Stage target brightness value information generation submodule: used to generate multiple stage target brightness value information based on preset adjustment number information and brightness range information to be adjusted;

[0109] Illumination strategy information generation submodule: Used to generate illumination strategy information based on target brightness values ​​at multiple stages and preset time intervals.

[0110] Optionally, the above-mentioned illumination strategy information generation module 64 includes:

[0111] Real-time brightness value information acquisition submodule: used to acquire the real-time brightness value information of the target lamp;

[0112] The submodule for generating brightness range information to be adjusted is used to generate brightness range information to be adjusted based on real-time brightness value information and target brightness value information.

[0113] Stage target brightness value information generation submodule: used to generate multiple stage target brightness value information based on preset adjustment number information and brightness range information to be adjusted;

[0114] Illumination strategy information generation submodule: Used to generate illumination strategy information based on target brightness values ​​at multiple stages and preset time intervals.

[0115] It should be noted that the information interaction and execution process between the above modules are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, which will not be repeated here.

[0116] This application also provides a terminal device, such as... Figure 7 As shown, the terminal device 70 of this embodiment includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71. When the processor 71 executes the computer program 73, it implements the steps in the above-described embodiment of the intelligent lighting method for bedrooms in age-friendly spaces, for example... Figure 1 Steps S100 to S500 are shown; or, when processor 71 executes computer program 73, it implements the functions of each module in the above-described device, for example... Figure 6 The functions of modules 61 to 65 are shown.

[0117] The terminal device 70 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device, and includes, but is not limited to, a processor 71 and a memory 72. Those skilled in the art will understand that... Figure 7 This is merely an example of terminal device 70 and does not constitute a limitation on terminal device 70. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal device 70 may also include input / output devices, network access devices, buses, etc.

[0118] The processor 71 can be a central processing unit (CPU), or 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.; the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0119] The memory 72 can be an internal storage unit of the terminal device 70, such as a hard disk or memory of the terminal device 70. The memory 72 can also be an external storage device of the terminal device 70, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device 70. Furthermore, the memory 72 can include both internal storage units and external storage devices of the terminal device 70. The memory 72 can also store computer program 73 and other programs and data required by the terminal device 70. The memory 72 can also be used to temporarily store data that has been output or will be output.

[0120] One embodiment of this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0121] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the methods, principles and structures of this application should be covered within the scope of protection of this application.

Claims

1. A smart lighting system for bedrooms designed for age-friendly spaces, characterized in that, The system includes: Real-time image information acquisition module: used to acquire real-time image information of a specified area in response to the received user wake-up signal; Maximum grayscale value information determination module: used to determine the maximum grayscale value information of the real-time image information based on the real-time image information and a preset grayscale conversion function; Target brightness value information determination module: used to determine the target brightness value information of the target lamp based on the maximum grayscale value information; Illumination strategy information generation module: used to generate illumination strategy information based on the target brightness value information and preset adjustment number information, wherein the illumination strategy information is used to indicate the illumination changes of the target lamp within a specified time period; Intelligent lighting feedback adjustment module: used to adjust the target lamp based on the lighting strategy information to control the lighting state of the target lamp; The maximum grayscale value information determination module includes: Real-time sub-image information generation submodule: used to divide the real-time image information into grids and generate multiple real-time sub-image information of the same size; Grayscale sub-image information generation sub-module: used to perform grayscale processing on any one of the real-time sub-image information based on a preset grayscale conversion function to generate grayscale sub-image information; Pixel grayscale value information acquisition submodule: used to acquire the pixel grayscale value information corresponding to each pixel in the grayscale sub-image information; Average grayscale value information determination submodule: used to determine the average grayscale value information of the grayscale sub-image information based on the grayscale value information of multiple pixels; Target sub-image information determination sub-module: used to compare the average gray value information corresponding to each gray-scale sub-image information to determine the target sub-image information, wherein the target sub-image information is used to describe the gray-scale sub-image information with the largest average gray value information; Maximum grayscale value information determination submodule: used to determine the average grayscale value information corresponding to the target sub-image information as the maximum grayscale value information of the real-time image information; The target brightness value information determination module includes: Gray-scale ratio information determination submodule: used to determine gray-scale ratio information by dividing the maximum gray-scale value information by the preset gray-scale peak information; Target brightness value information determination submodule: used to determine the target brightness value information of the target lamp by multiplying the grayscale ratio information by the preset brightness peak information; The illumination strategy information generation module includes: Real-time brightness value information acquisition submodule: used to acquire the real-time brightness value information of the target lamp; The brightness range information generation submodule is used to generate brightness range information to be adjusted based on the real-time brightness value information and the target brightness value information. Stage target brightness value information generation submodule: used to generate multiple stage target brightness value information based on preset adjustment number information and the brightness range to be adjusted; Illumination strategy information generation submodule: used to generate illumination strategy information based on the target brightness value information of the multiple stages and the preset time interval.

2. The system according to claim 1, characterized in that, The average grayscale value information determination submodule includes: Pixel count information acquisition unit: used to acquire the pixel count information of the grayscale sub-image information; Pixel grayscale value summation information generation unit: used to generate pixel grayscale value summation information based on the sum of the grayscale value information of each pixel; Average grayscale value information generation unit: used to generate average grayscale value information of the grayscale sub-image information based on the quotient of the sum of pixel grayscale values ​​divided by the number of pixels.

3. A smart lighting method for bedrooms in an age-friendly space, characterized in that, The method includes: In response to the received user wake-up signal, acquire real-time image information of the specified area; Based on the real-time image information and the preset grayscale conversion function, determine the maximum grayscale value information of the real-time image information; Based on the maximum grayscale value information, the target brightness value information of the target lamp is determined; Based on the target brightness value information and the preset number of adjustment times information, lighting strategy information is generated, wherein the lighting strategy information is used to indicate the lighting changes of the target luminaire within a specified time period; Based on the illumination strategy information, the target luminaire is adjusted in response to control its illumination state. The step of determining the maximum grayscale value of the real-time image information based on the real-time image information and a preset grayscale conversion function includes: The real-time image information is divided into grids to generate multiple real-time sub-image information of the same size; For any of the real-time sub-image information: based on a preset grayscale conversion function, the real-time sub-image information is converted to grayscale to generate grayscale sub-image information; Obtain the pixel grayscale value information corresponding to each pixel in the grayscale sub-image information; Based on the grayscale value information of multiple pixels, the average grayscale value information of the grayscale sub-image information is determined; By comparing the average grayscale value information corresponding to each of the grayscale sub-image information, the target sub-image information is determined, wherein the target sub-image information is used to describe the grayscale sub-image information with the largest average grayscale value information; The average gray value information corresponding to the target sub-image information is determined to be the maximum gray value information of the real-time image information; The step of determining the target brightness value information of the target lamp based on the maximum grayscale value information includes: The grayscale ratio information is determined by dividing the maximum grayscale value information by the preset grayscale peak value information. The target brightness value of the target lamp is determined by multiplying the grayscale ratio information by the preset brightness peak information. The step of generating illumination strategy information based on the target brightness value information and preset adjustment count information includes: Obtain the real-time brightness value information of the target lamp; Based on the real-time brightness value information and the target brightness value information, generate brightness range information to be adjusted; Based on the preset number of adjustments and the brightness range to be adjusted, multiple target brightness values ​​are generated for each stage. Illumination strategy information is generated based on the target brightness values ​​of the multiple stages and the preset time interval.

4. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the functions of the system as described in any one of claims 1 to 2.

5. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it performs the functions of the system as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Ambient brightness detection method and device

    CN110458826A

  • Light source control method and device capable of automatically identifying and adjusting ambient brightness

    CN112399682A

  • Intelligent light regulation and control method and device, electronic equipment and storage medium

    CN113347768A