CN115633432A - Light control method and device - Google Patents

Light control method and device Download PDF

Info

Publication number
CN115633432A
CN115633432A CN202211652706.7A CN202211652706A CN115633432A CN 115633432 A CN115633432 A CN 115633432A CN 202211652706 A CN202211652706 A CN 202211652706A CN 115633432 A CN115633432 A CN 115633432A
Authority
CN
China
Prior art keywords
color
audio
determining
interface
current
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.)
Pending
Application number
CN202211652706.7A
Other languages
Chinese (zh)
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.)
Shenzhen Aurora Technology Co Ltd
Original Assignee
Shenzhen Aurora 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 Shenzhen Aurora Technology Co Ltd filed Critical Shenzhen Aurora Technology Co Ltd
Priority to CN202211652706.7A priority Critical patent/CN115633432A/en
Publication of CN115633432A publication Critical patent/CN115633432A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • H05B47/12Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by detecting audible sound
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a light control method and device, which comprises the following steps: if a preset trigger instruction is obtained, starting a process for detecting the current operation behavior of a user, and converting the current detected operation behavior into operation data; determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior; and controlling one or more designated lights connected in advance based on the light control instruction. Compared with the prior art, the lighting control method and the lighting control system can flexibly and conveniently control the lighting, can self-define and change the color and the brightness of the lighting and the frequency of color switching based on the operation behaviors of the user, enable the lighting to be more personalized, can enrich the use range of the lighting, enable the lighting to meet various application scenes, are simple and convenient to operate, can be convenient for the user to use, and improve the use experience of the user.

Description

Light control method and device
Technical Field
The invention relates to the technical field of light control, in particular to a light control method and light control equipment.
Background
With the continuous improvement of living standard of people, the light device has been widely used, usually, people can only carry out the mechanical control of opening or closing to the light device, and the change of other states such as the colour of light and the frequency of switching colour does not have the adjustability.
The mode of adjusting and controlling the color of the light and the frequency of switching the color exists in the prior art, so that colorful light can be integrated into the life of people, visual impact is brought to people, and the life experience of people is enriched. However, the prior art has defects, such as:
in the prior art, the color of the light and the frequency of color switching are controlled in a changing way, complex operation control needs to be carried out by professional personnel through large-scale light console equipment, and the method has the advantages of complex professional operation, high requirement on the quality of the personnel and high price, so that the application range of the light is limited, the light is not beneficial to use of a user, and the use experience of the user is reduced.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a light control method and a device, and the specific technical scheme is as follows:
a method of controlling lighting, the method comprising:
if a preset trigger instruction is obtained, starting a process for detecting the current operation behavior of a user, and converting the current detected operation behavior into operation data;
determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior;
and controlling one or more preset designated lights connected in advance based on the light control instruction so as to enable the controlled lights to realize synchronous change corresponding to the current operation behaviors.
In a specific embodiment, the operational behavior includes: selecting operation; the operation interface comprises a color matching interface and an audio selection interface;
if the current operation behavior is a selected operation, the step of determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior comprises the following steps:
if the operation interface where the current operation behavior occurs is determined to be a color mixing interface, determining that the operation type is a color selection type, determining a final corresponding color of the operation data of the current selected operation on the color mixing interface, and taking the determined color as a target color; generating a light control instruction for adjusting the color for currently controlling the light display to a target color; or the like, or, alternatively,
if the operation interface where the current operation behavior occurs is determined to be an audio selection interface, determining that the operation type is an audio selection type; determining audio corresponding to the operation data of the currently selected operation on the audio selection interface, determining a color corresponding to the playing characteristics of the audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for currently controlling the light display to the target color.
In a specific embodiment, the toning interface comprises a stepless toning area and a designated area; different positions in the electrodeless toning area are associated with different colors, and the colors at adjacent positions are in smooth transition; different sub-regions are preset in the designated region, and different colors are associated with the different sub-regions;
the selection operation comprises sliding operation and clicking operation;
if the selected operation is a sliding operation, the step of determining the final corresponding color of the operation data of the current selected operation on the color mixing interface comprises the following steps: determining a corresponding position of the last part of the sliding operation on the stepless toning area or a sub-area corresponding to the designated area according to operation data of the currently selected operation, and taking a color associated with the determined corresponding position or sub-area as a target color;
if the selected operation is a click operation, the step of determining the audio corresponding to the operation data of the current selected operation on the audio selection interface comprises the following steps: and determining the clicked position of the clicking operation on the electrodeless color mixing area or the clicked sub-area on the designated area according to the operation data of the current selected operation, and taking the color associated with the clicked position or the sub-area as the target color.
In a specific embodiment, the operation behavior includes: audio input operation; the operation interface comprises an audio input interface;
if the current operation behavior is an audio input operation, the step of determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data corresponding to the current operation behavior comprises the following steps:
if the operation interface where the current operation behavior occurs is determined to be an audio input interface, determining that the operation type is an audio input type;
determining real-time audio input by current audio input operation as target audio according to the operation data corresponding to the current operation behavior;
periodically determining a color corresponding to the playing characteristics of the target audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for controlling the light display to the target color.
In a specific embodiment, the acquiring real-time audio of the current audio input operation input as the target audio includes:
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; if a plurality of voiceprint features are determined, extracting an audio part which accords with the preset voiceprint features from the real-time audio to serve as a target audio; or the like, or a combination thereof,
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; and if a plurality of voiceprint features are determined, extracting the audio part with the maximum volume from the real-time audio as the target audio.
In a specific embodiment, the method further comprises:
if a setting instruction is received, acquiring an input audio frequency;
and carrying out voiceprint extraction on the acquired audio, and taking the mentioned voiceprint characteristics as preset voiceprint characteristics.
In a specific embodiment, determining the color corresponding to the playing characteristics of the audio is implemented by the following formula:
X=K 1 a;Y=K 2 b;Z=K 3 c;
wherein, X, Y and Z are different three primary colors respectively; k 1 、K 2 、K 3 Is a preset weight coefficient; a. b and c are respectively tone, tone and loudness.
The embodiment of the invention also provides a light control device, which comprises:
the detection module is used for starting a process of detecting the current operation behavior of the user if a preset trigger instruction is obtained, and converting the current detected operation behavior into operation data;
the generation module is used for determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior;
and the control module is used for controlling one or more preset lights based on the light control instruction so as to enable the controlled lights to synchronously change corresponding to the previous operation behaviors.
In a particular embodiment of the present invention,
the operational behavior comprises: selecting operation; the operation interface comprises a color mixing interface and an audio selection interface;
if the current operation behavior is a selected operation, the generating module is configured to:
if the operation interface where the current operation behavior occurs is determined to be a color mixing interface, determining that the operation type is a color selection type, determining a final corresponding color of the operation data of the current selected operation on the color mixing interface, and taking the determined color as a target color; generating a light control instruction for adjusting the color for currently controlling the light display to a target color; or the like, or a combination thereof,
if the operation interface where the current operation behavior occurs is determined to be an audio selection interface, determining that the operation type is an audio selection type; determining audio corresponding to the operation data of the currently selected operation on the audio selection interface, determining a color corresponding to the playing characteristics of the audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for currently controlling the light display to the target color.
In a specific embodiment, the toning interface comprises an electrodeless toning area and a designated area; different positions in the electrodeless toning area are associated with different colors, and the colors at adjacent positions are in smooth transition; different sub-regions are preset in the designated region, and different colors are associated with the different sub-regions;
the selection operation comprises sliding operation and clicking operation;
if the selected operation is a sliding operation, the step of determining the final corresponding color of the operation data of the current selected operation on the color mixing interface by the generation module comprises the following steps: determining a corresponding position of the last part of the sliding operation on the stepless toning area or a sub-area corresponding to the designated area according to operation data of the currently selected operation, and taking a color associated with the determined corresponding position or sub-area as a target color;
if the selected operation is a click operation, the step of determining the audio corresponding to the operation data of the current selected operation on the audio selection interface by the generation module comprises the following steps: and determining the clicked position of the clicking operation on the electrodeless color mixing area or the clicked sub-area on the designated area according to the operation data of the current selected operation, and taking the color associated with the clicked position or the sub-area as the target color.
Compared with the prior art, the invention has the following beneficial effects:
the light control method and the light control equipment provided by the invention can flexibly and conveniently control the light, can self-define and change the color and the brightness of the light and the frequency of color switching based on the operation behavior of a user, enable the light to be more personalized, can enrich the use range of the light, enable the light to meet various application scenes, are simple and convenient to operate, can be convenient for the user to use, and improve the use experience of the user.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flowchart illustrating a method for controlling lighting in an embodiment;
FIG. 2 is a diagram of a first method step of generating a light control command in accordance with an embodiment;
FIG. 3 is a schematic diagram of a toning interface in an embodiment;
FIG. 4 is a diagram of an audio selection interface in an embodiment;
FIG. 5 is a flowchart of the steps of the lamp determining a target color in the embodiment;
FIG. 6 is a diagram of a second method step in generating light control commands in accordance with an embodiment;
FIG. 7 is a schematic diagram of an audio input interface in an embodiment;
FIG. 8 is a diagram illustrating the selection of a preset effect in the embodiment;
fig. 9 is a schematic structural frame diagram of a light control device in the embodiment.
Detailed Description
Various embodiments of the present invention will be described more fully hereinafter. The invention is capable of various embodiments and of modifications and variations there between. However, it should be understood that: there is no intention to limit various embodiments of the invention to the specific embodiments disclosed herein, but on the contrary, the intention is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of various embodiments of the invention.
Hereinafter, the terms "includes" or "may include" used in various embodiments of the present invention indicate the presence of the disclosed functions, operations, or elements, and do not limit the addition of one or more functions, operations, or elements. Furthermore, as used in various embodiments of the present invention, the terms "comprises," "comprising," "includes," "including," "has," "having" and their derivatives are intended to mean that the specified features, numbers, steps, operations, elements, components, or combinations of the foregoing, are only meant to indicate that a particular feature, number, step, operation, element, component, or combination of the foregoing, and should not be construed as first excluding the existence of, or adding to the possibility of, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
In various embodiments of the invention, the expression "or" at least one of a or/and B "includes any or all combinations of the words listed simultaneously. For example, the expression "a or B" or "at least one of a or/and B" may include a, may include B, or may include both a and B.
Expressions (such as "first", "second", and the like) used in various embodiments of the present invention may modify various constituent elements in various embodiments, but may not limit the respective constituent elements. For example, the above description does not limit the order and/or importance of the elements described. The foregoing description is for the purpose of distinguishing one element from another. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of various embodiments of the present invention.
It should be noted that: in the present invention, unless otherwise explicitly stated or defined, the terms "mounted," "connected," "fixed," and the like are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium; there may be communication between the interiors of the two elements. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art.
In the present invention, it is to be understood by those skilled in the art that the terms indicating an orientation or positional relationship herein are based on the orientation or positional relationship shown in the drawings only for the convenience of description and simplicity of description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention.
The terminology used in the various embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the invention. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
As shown in fig. 1, the present embodiment provides a light control method, which includes the following steps:
step 101, if a preset trigger instruction is obtained, starting a process for detecting the current operation behavior of a user, and converting the current detected operation behavior into operation data;
step 102, determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior;
and 103, controlling one or more preset lights connected in advance based on the light control instruction so as to enable the controlled lights to synchronously change corresponding to the current operation behaviors.
Specifically, the user performs an operation through an operation interface of the execution main body such as a mobile phone and a tablet, the execution main body identifies an operation behavior instruction of the user, and generates a control instruction for the light, and the light implements corresponding change based on the control instruction, for example, the light changes color and brightness and switches the frequency of the color based on the control instruction.
Specifically, this embodiment can be nimble conveniently control light, can be based on the user's operation action self-defined colour, the luminance that changes light and the frequency of switching colour, makes light more have the individuality, can enrich the application range of light, makes light can satisfy multiple application scene, and easy and simple to handle, can be convenient for the user to use, promotes user's use and experiences.
In this embodiment, the operation behavior includes: selecting operation; the operation interface comprises a color matching interface and an audio selection interface;
as shown in fig. 2, if the current operation behavior is a selected operation, "determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior" includes:
if the operation interface where the current operation behavior occurs is determined to be a color mixing interface, determining that the operation type is a color selection type, determining a color finally corresponding to the operation data of the current selected operation on the color mixing interface, and taking the determined color as a target color; generating a light control instruction for adjusting the color for currently controlling the light display to a target color; or the like, or a combination thereof,
if the operation interface where the current operation behavior occurs is determined to be an audio selection interface, determining that the operation type is an audio selection type; determining audio corresponding to the operation data of the currently selected operation on the audio selection interface, determining a color corresponding to the playing characteristics of the audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for currently controlling the light display to the target color.
Specifically, when a user selects to operate a color mixing interface in the operation interface, if the user touches a certain color in the selected color mixing interface, the light is synchronously switched to the color corresponding to the color. Or when the user selects to operate the audio selection interface in the operation interface, if the user touches one of the selected audio selection interfaces, the light is synchronously switched to the color corresponding to the playing characteristic of the audio.
Specifically, the palette interface is shown in fig. 3, and the audio selection interface is shown in fig. 4; in this embodiment, the color matching interface includes a stepless color matching area and a designated area; different positions in the electrodeless toning area are associated with different colors, and the colors at adjacent positions are in smooth transition; different sub-regions are preset in the designated region, and the different sub-regions are associated with different colors; as shown in fig. 3, the upper half is an electrodeless color mixing area, in this part, the user may select a color by sliding or clicking with a finger, where a color corresponding to a final position point of a specific sliding track (for example, a track sliding clockwise or a track sliding counterclockwise, and a track sliding in any other direction, etc.) is the selected color, and if a click operation is adopted, a color corresponding to a clicked position point is the selected color. Based on the selected color, the light can be controlled to light the color; in addition, as shown in fig. 4, a certain pre-stored audio may be selected, and the color corresponding to the currently played sound may be determined in turn based on the characteristics of the audio, so that the lighting may be controlled to light based on the determined color, and thus, as the audio is played, the change of the lighting may change along with the change of the characteristics of the audio, thereby achieving a good visual effect.
The selection operation comprises sliding operation and clicking operation;
as shown in fig. 5, if the selection operation is a sliding operation, "determining a final corresponding color of the operation data of the current selection operation on the color matching interface" includes:
determining a corresponding position of the last part of the sliding operation on the stepless toning area or a sub-area corresponding to the designated area according to operation data of the currently selected operation, and taking the color associated with the determined corresponding position or sub-area as a target color;
if the selected operation is a click operation, the step of determining the audio corresponding to the operation data of the current selected operation on the audio selection interface comprises the following steps: and determining the clicked position of the clicking operation on the stepless color mixing area or the clicked sub-area on the designated area according to the operation data of the current selected operation, and taking the color associated with the clicked position or the sub-area as the target color.
Specifically, when a finger of a user touches and clicks a certain position in the electrodeless color mixing area, the light is synchronously switched to the color corresponding to the position; when the finger of the user touches and clicks a certain sub-area in the designated area, the light is synchronously switched to the color corresponding to the sub-area. When the fingers of the user slide at different positions in the stepless color mixing area, the light is synchronously switched to the color corresponding to the position where the user slides in the stepless color mixing area in the sliding process; when the finger of the user slides in different sub-areas in the designated area, the light is synchronously switched to the color corresponding to the association of the slid sub-area in the designated area in the sliding process.
In this embodiment, the operation behavior includes: an audio input operation; the operation interface comprises an audio input interface;
as shown in fig. 6, if the current operation behavior is an audio input operation, the "determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior" includes:
if the operation interface where the current operation behavior occurs is determined to be an audio input interface, determining that the operation type is the audio input type;
determining real-time audio input by current audio input operation as target audio according to the operation data corresponding to the current operation behavior;
periodically determining a color corresponding to the playing characteristics of the target audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for controlling the light display to the target color.
Referring to fig. 7, an audio input interface is shown, in which a user may input audio such as speaking and singing, detect a characteristic of the currently input audio, for example, every second (or other periodic time) based on the input audio, and determine a corresponding light color based on the characteristic, thereby controlling the light such that the change of the light is changed according to the voice input by the user.
Besides, in addition to the above modes, some effects may be preset as shown in fig. 8, for example, names of the effects such as "colorful gradation", "red gradation", "green gradation" and the like in fig. 8, and when a certain one of the effects is selected, the light selects the selected effect to be displayed.
In the present embodiment, "setting real-time audio input by the current audio input operation as target audio" includes:
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; if a plurality of voiceprint features are determined, extracting an audio part which accords with the preset voiceprint features from the real-time audio to serve as a target audio; or the like, or a combination thereof,
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; and if a plurality of voiceprint features are determined, extracting the audio part with the maximum volume from the real-time audio as the target audio.
Specifically, the currently input real-time audio can be selected as the voice of the user speaking in real time, and the user can control the color of the light through speaking in real time; when the voice recognition method is used, if the voice frequencies of a plurality of users appear, voice print analysis is carried out on the real-time voice frequencies of the users so as to recognize and extract the voice frequency which accords with the preset voice print characteristics, and the voice frequency of the user is used as the target voice frequency. Or, in use, if the audio of multiple users appears, performing voiceprint analysis on the real-time audio of the multiple users to identify and extract the audio with the maximum volume as the target audio.
In this embodiment, if the current operation behavior is an audio input operation, "determining an operation interface on which the current operation behavior occurs, and generating a light control instruction based on the operation interface and the current operation behavior" includes:
acquiring pre-embedded audio input by current audio input operation as target audio;
periodically determining a color corresponding to the playing characteristics of the target audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color displayed by the current control light to the target color.
Specifically, the pre-embedded audio may be selected as pre-recorded music or recording, and when the music or recording is played, the light is synchronously displayed as a color executed by the light control instruction corresponding to the music or recording.
In this embodiment, the method further includes:
if a setting instruction is received, acquiring an input audio frequency;
and carrying out voiceprint extraction on the acquired audio, and taking the mentioned voiceprint characteristics as preset voiceprint characteristics.
Specifically, this embodiment carries out the voiceprint extraction and the record through the audio frequency to the user for can discern when this user speaks in real time and pair, when a plurality of users speak simultaneously, this embodiment can discern and pair the audio frequency that accords with preset voiceprint characteristic, with discernment this user's audio control, rejects other users ' audio frequency, convenience of customers ' use.
In this embodiment, determining the color corresponding to the playing characteristic of the audio is implemented by the following formula:
X=K 1 a;Y=K 2 b;Z=K 3 c;
wherein, X, Y and Z are different three primary colors respectively; k is 1 、K 2 、K 3 Is a preset weight coefficient; a. b and c are respectively tone, tone and loudness.
In this embodiment, "periodically determining a color corresponding to a play characteristic of the target audio" further includes:
if the volume of the target audio is larger, the brightness of the lamplight is correspondingly increased;
and if the volume of the target audio is smaller, the brightness of the lamplight is correspondingly reduced.
Specifically, the target audio may be selected as pre-embedded audio or currently input real-time audio; when the volume of the pre-recorded audio or the currently input real-time audio is larger, the brightness of the lamplight is correspondingly increased; when the volume of the pre-recorded audio or the currently input real-time audio is smaller, the brightness of the light is correspondingly reduced.
In this embodiment, the "periodically determining a color corresponding to the playing characteristic of the target audio" further includes:
if the rhythm of the target audio is faster, the frequency of the light color switching is faster correspondingly;
if the rhythm of the target audio is slow, the frequency of the light for switching the colors is correspondingly slow.
Specifically, the target audio may be selected as pre-embedded audio or currently input real-time audio; when the rhythm of the pre-recorded audio or the currently input real-time audio is faster, the frequency of the light color switching is correspondingly faster; when the rhythm of the pre-recorded audio or the currently input real-time audio is slow, the frequency of the light color switching is correspondingly slow.
Compared with the prior art, the embodiment can flexibly and conveniently control the light, can self-define the color and the brightness of the light and the frequency of switching the color based on the operation behaviors of the user, enables the light to be more personalized, can enrich the use range of the light, enables the light to meet various application scenes, is simple and convenient to operate, can be convenient for the user to use, and improves the use experience of the user.
Example 2
Embodiment 2 of the present invention also discloses a light control device, as shown in fig. 9, the device includes:
the detection module 301 is configured to start a process of detecting a current operation behavior of a user if a preset trigger instruction is obtained, and convert the current detected operation behavior into operation data;
a generating module 302, configured to determine an operation interface where the current operation behavior occurs, determine an operation type based on the operation interface, and generate a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior;
the control module 303 is configured to control one or more pre-connected specified lights based on the light control instruction, so that the controlled lights implement synchronous changes corresponding to the current operation behavior.
Further, the operational behavior includes: selecting operation; the operation interface comprises a color mixing interface and an audio selection interface;
if the current operation behavior is a selected operation, the generating module 302 is configured to:
if the operation interface where the current operation behavior occurs is determined to be a color mixing interface, determining that the operation type is a color selection type, determining a color finally corresponding to the operation data of the current selected operation on the color mixing interface, and taking the determined color as a target color; generating a light control instruction for adjusting the color for currently controlling the light display to a target color; or the like, or, alternatively,
if the operation interface where the current operation behavior occurs is determined to be an audio selection interface, determining that the operation type is an audio selection type; determining audio corresponding to the operation data of the currently selected operation on the audio selection interface, determining a color corresponding to the playing characteristics of the audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for currently controlling the light display to the target color.
Further, the color matching interface comprises a stepless color matching area and a designated area; different positions in the electrodeless toning area are associated with different colors, and the colors of adjacent positions are in smooth transition; different sub-regions are preset in the designated region, and the different sub-regions are associated with different colors;
the selection operation comprises sliding operation and clicking operation;
if the selected operation is a sliding operation, the step of determining the final corresponding color of the operation data of the current selected operation on the color mixing interface by the generating module 302 includes: determining a corresponding position of the last part of the sliding operation on the stepless toning area or a sub-area corresponding to the designated area according to operation data of the currently selected operation, and taking the color associated with the determined corresponding position or sub-area as a target color;
if the selected operation is a click operation, the step of determining the audio corresponding to the operation data of the current selected operation on the audio selection interface by the generation module comprises the following steps: and determining the clicked position of the clicking operation on the stepless color mixing area or the clicked sub-area on the designated area according to the operation data of the current selected operation, and taking the color associated with the clicked position or the sub-area as the target color.
In a specific embodiment, the operational behavior includes: audio input operation; the operation interface comprises an audio input interface;
if the current operation behavior is an audio input operation, the generating module 302 is configured to:
if the operation interface where the current operation behavior occurs is determined to be an audio input interface, determining that the operation type is the audio input type;
determining real-time audio input by current audio input operation as target audio according to the operation data corresponding to the current operation behavior;
periodically determining a color corresponding to the playing characteristics of the target audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for currently controlling the light display to the target color.
In a specific embodiment, the generating module "using real-time audio of the current audio input operation input as the target audio" includes:
acquiring a currently input real-time audio; determining a voiceprint characteristic corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; if a plurality of voiceprint features are determined, extracting an audio part which accords with the preset voiceprint features from the real-time audio to serve as a target audio; or the like, or, alternatively,
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; and if a plurality of voiceprint features are determined, extracting the audio part with the maximum volume from the real-time audio as the target audio.
In a specific embodiment, the apparatus further comprises: a setup module to:
if a setting instruction is received, acquiring an input audio frequency;
and carrying out voiceprint extraction on the acquired audio, and taking the mentioned voiceprint characteristics as preset voiceprint characteristics.
In a specific embodiment, determining the color corresponding to the playing characteristics of the audio is implemented by the following formula:
X=K 1 a;Y=K 2 b;Z=K 3 c;
wherein, X, Y and Z are different three primary colors respectively; k is 1 、K 2 、K 3 Is a preset weight coefficient; a. b and c are respectively tone, tone and loudness.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art can understand that the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the implementation scenario description, and may also be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (10)

1. A method for controlling lighting, the method comprising:
if a preset trigger instruction is obtained, starting a process for detecting the current operation behavior of the user, and converting the current detected operation behavior into operation data;
determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior;
and controlling one or more preset designated lights connected in advance based on the light control instruction so as to enable the controlled lights to realize synchronous change corresponding to the current operation behaviors.
2. The method of claim 1, wherein the operational behavior comprises: selecting operation; the operation interface comprises a color mixing interface and an audio selection interface;
if the current operation behavior is a selected operation, the step of determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior comprises the following steps:
if the operation interface where the current operation behavior occurs is determined to be a color mixing interface, determining that the operation type is a color selection type, determining a color finally corresponding to the operation data of the current selected operation on the color mixing interface, and taking the determined color as a target color; generating a light control instruction for adjusting the color for currently controlling the light display to a target color; or the like, or, alternatively,
if the operation interface where the current operation behavior occurs is determined to be an audio selection interface, determining that the operation type is an audio selection type; determining audio corresponding to the operation data of the currently selected operation on the audio selection interface, determining a color corresponding to the playing characteristics of the audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for controlling the light display to the target color.
3. The method of claim 2, wherein the tinting interface comprises an infinite tinting zone, a designated zone; different positions in the electrodeless toning area are associated with different colors, and the colors of adjacent positions are in smooth transition; different sub-regions are preset in the designated region, and different colors are associated with the different sub-regions;
the selection operation comprises sliding operation and clicking operation;
if the selected operation is a sliding operation, the step of determining the final corresponding color of the operation data of the current selected operation on the color mixing interface comprises the following steps: determining a corresponding position of the last part of the sliding operation on the stepless toning area or a sub-area corresponding to the designated area according to operation data of the currently selected operation, and taking the color associated with the determined corresponding position or sub-area as a target color;
if the selected operation is a click operation, the step of determining the audio corresponding to the operation data of the current selected operation on the audio selection interface comprises the following steps: and determining the clicked position of the clicking operation on the electrodeless color mixing area or the clicked sub-area on the designated area according to the operation data of the current selected operation, and taking the color associated with the clicked position or the sub-area as the target color.
4. The method of claim 1, wherein the operational behavior comprises: an audio input operation; the operation interface comprises an audio input interface;
if the current operation behavior is an audio input operation, the step of determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data corresponding to the current operation behavior includes:
if the operation interface where the current operation behavior occurs is determined to be an audio input interface, determining that the operation type is an audio input type;
determining real-time audio input by current audio input operation as target audio according to the operation data corresponding to the current operation behavior;
periodically determining a color corresponding to the playing characteristics of the target audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for controlling the light display to the target color.
5. The method of claim 4, wherein the "targeting real-time audio of a current audio input operation input" comprises:
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; if a plurality of voiceprint features are determined, extracting an audio part which accords with the preset voiceprint features from the real-time audio to serve as a target audio; or the like, or, alternatively,
acquiring a currently input real-time audio; determining the voiceprint characteristics corresponding to the real-time audio by carrying out voiceprint analysis on the real-time audio; and if a plurality of voiceprint features are determined, extracting the audio part with the maximum volume from the real-time audio as the target audio.
6. The method of claim 5, further comprising:
if a setting instruction is received, acquiring an input audio frequency;
and carrying out voiceprint extraction on the acquired audio, and taking the mentioned voiceprint characteristics as preset voiceprint characteristics.
7. The method of claim 2, wherein determining the color corresponding to the playback characteristic of the audio is achieved by:
X=K 1 a;Y=K 2 b;Z=K 3 c;
wherein X, Y and Z are different three primary colors respectively; k 1 、K 2 、K 3 Is a preset weight coefficient; a. b and c are respectively tone, tone and loudness.
8. A control device for lighting, characterized in that it comprises:
the detection module is used for starting a process for detecting the current operation behavior of the user if a preset trigger instruction is obtained, and converting the current detected operation behavior into operation data;
the generation module is used for determining an operation interface where the current operation behavior occurs, determining an operation type based on the operation interface, and generating a light control instruction for adjusting a light display effect based on the operation type and operation data of the current operation behavior;
and the control module is used for controlling one or more preset lights based on the light control instruction so as to enable the controlled lights to realize synchronous change corresponding to the current operation behaviors.
9. The apparatus of claim 8, wherein the operational behavior comprises: selecting operation; the operation interface comprises a color mixing interface and an audio selection interface;
if the current operation behavior is a selected operation, the generating module is configured to:
if the operation interface where the current operation behavior occurs is determined to be a color mixing interface, determining that the operation type is a color selection type, determining a color finally corresponding to the operation data of the current selected operation on the color mixing interface, and taking the determined color as a target color; generating a light control instruction for adjusting the color for currently controlling the light display to a target color; or the like, or a combination thereof,
if the operation interface where the current operation behavior occurs is determined to be an audio selection interface, determining that the operation type is an audio selection type; determining audio corresponding to the operation data of the currently selected operation on the audio selection interface, determining a color corresponding to the playing characteristics of the audio, and taking the determined color as a target color; and generating a light control instruction for adjusting the color for controlling the light display to the target color.
10. The apparatus of claim 9, wherein the toning interface includes a stepless toning area, a designated area; different positions in the electrodeless toning area are associated with different colors, and the colors at adjacent positions are in smooth transition; different sub-regions are preset in the designated region, and different colors are associated with the different sub-regions;
the selection operation comprises sliding operation and clicking operation;
if the selected operation is a sliding operation, the step of determining the final corresponding color of the operation data of the current selected operation on the color mixing interface by the generation module comprises the following steps: determining a corresponding position of the last part of the sliding operation on the stepless toning area or a sub-area corresponding to the designated area according to operation data of the currently selected operation, and taking the color associated with the determined corresponding position or sub-area as a target color;
if the selected operation is a click operation, the step of determining the audio corresponding to the operation data of the current selected operation on the audio selection interface by the generation module comprises the following steps: and determining the clicked position of the clicking operation on the electrodeless color mixing area or the clicked sub-area on the designated area according to the operation data of the current selected operation, and taking the color associated with the clicked position or the sub-area as the target color.
CN202211652706.7A 2022-12-22 2022-12-22 Light control method and device Pending CN115633432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211652706.7A CN115633432A (en) 2022-12-22 2022-12-22 Light control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211652706.7A CN115633432A (en) 2022-12-22 2022-12-22 Light control method and device

Publications (1)

Publication Number Publication Date
CN115633432A true CN115633432A (en) 2023-01-20

Family

ID=84910441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211652706.7A Pending CN115633432A (en) 2022-12-22 2022-12-22 Light control method and device

Country Status (1)

Country Link
CN (1) CN115633432A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270866A (en) * 2014-10-17 2015-01-07 孟庆云 Method, device and system for implementing horse race lamp
CN105282917A (en) * 2015-06-16 2016-01-27 熊剑峰 Communication control method of intelligent lamp
CN209806122U (en) * 2018-10-23 2019-12-17 中山市气氛照明有限公司 Switch for LED lamp
CN110767229A (en) * 2019-10-15 2020-02-07 广州国音智能科技有限公司 Voiceprint-based audio output method, device and equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270866A (en) * 2014-10-17 2015-01-07 孟庆云 Method, device and system for implementing horse race lamp
CN105282917A (en) * 2015-06-16 2016-01-27 熊剑峰 Communication control method of intelligent lamp
CN209806122U (en) * 2018-10-23 2019-12-17 中山市气氛照明有限公司 Switch for LED lamp
CN110767229A (en) * 2019-10-15 2020-02-07 广州国音智能科技有限公司 Voiceprint-based audio output method, device and equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN112511750B (en) Video shooting method, device, equipment and medium
CN104991754B (en) The way of recording and device
CN109859728A (en) Information processing unit, information processing method, storage medium and electronic musical instrument
US10078436B2 (en) User interface adjusting method and apparatus using the same
US20090164215A1 (en) Device with voice-assisted system
JPH0983630A (en) Telephone system
CN112013294A (en) Intelligent dictation table lamp and dictation assisting method thereof
CN1937002A (en) Intelligent man-machine conversation system and implementation method thereof
CN109324846A (en) Application display method and device, storage medium
CN105163435A (en) Illumination method and illumination device
JP2006259707A (en) Apparatus and method for performing music play function in portable terminal
CN108762878A (en) Application program interactive interface generation method, device, equipment and storage medium
CN106406864A (en) Mode switching method and device
CN107580246A (en) Key operation method, device, equipment and storage medium
CN104333503B (en) Dialogue display methods and device in instant messaging scene
CN112254277A (en) Music air conditioner and control method thereof
KR20110130952A (en) Method, apparatus and recording medium for performance game
CN105702102A (en) Electronic device and record regeneration method of electronic device
KR100772168B1 (en) Music and color coupling system, method thereof and recorded medium recorded program performing it
CN115633432A (en) Light control method and device
CN108810241B (en) Audio data-based sound modification display method and device
KR100784537B1 (en) Method for changing a color image of backlight in keypad of mobile phone, and terminal thereof
CN109739462A (en) A kind of method and device of content input
KR101452451B1 (en) System and method for audio and lighting emotional control using mobile device
CN104616605B (en) Interactive promoting display board based on multiple-choice question mode

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230120