Illuminating light switching method, device and equipment and storage medium
By detecting outdoor equipment access to WiFi hotspots, obtaining temperature and behavioral characteristics information, and optimizing lighting parameters with indoor and outdoor light data, the problem of lighting switching lag in user space conversion is solved, and a personalized and comfortable lighting scene transition is achieved.
Patent Information
- Application Number
- CN202510771067.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-07-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing intelligent lighting system relies on a single indoor positioning technology, making it difficult to accurately identify the user's spatial transition state from outdoor to indoor, and cannot achieve dynamic light environment adjustment that meets the comfort of the human body, neglecting the important influencing factors of ambient temperature.
By detecting outdoor mobile devices accessing WiFi hotspots, obtaining outdoor temperature and behavioral characteristics information, determining whether there are other users in the room, generating lighting atmosphere configuration information, and combining indoor ambient light data to generate lighting control parameters, and optimizing lighting parameters using preset emotional state prediction models and temperature adjustment algorithms.
It realizes accurate identification of user space conversion status, dynamically optimizes lighting parameters, improves the accuracy of light environment adjustment, meets the human body's thermal comfort needs, ensures personalized lighting switching and avoids interference to others, and provides a natural and smooth transition experience in lighting scenes.
Smart Images

Figure CN120343784A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of lighting, and particularly to a lighting switching method, device, equipment, and storage medium. Background Art
[0002] In recent years, with the rapid development of Internet of Things and artificial intelligence technologies, intelligent lighting systems are gradually evolving from simple automated control towards environmental perception and personalized services. However, current intelligent lighting systems rely only on simple indoor positioning technologies to trigger lighting switching, making it difficult to accurately identify the spatial transition state of users from outdoors to indoors, lacking consideration of the important influencing factor of environmental temperature, and unable to achieve dynamic light environment adjustment that conforms to human comfort. Summary of the Invention
[0003] This application provides a lighting switching method, device, equipment, and storage medium to solve the problems raised in the above background art.
[0004] In a first aspect, this application provides a lighting switching method, including: When it is detected that an outdoor mobile device accesses the wifi hotspot emitted by a specified router indoors, determine whether the outdoor mobile device is a target device; If it is a target device, obtain the outdoor temperature and the behavior characteristic information of the target user, and determine whether there are other users indoors; wherein, the target user carries the outdoor mobile device; If there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information; Obtain indoor ambient light data information, and generate lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the lighting control parameter information to the indoor lighting system; After the target user enters the room, adjust the lighting control parameter information based on the indoor temperature.
[0005] In a possible implementation manner, the behavior characteristic information is video information of the target user, and the generating lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information includes: Perform frame splitting on the video information to obtain a plurality of video frames; For each of the video frames, input the video frame into a preset emotion state prediction model to obtain an emotion label corresponding to the video frame; wherein, the emotion state prediction model is a neural network model that has been pre-trained; Determine a target emotion label based on the number of video frames corresponding to each of the emotion labels; wherein, the number of video frames corresponding to the target emotion label is the largest; Determine the initial lighting atmosphere configuration information based on the target emotion label; Determine the first color temperature value corresponding to the outdoor temperature, and optimize the initial lighting atmosphere configuration information based on the first color temperature value to obtain the lighting atmosphere configuration information.
[0006] In a possible implementation manner, the optimizing the initial lighting atmosphere configuration information based on the first color temperature value to obtain the lighting atmosphere configuration information includes: Determine the second color temperature value corresponding to the lighting atmosphere configuration information; Determine the average color temperature value of the first color temperature value and the second color temperature value as the first target color temperature value; Update the second color temperature value based on the first target color temperature value to obtain the lighting atmosphere configuration information.
[0007] In a possible implementation manner, the adjusting the lighting control parameter information based on the indoor temperature includes: Obtain the third color temperature value corresponding to the indoor temperature, and determine the second color temperature value corresponding to the lighting atmosphere configuration information; Determine the average color temperature value of the second color temperature value and the third color temperature value as the second target color temperature value; Control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting from the second color temperature value to the second target color temperature value.
[0008] In a possible implementation manner, the behavior feature information is the video information of the target user. After determining whether there are other users in the room, the method further includes: If there are other users, determine the first color temperature value corresponding to the outdoor temperature; Perform frame splitting on the video information to obtain a plurality of video frames; For each of the video frames, input the video frame into a preset emotion state prediction model to obtain the emotion label corresponding to the video frame; wherein, the emotion state prediction model is a neural network model that has been pre-trained; Determine the target emotion label based on the number of video frames corresponding to each of the emotion labels; wherein, the number of video frames corresponding to the target emotion label is the largest; Determine the second color temperature value based on the emotion corresponding to the target emotion label; Determine the average color temperature value of the first color temperature value and the second color temperature value as the first target color temperature value; Obtain the current fourth color temperature value of the indoor lighting, and determine the third target color temperature value as the first target color temperature value and the fourth color temperature value; Control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting lights from the fourth color temperature value to the third target color temperature value.
[0009] In a second aspect, the present application provides an illumination light switching device, including: A judgment module, configured to judge whether the outdoor mobile device is a target device when detecting that the outdoor mobile device accesses the wifi hotspot emitted by a designated router indoors; An acquisition module, configured to, if it is a target device, acquire the outdoor temperature and the behavior characteristic information of the target user, and judge whether there are other users indoors; wherein, the target user carries the outdoor mobile device; A first generation module, configured to, if there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information; A second generation module, configured to acquire indoor ambient light data information, generate lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the lighting control parameter information to the indoor lighting system; An adjustment module, configured to adjust the lighting control parameter information based on the indoor temperature after the target user enters the room.
[0010] In a third aspect, the present application provides a terminal device, where the terminal device includes a processor, a memory, and a computer program stored on the memory and executable by the processor. When the computer program is executed by the processor, the illumination light switching method described in any one of the above is implemented.
[0011] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the illumination light switching method described in any one of the above is implemented.
[0012] The present application provides a lighting switching method, device, equipment and storage medium. The method includes: when detecting that an outdoor mobile device accesses the Wi-Fi hotspot emitted by a specified router indoors, determining whether the outdoor mobile device is a target device; if it is a target device, obtaining the outdoor temperature and the behavior characteristic information of the target user, and determining whether there are other users indoors; wherein, the target user carries the outdoor mobile device; if there are no other users, generating lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information; obtaining indoor ambient light data information, and generating lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and sending the lighting control parameter information to the indoor lighting system; after the target user enters the room, adjusting the lighting control parameter information based on the indoor temperature. This method first realizes the accurate identification of the user's state transition from outdoor to indoor space by detecting the connection status of the outdoor mobile device accessing the indoor Wi-Fi hotspot, solves the problem of lag in lighting switching caused by the traditional system relying on a single indoor positioning technology. Then, by comprehensively obtaining the outdoor temperature and the behavior characteristic information of the target user, and combining with the indoor ambient light data for intelligent analysis, it realizes the dynamic optimization configuration of lighting parameters, significantly improving the accuracy of light environment adjustment. Secondly, it innovatively introduces the temperature difference between indoor and outdoor as a key parameter for lighting adjustment, enabling the lighting system to automatically adjust the color temperature and brightness according to the human thermal comfort requirements, making up for the defect of the existing technology ignoring the influence of environmental temperature. Finally, through the dual guarantee mechanisms of white list verification and image recognition, while ensuring the accurate identification of user identity, it can also intelligently judge the presence of people indoors, not only guaranteeing the personalized needs of lighting switching, but also avoiding interference to others, and ultimately realizing a natural, smooth, comfortable and intelligent lighting scene transition experience. Description of the Drawings
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0014] Figure 1 It is a schematic flow chart of the lighting switching method provided by the embodiment of the present application; Figure 2 It is a schematic block diagram of the structure of the lighting switching device provided by the embodiment of the present application; Figure 3 It is a schematic block diagram of the structure of the terminal device provided by the embodiment of the present application. Detailed Embodiments
[0015] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0016] The flowchart shown in the accompanying drawings is only an example illustration, and does not necessarily include all the content and operations / steps, nor does it necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, combined, or partially merged, so the actual execution order may change according to the actual situation.
[0017] It should also be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. As used in the specification of this application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
[0018] It should be further understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination and all possible combinations of one or more of the related listed items, and includes these combinations.
[0019] Next, some embodiments of this application will be described in detail in conjunction with the accompanying drawings. Without conflict, the features in the following embodiments and the embodiments can be combined with each other.
[0020] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of the lighting switching method provided by the embodiment of this application. As Figure 1 shown, the lighting switching method provided by the embodiment of this application includes steps S1 to S5.
[0021] Step S1: When it is detected that an outdoor mobile device accesses the wifi hotspot emitted by a designated router indoors, determine whether the outdoor mobile device is a target device.
[0022] Step S2: If it is a target device, obtain the outdoor temperature and the behavior characteristic information of the target user, and determine whether there are other users indoors; where the target user carries the outdoor mobile device.
[0023] Step S3: If there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information.
[0024] Step S4: Obtain the indoor ambient light data information, generate light control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the light control parameter information to the indoor lighting system.
[0025] Step S5: After the target user enters the room, adjust the light control parameter information based on the indoor temperature.
[0026] Specifically included in this embodiment are: As described in step S1 above, when it is detected that an outdoor mobile device accesses the wifi hotspot emitted by a specified router indoors, obtain the device identifier of the outdoor mobile device, and determine whether the device identifier exists in the white list of the specified router. If the device identifier exists in the white list of the specified router, determine that the outdoor mobile device is the target device.
[0027] As described in step S2 above, when the outdoor mobile device is the target device, first, obtain the outdoor temperature through a temperature sensor set outdoors and obtain the behavior characteristic information of the target user through an image acquisition device set outdoors. Then, obtain the indoor image information through an image acquisition device set indoors, and determine whether there are other users indoors based on the indoor image information.
[0028] As described in step S3 above, when there are no other users indoors, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information; among them, there are multiple LED lights indoors, and the lighting atmosphere configuration information includes the target LED lights that need to be turned on when the user enters the room, the light intensity of each target LED light, and the color temperature value of the indoor lighting.
[0029] As described in step S4 above, first, obtain the indoor ambient light data information, which includes the indoor light intensity and the indoor light color temperature value. Then, for each of the target LED lights, determine the difference between the light intensity of the target LED light and the indoor light intensity as the target light intensity of the target LED light, and determine the difference between the color temperature value of the indoor lighting and the indoor light color temperature value as the target color temperature value of the target LED light, to obtain the light control parameter information.
[0030] As described in step S5 above, after the target user enters the room, adjust the light control parameter information based on the indoor temperature.
[0031] The method provided in this embodiment first realizes the accurate recognition of the user's state transition from outdoor to indoor space by detecting the connection status of the outdoor mobile device accessing the indoor WiFi hotspot, and solves the problem of lagging light switching caused by the traditional system relying on a single indoor positioning technology. Then, by comprehensively obtaining the outdoor temperature and the target user's behavior feature information, and combining with the indoor ambient light data for intelligent analysis, the dynamic optimization configuration of the light parameters is realized, significantly improving the accuracy of light environment adjustment. Secondly, the indoor-outdoor temperature difference is innovatively introduced as a key parameter for light adjustment, enabling the lighting system to automatically adjust the color temperature and brightness according to the human thermal comfort requirements, making up for the defect of the existing technology ignoring the influence of environmental temperature. Finally, through the dual guarantee mechanisms of whitelist verification and image recognition, while ensuring the accurate recognition of the user's identity, it can also intelligently judge the presence of indoor personnel, not only ensuring the personalized needs of lighting switching but also avoiding interference to others, and finally realizing a natural, smooth, comfortable and intelligent lighting scene transition experience.
[0032] In some embodiments, the behavior feature information is the video information of the target user, and generating the light atmosphere configuration information based on the outdoor temperature and the behavior feature information includes the following steps: Perform frame splitting on the video information to obtain a plurality of video frames; For each of the video frames, input the video frame into a preset emotion state prediction model to obtain the emotion label corresponding to the video frame; wherein, the emotion state prediction model is a neural network model that has been pre-trained. Determine the target emotion label based on the number of video frames corresponding to each of the emotion labels; wherein, the number of video frames corresponding to the target emotion label is the largest. Determine the initial light atmosphere configuration information based on the target emotion label; Determine the first color temperature value corresponding to the outdoor temperature, and optimize the initial light atmosphere configuration information based on the first color temperature value to obtain the light atmosphere configuration information.
[0033] In this embodiment, first, the video information is frame-divided to obtain a plurality of video frames. Then, each of the video frames is input into a preset emotional state prediction model, so that the emotional state prediction model analyzes the images in each of the video frames to obtain the emotional labels corresponding to each of the video frames. Secondly, the number of video frames corresponding to each emotional label is respectively counted, and the emotional label with the largest number is determined as the target emotional label. Further, the initial lighting atmosphere configuration information corresponding to the target emotional label is matched in the database. Finally, a temperature-color temperature value mapping relationship table is obtained in the database, and a first color temperature value is matched for the outdoor temperature based on the temperature-color temperature value mapping relationship table, and the initial lighting atmosphere configuration information is optimized based on the first color temperature value to obtain the lighting atmosphere configuration information.
[0034] In this embodiment, the optimizing the initial lighting atmosphere configuration information based on the first color temperature value to obtain the lighting atmosphere configuration information includes the following steps: Determine a second color temperature value corresponding to the lighting atmosphere configuration information; Determine the average color temperature value of the first color temperature value and the second color temperature value as a first target color temperature value; Update the second color temperature value based on the first target color temperature value to obtain the lighting atmosphere configuration information.
[0035] The method provided in this embodiment, first, realizes the accurate recognition of the user's emotional state by intelligently frame-dividing the user's video information and inputting it into the emotional state prediction model, providing a reliable basis for personalized lighting atmosphere configuration. Then, the target emotional state is determined by counting the distribution of emotional labels of video frames, and the initial lighting configuration information is matched in combination with a preset database, ensuring a high degree of fit between the lighting atmosphere and the user's current emotion. Secondly, a first color temperature value corresponding to the outdoor temperature is innovatively introduced, and through weighted average calculation with the second color temperature value matched with the emotion, the comprehensive optimization of the environmental temperature factor and the user emotion factor is realized. Finally, by dynamically generating a lighting atmosphere configuration that takes into account both physiological comfort and psychological comfort, it not only meets the physiological needs of the human body for the light environment, but also creates a lighting atmosphere that meets the user's psychological expectations, significantly improving the personalized and comfortable experience of the intelligent lighting system.
[0036] In some embodiments, the adjusting the lighting control parameter information based on the indoor temperature includes the following steps: Obtain a third color temperature value corresponding to the indoor temperature, and determine a second color temperature value corresponding to the lighting atmosphere configuration information; Determine the average color temperature value of the second color temperature value and the third color temperature value as a second target color temperature value; Control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting from the second color temperature value to the second target color temperature value.
[0037] In this embodiment, first, obtain the third color temperature value corresponding to the indoor temperature, and determine the second color temperature value corresponding to the lighting atmosphere configuration information. Then, determine the average color temperature value of the second color temperature value and the third color temperature value as the second target color temperature value. Finally, control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting from the second color temperature value to the second target color temperature value through a preset slow adjustment algorithm. Among them, the slow adjustment algorithm is any one of a quadratic easing function, a cubic easing function, or a Bezier curve algorithm.
[0038] The method provided in this embodiment, first, by obtaining the third color temperature value corresponding to the indoor temperature, ensures the accurate matching of the lighting parameters with the current indoor thermal environment, and provides a basic light environment that meets the human comfort level for users. Then, using the average value of the second color temperature value and the third color temperature value as the second target color temperature value not only retains the advantages of the previous personalized configuration but also incorporates real-time environmental adaptation factors to achieve a balance between physiological comfort and psychological comfort. Finally, through the preset slow adjustment algorithm, a progressive transition of the color temperature value is realized, avoiding the stimulation of the user's visual system caused by sudden changes in light, simulating the natural light change process, and greatly improving the comfort and naturalness of the lighting environment change.
[0039] In some embodiments, the behavior characteristic information is the video information of the target user. After determining whether there are other users in the room, the method further includes the following steps: If there are other users, determine the first color temperature value corresponding to the outdoor temperature; Perform frame-by-frame processing on the video information to obtain a plurality of video frames; For each of the video frames, input the video frame into a preset emotion state prediction model to obtain the emotion label corresponding to the video frame; among them, the emotion state prediction model is a neural network model that has been pre-trained; Determine the target emotion label based on the number of video frames corresponding to each of the emotion labels; among them, the number of video frames corresponding to the target emotion label is the largest; Determine the second color temperature value based on the emotion corresponding to the target emotion label; Determine the average color temperature value of the first color temperature value and the second color temperature value as the first target color temperature value; Obtain the current fourth color temperature value of the indoor lighting, and determine the first target color temperature value and the fourth color temperature value as the third target color temperature value; Control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting from the fourth color temperature value to the third target color temperature value.
[0040] In this embodiment, when there are other users indoors, first, determine the first color temperature value corresponding to the outdoor temperature, perform frame division processing on the video information to obtain a plurality of video frames, and for each of the video frames, input the video frame into a preset emotional state prediction model to obtain the emotional label corresponding to the video frame. Then, determine the target emotional label based on the number of video frames corresponding to each emotional label, determine the second color temperature value based on the emotion corresponding to the target emotional label, obtain the current fourth color temperature value of the indoor lighting lamp, determine that the first target color temperature value and the fourth color temperature value are the third target color temperature value, and finally, control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting lamp from the fourth color temperature value to the third target color temperature value.
[0041] The method provided in this embodiment first innovatively adopts a temperature-emotion dual-factor collaborative adjustment mechanism by intelligently identifying the scenario where there are existing users indoors, effectively solving the problem of personalized lighting demand conflicts in a multi-person coexistence environment. Then, through in-depth analysis of video frame division processing and an emotional state prediction model, it accurately captures the real-time emotional state of the target user, providing accurate emotional data support for color temperature adjustment. Secondly, the first color temperature value corresponding to the outdoor temperature and the second color temperature value matching the emotion are weighted and averaged, and then re-optimized with the current indoor color temperature value to achieve a three-dimensional balance of environmental adaptability, personal emotional needs, and the existing light environment. Finally, through a progressive color temperature adjustment algorithm, on the premise of ensuring the comfort of the multi-person shared space, it completes the light transition in a natural and gentle manner, respecting the light environment habits of the existing users and taking into account the personalized needs of the newly entered users, significantly improving the intelligent lighting experience and user satisfaction in the shared space.
[0042] Please refer to Figure 2 , Figure 2 which is a schematic block diagram of the structure of the lighting lamp switching device 100 provided in the embodiment of the present application. As Figure 2 shown, the lighting lamp switching device 100 provided in the embodiment of the present application includes: A judgment module 110, configured to judge whether the outdoor mobile device is a target device when detecting that the outdoor mobile device accesses the wifi hotspot emitted by a specified router indoors.
[0043] An acquisition module 120, configured to, if it is a target device, acquire the outdoor temperature and the behavior characteristic information of the target user, and judge whether there are other users indoors; wherein, the target user carries the outdoor mobile device.
[0044] A first generation module 130, configured to, if there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information.
[0045] A second generation module 140, configured to obtain indoor ambient light data information, generate lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the lighting control parameter information to an indoor lighting system.
[0046] An adjustment module 150, configured to adjust the lighting control parameter information based on the indoor temperature after the target user enters the room.
[0047] It should be noted that those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the above-described system and each module can refer to the processes in the foregoing embodiments of the lighting switching method, and will not be described herein again.
[0048] The lighting switching device 100 provided in the above embodiment can be implemented in the form of a computer program, and this computer program can run on a terminal device 200 as shown in Figure 3 the following.
[0049] Please refer to Figure 3 , Figure 3 , which is a schematic block diagram of the structure of the terminal device 200 provided in the embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected through a device bus 203. Among them, the memory 202 can include a non-volatile storage medium and an internal memory.
[0050] The non-volatile storage medium can store a computer program. This computer program includes program instructions. When the program instructions are executed by the processor 201, the processor 201 can be made to execute any of the above lighting switching methods.
[0051] The processor 201 is configured to provide computing and control capabilities to support the operation of the entire terminal device 200.
[0052] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can be made to execute any of the above lighting switching methods.
[0053] Those skilled in the art can understand that Figure 3 the structure shown in is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal device 200 involved in the solution of the present application. The specific terminal device 200 can include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0054] It should be understood that the processor 201 can be a Central Processing Unit (CPU), and the processor 201 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 them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0055] Among them, in some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps: When it is detected that an outdoor mobile device accesses the wifi hotspot emitted by a designated router indoors, determine whether the outdoor mobile device is a target device; If it is a target device, obtain the outdoor temperature and the behavior characteristic information of the target user, and determine whether there are other users indoors; among them, the target user carries the outdoor mobile device; If there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information; Obtain the indoor ambient light data information, and generate lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the lighting control parameter information to the indoor lighting system; After the target user enters the room, adjust the lighting control parameter information based on the indoor temperature.
[0056] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the terminal device 200 described above can refer to the process of the foregoing lighting switching method, which will not be elaborated here.
[0057] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the one or more processors are caused to implement the lighting switching method provided by the embodiment of the present application.
[0058] Among them, the computer-readable storage medium can be an internal storage unit of the terminal device 200 in the foregoing embodiment, such as the hard disk or memory of the terminal device 200. The computer-readable storage medium can also be an external storage device of the terminal device 200, such as a plug-in hard disk equipped on the terminal device 200, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.
[0059] As described above, the foregoing is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A lighting lamp switching method, characterized in that, Including: When it is detected that an outdoor mobile device accesses the Wi-Fi hotspot emitted by a specified router indoors, determine whether the outdoor mobile device is a target device; If it is a target device, obtain the outdoor temperature and the behavioral characteristic information of the target user, and determine whether there are other users indoors; wherein, the target user carries the outdoor mobile device; If there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavioral characteristic information; Obtain indoor ambient light data information, generate lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the lighting control parameter information to the indoor lighting system; After the target user enters the room, adjust the lighting control parameter information based on the indoor temperature.
2. The lighting light switching method according to claim 1, wherein The behavioral characteristic information is the video information of the target user, and the generating lighting atmosphere configuration information based on the outdoor temperature and the behavioral characteristic information includes: Perform frame splitting on the video information to obtain a plurality of video frames; For each of the video frames, input the video frame into a preset emotion state prediction model to obtain the emotion label corresponding to the video frame; wherein, the emotion state prediction model is a neural network model that has been pre-trained; Determine the target emotion label based on the number of video frames corresponding to each emotion label; wherein, the number of video frames corresponding to the target emotion label is the largest; Determine the initial lighting atmosphere configuration information based on the target emotion label; Determine the first color temperature value corresponding to the outdoor temperature, and optimize the initial lighting atmosphere configuration information based on the first color temperature value to obtain the lighting atmosphere configuration information.
3. The lighting light switching method according to claim 2, characterized in that The optimizing the initial lighting atmosphere configuration information based on the first color temperature value to obtain the lighting atmosphere configuration information includes: Determine the second color temperature value corresponding to the lighting atmosphere configuration information; Determine the average color temperature value of the first color temperature value and the second color temperature value as the first target color temperature value; Update the second color temperature value based on the first target color temperature value to obtain the lighting atmosphere configuration information.
4. The lighting light switching method according to claim 1, wherein The adjusting the lighting control parameter information based on the indoor temperature includes: Obtain the third color temperature value corresponding to the indoor temperature, and determine the second color temperature value corresponding to the lighting atmosphere configuration information; Determine the average color temperature value of the second color temperature value and the third color temperature value as the second target color temperature value; Control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting from the second color temperature value to the second target color temperature value.
5. The lighting light switching method according to claim 1, characterized in that The behavioral characteristic information is the video information of the target user, and after the determining whether there are other users indoors, the method further includes: If there are other users, determine the first color temperature value corresponding to the outdoor temperature; Perform frame splitting on the video information to obtain a plurality of video frames; For each of the video frames, input the video frame into a preset emotion state prediction model to obtain the emotion label corresponding to the video frame; wherein, the emotion state prediction model is a neural network model that has been pre-trained; Determine a target emotion label based on the number of video frames corresponding to each of the emotion labels; wherein, the number of video frames corresponding to the target emotion label is the largest; Determine a second color temperature value based on the emotion corresponding to the target emotion label; Determine the average color temperature value of the first color temperature value and the second color temperature value as the first target color temperature value; Obtain the current fourth color temperature value of the indoor lighting, and determine the first target color temperature value and the fourth color temperature value as the third target color temperature value; Control the indoor lighting system to slowly adjust the color temperature value of the indoor lighting from the fourth color temperature value to the third target color temperature value.
6. An illumination light switching device, characterized in that, Include A judgment module, configured to judge whether the outdoor mobile device is a target device when detecting that the outdoor mobile device accesses the wifi hotspot emitted by the specified router indoors; An obtaining module, configured to, if it is a target device, obtain the outdoor temperature and the behavior characteristic information of the target user, and judge whether there are other users indoors; wherein, the target user carries the outdoor mobile device; A first generation module, configured to, if there are no other users, generate lighting atmosphere configuration information based on the outdoor temperature and the behavior characteristic information; A second generation module, configured to obtain indoor ambient light data information, generate lighting control parameter information based on the lighting atmosphere configuration information and the indoor ambient light data information, and send the lighting control parameter information to the indoor lighting system; An adjustment module, configured to adjust the lighting control parameter information based on the indoor temperature after the target user enters the room.
7. A terminal device, characterized in that, The terminal device includes a processor, a memory, and a computer program stored on the memory and executable by the processor. Wherein, when the computer program is executed by the processor, the lighting switching method described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. Wherein, when the computer program is executed by the processor, the lighting switching method described in any one of claims 1 to 5 is implemented.