Illumination mode execution method and device, storage medium and electronic equipment
By acquiring and analyzing lighting data and environmental data, and dynamically adjusting lighting strategies based on the input of target objects and environmental changes, the problem that existing lighting control strategies cannot be flexibly adjusted is solved, real-time response and flexible control of lighting equipment are achieved.
Patent Information
- Application Number
- CN202411363413.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-20
AI Technical Summary
The existing lighting control strategy can only be manually modified at preset time nodes or target objects themselves, and cannot be flexibly adjusted, and the lighting equipment cannot be adjusted in real time according to the lighting data or environmental changes entered by the target objects.
By obtaining the lighting data input by the target object and the environmental data in the target area, the lighting strategy is determined using the preset weight coefficient, and the control command is sent to the lighting equipment to adjust the lighting method, including obtaining activity, light intensity, humidity and temperature, etc. Environmental data, promptly respond to the target object's setting operations and voice or gesture requests.
It realizes flexible adjustment of lighting equipment, dynamically adjusts brightness, color temperature and lighting range according to real-time data and the needs of target objects, improving the flexibility and adaptability of lighting control.
Smart Images

Figure CN119172904A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for executing a lighting mode, a storage medium, and an electronic device. Background Art
[0002] In the related art, the lighting control strategy can only be modified manually at a preset time node or by the target object itself, and it is impossible to flexibly adjust the lighting equipment according to the lighting data input by the target object or the real-time changes of the environment.
[0003] In view of the problem in related technologies that lighting control strategies can only be manually modified at preset time nodes or by target objects themselves and cannot be flexibly adjusted, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method and device for executing a lighting mode, a storage medium and an electronic device, so as to at least solve the problem in the related art that the lighting control strategy can only be manually modified at a preset time node or by the target object itself and cannot be flexibly adjusted.
[0005] According to an embodiment of the embodiments of the present application, a method for executing a lighting mode is provided, including: obtaining first lighting data input by a target object, and environmental data collected by a sensor in a target area, wherein the first lighting data is used to indicate the lighting mode requested by the target object; determining a lighting strategy for a lighting device in the target area based on the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data, and a second weight coefficient preset for the environmental data; and sending a control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction.
[0006] In an optional embodiment, obtaining environmental data collected by sensors in the target area includes at least one of the following: obtaining the activity status of active objects in the target area; obtaining the change of light intensity in the target area; obtaining the current humidity in the target area; obtaining the current temperature in the target area.
[0007] In an optional embodiment, before determining the lighting strategy of the lighting equipment in the target area based on the first lighting data, the first weight coefficient preset for the first lighting data, the environmental data and the second weight coefficient preset for the environmental data, the method also includes: receiving a setting operation for the target object; and determining, in response to the setting operation, a first weight coefficient set for the first lighting data and a second weight coefficient set for the environmental data.
[0008] In an optional embodiment, obtaining first lighting data input by a target object and environmental data collected by sensors in a target area includes: obtaining a time period set for the target object and different time points within each time period; obtaining environmental data collected by sensors in the target area at different time points within each time period, wherein, in a case where a change in the first lighting data is detected at the target time point for obtaining the environmental data, obtaining the changed first lighting data.
[0009] In an optional embodiment, before sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method also includes: parsing the lighting strategy to determine the lighting parameters corresponding to the lighting device, wherein the lighting parameters include at least one of the following: the brightness of the lighting device, the color temperature of the lighting device, the lighting range of the lighting device, and the lighting time of the lighting device; generating the control instruction according to the lighting parameters.
[0010] In an optional embodiment, after sending a control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute a lighting mode corresponding to the control instruction, the method further includes: when the target object issues a fixed wake-up word, receiving a voice request from the target object, wherein the voice request is used to instruct the lighting device to execute a request content of the voice request; parsing the voice request to obtain the request content of the voice request; and when the request content is inconsistent with the lighting mode of the lighting device, adjusting the lighting mode of the lighting device according to the request content.
[0011] In an optional embodiment, after sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method further includes: acquiring the gesture action of the target object through the sensor, wherein the control instruction corresponding to the gesture action is used to instruct the lighting device to adjust the current lighting mode; according to the control instruction corresponding to the gesture action; sending the control instruction corresponding to the gesture action to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction corresponding to the gesture action.
[0012] According to another aspect of the present invention, a device for executing a lighting mode is also provided, including: an acquisition module, used to acquire first lighting data input by a target object, and environmental data collected by a sensor in a target area, wherein the first lighting data is used to indicate the lighting mode requested by the target object; a determination module, used to determine a lighting strategy for a lighting device in the target area based on the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data and a second weight coefficient preset for the environmental data; and a sending module, used to send a control instruction corresponding to the lighting strategy to the lighting device, so as to instruct the lighting device to execute the lighting mode corresponding to the control instruction.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the execution method of the above-mentioned lighting mode when running.
[0014] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for executing the lighting mode through the computer program.
[0015] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the execution method of the above-mentioned lighting mode is implemented.
[0016] In an embodiment of the present application, the first lighting data input by the target object and the environmental data of the target area are obtained, wherein the environmental data is collected by a sensor; the lighting strategy of the lighting equipment in the target area is determined according to the first lighting data and the first weight coefficient set for the first lighting data, the environmental data and the second weight coefficient set for the environmental data; the lighting mode of the lighting equipment is determined according to the lighting strategy. The above technical solution solves the problem in the related art that the lighting control strategy can only be modified manually at a preset time node or by the target object itself, and cannot be flexibly adjusted. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 It is a schematic diagram of the hardware environment of a method for executing a lighting mode according to an embodiment of the present application;
[0020] Figure 2 is a flow chart of a method for executing a lighting method according to an embodiment of the present application;
[0021] Figure 3 It is a flowchart of a method for executing a lighting method according to an optional embodiment of the present application;
[0022] Figure 4 It is a structural block diagram of an execution device of a lighting method according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] According to one aspect of an embodiment of the present application, a method for executing a lighting mode is provided. The method for executing the lighting mode is widely used in smart home, smart home, smart home device ecology, smart house ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for executing the lighting mode can be applied to Figure 1 In the hardware environment composed of the AI controller 102 and the lighting device 104 shown in FIG. Figure 1 As shown, the AI controller 102 is connected to the lighting device 104 via a network, and can be used to provide services (such as application services, etc.) for the AI controller 102 or a client installed on the AI controller 102. A database can be set on the AI controller 102 or independently of the AI controller 102 to provide data storage services for the AI controller 102 and the lighting device 104. Cloud computing and / or edge computing services can be configured on the AI controller 102 or independently of the AI controller 102 to provide data computing services for the AI controller 102 and the lighting device 104.
[0026] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The AI controller 102 and the lighting device 104 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection equipment, smart TV, smart clothes drying rack, smart curtain, smart audio and video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, system platform, etc.
[0027] In this embodiment, a method for executing a lighting mode is provided, which is applied to the above-mentioned lighting device. Figure 2 : is a flowchart of a method for executing a lighting method according to an embodiment of the present application, and the process includes the following steps:
[0028] Step S202, acquiring first lighting data input by the target object and environmental data collected by a sensor in the target area, wherein the first lighting data is used to indicate a lighting mode requested by the target object;
[0029] Step S204, determining a lighting strategy for lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environment data, and a second weight coefficient preset for the environment data;
[0030] Step S206: sending a control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute a lighting mode corresponding to the control instruction.
[0031] In an embodiment of the present application, the first lighting data input by the target object and the environmental data collected by the sensor in the target area are obtained, wherein the first lighting data is used to indicate the lighting mode requested by the target object; the lighting strategy of the lighting device in the target area is determined according to the first lighting data, the first weight coefficient preset for the first lighting data, the environmental data and the second weight coefficient preset for the environmental data; the control instruction corresponding to the lighting strategy is sent to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction. The above technical solution solves the problem in the related art that the lighting control strategy can only be modified manually at a preset time node or by the target object itself and cannot be flexibly adjusted.
[0032] It should be clear that if the first weight coefficient is 100%, the environmental data is not considered in the lighting strategy. If the first weight coefficient is 0%, the first lighting data input by the target object is not considered in the lighting strategy. The first weight coefficient and the second weight coefficient are set arbitrarily according to actual conditions.
[0033] In an optional embodiment, obtaining environmental data collected by sensors in the target area includes at least one of the following: obtaining the activity status of active objects in the target area; obtaining the change of light intensity in the target area; obtaining the current humidity in the target area; obtaining the current temperature in the target area.
[0034] The environmental data of the target area is obtained through sensors, wherein the sensors include but are not limited to light sensors, infrared human sensors, temperature sensors, and humidity sensors. Optionally, the infrared sensor will record the movement of the target object, including the movement speed, movement direction, and movement frequency, so as to determine the on / off state of the lighting device or adjust the brightness of the lighting device. The light sensor will record the changes in the light intensity of the target area, including the changes in outdoor daylight, the on / off state of indoor lighting devices, etc., so as to adjust the brightness of the lighting device. The humidity sensor will record the current humidity of the target area, and the temperature sensor will record the current temperature of the target area, so as to adjust the color temperature of the lighting device.
[0035] In an optional embodiment, before determining the lighting strategy of the lighting equipment in the target area based on the first lighting data, the first weight coefficient preset for the first lighting data, the environmental data and the second weight coefficient preset for the environmental data, the method also includes: receiving a setting operation for the target object; and determining, in response to the setting operation, a first weight coefficient set for the first lighting data and a second weight coefficient set for the environmental data.
[0036] The first weight coefficient and the second weight coefficient are determined according to the setting of the target object. Optionally, assuming that the first weight coefficient is 100%, the second weight coefficient is 0%, which means that the lighting strategy is determined according to the first lighting data input by the target object, and the environmental data of the target area collected by the sensor is not considered. Assuming that the first weight coefficient is 0%, the second weight coefficient is 100%, which means that the lighting strategy is determined according to the environmental data of the target area collected by the sensor, and the first lighting data input by the target object is not considered.
[0037] It should be clear that the first weight coefficient and the second weight coefficient can be set arbitrarily by the target object. For example, the first weight coefficient is 45% and the second weight coefficient is 55%, but it is necessary to ensure that the sum of the first weight coefficient and the second weight coefficient is 100%.
[0038] In an optional embodiment, obtaining first lighting data input by a target object and environmental data collected by sensors in a target area includes: obtaining a time period set for the target object and different time points within each time period; obtaining environmental data collected by sensors in the target area at different time points within each time period, wherein, in a case where a change in the first lighting data is detected at the target time point for obtaining the environmental data, obtaining the changed first lighting data.
[0039] In this embodiment, the time period can be 24 hours, and the different time points in each time period can be regular or irregular. The time period and the time points in each time period are arbitrarily set by the target object. Optionally, assuming that the time period is 24 hours, the time points are 7:00, 14:00 and 22:00, and the target area is the living room. The sensor obtains the environmental data of the living room at these three time points every 24 hours. When it is detected that the target object changes the first lighting data at 14:00, the original first lighting data is replaced with the changed first lighting data.
[0040] In an optional embodiment, before sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method also includes: parsing the lighting strategy to determine the lighting parameters corresponding to the lighting device, wherein the lighting parameters include at least one of the following: the brightness of the lighting device, the color temperature of the lighting device, the lighting range of the lighting device, and the lighting time of the lighting device; generating the control instruction according to the lighting parameters.
[0041] Optionally, assume that the lighting strategy of the restaurant is: the brightness is 500lm, the color temperature is 2700K warm color, the lighting range is the dining table area, and the lighting time is from 6pm to 8pm. According to the lighting strategy, the lighting parameters of the lighting equipment in the restaurant are determined. At 6pm, the following control instructions are issued to the lighting equipment in the restaurant: adjust the brightness of the lighting equipment in the dining table area to 500lm, set the color temperature of the lighting equipment in the dining table area to 2700K, ensure that the dining table area is illuminated, and the lighting equipment is automatically turned off at 8pm.
[0042] In an optional embodiment, after sending a control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute a lighting mode corresponding to the control instruction, the method further includes: when the target object issues a fixed wake-up word, receiving a voice request from the target object, wherein the voice request is used to instruct the lighting device to execute a request content of the voice request; parsing the voice request to obtain the request content of the voice request; and when the request content is inconsistent with the lighting mode of the lighting device, adjusting the lighting mode of the lighting device according to the request content.
[0043] When the target object issues a fixed wake-up word, the AI controller is awakened and receives the voice request issued by the target object, for example, turn off the bedroom lights and only keep the bedside lamp, adjust the bedside lamp to warm light, and adjust the brightness to level 1, the weakest. Parse the voice request of the target object, obtain the request content of the voice request from the parsed text, and check the current bedroom lighting mode and compare it with the target object's request content. If the current bedroom lighting mode is consistent with the target object's voice request, no adjustment is made. If the current bedroom lighting mode is inconsistent with the target object's voice request, adjust the lighting mode of the lighting equipment according to the target object's request content. For example, the current bedroom ceiling light is on and the bedside lamp is off, which is inconsistent with the target object's request content. According to the target object's request content, turn off the bedroom ceiling light, turn on the bedside lamp, adjust the color temperature of the bedside lamp to warm light, and adjust the brightness to level 1.
[0044] In an optional embodiment, after sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method further includes: acquiring the gesture action of the target object through the sensor, wherein the control instruction corresponding to the gesture action is used to instruct the lighting device to adjust the current lighting mode; according to the control instruction corresponding to the gesture action; sending the control instruction corresponding to the gesture action to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction corresponding to the gesture action.
[0045] In some special occasions, such as when someone is sleeping or working in the target area, voice control is not suitable. You can also adjust the lighting by setting specific gestures. When the sensor captures a gesture, the AI controller will analyze the gesture and match it to a control command based on the previously learned pattern. It should be clear that the AI controller stores a series of predefined gestures and control commands. For example, an open palm corresponds to "turn on the light" and a clenched fist corresponds to "turn off the light."
[0046] Optionally, assuming that the target object is sleeping in the bedroom, all lighting devices in the bedroom can be turned off by making a fist gesture, all lighting devices in the bedroom can be turned on by opening five fingers, the light intensity of all lighting devices in the bedroom can be adjusted by swinging the palm up and down, and the color temperature of all lighting devices in the bedroom can be adjusted by swinging the palm left and right.
[0047] In order to better understand the process of executing the above-mentioned lighting method, the execution method flow of the above-mentioned lighting method is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0048] Figure 3 is a flow chart of a method for executing a lighting method according to an optional embodiment of the present invention, such as Figure 3 As shown, the specific steps include:
[0049] Step S302: When the lighting system is started, each sensor is initialized and ready to start data collection, where the sensors include light sensors, infrared human body sensors, temperature sensors, and humidity sensors. The AI controller is also initialized and loads the corresponding algorithms and configuration parameters. The sensor collects environmental data in the target area at different time points in each time period, where the different time points in the time period can be regular or irregular, and the time point is arbitrarily set by the target object. The environmental data includes light intensity, personnel activities, temperature, humidity, etc.
[0050] Step S304: Collect environmental data through sensors.
[0051] Step S306: Collect environmental data collected by sensors.
[0052] Step S308: Acquire the first lighting data input by the target object (equivalent to the user setting in the figure).
[0053] Step S310: Input the environmental data collected by the sensor and the first lighting data set by the target object in the lighting system into the AI controller. When receiving the environmental data collected by the sensor and the first lighting data of the target object, the AI controller determines the first lighting data and environmental data that need to be processed and analyzed according to the first weight coefficient set by the target object for the first lighting data and the second weight coefficient set for the environmental data. Optionally, assuming that the first weight coefficient set by the target object is 100% and the second weight coefficient is 0%, it means that only the first lighting data needs to be processed and analyzed, and the environmental data does not need to be processed and analyzed. If the first weight coefficient set by the target object is 0% and the second weight coefficient is 100%, it means that only the environmental data needs to be processed and analyzed, and the first lighting data does not need to be processed and analyzed. It should be clear that the first weight coefficient and the second weight coefficient can be adjusted arbitrarily according to the actual situation, and the sum of the first weight coefficient and the second weight coefficient is 100%. The determined first lighting data and environmental data are cleaned to remove invalid information such as duplication, errors, anomalies, etc. to ensure the integrity and accuracy of the data, wherein the data cleaning process includes deduplication, denoising, missing value processing, etc. The first lighting data and environmental data after data cleaning are preprocessed, and the original data form is converted into a form suitable for model training. According to the analysis target and the data characteristics of the preprocessed data, the AI controller selects a suitable machine learning or deep learning model. The preprocessed first lighting data and environmental data are trained with the model selected by the AI controller. During the training process, the AI controller will select a suitable optimization algorithm to optimize the model parameters and improve the accuracy and generalization ability of the model. The trained model will be used to generate specific lighting strategies, such as adjusting the brightness, color temperature, and lighting range of lighting equipment, and determining which lighting equipment needs to be turned off or on.
[0054] Step S312: The AI controller generates corresponding control instructions (equivalent to the lighting instructions in the figure) according to the lighting strategy, and sends the control instructions to the lighting equipment through the communication module. Optionally, assuming that the sensor collects that the current light intensity in the living room is lower than the preset value, and detects human activity, the AI controller sends a control instruction to the living room light through the communication module according to the lighting strategy, and the control instruction is to increase the light brightness to 700lm and the color temperature to 2700K warm light.
[0055] Step S314: After receiving the control instruction, the lighting device executes the corresponding lighting mode according to the control instruction. After the lighting device executes the control instruction, it feeds back the execution result and current state to the AI controller. The AI controller iteratively optimizes the intelligent algorithm according to the execution result and current state of each lighting device, as well as the first lighting data and environmental data.
[0056] It should be made clear that each lighting device also supports voice operation. Through a fixed wake-up word, a lighting device can be directly operated. Different lighting devices correspond to different names to facilitate targeted operations. In some special occasions, such as when someone is sleeping or working in the target area, it is not suitable for voice control. You can also adjust the lighting by setting specific gestures to meet the needs of different situations. Optionally, assuming that the target object is sleeping in the bedroom, all lighting devices in the bedroom can be turned off by making a fist gesture, and all lighting devices in the bedroom can be turned on by opening five fingers. The light intensity of all lighting devices in the bedroom can be adjusted by swinging the palm up and down, and the color temperature of all lighting devices in the bedroom can be adjusted by swinging the palm left and right.
[0057] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an operating terminal, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0058] Figure 4 is a structural block diagram of an execution device of a lighting method according to an embodiment of the present application; Figure 4 As shown, including:
[0059] An acquisition module 40 is used to acquire first lighting data input by a target object and environmental data collected by a sensor in a target area, wherein the first lighting data is used to indicate a lighting mode requested by the target object;
[0060] A determination module 42, configured to determine a lighting strategy for the lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data, and a second weight coefficient preset for the environmental data;
[0061] The sending module 44 is used to send the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction.
[0062] In an embodiment of the present application, the first lighting data input by the target object and the environmental data collected by the sensor in the target area are obtained, wherein the first lighting data is used to indicate the lighting mode requested by the target object; the lighting strategy of the lighting device in the target area is determined according to the first lighting data, the first weight coefficient preset for the first lighting data, the environmental data and the second weight coefficient preset for the environmental data; the control instruction corresponding to the lighting strategy is sent to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction. The above technical solution solves the problem in the related art that the lighting control strategy can only be modified manually at a preset time node or by the target object itself and cannot be flexibly adjusted.
[0063] In an optional embodiment, the acquisition module 40 is further used to acquire the activity status of active objects in the target area; acquire the change of light intensity in the target area; acquire the current humidity in the target area; and acquire the current temperature in the target area.
[0064] In an optional embodiment, the determination module 42 is further configured to receive a setting operation of the target object; and in response to the setting operation, determine a first weight coefficient set for the first lighting data and a second weight coefficient set for the environment data.
[0065] In an optional embodiment, the acquisition module 40 is also used to acquire the time period set for the target object and different time points within each time period; within each time period, environmental data collected by the sensor in the target area is acquired at the different time points, wherein when a change in the first lighting data is detected at the target time point for acquiring the environmental data, the changed first lighting data is acquired.
[0066] In an optional embodiment, the sending module 44 is further used to parse the lighting strategy and determine the lighting parameters corresponding to the lighting device, wherein the lighting parameters include at least one of the following: the brightness of the lighting device, the color temperature of the lighting device, the lighting range of the lighting device, and the lighting time of the lighting device; and generate the control instruction according to the lighting parameters.
[0067] In an optional embodiment, the sending module 44 is also used to receive a voice request from the target object when the target object issues a fixed wake-up word, wherein the voice request is used to instruct the lighting device to execute the request content of the voice request; parse the voice request to obtain the request content of the voice request; and adjust the lighting mode of the lighting device according to the request content when the request content is inconsistent with the lighting mode of the lighting device.
[0068] In an optional embodiment, the sending module 44 is also used to obtain the gesture action of the target object through the sensor, wherein the control instruction corresponding to the gesture action is used to instruct the lighting device to adjust the current lighting mode; according to the control instruction corresponding to the gesture action; the control instruction corresponding to the gesture action is sent to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction corresponding to the gesture action.
[0069] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0070] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0071] S1, obtaining first lighting data input by a target object and environmental data collected by a sensor in a target area, wherein the first lighting data is used to indicate a lighting mode requested by the target object;
[0072] S2, determining a lighting strategy for the lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data, and a second weight coefficient preset for the environmental data;
[0073] S3: Send a control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute a lighting mode corresponding to the control instruction.
[0074] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0075] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0076] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0077] S1, obtaining first lighting data input by a target object and environmental data collected by a sensor in a target area, wherein the first lighting data is used to indicate a lighting mode requested by the target object;
[0078] S2, determining a lighting strategy for the lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data, and a second weight coefficient preset for the environmental data;
[0079] S3: Send a control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute a lighting mode corresponding to the control instruction.
[0080] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0081] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0082] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0083] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.
[0084] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0085] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0086] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for executing a lighting mode, characterized in that: include: Acquire first lighting data input by the target object and environmental data collected by a sensor in the target area, wherein the first lighting data is used to indicate a lighting mode requested by the target object; Determine a lighting strategy for the lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data, and a second weight coefficient preset for the environmental data; The control instruction corresponding to the lighting strategy is sent to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction.
2. The method for executing the lighting method according to claim 1, characterized in that: Acquiring environmental data collected by sensors in the target area includes at least one of the following: Acquire the activity status of the active objects in the target area; Obtaining a change in light intensity in the target area; Obtaining the current humidity in the target area; Get the current temperature in the target area.
3. The method for executing the lighting method according to claim 1, characterized in that: Before determining the lighting strategy of the lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data and a second weight coefficient preset for the environmental data, the method further includes: Receive a setting operation of the target object; In response to the setting operation, a first weight coefficient set for the first lighting data and a second weight coefficient set for the environment data are determined.
4. The method for executing the lighting method according to claim 1, characterized in that: Acquiring first lighting data input by the target object and environmental data collected by the sensor in the target area, including: Acquire the time period set for the target object and different time points within each time period; within each time period, acquire environmental data collected by sensors within the target area at the different time points, wherein, in the event that a change in the first lighting data is detected at the target time point for acquiring the environmental data, acquire the changed first lighting data.
5. The method for executing the lighting method according to claim 1, characterized in that: Before sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method further includes: Parsing the lighting strategy to determine lighting parameters corresponding to the lighting device, wherein the lighting parameters include at least one of the following: brightness of the lighting device, color temperature of the lighting device, lighting range of the lighting device, and lighting time of the lighting device; The control instruction is generated according to the lighting parameter.
6. The method for executing the lighting method according to claim 1, characterized in that: After sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method further includes: In a case where the target object issues a fixed wake-up word, receiving a voice request of the target object, wherein the voice request is used to instruct the lighting device to execute the request content of the voice request; Parsing the voice request to obtain request content of the voice request; In a case where the request content is inconsistent with the lighting mode of the lighting device, the lighting mode of the lighting device is adjusted according to the request content.
7. The method for executing the lighting method according to claim 1, characterized in that: After sending the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction, the method further includes: Acquiring a gesture action of the target object through the sensor, wherein a control instruction corresponding to the gesture action is used to instruct the lighting device to adjust a current lighting mode; According to the control instruction corresponding to the gesture action; The control instruction corresponding to the gesture action is sent to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction corresponding to the gesture action.
8. A lighting execution device, characterized in that: include: An acquisition module, used to acquire first lighting data input by a target object and environmental data collected by a sensor in a target area, wherein the first lighting data is used to indicate a lighting mode requested by the target object; a determination module, configured to determine a lighting strategy for the lighting equipment in the target area according to the first lighting data, a first weight coefficient preset for the first lighting data, the environmental data, and a second weight coefficient preset for the environmental data; The sending module is used to send the control instruction corresponding to the lighting strategy to the lighting device to instruct the lighting device to execute the lighting mode corresponding to the control instruction.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
