CN115835453B - Method, device, medium and electronic equipment for adjusting light parameters of light source - Google Patents

Method, device, medium and electronic equipment for adjusting light parameters of light source Download PDF

Info

Publication number
CN115835453B
CN115835453B CN202211716853.6A CN202211716853A CN115835453B CN 115835453 B CN115835453 B CN 115835453B CN 202211716853 A CN202211716853 A CN 202211716853A CN 115835453 B CN115835453 B CN 115835453B
Authority
CN
China
Prior art keywords
light
parameter
lig
color temperature
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211716853.6A
Other languages
Chinese (zh)
Other versions
CN115835453A (en
Inventor
王晶晶
许欢甜
李旭森
黎立文
肖金荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Ruishi Optoelectronics Technology Co Ltd
Original Assignee
Dongguan Ruishi Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Ruishi Optoelectronics Technology Co Ltd filed Critical Dongguan Ruishi Optoelectronics Technology Co Ltd
Priority to CN202211716853.6A priority Critical patent/CN115835453B/en
Publication of CN115835453A publication Critical patent/CN115835453A/en
Application granted granted Critical
Publication of CN115835453B publication Critical patent/CN115835453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

Embodiments of the present application provide a method, an apparatus, a computer readable medium, and an electronic device for adjusting a light parameter of a light source. The method for adjusting the light parameters of the light source comprises the following steps: the method comprises the steps of acquiring an ambient light parameter under the current environment through a sensing device, acquiring at least one group of light control parameters corresponding to the current moment from a control database, carrying out normalization processing on the at least one group of light control parameters to obtain a normalization control parameter, adjusting the normalization control parameter based on the ambient light parameter, determining a real-time light control parameter corresponding to the current moment, and finally controlling the light source to operate based on the real-time light control parameter. According to the light source condition under the current environment, the current light parameter is comprehensively obtained to control the light according to the current time and the control data of the user history, and the habit of the user is combined with the current environment, so that the accuracy and the efficiency of the control of the light source equipment are improved, and meanwhile, the comfort and the use experience of the user are improved.

Description

Method, device, medium and electronic equipment for adjusting light parameters of light source
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a light parameter of a light source, a computer readable medium, and an electronic device.
Background
Along with development of computers and control technologies, intelligent devices are developed and applied more and more widely, but along with improvement of living standard and demands of people, control of light source devices used by people is still in a traditional control mode, such as a manual mode or a sound control mode, the mode cannot adapt to demands of various people, control efficiency and accuracy are low in the use process, and use experience of users is affected.
Disclosure of Invention
Embodiments of the present application provide a method, an apparatus, a computer readable medium, and an electronic device for adjusting a light parameter of a light source, so as to improve control efficiency and accuracy at least to a certain extent.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned in part by the practice of the application.
According to one aspect of the present application, there is provided a method of adjusting a light source light parameter, comprising:
acquiring an ambient light parameter under the current environment through a sensing device, wherein the ambient light parameter comprises a light intensity parameter and a color temperature parameter;
acquiring at least one group of light control parameters corresponding to the current moment from a control database, wherein the control database comprises the light control parameters corresponding to each historical moment;
normalizing the at least one group of light control parameters to obtain normalized control parameters;
adjusting the normalization control parameter based on the ambient light parameter, and determining a real-time light control parameter corresponding to the current moment;
and controlling the light source to operate based on the real-time light control parameter.
In this application, based on the foregoing solution, the acquiring, by the sensing device, the ambient light parameter in the current environment includes: acquiring a first light intensity and a first color temperature parameter in the current environment through a first sensing device, and acquiring a second light intensity and a second color temperature parameter in the current environment through a second sensing device; determining the light intensity based on the first light intensity and the second light intensity; the color temperature parameter is determined based on the first color temperature parameter and the second color temperature parameter.
In the present application, based on the foregoing aspect, the method further includes: based on the light intensity, respectively calculating a first light difference parameter between the light intensity and the first light intensity and a second light difference parameter between the light intensity and the second light intensity; based on the color temperature parameters, respectively calculating a first color temperature difference parameter between the color temperature parameters and the first color temperature intensity and a second color temperature difference parameter between the color temperature parameters and the second color temperature intensity; and determining weight parameters respectively corresponding to the first sensing device and the second sensing device based on the first light difference parameter, the second light difference parameter, the first color temperature difference parameter and the second color temperature difference parameter, wherein the weight parameters are used for weighting data acquired by the sensing devices to acquire ambient light parameters.
In this application, based on the foregoing solution, the obtaining, from the control database, at least one set of light control parameters corresponding to the current time includes: acquiring the current moment; and based on the current time, matching is carried out from time data in the control database, and at least one group of light control parameters corresponding to the current time is determined.
In this application, based on the foregoing solution, the normalizing the at least one set of light control parameters to obtain normalized control parameters includes: calculating an average value of the light control parameters; and carrying out normalization processing on the light control parameters based on the light control parameters and the corresponding average values thereof to obtain normalized control parameters.
In this application, based on the foregoing solution, the adjusting the normalization control parameter based on the ambient light parameter, determining a real-time light control parameter corresponding to the current time, includes: and determining the real-time light control parameter corresponding to the current moment based on the environmental factor corresponding to the environmental light parameter and the control factor corresponding to the normalization control parameter.
In the present application, based on the foregoing aspect, the method further includes: and sending the current time and the real-time light control parameters to the control database to instruct the control database to store the current time and the real-time light control parameters in an associated mode.
According to one aspect of the present application, there is provided an apparatus for adjusting a light parameter of a light source, comprising:
the acquisition unit is used for acquiring the ambient light parameters in the current environment through the sensing device, wherein the ambient light parameters comprise light intensity and color temperature parameters;
the parameter unit is used for acquiring at least one group of light control parameters corresponding to the current moment from the control database, wherein the control database comprises the light control parameters corresponding to each historical moment;
the normalization unit is used for performing normalization processing on the at least one group of light control parameters to obtain normalization control parameters;
the adjusting unit is used for adjusting the normalization control parameter based on the ambient light parameter and determining a real-time light control parameter corresponding to the current moment;
and the control unit is used for controlling the light source to operate based on the real-time light control parameters.
In this application, based on the foregoing solution, the acquiring, by the sensing device, the ambient light parameter in the current environment includes: acquiring a first light intensity and a first color temperature parameter in the current environment through a first sensing device, and acquiring a second light intensity and a second color temperature parameter in the current environment through a second sensing device; determining the light intensity based on the first light intensity and the second light intensity; the color temperature parameter is determined based on the first color temperature parameter and the second color temperature parameter.
In this application, based on the foregoing solution, the apparatus further includes: based on the light intensity, respectively calculating a first light difference parameter between the light intensity and the first light intensity and a second light difference parameter between the light intensity and the second light intensity; based on the color temperature parameters, respectively calculating a first color temperature difference parameter between the color temperature parameters and the first color temperature intensity and a second color temperature difference parameter between the color temperature parameters and the second color temperature intensity; and determining weight parameters respectively corresponding to the first sensing device and the second sensing device based on the first light difference parameter, the second light difference parameter, the first color temperature difference parameter and the second color temperature difference parameter, wherein the weight parameters are used for weighting data acquired by the sensing devices to acquire ambient light parameters.
In this application, based on the foregoing solution, the obtaining, from the control database, at least one set of light control parameters corresponding to the current time includes: acquiring the current moment; and based on the current time, matching is carried out from time data in the control database, and at least one group of light control parameters corresponding to the current time is determined.
In this application, based on the foregoing solution, the normalizing the at least one set of light control parameters to obtain normalized control parameters includes: calculating an average value of the light control parameters; and carrying out normalization processing on the light control parameters based on the light control parameters and the corresponding average values thereof to obtain normalized control parameters.
In this application, based on the foregoing solution, the adjusting the normalization control parameter based on the ambient light parameter, determining a real-time light control parameter corresponding to the current time, includes: and determining the real-time light control parameter corresponding to the current moment based on the environmental factor corresponding to the environmental light parameter and the control factor corresponding to the normalization control parameter.
In this application, based on the foregoing solution, the apparatus further includes: and sending the current time and the real-time light control parameters to the control database to instruct the control database to store the current time and the real-time light control parameters in an associated mode.
According to an aspect of the present application, a computer readable medium is provided, on which a computer program is stored which, when being executed by a processor, implements a method of adjusting a light source light parameter as described in the above embodiments.
According to one aspect of the present application, there is provided an electronic device comprising: one or more processors; and storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of adjusting light source light parameters as described in the above embodiments.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the method of adjusting light source light parameters provided in the various alternative implementations described above.
In the technical scheme of the application, the sensing device is used for acquiring the ambient light parameters in the current environment, at least one group of light control parameters corresponding to the current moment are acquired from the control database, normalization processing is carried out on the at least one group of light control parameters to obtain normalization control parameters, the normalization control parameters are adjusted based on the ambient light parameters, real-time light control parameters corresponding to the current moment are determined, and finally the light source operation is controlled based on the real-time light control parameters. According to the light source condition under the current environment, the current light parameter is comprehensively obtained to control the light according to the current time and the control data of the user history, and the habit of the user is combined with the current environment, so that the accuracy and the efficiency of the control of the light source equipment are improved, and meanwhile, the comfort and the use experience of the user are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 schematically shows a flow chart of a method of adjusting light source light parameters according to one embodiment of the present application.
Fig. 2 schematically illustrates a flow chart of acquiring ambient light parameters according to one embodiment of the present application.
Fig. 3 schematically shows a schematic view of an apparatus for adjusting light parameters of a light source according to an embodiment of the present application.
Fig. 4 shows a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The implementation details of the technical solutions of the embodiments of the present application are described in detail below:
FIG. 1 illustrates a flow chart of a method of adjusting light source light parameters according to one embodiment of the present application. Referring to fig. 1, the method for adjusting the light parameters of the light source at least includes steps S110 to S150, which are described in detail as follows:
in step S110, ambient light parameters in the current environment are acquired by the sensing device, where the ambient light parameters include a light intensity and a color temperature parameter.
In one embodiment of the present application, the present embodiment includes at least two sensing devices, so as to acquire and equalize data through the at least two sensing devices, thereby ensuring accuracy and stability of data acquisition.
In one embodiment of the present application, as shown in fig. 2, acquiring, by a sensing device, an ambient light parameter in a current environment includes:
s210, acquiring first light intensity and first color temperature parameters in the current environment through a first sensing device, and acquiring second light intensity and second color temperature parameters in the current environment through a second sensing device;
s220, determining the light intensity based on the first light intensity and the second light intensity;
s230, determining the color temperature parameter based on the first color temperature parameter and the second color temperature parameter.
In view of the deviation problem of the sensing device sensing the ambient light parameter in practical application, at least two sensing devices may be provided in the present embodiment to obtain the ambient light parameter through the at least two sensing devices. After the first light intensity and the first color temperature parameter, the second light intensity and the second color temperature parameter are respectively obtained, the light intensity is determined based on the first light intensity and the second light intensity, and the color temperature parameter is determined based on the first color temperature parameter and the second color temperature parameter.
The method for determining the light intensity based on the first light intensity and the second light intensity may be a method for directly averaging the first light intensity and the second light intensity, so that the light intensity and the color temperature parameter are the same and are not repeated.
In one embodiment of the present application, the method further comprises:
based on the light intensity, respectively calculating a first light difference parameter between the light intensity and the first light intensity and a second light difference parameter between the light intensity and the second light intensity;
based on the color temperature parameters, respectively calculating a first color temperature difference parameter between the color temperature parameters and the first color temperature intensity and a second color temperature difference parameter between the color temperature parameters and the second color temperature intensity;
and determining weight parameters respectively corresponding to the first sensing device and the second sensing device based on the first light difference parameter, the second light difference parameter, the first color temperature difference parameter and the second color temperature difference parameter, wherein the weight parameters are used for weighting data acquired by the sensing devices to acquire ambient light parameters.
In one embodiment of the present application, the light intensity is obtainedThen, calculate the light intensityAnd the first light intensityThe first light difference parameter isThe method comprises the steps of carrying out a first treatment on the surface of the Calculating the intensity of lightAnd a second light intensityThe second light difference parameter is
Based on the color temperature parameterCalculate its intensity with first color temperatureThe first color temperature difference parameter is as follows:the method comprises the steps of carrying out a first treatment on the surface of the Color temperature parameterIntensity with a second color temperatureThe second color temperature difference parameter between the two is:
determining a weight parameter corresponding to the first sensing device based on the first light difference parameter and the first color temperature difference parameterThe method comprises the following steps:
determining a weight parameter corresponding to the second sensing device based on the second light difference parameter and the second color temperature difference parameterThe method comprises the following steps:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing a preset parameter factor. After the weight parameters corresponding to the sensing devices are calculated in the above manner, the method is used for representing the corresponding accuracy of the sensing devices through the weight parameters so as to obtain the first light intensityIn the process of determining the light intensity and the second light intensity and determining the color temperature parameter based on the first color temperature parameter and the second color temperature parameter, weighted average is performed based on the weight parameter corresponding to each sensing device, corresponding measurement parameters are determined, and the accuracy of detecting the ambient light parameters is improved.
In step S120, at least one set of light control parameters corresponding to the current time is obtained from a control database, where the control database includes light control parameters corresponding to each historical time.
In one embodiment of the present application, obtaining at least one set of light control parameters corresponding to a current time from a control database includes:
acquiring the current moment;
and based on the current time, matching is carried out from time data in the control database, and at least one group of light control parameters corresponding to the current time is determined.
In an embodiment of the present application, the control database stores historical control data corresponding to each time, for example, light control parameters corresponding to 17:00 on a certain day, and the historical control data is correspondingly stored with the time as an index. All the historical control data corresponding to the current time, namely the light control parameters, can be obtained through the time information of the current time and the like. The method is convenient for determining the habit, preference and other information of the user through the historical light control parameters, and improves the comfort level of the user.
It should be noted that, in this embodiment, the history control data is stored in association with a time, where the time is used to represent a current time, specifically, a clock and a minute, so as to determine the control and illumination conditions of the light source by different times of the day.
In step S130, the normalization processing is performed on the at least one set of light control parameters to obtain normalized control parameters.
In one embodiment of the present application, since at least one set of light control parameters is obtained, in this embodiment, a normalization process is performed on the light control parameters to obtain a set of normalization control parameters, where the normalization control parameters are used to represent historical control data at the current time.
In one embodiment of the present application, normalizing the at least one set of light control parameters to obtain normalized control parameters includes:
calculating an average value of the light control parameters, and calculating a difference value between the light control parameters and the average value;
and carrying out normalization processing on the light control parameters based on the average value and the difference value to obtain normalized control parameters.
In an embodiment of the present application, the light control parameters may include parameters such as light intensity and color temperature parameters, and in this embodiment, the calculation modes of the light control parameters are consistent.
In this embodiment, the parameters are controlled based on lightCalculate the corresponding average valueThen based on the average value, each light control parameter is calculatedAverage value ofThe absolute value of the difference between the two is used for representing the data difference between the light control parameters. Then, the normalization processing is carried out on the light control parameters to obtain normalized control parametersThe method comprises the following steps:
wherein n represents the light control parameters obtained from the control databaseThe number of the pieces of the plastic material,representing a preset mean factor. The normalized control parameters obtained through calculation are used for uniformly representing the control conditions in the historical database, and the comprehensiveness and objectivity of the historical data in participation decision making are improved.
In step S140, the normalization control parameter is adjusted based on the ambient light parameter, and a real-time light control parameter corresponding to the current time is determined.
In one embodiment of the present application, the corresponding environmental factor is preset based on the environmental light parameter, and the corresponding control factor is preset based on the normalization control parameter. And determining the real-time light control parameter corresponding to the current moment based on the environmental factor corresponding to the environmental light parameter and the control factor corresponding to the normalization control parameter.
In one embodiment of the present application, after the ambient light parameter and the normalization control parameter are obtained, the ambient light parameter is based onCorresponding environmental factorNormalization control parameterCorresponding control factorDetermining real-time light control parameters corresponding to the current momentThe method comprises the following steps:
according to the mode, after the normalization control parameters are obtained and calculated from the historical control database, the normalization control parameters are adjusted based on the ambient light parameters corresponding to the current moment, the real-time light control parameters are determined, and the accuracy and the comfortableness of light of the light source are guaranteed.
It should be noted that, the above parameter calculating process is for calculating each parameter of the light parameters, for example, for calculating the light intensity, the real-time color temperature control parameter may be calculated after the real-time light intensity control parameter is calculated, and the two parameters may be executed simultaneously and in parallel, or may be calculated sequentially, which is not limited herein.
In step S150, the light source is controlled to operate based on the real-time light control parameter.
In one embodiment of the present application, after the real-time light control parameters are determined, the real-time light control parameters are sent to the controller to control the light source to emit light corresponding to the parameters.
After the light source is controlled to run, the current time and the real-time light control parameters can be sent to a control database, so that the control database is instructed to store the current time and the real-time light control parameters in an associated mode, and later historical control data query and application are facilitated.
In the technical scheme of the application, the sensing device is used for acquiring the ambient light parameters in the current environment, at least one group of light control parameters corresponding to the current moment are acquired from the control database, normalization processing is carried out on the at least one group of light control parameters to obtain normalization control parameters, the normalization control parameters are adjusted based on the ambient light parameters, real-time light control parameters corresponding to the current moment are determined, and finally the light source operation is controlled based on the real-time light control parameters. According to the light source condition under the current environment, the current light parameter is comprehensively obtained to control the light according to the current time and the control data of the user history, and the habit of the user is combined with the current environment, so that the accuracy and the efficiency of the control of the light source equipment are improved, and meanwhile, the comfort and the use experience of the user are improved.
The following describes embodiments of the apparatus of the present application, which may be used to perform the method of adjusting light parameters of a light source in the above-described embodiments of the present application. It will be appreciated that the apparatus may be a computer program (including program code) running in a computer device, for example the apparatus being an application software; the device can be used for executing corresponding steps in the method provided by the embodiment of the application. For details not disclosed in the embodiments of the device of the present application, please refer to the embodiments of the method for adjusting the light parameters of the light source described in the present application.
Fig. 3 shows a block diagram of an apparatus for adjusting light parameters of a light source according to one embodiment of the present application.
Referring to fig. 3, an apparatus for adjusting light parameters of a light source according to an embodiment of the present application includes:
an obtaining unit 310, configured to obtain, by using a sensing device, an ambient light parameter in a current environment, where the ambient light parameter includes a light intensity parameter and a color temperature parameter;
a parameter unit 320, configured to obtain at least one set of light control parameters corresponding to a current time from a control database, where the control database includes light control parameters corresponding to each historical time;
a normalization unit 330, configured to normalize the at least one set of light control parameters to obtain normalized control parameters;
an adjusting unit 340, configured to adjust the normalization control parameter based on the ambient light parameter, and determine a real-time light control parameter corresponding to the current time;
and a control unit 350, configured to control the light source to operate based on the real-time light control parameter.
In this application, based on the foregoing solution, the acquiring, by the sensing device, the ambient light parameter in the current environment includes: acquiring a first light intensity and a first color temperature parameter in the current environment through a first sensing device, and acquiring a second light intensity and a second color temperature parameter in the current environment through a second sensing device; determining the light intensity based on the first light intensity and the second light intensity; the color temperature parameter is determined based on the first color temperature parameter and the second color temperature parameter.
In this application, based on the foregoing solution, the apparatus further includes: based on the light intensity, respectively calculating a first light difference parameter between the light intensity and the first light intensity and a second light difference parameter between the light intensity and the second light intensity; based on the color temperature parameters, respectively calculating a first color temperature difference parameter between the color temperature parameters and the first color temperature intensity and a second color temperature difference parameter between the color temperature parameters and the second color temperature intensity; and determining weight parameters respectively corresponding to the first sensing device and the second sensing device based on the first light difference parameter, the second light difference parameter, the first color temperature difference parameter and the second color temperature difference parameter, wherein the weight parameters are used for weighting data acquired by the sensing devices to acquire ambient light parameters.
In this application, based on the foregoing solution, the obtaining, from the control database, at least one set of light control parameters corresponding to the current time includes: acquiring the current moment; and based on the current time, matching is carried out from time data in the control database, and at least one group of light control parameters corresponding to the current time is determined.
In this application, based on the foregoing solution, the normalizing the at least one set of light control parameters to obtain normalized control parameters includes: calculating an average value of the light control parameters; and carrying out normalization processing on the light control parameters based on the light control parameters and the corresponding average values thereof to obtain normalized control parameters.
In this application, based on the foregoing solution, the adjusting the normalization control parameter based on the ambient light parameter, determining a real-time light control parameter corresponding to the current time, includes: and determining the real-time light control parameter corresponding to the current moment based on the environmental factor corresponding to the environmental light parameter and the control factor corresponding to the normalization control parameter.
In this application, based on the foregoing solution, the apparatus further includes: and sending the current time and the real-time light control parameters to the control database to instruct the control database to store the current time and the real-time light control parameters in an associated mode.
In the technical scheme of the application, the sensing device is used for acquiring the ambient light parameters in the current environment, at least one group of light control parameters corresponding to the current moment are acquired from the control database, normalization processing is carried out on the at least one group of light control parameters to obtain normalization control parameters, the normalization control parameters are adjusted based on the ambient light parameters, real-time light control parameters corresponding to the current moment are determined, and finally the light source operation is controlled based on the real-time light control parameters. According to the light source condition under the current environment, the current light parameter is comprehensively obtained to control the light according to the current time and the control data of the user history, and the habit of the user is combined with the current environment, so that the accuracy and the efficiency of the control of the light source equipment are improved, and meanwhile, the comfort and the use experience of the user are improved.
Fig. 4 shows a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
It should be noted that, the computer system 400 of the electronic device shown in fig. 4 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 4, the computer system 400 includes a central processing unit (Central Processing Unit, CPU) 401 that can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 402 or a program loaded from a storage section 408 into a random access Memory (Random Access Memory, RAM) 403. In the RAM 403, various programs and data required for the system operation are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An Input/Output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. When executed by a Central Processing Unit (CPU) 401, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described above.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the methods described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1. A method of adjusting a light source light parameter, comprising:
acquiring an ambient light parameter under the current environment through a sensing device, wherein the ambient light parameter comprises a light intensity parameter and a color temperature parameter;
acquiring at least one group of light control parameters corresponding to the current moment from a control database, wherein the control database comprises the light control parameters corresponding to each historical moment;
normalizing the at least one group of light control parameters to obtain normalized control parameters;
adjusting the normalization control parameter based on the ambient light parameter, and determining a real-time light control parameter corresponding to the current moment;
controlling the light source to operate based on the real-time light control parameters;
the sensing device comprises at least two sensing devices, and the sensing device is used for acquiring the ambient light parameters in the current environment, and the sensing device comprises:
acquiring a first light intensity and a first color temperature parameter in the current environment through a first sensing device, and acquiring a second light intensity and a second color temperature parameter in the current environment through a second sensing device;
determining the light intensity based on the first light intensity and the second light intensity;
determining the color temperature parameter based on the first color temperature parameter and the second color temperature parameter;
the method further comprises the steps of:
based on the light intensity lig_sta, respectively calculating a first light difference parameter lig_sta-lig_sta_i between the light intensity lig_sta and a first light intensity lig_sta_i and a second light difference parameter lig_sta-lig_sta_j between the light intensity lig_sta and a second light intensity lig_sta_j;
based on the color temperature parameter lig_tem, respectively calculating a first color temperature difference parameter lig_tem-lig_tem_i between the color temperature parameter lig_tem and the first color temperature intensity lig_tem_i and a second color temperature difference parameter lig_tem-lig_tem_j between the color temperature parameter lig_tem and the second color temperature intensity lig_tem_j;
based on the first light difference parameter, the second light difference parameter, the first color temperature difference parameter and the second color temperature difference parameter, determining a weight parameter Wet_i corresponding to the first sensing device as follows:
Wet_i=α·sin|Lig_sta-Lig_sta_i|+β·cos|Lig_tem-Lig_tem_i|
the weight parameter Wet_j corresponding to the second sensing device is determined as follows:
Wet_j=α·sin|Lig_sta-Lig_sta_j|+β·cos|Lig_tem-Lig_tem_j|
wherein alpha and beta represent preset parameter factors; and weighting the data acquired by the sensing device through the weight parameters to acquire the ambient light parameters.
2. The method of claim 1, wherein obtaining at least one set of light control parameters corresponding to the current time from a control database comprises:
acquiring the current moment;
and based on the current time, matching is carried out from time data in the control database, and at least one group of light control parameters corresponding to the current time is determined.
3. The method of claim 1, wherein normalizing the at least one set of light control parameters to obtain normalized control parameters comprises:
calculating an average value of the light control parameters, and calculating a difference value between the light control parameters and the average value;
and carrying out normalization processing on the light control parameters based on the average value and the difference value to obtain normalized control parameters.
4. The method of claim 1, wherein adjusting the normalization control parameter based on the ambient light parameter, determining a real-time light control parameter corresponding to a current time, comprises:
and determining the real-time light control parameter corresponding to the current moment based on the environmental factor corresponding to the environmental light parameter and the control factor corresponding to the normalization control parameter.
5. The method according to claim 1, wherein the method further comprises:
and sending the current time and the real-time light control parameters to the control database to instruct the control database to store the current time and the real-time light control parameters in an associated mode.
6. An apparatus for adjusting a light parameter of a light source, comprising:
the acquisition unit is used for acquiring the ambient light parameters in the current environment through the sensing device, wherein the ambient light parameters comprise light intensity and color temperature parameters;
the parameter unit is used for acquiring at least one group of light control parameters corresponding to the current moment from the control database, wherein the control database comprises the light control parameters corresponding to each historical moment;
the normalization unit is used for performing normalization processing on the at least one group of light control parameters to obtain normalization control parameters;
the adjusting unit is used for adjusting the normalization control parameter based on the ambient light parameter and determining a real-time light control parameter corresponding to the current moment;
the control unit is used for controlling the light source to operate based on the real-time light control parameters;
the sensing device comprises at least two sensing devices, and the sensing device is used for acquiring the ambient light parameters in the current environment, and the sensing device comprises:
acquiring a first light intensity and a first color temperature parameter in the current environment through a first sensing device, and acquiring a second light intensity and a second color temperature parameter in the current environment through a second sensing device;
determining the light intensity based on the first light intensity and the second light intensity;
determining the color temperature parameter based on the first color temperature parameter and the second color temperature parameter;
the device for adjusting the light parameters of the light source is also used for:
based on the light intensity lig_sta, respectively calculating a first light difference parameter lig_sta-lig_sta_i between the light intensity lig_sta and a first light intensity lig_sta_i and a second light difference parameter lig_sta-lig_sta_j between the light intensity lig_sta and a second light intensity lig_sta_j;
based on the color temperature parameter lig_tem, respectively calculating a first color temperature difference parameter lig_tem-lig_tem_i between the color temperature parameter lig_tem and the first color temperature intensity lig_tem_i and a second color temperature difference parameter lig_tem-lig_tem_j between the color temperature parameter lig_tem and the second color temperature intensity lig_tem_j;
based on the first light difference parameter, the second light difference parameter, the first color temperature difference parameter and the second color temperature difference parameter, determining a weight parameter Wet_i corresponding to the first sensing device as follows:
Wet_i=α·sin|Lig_sta-Lig_sta_i|+β·cos|Lig_tem-Lig_tem_i|
the weight parameter Wet_j corresponding to the second sensing device is determined as follows:
Wet_j=α·sin|Lig_sta-Lig_sta_j|+β·cos|Lig_tem-Lig_tem_j|
wherein alpha and beta represent preset parameter factors; and weighting the data acquired by the sensing device through the weight parameters to acquire the ambient light parameters.
7. A computer readable medium on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a method of adjusting a light source light parameter according to any one of claims 1 to 5.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of adjusting light source light parameters of any of claims 1 to 5.
CN202211716853.6A 2022-12-30 2022-12-30 Method, device, medium and electronic equipment for adjusting light parameters of light source Active CN115835453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211716853.6A CN115835453B (en) 2022-12-30 2022-12-30 Method, device, medium and electronic equipment for adjusting light parameters of light source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211716853.6A CN115835453B (en) 2022-12-30 2022-12-30 Method, device, medium and electronic equipment for adjusting light parameters of light source

Publications (2)

Publication Number Publication Date
CN115835453A CN115835453A (en) 2023-03-21
CN115835453B true CN115835453B (en) 2023-07-18

Family

ID=85519507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211716853.6A Active CN115835453B (en) 2022-12-30 2022-12-30 Method, device, medium and electronic equipment for adjusting light parameters of light source

Country Status (1)

Country Link
CN (1) CN115835453B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196620A (en) * 2010-03-17 2011-09-21 成都鼎明光电科技有限公司 Solar LED outdoor illuminating system
WO2012093342A1 (en) * 2011-01-06 2012-07-12 Koninklijke Philips Electronics N.V. Ambient light control
CN106227052A (en) * 2016-08-31 2016-12-14 深圳博科智能科技有限公司 A kind of intelligent home furnishing control method and device
CN208424845U (en) * 2018-05-17 2019-01-22 厦门大学 The Healthy Lighting system of Effective Regulation human circadian
CN109429416A (en) * 2017-08-29 2019-03-05 美的智慧家居科技有限公司 Illumination control method, apparatus and system for multi-user scene
CN114719422A (en) * 2022-04-14 2022-07-08 海信集团控股股份有限公司 Sleep environment adjusting method and server
WO2022227912A1 (en) * 2021-04-30 2022-11-03 北京字节跳动网络技术有限公司 Method and apparatus for adjusting brightness of lighting apparatus, electronic device, and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012137046A1 (en) * 2011-04-04 2012-10-11 Koninklijke Philips Electronics N.V. Adaptive illumination
CN110169205A (en) * 2017-01-13 2019-08-23 路晟(上海)科技有限公司 Intelligent light control system and method
CN108112116A (en) * 2017-11-27 2018-06-01 北京传嘉科技有限公司 Automatically adjust the method and device of lamp brightness
CN108156733B (en) * 2017-12-21 2020-08-28 珠海智星荟科技服务有限公司 Street lamp brightness control system
CN110381645A (en) * 2018-04-12 2019-10-25 河南天擎机电技术有限公司 Street lamp control system is associated with based on the sensing data that chaos calculates
CN111131612B (en) * 2019-12-20 2021-05-07 惠州Tcl移动通信有限公司 Screen color temperature control method and device, storage medium and mobile terminal
CN113099572A (en) * 2021-03-24 2021-07-09 众普森科技(株洲)有限公司 Lamp and illumination control method thereof
CN113099570A (en) * 2021-03-24 2021-07-09 众普森科技(株洲)有限公司 Lamp and illumination control method thereof
CN113110817B (en) * 2021-04-08 2023-06-20 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for determining ambient light brightness
CN115342908A (en) * 2022-08-11 2022-11-15 Oppo广东移动通信有限公司 Method and device for estimating ambient light intensity, storage medium and electronic equipment
CN115460740A (en) * 2022-08-30 2022-12-09 江门职业技术学院 Intelligent control method for intelligent street lamp, intelligent street lamp system and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196620A (en) * 2010-03-17 2011-09-21 成都鼎明光电科技有限公司 Solar LED outdoor illuminating system
WO2012093342A1 (en) * 2011-01-06 2012-07-12 Koninklijke Philips Electronics N.V. Ambient light control
CN106227052A (en) * 2016-08-31 2016-12-14 深圳博科智能科技有限公司 A kind of intelligent home furnishing control method and device
CN109429416A (en) * 2017-08-29 2019-03-05 美的智慧家居科技有限公司 Illumination control method, apparatus and system for multi-user scene
CN208424845U (en) * 2018-05-17 2019-01-22 厦门大学 The Healthy Lighting system of Effective Regulation human circadian
WO2022227912A1 (en) * 2021-04-30 2022-11-03 北京字节跳动网络技术有限公司 Method and apparatus for adjusting brightness of lighting apparatus, electronic device, and storage medium
CN114719422A (en) * 2022-04-14 2022-07-08 海信集团控股股份有限公司 Sleep environment adjusting method and server

Also Published As

Publication number Publication date
CN115835453A (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN109697522B (en) Data prediction method and device
CN110766142A (en) Model generation method and device
CN107463701B (en) Method and device for pushing information stream based on artificial intelligence
CN112464042B (en) Task label generating method and related device for convolution network according to relationship graph
CN117236805B (en) Power equipment control method, device, electronic equipment and computer readable medium
CN115835453B (en) Method, device, medium and electronic equipment for adjusting light parameters of light source
CN108509179B (en) Method for detecting human face and device for generating model
CN110046670B (en) Feature vector dimension reduction method and device
CN112700270B (en) Score data processing method, device, equipment and storage medium
CN116321621B (en) Method, system, computer readable medium and electronic device for intelligent control of illumination
CN110502715B (en) Click probability prediction method and device
CN109978384B (en) Dominant factor analysis method for operation efficiency of power distribution network and related products
CN114706303A (en) Control method and device for strip steel width allowance, medium and electronic equipment
CN117132303A (en) Price prediction method and system based on artificial intelligence and big data
CN116056286B (en) Method, device, medium and electronic equipment for reducing voltage drop of light source circuit
CN114037066B (en) Data processing method and device, electronic equipment and storage medium
CN116685030B (en) Light source state control method, controller, computer readable medium and electronic device
CN115315038B (en) Method and device for adjusting color temperature and color rendering of LED device
US20180032931A1 (en) Resource monitoring method and system
CN115577980B (en) Power equipment regulation and control method and device, electronic equipment and medium
CN117031971B (en) Intelligent furniture equipment adjusting method, device, equipment and medium based on intelligent mirror
CN117092309B (en) Community water supply quality monitoring method and system based on big data
CN112861951B (en) Image neural network parameter determining method and electronic equipment
CN117873546A (en) Quantitative risk assessment method and system for whole engineering software development process
CN115550270A (en) Interface flow distribution method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant