CN114501742A - Light effect control method and device and lamps based on motion state recognition - Google Patents
Light effect control method and device and lamps based on motion state recognition Download PDFInfo
- Publication number
- CN114501742A CN114501742A CN202111673419.XA CN202111673419A CN114501742A CN 114501742 A CN114501742 A CN 114501742A CN 202111673419 A CN202111673419 A CN 202111673419A CN 114501742 A CN114501742 A CN 114501742A
- Authority
- CN
- China
- Prior art keywords
- light effect
- lamp
- current
- motion
- parameter
- 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
Links
- 230000001795 light effect Effects 0.000 title claims abstract description 536
- 230000033001 locomotion Effects 0.000 title claims abstract description 292
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000001514 detection method Methods 0.000 claims abstract description 53
- 230000000694 effects Effects 0.000 claims abstract description 15
- 238000013507 mapping Methods 0.000 claims description 10
- 230000033764 rhythmic process Effects 0.000 claims description 8
- 230000007306 turnover Effects 0.000 claims 2
- 230000009286 beneficial effect Effects 0.000 abstract description 32
- 230000001960 triggered effect Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 12
- 230000007613 environmental effect Effects 0.000 description 11
- 241001465382 Physalis alkekengi Species 0.000 description 10
- 230000004913 activation Effects 0.000 description 10
- 230000002452 interceptive effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 2
- 206010034719 Personality change Diseases 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/115—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
Description
技术领域technical field
本发明涉及智能化控制技术领域,尤其涉及一种基于运动状态识别的光效控制方法及装置、灯具。The invention relates to the technical field of intelligent control, in particular to a light effect control method and device based on motion state recognition, and a lamp.
背景技术Background technique
当前,灯具的应用场景非常广泛,且使用者对于灯具的使用需求也非常多样化,为了适用于不同的应用场景或使用需求,灯具的形状、尺寸、类型等也多种多样,例如:使用较为广泛的便携式手持灯棒等。为了便于使用者更加便捷的使用灯具,除了最基本的照明功能之外,一些灯具也增加了一些智能化的控制功能,例如:基于自动感应的亮灭控制功能、光强的自适应调整功能、通过按键实现对灯光的控制等。At present, the application scenarios of lamps and lanterns are very wide, and the needs of users for the use of lamps are also very diverse. In order to be suitable for different application scenarios or use requirements, the shapes, sizes, and types of lamps and lanterns are also varied. Wide range of portable handheld light sticks and more. In order to make it easier for users to use lamps, in addition to the most basic lighting functions, some lamps have also added some intelligent control functions, such as: automatic induction based on-off control function, adaptive adjustment function of light intensity, Control the light by pressing the button.
然而实践发现,在对灯具的光效进行控制时,使用者通常需要通过灯具上设置的按键来完成对灯具光效的控制,控制方式具有一定的局限性,已无法满足使用者对灯具的智能化控制需求,不利于提高使用者的使用体验,进而无法提高灯具的用户粘性。However, it has been found in practice that when controlling the light effect of the lamps, the user usually needs to complete the control of the light effect of the lamps through the buttons set on the lamps. It is not conducive to improving the user experience, and thus cannot improve the user stickiness of the lamps.
可见,如何丰富灯具光效的智能化控制方式,进而提高使用者对灯具的使用体验显得尤为重要。It can be seen that it is particularly important to enrich the intelligent control method of the light efficiency of lamps and lanterns, thereby improving the user's experience of using lamps.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种基于运动状态识别的光效控制方法及装置、灯具,能够通过对灯具运动参数的识别实现对灯具光效的智能化控制,丰富了灯具光效的智能化控制方式,有利于提高使用者对灯具的使用体验。The invention provides a light effect control method and device based on motion state recognition, and a lamp, which can realize intelligent control of the light effect of the lamp by recognizing the motion parameters of the lamp, enriches the intelligent control method of the light effect of the lamp, and has the advantages of: It is beneficial to improve the user's experience of using the lamp.
本发明第一方面公开了一种基于运动状态识别的光效控制方法,所述方法应用于设置有运动检测传感器的灯具中,所述方法包括:A first aspect of the present invention discloses a light effect control method based on motion state recognition. The method is applied to a lamp provided with a motion detection sensor, and the method includes:
在所述灯具的当前晃动控制模式下获取所述运动检测传感器采集到的当前运动参数;acquiring the current motion parameters collected by the motion detection sensor in the current shaking control mode of the lamp;
判断所述当前运动参数是否与针对所述当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配;judging whether the current motion parameter matches the motion parameter in the motion parameter set preset for the current shaking control mode;
当判断出所述当前运动参数与所述运动参数集合中的运动参数相匹配时,生成在所述当前晃动控制模式下与所述当前运动参数相匹配的光效控制指令,并在所述当前晃动控制模式下执行与所述光效控制指令相匹配的光效控制操作。When it is determined that the current motion parameter matches the motion parameter in the motion parameter set, a light effect control instruction matching the current motion parameter in the current shaking control mode is generated, and in the current shaking control mode In the shaking control mode, a light effect control operation matching the light effect control instruction is performed.
作为一种可选的实施方式,在本发明第一方面中,所述生成在所述当前晃动控制模式下与所述当前运动参数相匹配的光效控制指令,包括:As an optional implementation manner, in the first aspect of the present invention, the generating a light effect control instruction that matches the current motion parameter in the current shaking control mode includes:
确定与所述当前晃动控制模式绑定的光效参数类型;determining the type of light effect parameter bound to the current shaking control mode;
根据所述当前运动参数,生成在所述当前晃动控制模式下与所述当前运动参数相匹配且用于调整目标光效参数的光效控制指令,所述目标光效参数包括所述光效参数类型所对应的光效参数;According to the current motion parameters, a light effect control instruction that matches the current motion parameters in the current shaking control mode and is used to adjust target light effect parameters is generated, where the target light effect parameters include the light effect parameters The light effect parameters corresponding to the type;
以及,所述在所述灯具的当前晃动控制模式下获取所述运动检测传感器采集到的当前运动参数之前,所述方法还包括:And, before acquiring the current motion parameter collected by the motion detection sensor in the current shaking control mode of the lamp, the method further includes:
基于所述运动检测传感器采集到的第一运动参数判断所述灯具是否满足晃动控制模式启动条件;judging whether the lamp satisfies the start condition of the shaking control mode based on the first motion parameter collected by the motion detection sensor;
当基于所述第一运动参数判断出所述灯具满足所述晃动控制模式启动条件时,确定待启动的目标晃动控制模式,启动所述目标晃动控制模式作为所述灯具的当前晃动控制模式,并触发执行所述的在所述灯具的当前晃动控制模式下获取所述运动检测传感器采集到的当前运动参数的步骤。When it is determined based on the first motion parameter that the lighting fixture satisfies the shaking control mode activation condition, a target shaking control mode to be activated is determined, the target shaking control mode is started as the current shaking control mode of the lighting fixture, and Trigger to execute the step of acquiring the current motion parameters collected by the motion detection sensor in the current shaking control mode of the lamp.
作为一种可选的实施方式,在本发明第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the method further includes:
检测是否接收到光效切换指令;Detect whether the light effect switching command is received;
当接收到所述光效切换指令时,获取所述运动检测传感器采集到的第二运动参数;When receiving the light effect switching instruction, acquiring the second motion parameter collected by the motion detection sensor;
根据所述第二运动参数判断所述灯具的运动状态是否满足光效切换条件;Judging whether the motion state of the lamp satisfies the light effect switching condition according to the second motion parameter;
当判断出所述灯具的运动状态满足所述光效切换条件时,将所述灯具的当前光效切换为确定出的目标光效;When it is determined that the motion state of the lamp meets the light effect switching condition, switching the current light effect of the lamp to the determined target light effect;
其中,所述确定与所述当前晃动控制模式绑定的光效参数类型,包括:Wherein, the determining the light effect parameter type bound to the current shaking control mode includes:
确定所述灯具的当前光效的光效类型;determining the light effect type of the current light effect of the luminaire;
获取在所述当前晃动控制模式下与所述光效类型绑定的光效参数类型,或者,获取在所述光效类型下与所述当前晃动控制模式绑定的光效参数类型。Obtain the light effect parameter type bound to the light effect type in the current shake control mode, or obtain the light effect parameter type bound to the current shake control mode under the light effect type.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述第二运动参数判断所述灯具的运动状态是否满足光效切换条件,包括:As an optional implementation manner, in the first aspect of the present invention, the determining whether the motion state of the lamp satisfies the light effect switching condition according to the second motion parameter includes:
根据所述第二运动参数判断所述灯具的运动状态是否表示所述灯具执行了翻转操作,当判断出所述灯具执行了所述翻转操作时,确定所述灯具的运动状态满足光效切换条件;Whether the motion state of the lamp indicates that the lamp has performed the flip operation is determined according to the second motion parameter, and when it is determined that the lamp has performed the flip operation, it is determined that the motion state of the lamp satisfies the light effect switching condition ;
其中,在判断出所述灯具执行了所述翻转操作之后,所述确定所述灯具的运动状态满足光效切换条件之前,所述方法还包括:Wherein, after judging that the lamp has performed the flip operation, and before determining that the motion state of the lamp satisfies the light effect switching condition, the method further includes:
确定所述灯具在执行所述翻转操作之前的第一灯具姿态以及所述灯具在执行所述翻转操作之后的第二灯具姿态;determining a first lighting fixture posture of the lighting fixture before performing the flip operation and a second lighting fixture attitude of the lighting fixture after performing the flipping operation;
根据所述第一灯具姿态与所述第二灯具姿态,判断在执行所述翻转操作之后所述灯具的目标端在确定出的第一目标方向上的映射位置相较于确定出的基准位置的位置向量是否发生方向翻转,当判断出在执行所述翻转操作之后所述灯具的目标端在确定出的所述第一目标方向上的映射位置相较于确定出的所述基准位置的位置向量发生方向翻转时,触发所述的确定所述灯具的运动状态满足光效切换条件的步骤。According to the attitude of the first lamp and the attitude of the second lamp, it is determined that the mapping position of the target end of the lamp in the determined first target direction after the flip operation is performed compared to the determined reference position Whether the direction of the position vector is reversed, when it is determined that the mapping position of the target end of the lamp in the determined first target direction after the flip operation is performed compared to the determined position vector of the reference position When the direction is reversed, the step of determining that the motion state of the lamp satisfies the light effect switching condition is triggered.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述当前运动参数,生成在所述当前晃动控制模式下与所述当前运动参数相匹配且用于调整目标光效参数的光效控制指令,包括:As an optional implementation manner, in the first aspect of the present invention, the generating according to the current motion parameter that matches the current motion parameter in the current shaking control mode and is used to adjust the target light effect Parameters of light effect control instructions, including:
当所述当前晃动控制模式为第一晃动控制模式时,根据所述当前运动参数计算所述灯具的晃动幅度,确定所述灯具的晃动幅度所处的目标晃动幅度范围,根据预设的晃动幅度范围与光效参数值的对应关系获取所述目标晃动幅度范围对应的第一光效参数值,并生成用于将目标光效参数的光效参数值调整至所述第一光效参数值的光效控制指令;When the current shaking control mode is the first shaking control mode, the shaking amplitude of the lamp is calculated according to the current motion parameter, the target shaking amplitude range in which the shaking amplitude of the lamp is located is determined, and the shaking amplitude is determined according to the preset shaking amplitude. Correspondence between the range and the light effect parameter value Obtain the first light effect parameter value corresponding to the target shaking amplitude range, and generate a value for adjusting the light effect parameter value of the target light effect parameter to the first light effect parameter value. Light effect control instructions;
当所述当前晃动控制模式为第二晃动控制模式时,根据所述当前运动参数识别所述灯具的当前晃动姿态,根据所述当前晃动姿态计算目标光效参数所对应的调整时刻以及所述目标光效参数在所述调整时刻需要调整至的第二光效参数值,并生成用于将所述目标光效参数的光效参数值调整至所述第二光效参数值的光效控制指令;其中,所述第二光效参数值为所述目标光效参数对应的光效参数值序列中的初始光效参数值或者为所述目标光效参数对应的光效参数值序列中与在所述调整时刻之前的所述目标光效参数的历史最新光效参数值相邻的在后光效参数值。When the current shaking control mode is the second shaking control mode, the current shaking posture of the lamp is identified according to the current motion parameters, and the adjustment time corresponding to the target light effect parameter and the target are calculated according to the current shaking posture The second light effect parameter value to which the light effect parameter needs to be adjusted at the adjustment moment, and a light effect control instruction for adjusting the light effect parameter value of the target light effect parameter to the second light effect parameter value is generated ; wherein, the second light effect parameter value is the initial light effect parameter value in the light effect parameter value sequence corresponding to the target light effect parameter or the light effect parameter value sequence corresponding to the target light effect parameter. A subsequent light effect parameter value adjacent to the latest historical light effect parameter value of the target light effect parameter before the adjustment time.
作为一种可选的实施方式,在本发明第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the method further includes:
采集所述灯具对应的用途识别因子,所述用途识别因子用于识别所述灯具当前的光效控制用途,且所述用途识别因子包括所述灯具所在当前环境的环境参数因子、所述灯具的倾斜角度因子、所述灯具的手握端在第二目标方向上的朝向分量以及所述灯具的倾斜方向因子中的至少一种;Collect the use identification factor corresponding to the lamp, the use identification factor is used to identify the current light effect control use of the lamp, and the use identification factor includes the environmental parameter factor of the current environment where the lamp is located, the at least one of a tilt angle factor, an orientation component of the hand-held end of the light fixture in the second target direction, and a tilt direction factor of the light fixture;
将采集到的所述用途识别因子输入预先确定出的用途识别模型,得到所述用途识别模型的识别结果;Inputting the collected usage identification factors into a predetermined usage identification model to obtain an identification result of the usage identification model;
根据所述识别结果识别所述灯具当前的光效控制用途;Identify the current light effect control purpose of the lamp according to the identification result;
根据所述灯具当前的光效控制用途,判断当前场景中是否存在需要与所述灯具进行关联控制的其它辅助灯具;According to the current light effect control purpose of the lamp, determine whether there are other auxiliary lamps in the current scene that need to be controlled in association with the lamp;
当判断出存在所述其它辅助灯具时,根据执行与所述光效控制指令相匹配的光效控制操作得到的操作结果,生成所述其它辅助灯具的灯具控制指令,并将所述灯具控制指令发送至所述其它辅助灯具对应的控制装置,以触发所述其它辅助灯具的控制装置控制所述其它辅助灯具执行与所述灯具控制指令相匹配的操作。When it is determined that the other auxiliary lamps exist, the lamp control instructions of the other auxiliary lamps are generated according to the operation results obtained by executing the light effect control operation matching the light effect control instructions, and the lamp control instructions It is sent to the control device corresponding to the other auxiliary lighting fixtures, so as to trigger the control device of the other auxiliary lighting fixtures to control the other auxiliary lighting fixtures to perform operations matching the lighting fixture control instructions.
作为一种可选的实施方式,在本发明第一方面中,所述环境参数因子包括音乐因子;As an optional implementation manner, in the first aspect of the present invention, the environmental parameter factor includes a music factor;
其中,所述在所述当前晃动控制模式下执行与所述光效控制指令相匹配的光效控制操作之前,所述方法还包括:Wherein, before performing the light effect control operation matching the light effect control instruction in the current shaking control mode, the method further includes:
当所述用途识别因子包括所述环境参数因子时,识别当前环境中与所述灯具当前的光效控制用途对应的辅助音乐,根据采集到的所述辅助音乐的实时播放进度以及预先确定出所述辅助音乐的节奏点,确定所述光效控制指令的执行时刻;When the usage identification factor includes the environmental parameter factor, identify the auxiliary music in the current environment corresponding to the current light effect control usage of the lamp, and determine the music according to the collected real-time playback progress of the auxiliary music and pre-determined The rhythm point of the auxiliary music is determined, and the execution time of the light effect control instruction is determined;
判断实时时刻是否到达所述执行时刻,当判断结果为是时,触发执行所述的在所述当前晃动控制模式下执行与所述光效控制指令相匹配的光效控制操作的步骤。It is judged whether the real-time time has reached the execution time, and when the judgment result is yes, the step of executing the light effect control operation matching the light effect control instruction in the current shaking control mode is triggered.
本发明第二方面公开了一种灯具,所述灯具上设置有运动检测传感器和微控制单元MCU,且所述MCU用于执行本发明第一方面公开的任意一种基于运动状态识别的光效控制方法中的部分或全部步骤。A second aspect of the present invention discloses a lamp, the lamp is provided with a motion detection sensor and a micro-control unit MCU, and the MCU is used to execute any light effect based on motion state recognition disclosed in the first aspect of the present invention Some or all of the steps in the control method.
本发明第三方面公开了一种基于运动状态识别的光效控制装置,所述装置应用于设置有运动检测传感器的灯具中,所述装置包括:A third aspect of the present invention discloses a light effect control device based on motion state recognition. The device is applied to a lamp provided with a motion detection sensor, and the device includes:
参数获取模块,用于在所述灯具的当前晃动控制模式下获取所述运动检测传感器采集到的当前运动参数;a parameter acquisition module, configured to acquire the current motion parameters collected by the motion detection sensor in the current shaking control mode of the lamp;
参数判断模块,用于判断所述当前运动参数是否与针对所述当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配;a parameter judgment module, configured to judge whether the current motion parameter matches the motion parameter in the motion parameter set preset for the current shaking control mode;
指令生成模块,用于当所述参数判断模块判断出所述当前运动参数与所述运动参数集合中的运动参数相匹配时,生成在所述当前晃动控制模式下与所述当前运动参数相匹配的光效控制指令;An instruction generation module, configured to generate an instruction generation module that matches the current movement parameter in the current shaking control mode when the parameter judgment module determines that the current movement parameter matches the movement parameter in the movement parameter set The light effect control instructions;
指令执行模块,用于在所述当前晃动控制模式下执行与所述光效控制指令相匹配的光效控制操作。An instruction execution module, configured to execute a light effect control operation matching the light effect control instruction in the current shaking control mode.
作为一种可选的实施方式,在本发明第三方面中,所述指令生成模块生成在所述当前晃动控制模式下与所述当前运动参数相匹配的光效控制指令的具体方式包括:As an optional implementation manner, in the third aspect of the present invention, a specific manner in which the instruction generation module generates a light effect control instruction that matches the current motion parameter in the current shaking control mode includes:
确定与所述当前晃动控制模式绑定的光效参数类型;determining the type of light effect parameter bound to the current shaking control mode;
根据所述当前运动参数,生成在所述当前晃动控制模式下与所述当前运动参数相匹配且用于调整目标光效参数的光效控制指令,所述目标光效参数包括所述光效参数类型所对应的光效参数;According to the current motion parameters, a light effect control instruction that matches the current motion parameters in the current shaking control mode and is used to adjust target light effect parameters is generated, where the target light effect parameters include the light effect parameters The light effect parameters corresponding to the type;
以及,所述装置还包括模式启动模块,其中:And, the device also includes a mode start module, wherein:
所述参数判断模块,还用于基于所述运动检测传感器采集到的第一运动参数判断所述灯具是否满足晃动控制模式启动条件;The parameter judgment module is further configured to judge whether the lamp meets the start condition of the shaking control mode based on the first motion parameter collected by the motion detection sensor;
所述模式启动模块,用于当所述参数判断模块基于所述第一运动参数判断出所述灯具满足所述晃动控制模式启动条件时,确定待启动的目标晃动控制模式,启动所述目标晃动控制模式作为所述灯具的当前晃动控制模式,并触发所述参数获取模块执行所述的在所述灯具的当前晃动控制模式下获取所述运动检测传感器采集到的当前运动参数的操作。The mode start module is configured to determine the target shake control mode to be started, and start the target shake when the parameter judgment module judges that the lamp meets the shake control mode start condition based on the first motion parameter The control mode is used as the current shaking control mode of the lamp, and the parameter acquisition module is triggered to perform the operation of obtaining the current motion parameters collected by the motion detection sensor in the current shaking control mode of the lamp.
作为一种可选的实施方式,在本发明第三方面中,所述装置还包括:As an optional implementation manner, in the third aspect of the present invention, the device further includes:
切换检测模块,用于检测是否接收到光效切换指令;A switching detection module is used to detect whether a light effect switching command is received;
所述参数获取模块,还用于当所述切换检测模块接收到所述光效切换指令时,获取所述运动检测传感器采集到的第二运动参数;The parameter acquisition module is further configured to acquire the second motion parameter collected by the motion detection sensor when the switching detection module receives the light effect switching instruction;
切换判断模块,用于根据所述第二运动参数判断所述灯具的运动状态是否满足光效切换条件;a switching judgment module, configured to judge whether the motion state of the lamp satisfies the light effect switching condition according to the second motion parameter;
光效切换模块,用于当所述切换判断模块判断出所述灯具的运动状态满足所述光效切换条件时,将所述灯具的当前光效切换为确定出的目标光效;a light effect switching module, configured to switch the current light effect of the lamp to the determined target light effect when the switch judgment module determines that the motion state of the lamp satisfies the light effect switching condition;
其中,所述指令生成模块确定与所述当前晃动控制模式绑定的光效参数类型的具体方式包括:Wherein, the specific manner in which the instruction generation module determines the type of light effect parameter bound to the current shaking control mode includes:
确定所述灯具的当前光效的光效类型;determining the light effect type of the current light effect of the luminaire;
获取在所述当前晃动控制模式下与所述光效类型绑定的光效参数类型,或者,获取在所述光效类型下与所述当前晃动控制模式绑定的光效参数类型。Obtain the light effect parameter type bound to the light effect type in the current shake control mode, or obtain the light effect parameter type bound to the current shake control mode under the light effect type.
作为一种可选的实施方式,在本发明第三方面中,所述切换判断模块,包括:As an optional implementation manner, in the third aspect of the present invention, the handover judgment module includes:
翻转判断子模块,用于根据所述第二运动参数判断所述灯具的运动状态是否表示所述灯具执行了翻转操作;a flip judging submodule, configured to judge whether the motion state of the lamp indicates that the lamp has performed a flip operation according to the second motion parameter;
切换确定子模块,用于当所述翻转判断子模块判断出所述灯具执行了所述翻转操作时,确定所述灯具的运动状态满足光效切换条件;a switching determination sub-module, configured to determine that the motion state of the lamp satisfies the light effect switching condition when the flip determination sub-module determines that the lamp has performed the flip operation;
其中,所述切换判断模块,还包括:Wherein, the handover judgment module further includes:
姿态确定子模块,用于确定所述灯具在执行所述翻转操作之前的第一灯具姿态以及所述灯具在执行所述翻转操作之后的第二灯具姿态;an attitude determination submodule, configured to determine a first lamp attitude of the lamp before performing the flip operation and a second lamp attitude of the lamp after the flip operation is performed;
方向判断子模块,用于根据所述第一灯具姿态与所述第二灯具姿态,判断在执行所述翻转操作之后所述灯具的目标端在确定出的第一目标方向上的映射位置相较于确定出的基准位置的位置向量是否发生方向翻转,当判断出在执行所述翻转操作之后所述灯具的目标端在确定出的所述第一目标方向上的映射位置相较于确定出的所述基准位置的位置向量发生方向翻转时,触发所述切换确定子模块执行所述的确定所述灯具的运动状态满足光效切换条件的操作。A direction judging sub-module for judging, according to the posture of the first fixture and the posture of the second fixture, the comparison of the mapping position of the target end of the fixture in the determined first target direction after the flipping operation is performed Whether the direction of the position vector of the determined reference position is reversed, when it is determined that the mapping position of the target end of the lamp in the determined first target direction after the inversion operation is performed is compared with the determined one. When the direction of the position vector of the reference position is reversed, the switching determination sub-module is triggered to perform the operation of determining that the motion state of the lamp satisfies the light effect switching condition.
作为一种可选的实施方式,在本发明第三方面中,所述指令生成模块,具体用于:As an optional implementation manner, in the third aspect of the present invention, the instruction generation module is specifically used for:
当所述当前晃动控制模式为第一晃动控制模式时,根据所述当前运动参数计算所述灯具的晃动幅度,确定所述灯具的晃动幅度所处的目标晃动幅度范围,根据预设的晃动幅度范围与光效参数值的对应关系获取所述目标晃动幅度范围对应的第一光效参数值,并生成用于将目标光效参数的光效参数值调整至所述第一光效参数值的光效控制指令;When the current shaking control mode is the first shaking control mode, the shaking amplitude of the lamp is calculated according to the current motion parameter, the target shaking amplitude range in which the shaking amplitude of the lamp is located is determined, and the shaking amplitude is determined according to the preset shaking amplitude. Correspondence between the range and the light effect parameter value Obtain the first light effect parameter value corresponding to the target shaking amplitude range, and generate a value for adjusting the light effect parameter value of the target light effect parameter to the first light effect parameter value. Light effect control instructions;
当所述当前晃动控制模式为第二晃动控制模式时,根据所述当前运动参数识别所述灯具的当前晃动姿态,根据所述当前晃动姿态计算目标光效参数所对应的调整时刻以及所述目标光效参数在所述调整时刻需要调整至的第二光效参数值,并生成用于将所述目标光效参数的光效参数值调整至所述第二光效参数值的光效控制指令;其中,所述第二光效参数值为所述目标光效参数对应的光效参数值序列中的初始光效参数值或者为所述目标光效参数对应的光效参数值序列中与在所述调整时刻之前的所述目标光效参数的历史最新光效参数值相邻的在后光效参数值。When the current shaking control mode is the second shaking control mode, the current shaking posture of the lamp is identified according to the current motion parameters, and the adjustment time corresponding to the target light effect parameter and the target are calculated according to the current shaking posture The second light effect parameter value to which the light effect parameter needs to be adjusted at the adjustment moment, and a light effect control instruction for adjusting the light effect parameter value of the target light effect parameter to the second light effect parameter value is generated ; wherein, the second light effect parameter value is the initial light effect parameter value in the light effect parameter value sequence corresponding to the target light effect parameter or the light effect parameter value sequence corresponding to the target light effect parameter. A subsequent light effect parameter value adjacent to the latest historical light effect parameter value of the target light effect parameter before the adjustment time.
作为一种可选的实施方式,在本发明第三方面中,所述装置还包括:As an optional implementation manner, in the third aspect of the present invention, the device further includes:
因子采集模块,用于采集所述灯具对应的用途识别因子,所述用途识别因子用于识别所述灯具当前的光效控制用途,且所述用途识别因子包括所述灯具所在当前环境的环境参数因子、所述灯具的倾斜角度因子、所述灯具的手握端在第二目标方向上的朝向分量以及所述灯具的倾斜方向因子中的至少一种;The factor collection module is used to collect the use identification factor corresponding to the lamp, the use identification factor is used to identify the current light effect control use of the lamp, and the use identification factor includes the environmental parameters of the current environment where the lamp is located at least one of a factor, an inclination angle factor of the lamp, an orientation component of the grip end of the lamp in the second target direction, and an inclination direction factor of the lamp;
用途识别模块,用于将采集到的所述用途识别因子输入预先确定出的用途识别模型,得到所述用途识别模型的识别结果;以及,根据所述识别结果识别所述灯具当前的光效控制用途;an application identification module, configured to input the collected application identification factor into a predetermined application identification model to obtain an identification result of the application identification model; and, according to the identification result, identify the current light effect control of the lamp use;
辅助判断模块,用于根据所述灯具当前的光效控制用途,判断当前场景中是否存在需要与所述灯具进行关联控制的其它辅助灯具;an auxiliary judging module for judging whether there are other auxiliary lamps in the current scene that need to be controlled in association with the lamps according to the current light effect control purpose of the lamps;
关联控制模块,用于当判断出存在所述其它辅助灯具时,根据执行与所述光效控制指令相匹配的光效控制操作得到的操作结果,生成所述其它辅助灯具的灯具控制指令,并将所述灯具控制指令发送至所述其它辅助灯具对应的控制装置,以触发所述其它辅助灯具的控制装置控制所述其它辅助灯具执行与所述灯具控制指令相匹配的操作。The associated control module is configured to, when it is determined that the other auxiliary lamps exist, generate lamp control instructions of the other auxiliary lamps according to the operation results obtained by executing the light effect control operation matching the light effect control instructions, and The lamp control instruction is sent to the control device corresponding to the other auxiliary lamp, so as to trigger the control device of the other auxiliary lamp to control the other auxiliary lamp to perform an operation matching the lamp control instruction.
作为一种可选的实施方式,在本发明第三方面中,所述环境参数因子包括音乐因子;As an optional implementation manner, in the third aspect of the present invention, the environmental parameter factor includes a music factor;
所述装置还包括:The device also includes:
音乐判断模块,用于当所述用途识别因子包括所述环境参数因子时,识别当前环境中与所述灯具当前的光效控制用途对应的辅助音乐,根据采集到的所述辅助音乐的实时播放进度以及预先确定出所述辅助音乐的节奏点,确定所述光效控制指令的执行时刻;判断实时时刻是否到达所述执行时刻,当判断结果为是时,触发所述指令执行模块执行所述的在所述当前晃动控制模式下执行与所述光效控制指令相匹配的光效控制操作。The music judgment module is used to identify the auxiliary music in the current environment corresponding to the current light effect control use of the lamp when the use identification factor includes the environmental parameter factor, and play the auxiliary music in real time according to the collected auxiliary music. progress and predetermine the rhythm point of the auxiliary music, determine the execution time of the light effect control instruction; judge whether the real-time time reaches the execution time, when the judgment result is yes, trigger the instruction execution module to execute the The light effect control operation matched with the light effect control instruction is executed in the current shaking control mode.
本发明第四方面公开了另一种基于运动状态识别的光效控制装置,所述装置应用于设置有运动检测传感器的灯具中,所述装置包括:A fourth aspect of the present invention discloses another light effect control device based on motion state recognition. The device is applied to a lamp provided with a motion detection sensor, and the device includes:
存储有可执行程序代码的存储器;a memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面任一所述的基于充电设备的配对实现方法中的部分或全部步骤。The processor invokes the executable program code stored in the memory to execute part or all of the steps in the method for implementing pairing based on a charging device according to any one of the first aspects of the present invention.
本发明第五方面公开了一种计算机存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面公开的任意一种基于运动状态识别的光效控制方法中的部分或全部步骤。A fifth aspect of the present invention discloses a computer storage medium. The computer storage medium stores computer instructions, and when the computer instructions are invoked, they are used to execute any motion state recognition-based optical system disclosed in the first aspect of the present invention. Some or all of the steps in the effective control method.
与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:
本发明能够通过对灯具运动参数的识别实现对灯具光效的智能化控制,丰富了灯具光效的智能化控制方式,有利于提高使用者对灯具的使用体验,进而有利于提高灯具的用户粘性;The invention can realize the intelligent control of the light effect of the lamp by recognizing the motion parameters of the lamp, enrich the intelligent control mode of the light effect of the lamp, and is beneficial to improve the user's experience of using the lamp, thereby improving the user stickiness of the lamp ;
此外,还能够为不同的晃动控制模式绑定不同的光效参数类型,以在不同的晃动控制模式下有针对性的实现对光效参数的调整,有利于提高光效参数的调整效率及调整准确性,进而有利于提高灯具光效的智能化控制效率及控制准确性,还能够有利于增加灯具光效控制的交互趣味性;此外,还能够通过灯具运动参数的采集与判断,实现相应晃动控制模式的启动或切换,有利于提高晃动控制模式启动或切换的便捷性,还能够有利于增加晃动控制模式启动或切换的交互趣味性;In addition, it is also possible to bind different light effect parameter types for different shaking control modes, so as to realize targeted adjustment of light effect parameters under different shaking control modes, which is beneficial to improve the adjustment efficiency and adjustment of light effect parameters. Accuracy, which is conducive to improving the intelligent control efficiency and control accuracy of the light effect of the lamps, and can also help to increase the interactive fun of the light effect control of the lamps; in addition, it can also collect and judge the motion parameters of the lamps to achieve the corresponding shaking. The activation or switching of the control mode is beneficial to improve the convenience of the activation or switching of the shaking control mode, and can also help to increase the interactive fun of the activation or switching of the shaking control mode;
此外,还能够在检测到光效切换指令时通过灯具运动参数的采集与判断实现对灯具光效的切换,提高了光效切换的便捷性与效率,还能够有利于提高光效切换的交互趣味性;进一步的,还能够在根据灯具运动参数判断出灯具执行了翻转操作时确定灯具满足光效切换条件,提高了光效切换的便捷性;又进一步的,在根据翻转操作实现光效切换时还能够根据灯具翻转前后的姿态变化对灯具的翻转有效性进行智能化识别,在识别出灯具进行了有效翻转之后再进行光效切换,有利于减少误切换光效的情况发生,提高了光效切换的准确性;In addition, when the light effect switching command is detected, the light effect switching of the lamps can be realized by collecting and judging the motion parameters of the lamps, which improves the convenience and efficiency of light effect switching, and also helps to improve the interactive fun of light effect switching. further, it can be determined that the lamp satisfies the light effect switching condition when it is judged that the lamp has performed the flip operation according to the motion parameters of the lamp, which improves the convenience of light effect switching; further, when the light effect switching is realized according to the flip operation It can also intelligently identify the flip effectiveness of the lamps according to the posture changes before and after the lamps are flipped, and then perform light effect switching after identifying the lamps have been effectively flipped, which is conducive to reducing the occurrence of incorrect switching of light effects and improving the light efficiency. accuracy of switching;
此外,在确定与晃动控制模式绑定的光效参数类型时,还能够结合灯具光效进行确定,有利于进一步提高针对不同光效下不同光效参数的控制精准性;In addition, when determining the type of light effect parameter bound to the shaking control mode, it can also be determined in combination with the light effect of the lamp, which is beneficial to further improve the control accuracy of different light effect parameters under different light effects;
此外,还能够提供两种智能化的晃动控制模式,不仅能够实现光效参数值的有序切换,还能够实现光效参数值的智能化匹配,丰富了光效参数值的确定方式,进而有利于实现灯具光效的智能化控制;In addition, it can also provide two intelligent shaking control modes, which can not only realize the orderly switching of the light effect parameter values, but also realize the intelligent matching of the light effect parameter values, which enriches the way of determining the light effect parameter values. It is beneficial to realize the intelligent control of light efficiency of lamps and lanterns;
此外,在实现对灯具光效进行智能化控制时,还能够根据采集到的用途识别因子并进一步结合预先确定出的用户识别模型,智能化识别灯具当前的光效控制用途,进一步拓展了灯具的智能化功能,且还能够根据灯具当前的光效控制用途实现对辅助灯具的智能化联动控制,不仅能够提高光效控制结果与使用者光效控制需求的匹配度,还能够有利于提高辅助灯具的控制效率及控制准确性;进一步的,还能够结合灯具当前的光效控制用途对应的辅助音乐的节奏点实现对灯具光效的卡点控制,进一步拓展了灯具光效的智能化控制功能,有利于进一步提高使用者针对灯具的使用体验。In addition, when intelligently controlling the light effect of the lamps, it can also intelligently identify the current light effect control purposes of the lamps according to the collected use identification factors and further combined with the pre-determined user identification model, which further expands the use of lamps and lanterns. Intelligent function, and can also realize intelligent linkage control of auxiliary lamps according to the current light effect control purpose of lamps, which can not only improve the matching degree of light effect control results with users' light effect control needs, but also help to improve the auxiliary lamps and lanterns. control efficiency and control accuracy; further, it can also combine the rhythm point of auxiliary music corresponding to the current light effect control purpose of the lamp to realize the card point control of the light effect of the lamp, and further expand the intelligent control function of the light effect of the lamp, It is beneficial to further improve the user's experience of using the lamp.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例公开的一种基于运动状态识别的光效控制方法的流程示意图;1 is a schematic flowchart of a light effect control method based on motion state recognition disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种基于运动状态识别的光效控制方法的流程示意图;2 is a schematic flowchart of another light effect control method based on motion state recognition disclosed in an embodiment of the present invention;
图3是本发明实施例公开的一种基于运动状态识别的光效控制装置的结构示意图;3 is a schematic structural diagram of a light effect control device based on motion state recognition disclosed in an embodiment of the present invention;
图4是本发明实施例公开的另一种基于运动状态识别的光效控制装置的结构示意图;4 is a schematic structural diagram of another light effect control device based on motion state recognition disclosed in an embodiment of the present invention;
图5是本发明实施例公开的又一种基于运动状态识别的光效控制装置的结构示意图;5 is a schematic structural diagram of another light effect control device based on motion state recognition disclosed in an embodiment of the present invention;
图6是本发明实施例公开的一种灯具的结构示意图;6 is a schematic structural diagram of a lamp disclosed in an embodiment of the present invention;
图7是本发明实施例公开的另一种灯具的结构示意图。FIG. 7 is a schematic structural diagram of another lamp disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或端没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或端固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or process comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or ends.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本发明公开了一种基于运动状态识别的光效控制方法及装置、灯具,能够通过对灯具运动参数的识别实现对灯具光效的智能化控制,丰富了灯具光效的智能化控制方式,有利于提高使用者对灯具的使用体验,进而有利于提高灯具的用户粘性。以下分别进行详细说明。The invention discloses a light effect control method and device based on motion state recognition, and a lamp, which can realize intelligent control of the light effect of the lamp by recognizing the motion parameters of the lamp, enriches the intelligent control mode of the light effect of the lamp, and has the advantages of: It is beneficial to improve the user's experience of using the lamp, and further helps to improve the user stickiness of the lamp. Each of them will be described in detail below.
实施例一Example 1
请参阅图1,图1是本发明实施例公开的一种基于运动状态识别的光效控制方法的流程示意图。其中,图1所描述的方法可以应用于光效控制装置中,该光效控制装置可以集成在设置有运动检测传感器的灯具中,如微控制单元MCU,该灯具的结构形态可以如图6所示,也可以如图7所示,本发明实施例对于灯具的具体尺寸、具体结构形态等不做限定。如图1所示,该基于运动状态识别的光效控制方法可以包括如下操作:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a light effect control method based on motion state recognition disclosed in an embodiment of the present invention. Among them, the method described in FIG. 1 can be applied to a light effect control device, and the light effect control device can be integrated in a lamp provided with a motion detection sensor, such as a microcontroller unit MCU, and the structure of the lamp can be as shown in FIG. 6 . As shown in FIG. 7 , the embodiment of the present invention does not limit the specific size, specific structure, and the like of the lamp. As shown in Figure 1, the light effect control method based on motion state recognition may include the following operations:
101、在灯具的当前晃动控制模式下获取运动检测传感器采集到的当前运动参数。101. Acquire the current motion parameters collected by the motion detection sensor in the current shaking control mode of the lamp.
本发明实施例中,灯具上的运动检测传感器可以包括能够采集灯具的运动参数的一种或多种传感器,例如三轴加速度计、三轴陀螺仪等,本发明实施例不做限定。可选的,灯具上的运动检测传感器可以设置在灯具上与其它部件不冲突的任意位置。优选的,当灯具为便携式手持灯棒时,灯具上的运动检测传感器可以靠近远离灯具的手持端的另一端进行设置,这样有利于提高在某些特定的晃动状态下基于运动检测传感器检测灯具被晃动的检测灵敏度。In the embodiment of the present invention, the motion detection sensor on the lamp may include one or more sensors capable of collecting motion parameters of the lamp, such as a three-axis accelerometer, a three-axis gyroscope, etc., which are not limited in the embodiment of the present invention. Optionally, the motion detection sensor on the light fixture can be set at any position on the light fixture that does not conflict with other components. Preferably, when the light fixture is a portable handheld light stick, the motion detection sensor on the light fixture can be set close to the other end of the hand-held end away from the light fixture, which is beneficial to improve the detection of the light fixture being shaken based on the motion detection sensor under certain shaking conditions. detection sensitivity.
可选的,采集到的当前运动参数可以具体为灯具的运动方向、灯具的运动加速度、灯具的运动位移、灯具的运动距离、倾斜角度等中的一种或多种的组合,本发明实施例不做限定。又进一步可选的,采集到的当前运动参数可以具体包括在某一确定出的时间段(如5秒或10秒等)内持续采集到的所有运动参数,且在确定出的时间段内持续采集到的所有运动参数可以用于识别灯具的运动姿态或运动类型。Optionally, the collected current motion parameters may specifically be a combination of one or more of the motion direction of the lamp, the motion acceleration of the lamp, the motion displacement of the lamp, the motion distance of the lamp, the tilt angle, etc., the embodiment of the present invention. Not limited. Still further optionally, the collected current motion parameters may specifically include all motion parameters that are continuously collected within a certain determined time period (such as 5 seconds or 10 seconds, etc.), and continue within the determined time period. All the collected motion parameters can be used to identify the motion posture or motion type of the luminaire.
本发明实施例中,只有当灯具处于晃动控制模式下时,灯具上的运动检测传感器才启动或者才采集灯具的运动参数。可选的,灯具在打开时,可以自动启动某种晃动控制模式,也可以在打开之后检测到灯具处于被握持状态时自动启动某种晃动控制模式,且自动启动的某种晃动控制模式可以是默认的晃动控制模式,也可以是随机的晃动控制模式,还可以是基于灯具上次关闭之前的晃动控制模式确定出的,本发明实施例不做限定。进一步的,在灯具使用过程中,也可以根据实际需求进行晃动控制模式的切换,且灯具的晃动控制模式可以用于实现对灯具光效的智能化调整。In this embodiment of the present invention, only when the light fixture is in the shaking control mode, the motion detection sensor on the light fixture is activated or the motion parameters of the light fixture are collected. Optionally, when the lamp is turned on, it can automatically start a certain shaking control mode, or it can automatically start a certain shaking control mode when it is detected that the lamp is held after turning on, and a certain shaking control mode that is automatically started can be It is a default shaking control mode, or a random shaking control mode, or it can be determined based on the shaking control mode before the lamp was turned off last time, which is not limited in the embodiment of the present invention. Further, during the use of the lamp, the shaking control mode can also be switched according to actual needs, and the shaking control mode of the lamp can be used to realize intelligent adjustment of the light effect of the lamp.
本发明实施例中,在执行步骤101之前,该方法还可以包括以下操作:In this embodiment of the present invention, before performing
当基于灯具上的运动检测传感器检测到灯具被晃动时,基于灯具上的运动检测传感器采集到的初始运动参数确定灯具的晃动幅度,并在判断出晃动幅度大于等于晃动幅度阈值时,再触发执行步骤101。这样在检测到灯具被晃动且晃动幅度大于等于晃动幅度阈值时再进行当前晃动控制模式下的光效控制操作,有利于减少因误晃动灯具而导致的不必要的光效控制操作,进而有利于提高光效控制操作的准确性与可靠性。When the motion detection sensor on the lamp detects that the lamp is shaken, the shaking amplitude of the lamp is determined based on the initial motion parameters collected by the motion detection sensor on the lamp, and when it is determined that the shaking amplitude is greater than or equal to the shaking amplitude threshold, the execution is triggered again.
102、判断获取到的当前运动参数是否与针对当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配,当步骤102的判断结果为是时,可以触发执行步骤103;当步骤102的判断结果为否时,可以结束本次流程。102. Determine whether the acquired current motion parameters match the motion parameters in the motion parameter set preset for the current shaking control mode. When the judgment result of
本发明实施例中,使用者可以预先设定不同的晃动控制模式,并可以进一步针对不同的晃动控制模式设定不同的运动参数集合,针对每个晃动控制模式设定的运动参数集合用于实现该晃动控制模式下的光效控制。具体的,当判断出获取到的当前运动参数与预先设定的运动集合中的运动参数相匹配时,确定使用者预想通过晃动灯具实现对灯具光效的控制,或者,确定使用者针对灯具具有光效的控制需求。In this embodiment of the present invention, the user can preset different shaking control modes, and can further set different motion parameter sets for different shaking control modes, and the motion parameter sets set for each shaking control mode are used to realize Light effect control in this shaking control mode. Specifically, when it is determined that the acquired current motion parameters match the motion parameters in the preset motion set, it is determined that the user expects to control the light efficiency of the lamps by shaking the lamps, or it is determined that the user has the ability to control the light efficiency of the lamps by shaking the lamps. Light control requirements.
103、当判断出获取到的当前运动参数与针对当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配时,生成在当前晃动控制模式下与当前运动参数相匹配的光效控制指令。103. When it is determined that the acquired current motion parameters match the motion parameters in the motion parameter set preset for the current shaking control mode, generate a light effect control instruction that matches the current motion parameters in the current shaking control mode .
104、在当前晃动控制模式下执行与光效控制指令相匹配的光效控制操作。104. Execute a light effect control operation matching the light effect control instruction in the current shaking control mode.
可选的,灯具上可以设置有显示屏,通过显示屏可以显示灯具的当前晃动控制模式、光效控制确认提示、光效控制指令的指令内容等中的一种或多种的组合。此外,对于灯具的晃动控制模式的启动或关闭,可以通过灯具的显示屏显示的晃动控制设置功能进行设置并可以进一步实现晃动控制模式的切换或选择,或者,也可以通过手机上安装的用于对灯具进行设置的APP或者小程序实现晃动控制模式的启动或关闭,以及进一步实现晃动控制模式的切换或选择。Optionally, a display screen may be provided on the lamp, and the display screen may display one or a combination of one or more of the current shaking control mode of the lamp, the confirmation prompt of light effect control, and the instruction content of the light effect control instruction. In addition, the start or close of the shaking control mode of the lamp can be set through the shaking control setting function displayed on the display screen of the lamp, and the switching or selection of the shaking control mode can be further realized. The APP or applet for setting the lamps realizes the startup or shutdown of the shaking control mode, and further realizes the switching or selection of the shaking control mode.
可见,实施本发明实施例所描述的方法能够通过对灯具运动参数的识别实现对灯具光效的智能化控制,拓展了灯具的智能化功能,丰富了灯具光效的智能化控制方式,有利于提高使用者对灯具的使用体验,进而有利于提高灯具的用户粘性。It can be seen that the implementation of the method described in the embodiments of the present invention can realize the intelligent control of the light effect of the lamp by identifying the motion parameters of the lamp, expand the intelligent function of the lamp, and enrich the intelligent control method of the light effect of the lamp, which is beneficial to The user's experience of using the lamp is improved, thereby helping to improve the user stickiness of the lamp.
在一个可选的实施例中,上述的生成在当前晃动控制模式下与当前运动参数相匹配的光效控制指令,可以包括:In an optional embodiment, the above-mentioned generation of light effect control instructions that match the current motion parameters in the current shaking control mode may include:
确定与当前晃动控制模式绑定的光效参数类型;Determine the type of light effect parameter bound to the current shaking control mode;
根据当前运动参数,生成在当前晃动控制模式下与当前运动参数相匹配且用于调整目标光效参数的光效控制指令,其中,该目标光效参数包括光效参数类型所对应的光效参数。According to the current motion parameters, a light effect control instruction that matches the current motion parameters in the current shaking control mode and is used to adjust the target light effect parameter is generated, wherein the target light effect parameter includes the light effect parameter corresponding to the light effect parameter type. .
在该可选的实施例中,灯具可以具有多种晃动控制模式,一种晃动控制模式可以实现对一种光效参数类型所对应的光效参数的控制,也可以实现对多种光效参数类型所对应的光效参数的控制,也可以实现对一种光效下的一种或多种光效参数类型所对应的光效参数的控制,还可以实现对多种光效下的一种或多种光效参数类型所对应的光效参数的控制,本发明实施例不做限定,这样能够实现多样化的晃动控制方式。可选的,不同的晃动控制模式可以绑定同一光效下的同一光效参数类型或者不同光效下的同一光效参数类型,区别在于:不同的晃动控制模式对应不同的光效控制方式。In this optional embodiment, the lamp can have multiple shaking control modes, and one shaking control mode can realize the control of the light effect parameters corresponding to one light effect parameter type, and can also realize the control of various light effect parameters. The control of the light effect parameters corresponding to the type can also realize the control of the light effect parameters corresponding to one or more light effect parameter types under one light effect. The control of light effect parameters corresponding to multiple light effect parameter types is not limited in the embodiment of the present invention, so that various shaking control methods can be implemented. Optionally, different shaking control modes can be bound to the same light effect parameter type under the same light effect or the same light effect parameter type under different light effects. The difference is that different shaking control modes correspond to different light effect control methods.
可选的,与当前晃动控制模式绑定的光效参数类型可以是运动速度类型、运动方向类型、运动状态类型、灯珠数量类型、发光颜色类型、色温类型、亮度类型等中的一种或多种的组合,且不同的光效参数类型对应不同的光效参数,本发明实施例不做限定。Optionally, the light effect parameter type bound to the current shaking control mode can be one of motion speed type, motion direction type, motion state type, lamp number type, luminous color type, color temperature type, brightness type, etc. or Various combinations, and different light effect parameter types correspond to different light effect parameters, which are not limited in the embodiment of the present invention.
可见,该可选的实施例还能够为不同的晃动控制模式绑定不同的光效参数类型,以在不同的晃动控制模式下有针对性的实现对光效参数的调整,有利于提高光效参数的调整效率及调整准确性,进而有利于提高灯具光效的智能化控制效率及控制准确性,还能够有利于增加灯具光效控制的交互趣味性。It can be seen that this optional embodiment can also bind different light effect parameter types for different shaking control modes, so as to realize targeted adjustment of light effect parameters under different shaking control modes, which is beneficial to improve light effect The adjustment efficiency and adjustment accuracy of the parameters are beneficial to improve the intelligent control efficiency and control accuracy of the light effect of the lamps, and also help to increase the interactive fun of the light effect control of the lamps.
在另一个可选的实施例中,在执行步骤101之前,该方法还可以包括以下操作:In another optional embodiment, before performing
基于灯具上的运动检测传感器采集到的第一运动参数判断灯具是否满足晃动控制模式启动条件;Determine whether the lamp satisfies the start condition of the shaking control mode based on the first motion parameter collected by the motion detection sensor on the lamp;
当基于第一运动参数判断出灯具满足晃动控制模式启动条件时,确定待启动的目标晃动控制模式,启动目标晃动控制模式作为灯具的当前晃动控制模式,并触发执行上述的在灯具的当前晃动控制模式下获取运动检测传感器采集到的当前运动参数的步骤。When it is determined based on the first motion parameter that the lamp satisfies the shaking control mode activation condition, the target shaking control mode to be activated is determined, the target shaking control mode is activated as the current shaking control mode of the lamp, and the execution of the above-mentioned current shaking control on the lamp is triggered. The steps of obtaining the current motion parameters collected by the motion detection sensor in the mode.
在该可选的实施例中,需要说明的是,若灯具之前未启动任何晃动控制模式,则在确定出待启动的晃动控制模式之后直接进行晃动控制模式的启动,以实现晃动模式的自动启动;若灯具之前已启动了某一晃动控制模式,则在确定出待启动的晃动控制模式之后,启动确定出的晃动控制模式具体是将灯具的当前晃动控制模式切换为确定出的晃动控制模式,以实现晃动控制模式之间的智能化切换。In this optional embodiment, it should be noted that if the lamp has not activated any shaking control mode before, the shaking control mode will be started directly after the shaking control mode to be activated is determined, so as to realize the automatic startup of the shaking mode. ; If a certain shaking control mode has been activated before the lamp, after determining the shaking control mode to be activated, starting the determined shaking control mode specifically switches the current shaking control mode of the lamp to the determined shaking control mode. To achieve intelligent switching between shaking control modes.
可见,该可选的实施例还能够通过灯具运动参数的采集与判断,实现相应晃动控制模式的启动或切换,有利于提高晃动控制模式启动或切换的便捷性,还能够有利于增加晃动控制模式启动或切换的交互趣味性。It can be seen that this optional embodiment can also realize the activation or switching of the corresponding shaking control mode by collecting and judging the motion parameters of the lamps, which is beneficial to improve the convenience of starting or switching the shaking control mode, and can also help to increase the shaking control mode. Interactive fun to start or toggle.
在又一个可选的实施例中,该方法还可以包括以下操作:In yet another optional embodiment, the method may further include the following operations:
检测是否接收到光效切换指令;Detect whether the light effect switching command is received;
当接收到光效切换指令时,获取运动检测传感器采集到的第二运动参数;When receiving the light effect switching instruction, acquire the second motion parameter collected by the motion detection sensor;
根据第二运动参数判断灯具的运动状态是否满足光效切换条件;Judging whether the motion state of the lamp satisfies the light effect switching condition according to the second motion parameter;
当判断出灯具的运动状态满足光效切换条件时,将灯具的当前光效切换为确定出的目标光效。When it is determined that the motion state of the lamp satisfies the light effect switching condition, the current light effect of the lamp is switched to the determined target light effect.
在该可选的实施例中,光效切换指令可以是使用者通过与灯具绑定的用户终端触发的,也可以是使用者通过灯具的显示屏触发的,还可以是使用者通过灯具上用于切换光效的快捷按钮触发的,本发明实施例不做限定。In this optional embodiment, the light effect switching instruction may be triggered by the user through a user terminal bound to the lamp, or triggered by the user through the display screen of the lamp, or may be triggered by the user through the user terminal on the lamp. It is triggered by a shortcut button for switching light effects, which is not limited in this embodiment of the present invention.
可选的,灯具上的显示屏可以显示灯具的当前光效对应的光效标识,还可以进一步显示可供切换的其它光效对应的光效标识、需要切换至的目标光效的光效标识、光效对应的效果展示、进行光效切换后的光效切换结果中的至少一种,本发明实施例不做限定。Optionally, the display screen on the lamp can display the light effect logo corresponding to the current light effect of the lamp, and can further display the light effect logo corresponding to other light effects that can be switched, and the light effect logo of the target light effect that needs to be switched to. At least one of the effect display corresponding to the light effect, and the light effect switching result after the light effect switching is performed, which is not limited in the embodiment of the present invention.
可选的,确定出的目标光效可以是根据上述第二运动参数确定出的,也可以是根据光效序列中光效顺序确定出的,还可以是根据第二运动参数以及光效序列中光效顺序共同确定出的,本发明实施例不做限定。Optionally, the determined target light effect may be determined according to the above-mentioned second motion parameter, or may be determined according to the light effect order in the light effect sequence, or may be determined according to the second motion parameter and the light effect sequence. The light effect sequence is determined jointly, which is not limited in this embodiment of the present invention.
可见,该可选的实施例还能够在检测到光效切换指令时通过灯具运动参数的采集与判断实现对灯具光效的切换,提高了光效切换的便捷性与效率,还能够有利于提高光效切换的交互趣味性。It can be seen that this optional embodiment can also realize the switching of the lighting effects of the lamps by collecting and judging the motion parameters of the lamps when the lighting effect switching instruction is detected, which improves the convenience and efficiency of the switching of lighting effects, and is also conducive to improving the The interactive fun of light effect switching.
在该可选的实施例中,进一步可选的,上述的确定与当前晃动控制模式绑定的光效参数类型,可以包括:In this optional embodiment, further optional, the above-mentioned determination of the light effect parameter type bound to the current shaking control mode may include:
确定灯具的当前光效的光效类型;Determine the light effect type of the current light effect of the luminaire;
获取在当前晃动控制模式下与当前光效的光效类型绑定的光效参数类型,或者,获取在当前光效的光效类型下与当前晃动控制模式绑定的光效参数类型。Get the light effect parameter type bound to the light effect type of the current light effect in the current shake control mode, or get the light effect parameter type bound to the current shake control mode under the light effect type of the current light effect.
可选的,灯具的当前光效可以是“RGB”光效、“脉搏”光效、“派对”光效、“烟花”光效、“彩虹”光效、“单色移动”光效以及自定义光效中的其中一种,且不同的光效可以对应不同的光效参数类型集合,本发明实施例不做限定。Optionally, the current light effect of the fixture can be "RGB" light effect, "Pulse" light effect, "Party" light effect, "Firework" light effect, "Rainbow" light effect, "Monochromatic movement" light effect, and automatic light effect. One of the light effects is defined, and different light effects may correspond to different sets of light effect parameter types, which is not limited in this embodiment of the present invention.
可见,该可选的实施例还能够在确定与晃动控制模式绑定的光效参数类型时,还能够结合灯具光效进行确定,有利于进一步提高针对不同光效下不同光效参数的控制精准性。It can be seen that this optional embodiment can also determine the type of light effect parameter bound to the shaking control mode, and can also determine the light effect of the lamp, which is conducive to further improving the control accuracy of different light effect parameters under different light effects. sex.
在又一个可选的实施例中,上述的根据第二运动参数判断灯具的运动状态是否满足光效切换条件,可以包括:In yet another optional embodiment, the above-mentioned judging whether the motion state of the lamp satisfies the light effect switching condition according to the second motion parameter may include:
根据第二运动参数判断灯具的运动状态是否表示灯具执行了翻转操作,当判断出灯具执行了翻转操作时,确定灯具的运动状态满足光效切换条件。Whether the motion state of the lamp indicates that the lamp has performed a flip operation is determined according to the second motion parameter, and when it is determined that the lamp has performed a flip operation, it is determined that the motion state of the lamp satisfies the light effect switching condition.
可见,该可选的实施例还能够在根据灯具运动参数判断出灯具执行了翻转操作时确定灯具满足光效切换条件,提高了光效切换的便捷性。It can be seen that this optional embodiment can also determine that the lamp satisfies the light effect switching condition when it is judged that the lamp has performed a flip operation according to the motion parameters of the lamp, thereby improving the convenience of light effect switching.
在该可选的实施例中,又进一步可选的,在判断出灯具执行了翻转操作之后,以及在确定灯具的运动状态满足光效切换条件之前,该方法还可以包括以下操作:In this optional embodiment, and further optionally, after it is determined that the lamp has performed a flip operation, and before it is determined that the motion state of the lamp satisfies the light effect switching condition, the method may further include the following operations:
确定灯具在执行翻转操作之前的第一灯具姿态以及灯具在执行翻转操作之后的第二灯具姿态;determining a first lighting fixture posture of the lighting fixture before performing the flip operation and a second lighting fixture attitude of the lighting fixture after performing the flipping operation;
根据第一灯具姿态与第二灯具姿态,判断在执行翻转操作之后灯具的目标端在确定出的第一目标方向上的映射位置相较于确定出的基准位置的位置向量是否发生方向翻转,当判断出在执行翻转操作之后灯具的目标端在确定出的第一目标方向上的映射位置相较于确定出的基准位置的位置向量发生方向翻转时,触发上述的确定灯具的运动状态满足光效切换条件的步骤。According to the attitude of the first lamp and the attitude of the second lamp, it is judged whether the mapping position of the target end of the lamp in the determined first target direction after the flip operation is reversed compared to the position vector of the determined reference position. When it is determined that after the flip operation is performed, the mapping position of the target end of the lamp in the determined first target direction is reversed in direction compared to the position vector of the determined reference position, the above-mentioned determination of the motion state of the lamp to meet the light effect is triggered. The steps to switch the condition.
其中,灯具的目标端可以是灯具的任意一端,第一目标方向可以是水平方向或者垂直方向,且该基准位置为灯具上的某一位置,以保证翻转前后基准位置的一致性。The target end of the lamp can be any end of the lamp, the first target direction can be a horizontal direction or a vertical direction, and the reference position is a certain position on the lamp to ensure the consistency of the reference position before and after the flip.
可选的,确定出的目标光效可以具体是由灯具的翻转参数、灯具的当前光效以及光效序列综合确定出的,这样提供了待切换至的目标光效的智能化确定方式,还能够提高使用者与灯具的交互趣味性。进一步可选的,灯具的翻转参数包括灯具的有效翻转次数、灯具的翻转幅度、灯具的翻转方向中的一种或多种的组合。以光效列表依次包括“RGB”光效、“脉搏”光效、“派对”光效、“烟花”光效、“彩虹”光效、“单色移动”光效以及自定义光效且灯具的翻转参数包括翻转方向为例,假设当前光效为“彩虹”光效,当识别出灯具朝向里面翻转时,根据翻转方向将光效切换为“单色移动”光效;当识别出灯具朝向外面翻转时,根据翻转方向将光效切换为“烟花”光效。Optionally, the determined target light effect may be specifically determined by the flip parameter of the lamp, the current light effect of the lamp, and the light effect sequence comprehensively, which provides an intelligent way of determining the target light effect to be switched to, and also The interactive interest between the user and the lamp can be improved. Further optionally, the flip parameter of the lamp includes a combination of one or more of the number of effective flips of the lamp, the flip range of the lamp, and the flip direction of the lamp. In the light effect list, it includes "RGB" light effect, "Pulse" light effect, "Party" light effect, "Firework" light effect, "Rainbow" light effect, "Monochromatic movement" light effect and custom light effect and lamps. The flip parameters include the flip direction as an example, assuming the current light effect is "rainbow" light effect, when it is recognized that the lamp is turned inward, the light effect is switched to "monochromatic movement" light effect according to the flip direction; When the outside is flipped, switches the light effect to a "firework" light effect based on the flip direction.
可见,该可选的实施例在根据翻转操作实现光效切换时还能够根据灯具翻转前后的姿态变化对灯具的翻转有效性进行智能化识别,在识别出灯具进行了有效翻转之后再进行光效切换,有利于减少误切换光效的情况发生,提高了光效切换的准确性。It can be seen that this optional embodiment can also intelligently recognize the flip validity of the lamp according to the posture change before and after the flip operation when the light effect switching is realized according to the flip operation, and the light effect can be carried out after it is recognized that the lamp has been effectively flipped. Switching is beneficial to reduce the occurrence of incorrect switching of light effects and improve the accuracy of light effect switching.
在又一个可选的实施例中,上述的根据当前运动参数,生成在当前晃动控制模式下与当前运动参数相匹配且用于调整目标光效参数的光效控制指令,可以包括:In yet another optional embodiment, the above-mentioned generating, according to the current motion parameters, a light effect control instruction that matches the current motion parameters in the current shaking control mode and is used to adjust the target light effect parameters may include:
当上述当前晃动控制模式为第一晃动控制模式时,根据当前运动参数计算灯具的晃动幅度,确定灯具的晃动幅度所处的目标晃动幅度范围,根据预设的晃动幅度范围与光效参数值的对应关系获取目标晃动幅度范围对应的第一光效参数值,并生成用于将目标光效参数的光效参数值调整至第一光效参数值的光效控制指令;When the current shaking control mode is the first shaking control mode, the shaking amplitude of the lamp is calculated according to the current motion parameters, and the target shaking amplitude range in which the shaking amplitude of the lamp is located is determined. The corresponding relationship obtains the first light effect parameter value corresponding to the target shaking amplitude range, and generates a light effect control instruction for adjusting the light effect parameter value of the target light effect parameter to the first light effect parameter value;
当上述当前晃动控制模式为第二晃动控制模式时,根据当前运动参数识别灯具的当前晃动姿态,根据当前晃动姿态计算目标光效参数所对应的调整时刻以及目标光效参数在调整时刻需要调整至的第二光效参数值,并生成用于将目标光效参数的光效参数值调整至第二光效参数值的光效控制指令;其中,第二光效参数值为目标光效参数对应的光效参数值序列中的初始光效参数值或者为目标光效参数对应的光效参数值序列中与在调整时刻之前的目标光效参数的历史最新光效参数值相邻的在后光效参数值。When the above current shaking control mode is the second shaking control mode, the current shaking posture of the lamp is identified according to the current motion parameters, and the adjustment time corresponding to the target light effect parameter is calculated according to the current shaking posture, and the target light effect parameter needs to be adjusted at the adjustment time to the second light effect parameter value, and generate a light effect control instruction for adjusting the light effect parameter value of the target light effect parameter to the second light effect parameter value; wherein, the second light effect parameter value corresponds to the target light effect parameter The initial light effect parameter value in the light effect parameter value sequence of the target light effect parameter value or the next light effect parameter value adjacent to the historical latest light effect parameter value of the target light effect parameter value before the adjustment time in the light effect parameter value sequence corresponding to the target light effect parameter value. valid parameter value.
以灯具的当前光效为“彩虹”光效、将灯具的亮度划分为5个亮度等级(0%、25%、50%、75%、100%)且绑定的光效参数类型具体为亮度类型为例进行举例说明。具体如下:Taking the current light effect of the lamp as the "rainbow" light effect, the brightness of the lamp is divided into 5 brightness levels (0%, 25%, 50%, 75%, 100%), and the bound light effect parameter type is brightness. Type as an example to illustrate. details as follows:
若灯具的当前晃动控制模式为上述第一晃动控制模式,预先将不同的晃动等级(如晃动幅度大小等级)映射为不同的亮度等级,根据灯具对有效晃动的晃动等级设置不同的晃动等级对应的亮度等级,也即:shake_level_0对应于亮度等级0%,shake_level_1对应于亮度等级25%,shake_level_2对应于亮度等级50%,shake_level_3对应于亮度等级75%,shake_level_4对应于亮度等级100%。在实际晃动控制时,根据有效晃动等级确定对应的亮度等级,并将“彩虹”光效的亮度等级调整为根据有效晃动等级确定出的对应亮度等级;If the current shaking control mode of the lamp is the above first shaking control mode, map different shaking levels (such as shaking amplitude levels) to different brightness levels in advance, and set the corresponding shaking levels according to the shaking levels of the lamps for effective shaking. Brightness levels, namely: shake_level_0 corresponds to brightness level 0%, shake_level_1 corresponds to brightness level 25%, shake_level_2 corresponds to brightness level 50%, shake_level_3 corresponds to brightness level 75%, shake_level_4 corresponds to brightness level 100%. During actual shaking control, the corresponding brightness level is determined according to the effective shaking level, and the brightness level of the "rainbow" light effect is adjusted to the corresponding brightness level determined according to the effective shaking level;
若灯具的当前晃动控制模式为上述第二晃动控制模式,当检测到灯具进行有效晃动时,按照5个亮度等级(0%、25%、50%、75%、100%)顺序或者预设排序间隔将“彩虹”光效的亮度等级切换为相应亮度等级。If the current shaking control mode of the lamp is the above-mentioned second shaking control mode, when it is detected that the lamp is shaking effectively, it will be sorted according to the order of 5 brightness levels (0%, 25%, 50%, 75%, 100%) or a preset order. Interval switches the brightness level of the "Rainbow" light effect to the corresponding brightness level.
当晃动控制模式绑定的光效参数类型为速度类型时,不同晃动控制模式下的“彩虹”光效的速度控制实现原理与上述亮度控制实现原理相似,不再重复赘述。When the light effect parameter type bound to the shaking control mode is the speed type, the speed control implementation principle of the "rainbow" light effect under different shaking control modes is similar to the above brightness control implementation principle, and will not be repeated.
可见,该可选的实施例还能够提供两种智能化的晃动控制模式,不仅能够实现光效参数值的有序切换,还能够实现光效参数值的智能化匹配,丰富了光效参数值的确定方式,进而有利于实现灯具光效的智能化控制。It can be seen that this optional embodiment can also provide two intelligent shaking control modes, which can not only realize the orderly switching of light effect parameter values, but also realize intelligent matching of light effect parameter values, which enriches the light effect parameter values. The method of determining the luminaire is beneficial to realize the intelligent control of the light efficiency of the lamps.
实施例二Embodiment 2
请参阅图2,图2是本发明实施例公开的另一种基于运动状态识别的光效控制方法的流程示意图。其中,图2所描述的方法可以应用于光效控制装置中,该光效控制装置可以集成在设置有运动检测传感器的灯具中,如微控制单元MCU,该灯具的结构形态可以如图6所示,也可以如图7示,本发明实施例对于灯具的具体尺寸、具体结构形态等不做限定。如图2所示,该基于运动状态识别的光效控制方法可以包括如下操作:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another light effect control method based on motion state recognition disclosed in an embodiment of the present invention. The method described in FIG. 2 can be applied to a light effect control device, and the light effect control device can be integrated into a lamp provided with a motion detection sensor, such as a microcontroller unit MCU, and the structure of the lamp can be as shown in FIG. 6 . 7, the embodiment of the present invention does not limit the specific size, specific structure, etc. of the lamp. As shown in FIG. 2 , the light effect control method based on motion state recognition may include the following operations:
201、在灯具的当前晃动控制模式下获取运动检测传感器采集到的当前运动参数。201. Acquire the current motion parameters collected by the motion detection sensor in the current shaking control mode of the lamp.
202、判断获取到的当前运动参数是否与针对当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配,当步骤202的判断结果为是时,可以触发执行步骤203;当步骤202的判断结果为否时,可以结束本次流程。202. Determine whether the acquired current motion parameters match the motion parameters in the motion parameter set preset for the current shaking control mode. When the judgment result of
203、当判断出获取到的当前运动参数与针对当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配时,生成在当前晃动控制模式下与当前运动参数相匹配的光效控制指令。203. When it is determined that the acquired current motion parameters match the motion parameters in the motion parameter set preset for the current shaking control mode, generate a light effect control instruction that matches the current motion parameters in the current shaking control mode .
204、根据确定出的灯具当前的光效控制用途,识别当前环境中与灯具当前的光效控制用途对应的辅助音乐。204. Identify the auxiliary music in the current environment corresponding to the current light effect control use of the lamp according to the determined current light effect control use of the lamp.
205、根据采集到的辅助音乐的实时播放进度以及预先确定出辅助音乐的节奏点,确定上述光效控制指令的执行时刻。205. Determine the execution time of the light effect control instruction according to the collected real-time playback progress of the auxiliary music and the predetermined rhythm point of the auxiliary music.
206、判断实时时刻是否到达上述执行时刻,当判断结果为是时,在当前晃动控制模式下执行与光效控制指令相匹配的光效控制操作。206. Determine whether the real-time time has reached the above execution time, and when the determination result is yes, execute the light effect control operation matching the light effect control instruction in the current shaking control mode.
本发明实施例中,需要说明的是,若判断出实时时刻未到达上述执行时刻,则继续执行上述的判断实时时刻是否到达上述执行时刻的操作。In the embodiment of the present invention, it should be noted that, if it is determined that the real-time time has not reached the above-mentioned execution time, the above-mentioned operation of judging whether the real-time time has reached the above-mentioned execution time is continued.
可见,实施本发明实施例所描述的方法能够通过对灯具运动参数的识别实现对灯具光效的智能化控制,丰富了灯具光效的智能化控制方式,有利于提高使用者对灯具的使用体验,进而有利于提高灯具的用户粘性。此外,还能够结合灯具当前的光效控制用途对应的辅助音乐的节奏点实现对灯具光效的卡点控制,进一步拓展了灯具光效的智能化控制功能,有利于进一步提高使用者针对灯具的使用体验It can be seen that the implementation of the method described in the embodiments of the present invention can realize the intelligent control of the light effect of the lamp by identifying the motion parameters of the lamp, enrich the intelligent control method of the light effect of the lamp, and help improve the user's experience of using the lamp , which is beneficial to improve the user stickiness of the lamp. In addition, it can also combine the rhythm point of the auxiliary music corresponding to the current light effect control purpose of the lamp to realize the card point control of the light effect of the lamp, which further expands the intelligent control function of the light effect of the lamp, which is conducive to further improving the user's understanding of the lamp. Use experience
在一个可选的实施例中,该方法还可以包括以下操作:In an optional embodiment, the method may further include the following operations:
207、根据确定出的灯具当前的光效控制用途,判断当前场景中是否存在需要与灯具进行关联控制的其它辅助灯具,当步骤207的判断结果为是时,触发执行步骤208;当步骤207的判断效果为否时,可以结束本次流程。207. According to the determined current light effect control purpose of the lamps, determine whether there are other auxiliary lamps in the current scene that need to be controlled in association with the lamps. When the judgment result of
208、当判断出存在需要与灯具进行关联控制的其它辅助灯具时,根据执行与上述光效控制指令相匹配的光效控制操作得到的操作结果,生成其它辅助灯具的灯具控制指令。208. When it is determined that there are other auxiliary lamps that need to be controlled in association with the lamps, generate lamp control instructions for other auxiliary lamps according to the operation results obtained by executing the light effect control operations matching the above-mentioned light effect control instructions.
209、将灯具控制指令发送至判断出的其它辅助灯具对应的控制装置,以触发其它辅助灯具的控制装置控制其它辅助灯具执行与灯具控制指令相匹配的操作。209. Send the lamp control instruction to the determined control device corresponding to the other auxiliary lamp, so as to trigger the control device of the other auxiliary lamp to control the other auxiliary lamp to perform an operation matching the lamp control instruction.
可见,该可选的实施例还能够根据灯具当前的光效控制用途实现对辅助灯具的智能化联动控制,不仅能够提高光效控制结果与使用者光效控制需求的匹配度,还能够有利于提高辅助灯具的控制效率及控制准确性。It can be seen that this optional embodiment can also realize the intelligent linkage control of auxiliary lamps according to the current light effect control purpose of the lamps, which can not only improve the matching degree between the light effect control results and the user's light effect control requirements, but also facilitate the Improve the control efficiency and control accuracy of auxiliary lamps.
在另一个可选的实施例中,灯具当前的光效控制用途可以是通过以下方式确定出的:In another optional embodiment, the current light effect control usage of the luminaire may be determined in the following manner:
采集灯具对应的用途识别因子,用途识别因子用于识别灯具当前的光效控制用途,且用途识别因子包括灯具所在当前环境的环境参数因子、灯具的倾斜角度因子、灯具的手握端在第二目标方向上的朝向分量以及灯具的倾斜方向因子中的至少一种;Collect the use identification factor corresponding to the lamp, the use identification factor is used to identify the current light effect control use of the lamp, and the use identification factor includes the environmental parameter factor of the current environment where the lamp is located, the tilt angle factor of the lamp, and the hand end of the lamp in the second. at least one of the orientation component in the target direction and the tilt direction factor of the luminaire;
将采集到的用途识别因子输入预先确定出的用途识别模型,得到用途识别模型的识别结果;Input the collected use identification factor into the predetermined use identification model to obtain the identification result of the use identification model;
根据识别结果识别灯具当前的光效控制用途。Identify the current light effect control purpose of the lamp according to the identification result.
可选的,灯具所在当前环境的环境参数因子可以包括灯具所在当前环境的环境亮度值和/或灯具所在当前环境中的声音信息(如播放的音乐等),本发明实施例不做限定。Optionally, the environmental parameter factor of the current environment where the lamp is located may include an ambient brightness value of the current environment where the lamp is located and/or sound information (such as playing music, etc.) in the current environment where the lamp is located, which is not limited in this embodiment of the present invention.
可见,该可选的实施例还能够根据采集到的用途识别因子并进一步结合预先确定出的用户识别模型,智能化识别灯具当前的光效控制用途,进一步拓展了灯具的智能化功能。It can be seen that this optional embodiment can also intelligently identify the current light effect control use of the lamp according to the collected use identification factor and further combined with the predetermined user identification model, and further expand the intelligent function of the lamp.
在该可选的实施例中,进一步可选的,在根据确定出的灯具当前的光效控制用途,判断当前场景中是否存在需要与灯具进行关联控制的其它辅助灯具之前,该方法还可以包括以下操作:In this optional embodiment, further optionally, before judging whether there are other auxiliary lamps in the current scene that need to be controlled in association with the lamps according to the determined current light effect control use of the lamps, the method may further include: Do the following:
分析确定出的灯具当前的光效控制用途的用途类型,并判断该用途类型是否为预设用途类型中的其中一种,当判断结果为是时,执行上述的根据确定出的灯具当前的光效控制用途,判断当前场景中是否存在需要与灯具进行关联控制的其它辅助灯具的操作,当判断结果为否时,可以结束本次流程。Analyze the determined use type of the current light effect control use of the lamp, and judge whether the use type is one of the preset use types. For the purpose of effective control, it is judged whether there are other auxiliary lighting operations in the current scene that need to be controlled in association with the lighting. When the judgment result is no, this process can be ended.
其中,预设用途类型为需要与其它灯具进行联动控制的用途类型。Among them, the preset usage type is the usage type that needs to be controlled by linkage with other lamps.
可见,该可选的实施例还能够在进行辅助灯具判断之前先判断光效控制用途的用途类型是否为预设用途类型中的其中一种,在判断结果为是的情况下再进行辅助灯具的智能化识别与判断,有利于减少不必要的辅助灯具识别与判断操作,进而有利于提高辅助灯具识别与判断的可靠性。It can be seen that this optional embodiment can also judge whether the use type of the light effect control purpose is one of the preset use types before the judgment of the auxiliary lamps, and then carry out the auxiliary lamps and lanterns when the judgment result is yes. Intelligent identification and judgment is beneficial to reduce unnecessary identification and judgment operations of auxiliary lamps, thereby improving the reliability of identification and judgment of auxiliary lamps.
在又一个可选的实施例中,上述的生成在当前晃动控制模式下与当前运动参数相匹配的光效控制指令之后,该方法还可以包括以下操作:In yet another optional embodiment, after the above-mentioned generating a light effect control instruction that matches the current motion parameters in the current shaking control mode, the method may further include the following operations:
分析灯具当前的光效控制用途与灯具晃动的关联程度;Analyze the relationship between the current light effect control use of the lamps and the shaking of the lamps;
判断该关联程度是否大于等于预设关联程度阈值,当判断结果为否时,触发执行上述的在当前晃动控制模式下执行与光效控制指令相匹配的光效控制操作的步骤;当判断结果为是时,根据运动检测传感器采集到的实时运动参数识别灯具的实时运动情况,并根据灯具的实时运动情况对在当前晃动控制模式下生成的光效控制指令进行调整,以更新该光效控制指令,并触发执行上述的在当前晃动控制模式下执行与光效控制指令相匹配的光效控制操作的步骤。Judging whether the association degree is greater than or equal to the preset association degree threshold, when the judgment result is no, trigger the execution of the above-mentioned steps of executing the light effect control operation that matches the light effect control instruction in the current shaking control mode; when the judgment result is If yes, identify the real-time motion of the luminaire according to the real-time motion parameters collected by the motion detection sensor, and adjust the light effect control command generated in the current shaking control mode according to the real-time motion of the luminaire to update the light effect control command , and trigger the execution of the above-mentioned steps of executing the light effect control operation matching the light effect control instruction in the current shaking control mode.
可见,该可选的实施例还能够根据灯具当前的光效控制用途与灯具晃动的关联程度实现对生成的光效控制指令的调整,实现了光效控制指令的自适应调整,有利于提高光效控制结果与光效控制用途的匹配度。It can be seen that this optional embodiment can also realize the adjustment of the generated light effect control instruction according to the degree of correlation between the current light effect control purpose of the lamp and the shaking of the lamp, so as to realize the self-adaptive adjustment of the light effect control instruction, which is beneficial to improve the light effect. The matching degree of the effect control result and the light effect control application.
实施例三Embodiment 3
请参阅图3,图3是本发明实施例公开的一种基于运动状态识别的光效控制装置的结构示意图。其中,图3所示的光效控制装置可以集成在设置有运动检测传感器的灯具中,如微控制单元MCU,该灯具的结构形态可以如图6所示,也可以如图7所示,本发明实施例对于灯具的具体尺寸、具体结构形态等不做限定。如图3所示,该装置可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a light effect control device based on motion state recognition disclosed in an embodiment of the present invention. Among them, the light effect control device shown in FIG. 3 can be integrated into a lamp provided with a motion detection sensor, such as a micro-control unit MCU, and the structure of the lamp can be as shown in FIG. 6 or 7. The embodiments of the invention do not limit the specific size, specific structural form and the like of the lamp. As shown in Figure 3, the device may include:
参数获取模块301,用于在灯具的当前晃动控制模式下获取运动检测传感器采集到的当前运动参数;The
参数判断模块302,用于判断当前运动参数是否与针对当前晃动控制模式预先设定的运动参数集合中的运动参数相匹配;The
指令生成模块303,用于当参数判断模块302判断出当前运动参数与运动参数集合中的运动参数相匹配时,生成在当前晃动控制模式下与当前运动参数相匹配的光效控制指令;The
指令执行模块304,用于在当前晃动控制模式下执行与光效控制指令相匹配的光效控制操作。The
可见,实施图3所描述的装置能够过对灯具运动参数的识别实现对灯具光效的智能化控制,丰富了灯具光效的智能化控制方式,有利于提高使用者对灯具的使用体验,进而有利于提高灯具的用户粘性。It can be seen that the implementation of the device described in FIG. 3 can realize the intelligent control of the light effect of the light by identifying the motion parameters of the light, which enriches the intelligent control method of the light effect of the light, which is beneficial to improve the user's experience of using the light, and then It is beneficial to improve the user stickiness of lamps and lanterns.
在一个可选的实施例中,指令生成模块303生成在当前晃动控制模式下与当前运动参数相匹配的光效控制指令的具体方式可以包括:In an optional embodiment, the specific manner in which the
确定与当前晃动控制模式绑定的光效参数类型;Determine the type of light effect parameter bound to the current shaking control mode;
根据当前运动参数,生成在当前晃动控制模式下与当前运动参数相匹配且用于调整目标光效参数的光效控制指令,该目标光效参数包括光效参数类型所对应的光效参数。According to the current motion parameters, a light effect control instruction that matches the current motion parameters in the current shaking control mode and is used to adjust the target light effect parameter is generated, where the target light effect parameter includes the light effect parameter corresponding to the light effect parameter type.
可见,实施图3所描述的装置还能够为不同的晃动控制模式绑定不同的光效参数类型,以在不同的晃动控制模式下有针对性的实现对光效参数的调整,有利于提高光效参数的调整效率及调整准确性,进而有利于提高灯具光效的智能化控制效率及控制准确性,还能够有利于增加灯具光效控制的交互趣味性。It can be seen that implementing the device described in FIG. 3 can also bind different light effect parameter types for different shaking control modes, so as to realize targeted adjustment of light effect parameters under different shaking control modes, which is beneficial to improve the light effect. It can improve the adjustment efficiency and adjustment accuracy of the effective parameters, which is beneficial to improve the intelligent control efficiency and control accuracy of the light effect of the lamps, and can also help to increase the interactive fun of the light effect control of the lamps.
在另一个可选的实施例中,如图4所示,该装置还可以包括模式启动模块305,其中:In another optional embodiment, as shown in FIG. 4 , the apparatus may further include a
参数判断模块302,还用于基于运动检测传感器采集到的第一运动参数判断灯具是否满足晃动控制模式启动条件;The
模式启动模块305,用于当参数判断模块302基于第一运动参数判断出灯具满足晃动控制模式启动条件时,确定待启动的目标晃动控制模式,启动目标晃动控制模式作为灯具的当前晃动控制模式,并触发参数获取模块301执行上述的在灯具的当前晃动控制模式下获取运动检测传感器采集到的当前运动参数的操作。The
可见,实施图4所描述的装置还能够通过灯具运动参数的采集与判断,实现相应晃动控制模式的启动或切换,有利于提高晃动控制模式启动或切换的便捷性,还能够有利于增加晃动控制模式启动或切换的交互趣味性。It can be seen that implementing the device described in FIG. 4 can also realize the activation or switching of the corresponding shaking control mode through the collection and judgment of the motion parameters of the lamps, which is conducive to improving the convenience of starting or switching the shaking control mode, and can also help to increase the shaking control mode. Interactive fun for mode startup or switching.
在又一个可选的实施例中,如图4所示,该装置还可以包括:In yet another optional embodiment, as shown in FIG. 4 , the apparatus may further include:
切换检测模块306,用于检测是否接收到光效切换指令;The switching
参数获取模块301,还用于当切换检测模块306接收到光效切换指令时,获取运动检测传感器采集到的第二运动参数;The
切换判断模块307,用于根据第二运动参数判断灯具的运动状态是否满足光效切换条件;The switching
光效切换模块308,用于当切换判断模块307判断出灯具的运动状态满足光效切换条件时,将灯具的当前光效切换为确定出的目标光效。The light
可见,实施图4所描述的装置还能够在检测到光效切换指令时通过灯具运动参数的采集与判断实现对灯具光效的切换,提高了光效切换的便捷性与效率,还能够有利于提高光效切换的交互趣味性。It can be seen that the implementation of the device described in FIG. 4 can also realize the switching of the light effect of the lamp through the collection and judgment of the motion parameters of the lamp when the light effect switching command is detected, which improves the convenience and efficiency of the light effect switching, and can also be beneficial to Improve the interactive fun of light effect switching.
在该可选的实施例中,进一步可选的,指令生成模块303确定与当前晃动控制模式绑定的光效参数类型的具体方式可以包括:In this optional embodiment, further optional, the specific manner in which the
确定灯具的当前光效的光效类型;Determine the light effect type of the current light effect of the luminaire;
获取在当前晃动控制模式下与光效类型绑定的光效参数类型,或者,获取在光效类型下与当前晃动控制模式绑定的光效参数类型。Get the light effect parameter type bound to the light effect type in the current shake control mode, or get the light effect parameter type bound to the current shake control mode under the light effect type.
可见,实施图4所描述的装置还能够在确定与晃动控制模式绑定的光效参数类型时,还能够结合灯具光效进行确定,有利于进一步提高针对不同光效下不同光效参数的控制精准性。It can be seen that implementing the device described in FIG. 4 can also determine the type of light effect parameter bound to the shaking control mode, and can also determine the light effect of the lamp, which is conducive to further improving the control of different light effect parameters under different light effects. Accuracy.
在又一个可选的实施例中,切换判断模块307可以包括:In yet another optional embodiment, the
翻转判断子模块3071,用于根据第二运动参数判断灯具的运动状态是否表示灯具执行了翻转操作;The
切换确定子模块3072,用于当翻转判断子模块3071判断出灯具执行了翻转操作时,确定灯具的运动状态满足光效切换条件。The switching
在该可选的实施例中,进一步可选的,如图4所示,切换判断模块307还可以包括:In this optional embodiment, further optional, as shown in FIG. 4 , the
姿态确定子模块3073,用于确定灯具在执行翻转操作之前的第一灯具姿态以及灯具在执行翻转操作之后的第二灯具姿态;an attitude determination sub-module 3073, configured to determine the first lamp attitude of the lamp before the flip operation is performed and the second lamp attitude of the lamp after the flip operation is performed;
方向判断子模块3074,用于根据第一灯具姿态与第二灯具姿态,判断在执行翻转操作之后灯具的目标端在确定出的第一目标方向上的映射位置相较于确定出的基准位置的位置向量是否发生方向翻转,当判断出在执行翻转操作之后灯具的目标端在确定出的第一目标方向上的映射位置相较于确定出的基准位置的位置向量发生方向翻转时,触发切换确定子模块3072执行上述的确定灯具的运动状态满足光效切换条件的操作。The
可见,实施图4所描述的装置还能够在根据灯具运动参数判断出灯具执行了翻转操作时确定灯具满足光效切换条件,提高了光效切换的便捷性;又进一步的,在根据翻转操作实现光效切换时还能够根据灯具翻转前后的姿态变化对灯具的翻转有效性进行智能化识别,在识别出灯具进行了有效翻转之后再进行光效切换,有利于减少误切换光效的情况发生,提高了光效切换的准确性。It can be seen that implementing the device described in FIG. 4 can also determine that the lamp satisfies the light effect switching condition when it is judged that the lamp has performed the flip operation according to the motion parameters of the lamp, which improves the convenience of light effect switching; When the light effect is switched, it can also intelligently identify the flip validity of the lamp according to the attitude change before and after the flip of the lamp. After the effective flip of the lamp is recognized, the light effect switch can be carried out, which is beneficial to reduce the occurrence of false switching of light effects. Improved the accuracy of light effect switching.
在又一个可选的实施例中,指令生成模块303,具体用于:In yet another optional embodiment, the
当上述当前晃动控制模式为第一晃动控制模式时,根据当前运动参数计算灯具的晃动幅度,确定灯具的晃动幅度所处的目标晃动幅度范围,根据预设的晃动幅度范围与光效参数值的对应关系获取目标晃动幅度范围对应的第一光效参数值,并生成用于将目标光效参数的光效参数值调整至第一光效参数值的光效控制指令;When the current shaking control mode is the first shaking control mode, the shaking amplitude of the lamp is calculated according to the current motion parameters, and the target shaking amplitude range in which the shaking amplitude of the lamp is located is determined. The corresponding relationship obtains the first light effect parameter value corresponding to the target shaking amplitude range, and generates a light effect control instruction for adjusting the light effect parameter value of the target light effect parameter to the first light effect parameter value;
当上述当前晃动控制模式为第二晃动控制模式时,根据当前运动参数识别灯具的当前晃动姿态,根据当前晃动姿态计算目标光效参数所对应的调整时刻以及目标光效参数在调整时刻需要调整至的第二光效参数值,并生成用于将目标光效参数的光效参数值调整至第二光效参数值的光效控制指令;其中,第二光效参数值为目标光效参数对应的光效参数值序列中的初始光效参数值或者为目标光效参数对应的光效参数值序列中与在调整时刻之前的目标光效参数的历史最新光效参数值相邻的在后光效参数值。When the above current shaking control mode is the second shaking control mode, the current shaking posture of the lamp is identified according to the current motion parameters, and the adjustment time corresponding to the target light effect parameter is calculated according to the current shaking posture, and the target light effect parameter needs to be adjusted at the adjustment time to the second light effect parameter value, and generate a light effect control instruction for adjusting the light effect parameter value of the target light effect parameter to the second light effect parameter value; wherein, the second light effect parameter value corresponds to the target light effect parameter The initial light effect parameter value in the light effect parameter value sequence of the target light effect parameter value or the next light effect parameter value adjacent to the historical latest light effect parameter value of the target light effect parameter value before the adjustment time in the light effect parameter value sequence corresponding to the target light effect parameter value. valid parameter value.
可见,实施图4所描述的装置还能够提供两种智能化的晃动控制模式,不仅能够实现光效参数值的有序切换,还能够实现光效参数值的智能化匹配,丰富了光效参数值的确定方式,进而有利于实现灯具光效的智能化控制。It can be seen that implementing the device described in FIG. 4 can also provide two intelligent shaking control modes, which can not only realize the orderly switching of light effect parameter values, but also realize intelligent matching of light effect parameter values, enriching the light effect parameters. The method of determining the value is beneficial to realize the intelligent control of the light efficiency of the lamps.
在又一个可选的实施例中,如图4所示,该装置还可以包括:In yet another optional embodiment, as shown in FIG. 4 , the apparatus may further include:
因子采集模块309,用于采集灯具对应的用途识别因子,用途识别因子用于识别灯具当前的光效控制用途,且用途识别因子包括灯具所在当前环境的环境参数因子、灯具的倾斜角度因子、灯具的手握端在第二目标方向上的朝向分量以及灯具的倾斜方向因子中的至少一种;The
用途识别模块310,用于将采集到的用途识别因子输入预先确定出的用途识别模型,得到用途识别模型的识别结果;以及,根据识别结果识别灯具当前的光效控制用途;The
辅助判断模块311,用于根据灯具当前的光效控制用途,判断当前场景中是否存在需要与灯具进行关联控制的其它辅助灯具;The
关联控制模块312,用于当判断出存在其它辅助灯具时,根据执行与光效控制指令相匹配的光效控制操作得到的操作结果,生成其它辅助灯具的灯具控制指令,并将灯具控制指令发送至其它辅助灯具对应的控制装置,以触发其它辅助灯具的控制装置控制其它辅助灯具执行与灯具控制指令相匹配的操作。The associated
需要说明的是,灯具当前的光效控制用途也可以通过其它方式确定,例如根据灯具当前所在地点进行确定,本发明实施例不做限定。It should be noted that the current light effect control purpose of the lamp may also be determined in other ways, for example, according to the current location of the lamp, which is not limited in the embodiment of the present invention.
可见,实施图4所描述的装置还能够在实现对灯具光效进行智能化控制时,还能够根据采集到的用途识别因子并进一步结合预先确定出的用户识别模型,智能化识别灯具当前的光效控制用途,进一步拓展了灯具的智能化功能,且还能够根据灯具当前的光效控制用途实现对辅助灯具的智能化联动控制,不仅能够提高光效控制结果与使用者光效控制需求的匹配度,还能够有利于提高辅助灯具的控制效率及控制准确性。It can be seen that the implementation of the device described in FIG. 4 can also intelligently identify the current light of the lamp according to the collected use identification factor and further combined with the pre-determined user identification model when realizing the intelligent control of the light effect of the lamp. It further expands the intelligent function of lamps and lanterns, and can also realize intelligent linkage control of auxiliary lamps according to the current light effect control purposes of lamps, which can not only improve the matching of luminous effect control results with users' luminous effect control needs It can also help to improve the control efficiency and control accuracy of auxiliary lamps.
在又一个可选的实施例中,如图4所示,该装置还可以包括:In yet another optional embodiment, as shown in FIG. 4 , the apparatus may further include:
音乐判断模块313,用于识别当前环境中与灯具当前的光效控制用途对应的辅助音乐,根据采集到的辅助音乐的实时播放进度以及预先确定出辅助音乐的节奏点,确定光效控制指令的执行时刻;判断实时时刻是否到达执行时刻,当判断结果为是时,触发指令执行模块304执行上述的在当前晃动控制模式下执行与光效控制指令相匹配的光效控制操作。The
可选的,当上述环境参数因子包括音乐因子时,音乐判断模块313可以具体根据上述环境参数因子包括的音乐因子,识别当前环境中与灯具当前的光效控制用途对应的辅助音乐,无需另外采集,有利于提高辅助音乐的识别效率。Optionally, when the above-mentioned environmental parameter factors include music factors, the
可见,实施图4所描述的装置还能够结合灯具当前的光效控制用途对应的辅助音乐的节奏点实现对灯具光效的卡点控制,进一步拓展了灯具光效的智能化控制功能,有利于进一步提高使用者针对灯具的使用体验。It can be seen that the implementation of the device described in FIG. 4 can also combine the rhythm points of the auxiliary music corresponding to the current light effect control purposes of the lamps to realize the card point control of the light effects of the lamps, further expanding the intelligent control function of the light effects of the lamps, which is beneficial to Further improve the user's experience of using lamps and lanterns.
实施例四Embodiment 4
本发明实施例描述了一种灯具,该灯具上设置有运动检测传感器和微控制单元MCU,如三轴加速度计和/或三轴陀螺仪。其中,本发明实施例所描述的灯具中的MCU可以执行实施例一或实施例二所描述的基于运动状态识别的光效控制方法中的部分或全部步骤,且该灯具的结构可以如图6或图7所示,本发明实施例对于灯具的具体尺寸、具体结构形态等不做限定,或者,本发明实施例所描述的灯具中的MCU可以包括实施例三中所描述的任意一种基于运动状态识别的光效控制装置,本发明实施例不做限定。The embodiment of the present invention describes a lamp, which is provided with a motion detection sensor and a micro-control unit MCU, such as a three-axis accelerometer and/or a three-axis gyroscope. Wherein, the MCU in the lamp described in the embodiment of the present invention may execute some or all of the steps in the light effect control method based on the motion state recognition described in the first embodiment or the second embodiment, and the structure of the lamp may be as shown in FIG. 6 . Or as shown in FIG. 7 , the embodiment of the present invention does not limit the specific size, specific structure, etc. of the lamp, or the MCU in the lamp described in the embodiment of the present invention may include any one of the The light effect control device for motion state recognition is not limited in the embodiment of the present invention.
实施例五Embodiment 5
请参阅图5,图5是本发明实施例公开的又一种基于运动状态识别的光效控制装置的结构示意图。其中,图5所描述的光效控制装置可以集成在设置有运动检测传感器的灯具中,如微控制单元MCU,该灯具的结构形态可以如图6所示,也可以如图7所示,本发明实施例对于灯具的具体尺寸、具体结构形态等不做限定。其中,如图5所示,该装置可以包括:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another light effect control device based on motion state recognition disclosed in an embodiment of the present invention. Among them, the light effect control device described in FIG. 5 can be integrated into a lamp provided with a motion detection sensor, such as a microcontroller unit MCU. The structure of the lamp can be as shown in FIG. 6 or as shown in FIG. 7 . The embodiments of the invention do not limit the specific size, specific structural form and the like of the lamp. Wherein, as shown in Figure 5, the device may include:
存储有可执行程序代码的存储器401;a
与存储器401耦合的处理器402;a
处理器402调用存储器402中存储的可执行程序代码,执行本发明实施例一或实施例二公开的基于运动状态识别的光效控制方法中的步骤。The
实施例六Embodiment 6
本发明实施例公开了一种计算机存储介质,该计算机存储介质存储有计算机指令,该计算机指令被调用时,用于执行本发明实施例一或实施例二公开的基于运动状态识别的光效控制方法中的步骤。An embodiment of the present invention discloses a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are invoked, is used to execute the motion state recognition-based light effect control disclosed in the first or second embodiment of the present invention steps in the method.
以上所描述的装置实施例仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
通过以上的实施例的具体描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(ErasableProgrammable Read Only Memory,EPROM)、一次可编程只读存储器(One-timeProgrammable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。From the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by means of hardware. Based on such understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or that make contributions to the prior art. The computer software products can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory. (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (Programmable Read-only Memory, PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM) , One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read-Only Memory , CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
最后应说明的是:本发明实施例公开的一种基于运动状态识别的光效控制及装置、灯具所揭露的仅为本发明较佳实施例而已,仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各项实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应的技术方案的本质脱离本发明各项实施例技术方案的精神和范围。Finally, it should be noted that the light effect control and device based on motion state recognition disclosed in the embodiments of the present invention and the lamps are only preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention. It is not intended to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that it is still possible to modify the technical solutions described in the foregoing embodiments, or to modify some of the technical features. Equivalent replacements are made; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111673419.XA CN114501742A (en) | 2021-12-31 | 2021-12-31 | Light effect control method and device and lamps based on motion state recognition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111673419.XA CN114501742A (en) | 2021-12-31 | 2021-12-31 | Light effect control method and device and lamps based on motion state recognition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114501742A true CN114501742A (en) | 2022-05-13 |
Family
ID=81508992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111673419.XA Pending CN114501742A (en) | 2021-12-31 | 2021-12-31 | Light effect control method and device and lamps based on motion state recognition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114501742A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101987594A (en) * | 2009-07-29 | 2011-03-23 | 株式会社小糸制作所 | Automotive headlamp apparatus having swivel function of lamp unit |
CN104333949A (en) * | 2014-10-08 | 2015-02-04 | 汤萍萍 | Intelligent worn type lamp and control method thereof |
CN105511750A (en) * | 2014-09-26 | 2016-04-20 | 联想(北京)有限公司 | Switching method and electronic equipment |
CN105827838A (en) * | 2016-03-29 | 2016-08-03 | 乐视控股(北京)有限公司 | Screen brightness turn-up method and terminal |
CN106875930A (en) * | 2017-02-09 | 2017-06-20 | 深圳市韵阳科技有限公司 | Lamp light control method and system based on song sound accompaniment and microphone voice real-time detection |
CN107135578A (en) * | 2017-06-08 | 2017-09-05 | 复旦大学 | Smart Music Chord-Ambient Lighting System Based on TonaLighting Adjustment Technology |
JP2017182571A (en) * | 2016-03-31 | 2017-10-05 | 株式会社インテック | Information processing system, information processing method, and information processing program |
CN108401339A (en) * | 2018-03-23 | 2018-08-14 | 杨松 | Lighting system and method for controlling illuminating lamp |
CN108925021A (en) * | 2018-08-14 | 2018-11-30 | 福建星网视易信息系统有限公司 | Lighting effects control method and computer readable storage medium based on drumbeat information |
CN111954356A (en) * | 2020-07-23 | 2020-11-17 | 宁夏万泰照明科技股份有限公司 | Intelligent light adjusting method and system |
-
2021
- 2021-12-31 CN CN202111673419.XA patent/CN114501742A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101987594A (en) * | 2009-07-29 | 2011-03-23 | 株式会社小糸制作所 | Automotive headlamp apparatus having swivel function of lamp unit |
CN105511750A (en) * | 2014-09-26 | 2016-04-20 | 联想(北京)有限公司 | Switching method and electronic equipment |
CN104333949A (en) * | 2014-10-08 | 2015-02-04 | 汤萍萍 | Intelligent worn type lamp and control method thereof |
CN105827838A (en) * | 2016-03-29 | 2016-08-03 | 乐视控股(北京)有限公司 | Screen brightness turn-up method and terminal |
JP2017182571A (en) * | 2016-03-31 | 2017-10-05 | 株式会社インテック | Information processing system, information processing method, and information processing program |
CN106875930A (en) * | 2017-02-09 | 2017-06-20 | 深圳市韵阳科技有限公司 | Lamp light control method and system based on song sound accompaniment and microphone voice real-time detection |
CN107135578A (en) * | 2017-06-08 | 2017-09-05 | 复旦大学 | Smart Music Chord-Ambient Lighting System Based on TonaLighting Adjustment Technology |
CN108401339A (en) * | 2018-03-23 | 2018-08-14 | 杨松 | Lighting system and method for controlling illuminating lamp |
CN108925021A (en) * | 2018-08-14 | 2018-11-30 | 福建星网视易信息系统有限公司 | Lighting effects control method and computer readable storage medium based on drumbeat information |
CN111954356A (en) * | 2020-07-23 | 2020-11-17 | 宁夏万泰照明科技股份有限公司 | Intelligent light adjusting method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9870069B2 (en) | Detection of user activities by a portable device | |
JP5111312B2 (en) | 3D image processing program, 3D image processing apparatus, 3D image processing system, and 3D image processing method | |
US20160267894A1 (en) | Computerized percussion instrument | |
JP5457071B2 (en) | GAME PROGRAM, GAME DEVICE, GAME SYSTEM, AND GAME CONTROL METHOD | |
JP2020058659A (en) | Game system, game processing method, game program, game device, and game controller | |
CN106492461A (en) | Method and device for realizing Augmented Reality (AR) game and user terminal | |
WO2002054217A1 (en) | Handwriting data input device and method, and authenticating device and method | |
WO2019128593A1 (en) | Method and device for searching for audio | |
JP6541701B2 (en) | Terminal device, control method therefor, and program | |
CN108345442B (en) | A kind of operation recognition methods and mobile terminal | |
JP2009009266A (en) | Image processing program and image processing apparatus | |
US20210034212A1 (en) | Interactive control method and apparatus, storage medium, and electronic device | |
EP3369466A1 (en) | Game system, game apparatus, game program, and game processing method | |
JP2002196874A (en) | Handwritten data input device and method, and personal authentication device and method | |
TWI603626B (en) | Speaker apparatus, control method thereof, and playing control system | |
JP2021534482A (en) | Gesture recognition method, gesture processing method and device | |
CN114501742A (en) | Light effect control method and device and lamps based on motion state recognition | |
CN108287895B (en) | A method and system for searching questions based on explicit frame adjustment, and a handheld photographing device | |
US10512840B2 (en) | Program, system, and method for providing game | |
CN107800873A (en) | Information prompting method based on mobile terminal and mobile terminal | |
CN108471574B (en) | Method for discharging residual liquid of loudspeaker and electronic equipment | |
CN111225040A (en) | Clothes airing monitoring method and device, storage medium and electronic equipment | |
JP6519074B2 (en) | Electronics | |
CN101166237A (en) | Automatic shooting method using image identification technology | |
CN111179694B (en) | Dance teaching interaction method, intelligent sound box and storage medium |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 518000 floor 2-4, building 21, Longjun Industrial Zone, Jiuwo, Longping community, Dalang street, Longhua District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Aitushi Innovation Technology Co.,Ltd. Address before: 518000 floor 2-4, building 21, Longjun Industrial Zone, Jiuwo, Longping community, Dalang street, Longhua District, Shenzhen City, Guangdong Province Applicant before: APUTURE IMAGING INDUSTRIES Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220513 |