CN114422846A - Lighting effect control method, system, device, electronic device and storage medium - Google Patents

Lighting effect control method, system, device, electronic device and storage medium Download PDF

Info

Publication number
CN114422846A
CN114422846A CN202111666958.0A CN202111666958A CN114422846A CN 114422846 A CN114422846 A CN 114422846A CN 202111666958 A CN202111666958 A CN 202111666958A CN 114422846 A CN114422846 A CN 114422846A
Authority
CN
China
Prior art keywords
audio
lighting
lighting effect
audio frame
control
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.)
Granted
Application number
CN202111666958.0A
Other languages
Chinese (zh)
Other versions
CN114422846B (en
Inventor
由杰
吴文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhiyan Technology Co Ltd
Original Assignee
Shenzhen Zhiyan Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhiyan Technology Co Ltd filed Critical Shenzhen Zhiyan Technology Co Ltd
Priority to CN202111666958.0A priority Critical patent/CN114422846B/en
Publication of CN114422846A publication Critical patent/CN114422846A/en
Application granted granted Critical
Publication of CN114422846B publication Critical patent/CN114422846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4394Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本申请公开了一种灯效控制方法、系统、装置、电子设备及存储介质,通过获取待测视频流中的音频流,对音频流进行分帧处理以获得音频帧序列;依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;对检测音频帧序列中的音频帧进行音频识别处理以获得检测音频帧对应的识别结果,根据识别结果控制灯光设备的灯效,通过对音频流进行分帧,以音频帧为单位进行音频识别处理,计算简单方便,且以音频帧的识别结果对灯光设备的灯效进行实时控制,丰富灯效的控制方式。

Figure 202111666958

The present application discloses a lighting effect control method, system, device, electronic device and storage medium. By acquiring an audio stream in a video stream to be tested, the audio stream is framed to obtain an audio frame sequence; the audio frames are sequentially acquired. One of the audio frames that is not traversed in the sequence is used as the detected audio frame; the audio frame in the detected audio frame sequence is subjected to audio recognition processing to obtain the recognition result corresponding to the detected audio frame, and the lighting effect of the lighting equipment is controlled according to the recognition result. The stream is divided into frames, and the audio recognition processing is performed in units of audio frames. The calculation is simple and convenient, and the lighting effects of the lighting equipment are controlled in real time based on the recognition results of the audio frames, which enriches the control methods of the lighting effects.

Figure 202111666958

Description

灯效控制方法、系统、装置、电子设备及存储介质Lighting effect control method, system, device, electronic device and storage medium

技术领域technical field

本申请涉及照明设备控制技术领域,更具体地,涉及一种灯效控制方法、系统、装置、电子设备及存储介质。The present application relates to the technical field of lighting equipment control, and more particularly, to a lighting effect control method, system, device, electronic device and storage medium.

背景技术Background technique

相关技术中,通常通过对音频的节奏点进行检测,以根据音频节奏点的变化情况进行灯效控制。而为了获取音频的节奏点,需要进行大量复杂运算,且只关注音频的振幅和频谱等变化信息,灯效控制单一。In the related art, the rhythm point of the audio is usually detected to control the lighting effect according to the change of the audio rhythm point. In order to obtain the rhythm point of the audio, a large number of complex operations are required, and only the change information such as the amplitude and spectrum of the audio is concerned, and the lighting effect control is single.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本发明提出了一种灯效控制方法、系统、装置、电子设备及存储介质,以改善上述问题。In view of the above problems, the present invention proposes a lighting effect control method, system, device, electronic device and storage medium to improve the above problems.

第一方面,本申请实施例提供了一种灯效控制方法,该方法包括:获取待测视频流中的音频流;对音频流进行分帧处理以获得音频帧序列;依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果;根据识别结果控制灯光设备的灯效,并返回执行依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧的步骤。In a first aspect, an embodiment of the present application provides a lighting effect control method. The method includes: acquiring an audio stream in a video stream to be tested; performing frame segmentation processing on the audio stream to obtain an audio frame sequence; and sequentially acquiring an audio frame sequence One of the audio frames that has not been traversed is used as the detected audio frame; the audio recognition processing is performed on the detected audio frame to obtain the recognition result corresponding to the detected audio frame; the lighting effect of the lighting equipment is controlled according to the recognition result, and the execution is returned to obtain the sequence of audio frames in sequence One of the audio frames not traversed in is used as the step of detecting audio frames.

可选地,对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果,包括:确定音频帧属于预设类别的概率;其中,预设类别的数量为多个;确定概率最高的预设类别作为音频帧对应的音乐类别。根据识别结果控制灯光设备的灯效包括:确定音乐类别对应的控制灯效,控制灯光设备展现控制灯效。Optionally, performing audio identification processing on the detected audio frame to obtain the identification result corresponding to the detected audio frame includes: determining the probability that the audio frame belongs to a preset category; wherein, the number of preset categories is multiple; determining the preset category with the highest probability; Set the category as the music category corresponding to the audio frame. Controlling the lighting effects of the lighting equipment according to the identification results includes: determining the control lighting effects corresponding to the music categories, and controlling the lighting equipment to display the control lighting effects.

可选地,控制所述灯光设备展现所述控制灯效,包括:若音乐类别的概率高于预设类别阈值,则控制灯光设备展现控制灯效。Optionally, controlling the lighting device to display the control lighting effect includes: if the probability of the music category is higher than a preset category threshold, controlling the lighting device to display the control lighting effect.

可选地,确定音乐类别对应的控制灯效,包括:若音乐类别属于其它类别,则不对灯光设备进行控制;否则,确定音乐类别对应的控制灯效。Optionally, determining the control lighting effect corresponding to the music category includes: if the music category belongs to another category, not controlling the lighting device; otherwise, determining the control lighting effect corresponding to the music category.

可选地,控制灯光设备展现控制灯效,包括:确定灯光设备的当前状态;若当前状态为灯效展现状态,则不对灯光设备进行控制;否则,控制灯光设备展现控制灯效。Optionally, controlling the lighting device to display the controlled lighting effect includes: determining the current state of the lighting device; if the current state is the lighting effect display state, not controlling the lighting device; otherwise, controlling the lighting device to display the controlled lighting effect.

可选地,控制所述灯光设备展现所述控制灯效,包括:控制灯光设备在预设过滤时间内重复展现所述控制灯效;其中,单次控制灯效的展现时间小于预设过滤时间。Optionally, controlling the lighting device to display the control lighting effect includes: controlling the lighting device to repeatedly display the control lighting effect within a preset filter time; wherein, the display time of a single control lighting effect is less than the preset filter time .

可选地,依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧,包括:依序按预设采样间隔获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;其中,单次控制灯效的展现时间大于预设取样间隔。Optionally, sequentially acquiring one of the audio frames that are not traversed in the audio frame sequence as the detection audio frame, comprising: sequentially acquiring one of the audio frames that are not traversed in the audio frame sequence at a preset sampling interval as the detection audio frame; wherein , the display time of a single control lighting effect is greater than the preset sampling interval.

可选地,获取待测视频流之前,该方法还包括:获取原始视频流;基于原始视频流生成至少两路待测视频流;基于其中一路待测视频流控制显示设备进行显示;获取待测视频流中的音频流;包括:获取其中另一路待测视频流中的音频流。Optionally, before acquiring the video stream to be tested, the method further includes: acquiring an original video stream; generating at least two video streams to be tested based on the original video stream; controlling a display device to display based on one of the video streams to be tested; The audio stream in the video stream; including: obtaining the audio stream in the other video stream to be tested.

可选地,该方法还包括:响应于对显示设备的控制操作,控制显示设备进入与控制操作对应的显示状态,且同时控制灯光设备进入与控制操作对应的灯效状态。Optionally, the method further includes: in response to a control operation on the display device, controlling the display device to enter a display state corresponding to the control operation, and simultaneously controlling the lighting device to enter a lighting effect state corresponding to the control operation.

可选地,灯光设备包括一个或多个灯光单元。Optionally, the lighting device includes one or more lighting units.

第二方面,本申请实施例还提供了一种灯效控制系统,包括:控制设备和与控制设备连接的灯光设备。其中,控制设备用于执行如上述第一方面所述的灯效控制方法。In a second aspect, an embodiment of the present application further provides a lighting effect control system, including: a control device and a lighting device connected to the control device. Wherein, the control device is configured to execute the lighting effect control method as described in the first aspect.

第三方面,本申请实施例还提供了一种灯效控制装置,包括:音频流获取模块、音频帧序列获取模块、检测音频帧确定模块以及识别模块以及灯效控制模块。其中,音频流获取模块用于获取待测视频流中的音频流;音频帧序列获取模块用于对音频流进行分帧处理以获得音频帧序列;检测音频帧确定模块用于依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧。识别模块用于对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果;灯效控制模块用于根据识别结果控制灯光设备的灯效。In a third aspect, an embodiment of the present application further provides a lighting effect control device, including: an audio stream acquisition module, an audio frame sequence acquisition module, a detection audio frame determination module, an identification module, and a lighting effect control module. Among them, the audio stream acquisition module is used to acquire the audio stream in the video stream to be tested; the audio frame sequence acquisition module is used to perform frame processing on the audio stream to obtain the audio frame sequence; the detection audio frame determination module is used to sequentially acquire the audio frames One of the audio frames in the sequence that is not traversed as the detected audio frame. The recognition module is used for performing audio recognition processing on the detected audio frames to obtain recognition results corresponding to the detected audio frames; the lighting effect control module is used for controlling the lighting effects of the lighting equipment according to the recognition results.

第四方面,本申请实施例还提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序。其中一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行如上述第一方面所述的灯效控制方法。In a fourth aspect, an embodiment of the present application further provides an electronic device, including: one or more processors; a memory; and one or more application programs. One or more application programs are stored in the memory and configured to be executed by one or more processors, and the one or more application programs are configured to execute the light effect control method as described in the first aspect above.

第五方面,本申请实施例还提供了一种计算机可读取存储介质,计算机可读取存储介质中存储有程序代码,程序代码可被处理器调用执行如上述第一方面所述的灯效控制方法。In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the lighting effect described in the first aspect above Control Method.

本发明提供的技术方案,通过获取待测视频流中的音频流,对音频流进行分帧处理以获得音频帧序列;依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果,根据识别结果控制灯光设备的灯效,通过对音频流进行分帧,以音频帧为单位进行音频识别处理,计算简单方便,且以音频帧的识别结果对灯光设备的灯效进行实时控制,丰富灯效的控制方式。The technical scheme provided by the present invention, by acquiring the audio stream in the video stream to be tested, the audio stream is divided into frames to obtain the audio frame sequence; one of the audio frames that is not traversed in the audio frame sequence is sequentially acquired as the detection audio frame; Perform audio recognition processing on the detected audio frames to obtain the recognition results corresponding to the detected audio frames, control the lighting effect of the lighting equipment according to the recognition results, and perform audio recognition processing in units of audio frames by dividing the audio stream into frames. And based on the recognition result of the audio frame, the lighting effect of the lighting equipment is controlled in real time, and the control method of the lighting effect is enriched.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,而不是全部的实施例。基于本申请实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例及附图,都属于本发明保护的范围。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. not all examples. Based on the embodiments of the present application, all other embodiments and drawings obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

图1示出了本申请一实施例所涉及的一种应用环境的示意图。FIG. 1 shows a schematic diagram of an application environment involved in an embodiment of the present application.

图2示出了本申请一实施例所涉及的另一种应用环境的示意图。FIG. 2 shows a schematic diagram of another application environment involved in an embodiment of the present application.

图3示出了本申请一实施例提出的一种灯效控制方法的流程示意图。FIG. 3 shows a schematic flowchart of a lighting effect control method proposed by an embodiment of the present application.

图4示出了本申请一实施例中音频流的时域图的示意图。FIG. 4 shows a schematic diagram of a time domain diagram of an audio stream in an embodiment of the present application.

图5示出了本申请一实施例提出的一种生成待测视频流的流程示意图。FIG. 5 shows a schematic flowchart of generating a video stream to be tested according to an embodiment of the present application.

图6示出了本申请一实施例提出的一种灯效控制装置的结构框图。FIG. 6 shows a structural block diagram of a lighting effect control device proposed by an embodiment of the present application.

图7示出了本申请一实施例提出的一种电子设备的结构框图。FIG. 7 shows a structural block diagram of an electronic device proposed by an embodiment of the present application.

图8示出了本申请一实施例提出的一种计算机可读取存储介质的结构框图。FIG. 8 shows a structural block diagram of a computer-readable storage medium proposed by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

相关技术中,通常通过对音频的节奏点进行检测,以根据音频节奏点的变化情况进行灯效控制。而为了获取音频的节奏点,需要同时对音频的时域和频域进行计算,结合时域和频域计算结果获得节奏点,计算量大且复杂。此外,在音频能量波动较小的情况下还无法准确获取节奏点,影响灯效控制。并且通过节奏点进行灯效控制,只关注音频的振幅和频谱等变化信息,灯效控制单一。In the related art, the rhythm point of the audio is usually detected to control the lighting effect according to the change of the audio rhythm point. In order to obtain the rhythm point of the audio, it is necessary to calculate the time domain and the frequency domain of the audio at the same time, and to obtain the rhythm point by combining the calculation results of the time domain and the frequency domain, the calculation amount is large and complicated. In addition, when the audio energy fluctuation is small, the rhythm point cannot be accurately obtained, which affects the lighting effect control. And the lighting effect is controlled through the rhythm point, only focusing on the change information such as the amplitude and frequency spectrum of the audio, and the lighting effect control is single.

为了改善上述问题,发明人提出了本申请提供的灯效控制方法、系统、装置、电子设备及存储介质,通过获取待测视频流中的音频流,对音频流进行分帧处理以获得音频帧序列;依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果,根据识别结果控制灯光设备的灯效,通过对音频流进行分帧,以音频帧为单位进行音频识别处理,计算简单方便,且以音频帧的识别结果对灯光设备的灯效进行实时控制,丰富灯效的控制方式。In order to improve the above problems, the inventor proposes a lighting effect control method, system, device, electronic device and storage medium provided by the present application. By acquiring the audio stream in the video stream to be tested, the audio stream is divided into frames to obtain audio frames. Sequence; sequentially obtain one of the audio frames that are not traversed in the audio frame sequence as the detection audio frame; perform audio recognition processing on the detected audio frame to obtain the recognition result corresponding to the detected audio frame, and control the lighting effect of the lighting equipment according to the recognition result. The audio stream is divided into frames, and the audio recognition processing is performed in units of audio frames. The calculation is simple and convenient, and the lighting effects of the lighting equipment are controlled in real time based on the recognition results of the audio frames, which enriches the control methods of the lighting effects.

下面针对本发明实施提供的灯效控制方法的应用环境进行介绍。The following describes the application environment of the light effect control method provided by the implementation of the present invention.

请参阅图1,本发明实施提供的灯效控制方法可以应用于灯效控制系统A中,灯效控制系统A包括控制设备B和灯光设备C。需要说明的是,图1是一种示例性的应用环境,本申请实施例所提供的方法还可以运行于其他的应用环境中,对此不作限制。Referring to FIG. 1 , the lighting effect control method provided by the implementation of the present invention can be applied to a lighting effect control system A, and the lighting effect control system A includes a control device B and a lighting device C. It should be noted that FIG. 1 is an exemplary application environment, and the methods provided in the embodiments of the present application may also be run in other application environments, which are not limited thereto.

在一些实施方式中,控制设备B可以用于获取待测视频流。控制设备B可以包括硬件接口,用于获取待测视频流。In some embodiments, the control device B can be used to obtain the video stream to be tested. The control device B may include a hardware interface for acquiring the video stream to be tested.

在一些实施方式中,控制设备B可以通过硬件接口与XBOX(家用电视游戏机),PS(PlayStation,电子游戏机)等设备相连,以获取待测视频流。In some embodiments, the control device B can be connected to devices such as XBOX (home video game console), PS (PlayStation, electronic game console) through a hardware interface to obtain the video stream to be tested.

为了使控制设备B可以兼容多种格式的待测视频流,在本申请的实施例中,控制设备B还可以包括视频接口转换模块,可以用于对所接收的待测视频流进行格式的转换,例如将待测视频流转换成I2S(Inter-IC Sound,集成电路内置音频总线)、MIPI(MobileIndustry Processor Interface,移动行业处理器接口)、LVDS(Low VoltageDifferential Signaling,低电压差分信号)、BT656、BT1120等控制设备B所需格式,具体可以根据实际使用需要进行设置,本申请对此不作限制。In order to enable the control device B to be compatible with video streams to be tested in multiple formats, in the embodiments of the present application, the control device B may further include a video interface conversion module, which can be used to perform format conversion on the received video stream to be tested. , such as converting the video stream to be tested into I2S (Inter-IC Sound, integrated circuit built-in audio bus), MIPI (MobileIndustry Processor Interface, mobile industry processor interface), LVDS (Low VoltageDifferential Signaling, low voltage differential signal), BT656, The format required by the control device B such as BT1120 can be specifically set according to actual use needs, which is not limited in this application.

在一些实施方式中,控制设备B还可以包括控制单元,控制单元可以用于对待测视频流进行处理,例如对音频流进行分帧处理以获得音频帧序列、对音频帧序列中的音频帧进行音频识别处理以获得音频帧对应的识别结果、根据识别结果控制灯光设备C的灯效等。示例性地,控制单元可以采用SOC(System on Chip,系统级芯片)、CPU(centralprocessing unit,中央处理器)、MPU(Microcontroller Unit,微控制单元)等,具体可以根据实际使用需要进行设置,本申请对此不作限制。In some embodiments, the control device B may further include a control unit, and the control unit may be configured to process the video stream to be tested, for example, perform frame division processing on the audio stream to obtain a sequence of audio frames, and perform processing on the audio frames in the sequence of audio frames. The audio recognition process obtains the recognition result corresponding to the audio frame, and controls the lighting effect of the lighting device C according to the recognition result. Exemplarily, the control unit may adopt SOC (System on Chip, system level chip), CPU (central processing unit, central processing unit), MPU (Microcontroller Unit, micro control unit), etc. There are no restrictions on the application.

可选地,控制单元可以加载有预先训练好的音频识别模型,以用于对音频帧进行音频识别处理。Optionally, the control unit may be loaded with a pre-trained audio recognition model for performing audio recognition processing on the audio frame.

可选的,控制单元也可以不设置音频识别模型,控制单元可以将音频帧发送至加载有预先训练好的音频识别模型的服务器,服务器对音频帧进行音频识别处理,并将识别结果发送给控制设备B。Optionally, the control unit may not set the audio recognition model, the control unit may send the audio frame to the server loaded with the pre-trained audio recognition model, the server performs audio recognition processing on the audio frame, and sends the recognition result to the control unit. device B.

其中,灯光设备C可以与控制设备B通过有线或无线的方式进行连接。采用无线连接时,灯光设备C可以与控制设备B通过网络实现相互之间的通信。互联网通常为因特网、但也可以是任何网络,包括但不限于局域网(Local Area Network,LAN)、城域网(Metropolitan Area Network,MAN)、广域网(Wide Area Network,WAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合。在一些实施例中,使用包括超文本标记语言(Hyper Text Mark-up Language,HTML)、可扩展标记语言(Extensible MarkupLanguage,XML)等的技术和/或格式来代表通过网络交换的数据。此外还可以使用诸如安全套接字层(Secure Socket Layer,SSL)、传输层安全(Transport Layer Security,TLS)、虚拟专用网络(Virtual Private Network,VPN)、网际协议安全(Internet ProtocolSecurity,IPsec)等常规加密技术来加密所有或者一些链路。在另一些实施例中,还可以使用定制和/或专用数据通信技术取代或者补充上述数据通信技术。Wherein, the lighting device C can be connected with the control device B in a wired or wireless manner. When the wireless connection is adopted, the lighting device C can communicate with the control device B through the network. The Internet is usually the Internet, but can be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless Any combination of network, private network, or virtual private network. In some embodiments, data exchanged over a network is represented using technologies and/or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), and the like. In addition, you can also use methods such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. Conventional encryption techniques to encrypt all or some of the links. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.

在一些实施方式中,灯光设备C可以是带状、条状灯、灯柱、平面灯(含有多个灯珠)或者空间布置的灯。In some embodiments, the lighting device C may be a strip light, a strip light, a light column, a flat light (containing a plurality of light beads), or a space-arranged light.

在一些实施方式中,灯光设备C可以包括控制单元和灯光单元,控制单元可以用于根据控制设备B的控制灯光单元的灯效。In some embodiments, the lighting device C may include a control unit and a lighting unit, and the control unit may be configured to control the lighting effect of the lighting unit according to the control device B.

在一些实施方式中,灯光设备C可以包括一个或多个灯光单元,以根据实际使用需要进行对应的组合。In some embodiments, the lighting device C may include one or more lighting units, so as to make corresponding combinations according to actual use requirements.

在一些实施方式中,每个灯光单元可以包含一个或者多个灯珠,且控制单元可以控制灯光单元的灯珠的亮度、颜色等,还可以控制亮灯的数量,从而实现灯光设备的不同灯效。In some embodiments, each lighting unit can include one or more lamp beads, and the control unit can control the brightness, color, etc. of the lamp beads of the lighting unit, and can also control the number of lights, so as to realize different lights of the lighting equipment. effect.

在一些实施方式中,可以根据实际使用需要,设置灯光设备的位置和数量,并且可根据灯光设备的位置,还可以对长度、高度以及面积上灯效的控制。In some embodiments, the position and number of lighting devices can be set according to actual use requirements, and the length, height, and lighting effects on area can also be controlled according to the positions of the lighting devices.

请参阅图2,在一些实施方式中,灯光控制系统A还可以包括显示设备D,显示设备D与控制设备B通过有线或无线的方式进行连接。Referring to FIG. 2 , in some embodiments, the lighting control system A may further include a display device D, and the display device D and the control device B are connected in a wired or wireless manner.

在一些实施方式中,显示设备D可以根据待测视频流进行显示,从而可以在显示视频的同时,通过灯光设备展现与视频对应的灯效,以营造沉浸式的氛围,提升用户的体验。In some embodiments, the display device D can display according to the video stream to be tested, so that while displaying the video, the lighting device can display lighting effects corresponding to the video to create an immersive atmosphere and improve user experience.

可选地,显示设备D可以例如是智能电视、平板电脑、带显示屏的智能音箱、手机等,本申请对此不作限制。Optionally, the display device D may be, for example, a smart TV, a tablet computer, a smart speaker with a display screen, a mobile phone, etc., which is not limited in this application.

在一些实施方式中,灯光控制系统A还可以包括视频分流单元,用于将原始的视频流分为至少两路待测视频流,从而其中一路待测视频流可以由显示设备D用于显示,另一路待测视频流可以由控制设备B用于控制灯光设备C的灯效。示例性,视频分流单元可以采用视频一分二接口芯片、视频分配器芯片等,本申请对此不作限制。In some embodiments, the lighting control system A may further include a video splitting unit for dividing the original video stream into at least two video streams to be tested, so that one of the video streams to be tested can be displayed by the display device D, The other video stream to be tested can be used by the control device B to control the lighting effect of the lighting device C. Exemplarily, the video splitting unit may adopt a video one-to-two interface chip, a video distributor chip, etc., which is not limited in this application.

在本申请的实施例中,控制设备B还可以执行下述实施例中涉及到的灯光控制方法,下面将结合具体的实施例进行阐述。In the embodiments of the present application, the control device B may also execute the lighting control methods involved in the following embodiments, which will be described below with reference to specific embodiments.

请参阅图3,本申请以实施例提供了一种灯效控制方法,可应用于上述灯效控制系统,于本申请实施例提供的方法中,该方法的执行主体可以为上述灯效控制系统中的控制设备。具体地,本申请实施例提供的灯效控制方法包括:步骤S110至步骤S140。Referring to FIG. 3, the present application provides a lighting effect control method according to an embodiment, which can be applied to the above-mentioned lighting effect control system. In the method provided by the embodiment of the present application, the execution subject of the method may be the above-mentioned lighting effect control system. control device in . Specifically, the lighting effect control method provided by the embodiment of the present application includes steps S110 to S140.

在步骤S110中,获取待测视频流中的音频流。In step S110, the audio stream in the video stream to be tested is acquired.

在本申请的实施例中,待测视频流包括用于显示的图片帧以及用于播放的音频流,当图片帧与音频同时播放时,构成用户所看到的有声画面。本文中的音频流包括但不仅限于背景音乐,为了根据视频对应的背景音乐对灯光设备进行控制,控制设备需要获取待测视频流中的音频流。具体地,可以通过对待测视频流进行解码、提取等方式获取所需的音频流。示例性地,可以采用FFMpeg(Fast Forward Mpeg,快速向前动态图像专家组)、Premiere(视频编辑工具)等方式获取音频流,本申请对此不作限制。In the embodiment of the present application, the video stream to be tested includes a picture frame for display and an audio stream for playback. When the picture frame and the audio are played at the same time, a sound picture viewed by the user is formed. The audio stream in this article includes but is not limited to background music. In order to control the lighting device according to the background music corresponding to the video, the control device needs to obtain the audio stream in the video stream to be tested. Specifically, the required audio stream can be obtained by decoding and extracting the video stream to be tested. Exemplarily, the audio stream may be acquired by means of FFMpeg (Fast Forward Mpeg, Fast Forward Moving Picture Experts Group), Premiere (video editing tool), etc., which is not limited in this application.

在步骤S120中,对音频流进行分帧处理以获得音频帧序列。In step S120, the audio stream is framed to obtain an audio frame sequence.

在本申请的实施例中,控制设备对音频数据流进行分帧处理,以获得多个音频帧,多个音频帧构成音频帧序列。In the embodiment of the present application, the control device performs frame division processing on the audio data stream to obtain multiple audio frames, and the multiple audio frames constitute an audio frame sequence.

如图4所示,图4示出了本申请一实施例中音频流的时域图的示意图,其中,通过对音频流进行分帧,可以将音频流分为多个音频帧a。在本申请的实施例中,wlen为帧长,inc为帧移,可以通过平移帧移inc获得下一个音频帧,从而将音频流分为多个音频帧,形成音频帧序列。As shown in FIG. 4 , FIG. 4 shows a schematic diagram of a time domain diagram of an audio stream in an embodiment of the present application, wherein, by dividing the audio stream into frames, the audio stream can be divided into multiple audio frames a. In the embodiment of the present application, wlen is the frame length, and inc is the frame shift. The next audio frame can be obtained by shifting the frame shift inc, thereby dividing the audio stream into multiple audio frames to form an audio frame sequence.

可选地,为避免遗漏音频流的内容,帧移inc的长度可以设置小于或等于单帧音频帧的帧长。可以理解的是,对于同一长度的音频流,帧移的长度越小,获得的音频帧的数量越多,从而越可以灵敏体现音频帧的细微变化,但同时计算量也会增加。帧移的长度可以根据实际对灵敏度和计算量的需要进行设置,本申请对此不作限制。Optionally, to avoid missing the content of the audio stream, the length of the frame shift inc can be set to be less than or equal to the frame length of a single audio frame. It can be understood that, for an audio stream of the same length, the smaller the frame shift length is, the more audio frames are obtained, so that subtle changes in audio frames can be more sensitively reflected, but at the same time, the amount of calculation will increase. The length of the frame shift can be set according to the actual needs of sensitivity and calculation amount, which is not limited in this application.

而通过将音频流分为多个音频帧,以音频帧进行音频识别处理,计算简单,且可以有效减小计算量。By dividing the audio stream into a plurality of audio frames, and performing audio recognition processing on the audio frames, the calculation is simple and the calculation amount can be effectively reduced.

在步骤S130中,依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧。In step S130, one of the audio frames not traversed in the audio frame sequence is sequentially acquired as the detected audio frame.

在本申请的实施例中,控制设备可以按照时间先后顺序依次获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧,以根据检测音频帧对灯光设备当前的灯效进行控制。In the embodiments of the present application, the control device may sequentially acquire one of the audio frames that are not traversed in the audio frame sequence as the detection audio frame in chronological order, so as to control the current lighting effect of the lighting device according to the detected audio frame.

示例性地,若音频帧序列中包括第一音频帧、第二音频帧以及第三音频帧。其中,第一音频帧的时间早于第二音频帧的时间,第二音频帧的时间早于第三音频帧的时间。控制设备已根据第一音频帧对灯光设备的灯效进行控制,则音频帧序列中未遍历的音频帧为第二音频帧和第三音频帧,由于第二音频帧的时间早于第三音频帧的时间,因此,可以获取第二音频帧作为检测音频帧。Exemplarily, if the audio frame sequence includes a first audio frame, a second audio frame and a third audio frame. The time of the first audio frame is earlier than the time of the second audio frame, and the time of the second audio frame is earlier than the time of the third audio frame. The control device has controlled the lighting effect of the lighting device according to the first audio frame, then the audio frames that are not traversed in the audio frame sequence are the second audio frame and the third audio frame, because the time of the second audio frame is earlier than that of the third audio frame. frame time, so the second audio frame can be acquired as the detection audio frame.

在一些实施方式中,可以按预设取样间隔依次获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧。In some embodiments, one of the audio frames not traversed in the audio frame sequence may be sequentially acquired at a preset sampling interval as the detection audio frame.

可选地,单次控制灯效的展现时间大于预设取样间隔,从而可以减小对灯光设备的重复触发。Optionally, the presentation time of the lighting effect of a single control is greater than the preset sampling interval, so that repeated triggering of the lighting device can be reduced.

在步骤S140中,对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果。In step S140, audio recognition processing is performed on the detected audio frames to obtain recognition results corresponding to the detected audio frames.

在本申请的实施例中,控制设备可以对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果。在另一些实施方式中,控制设备也可以将检测音频帧发送给服务器,由服务器进行音频识别处理,并返回检测音频帧对应的识别结果。In the embodiments of the present application, the control device may perform audio recognition processing on the detected audio frames to obtain recognition results corresponding to the detected audio frames. In other embodiments, the control device may also send the detected audio frame to the server, and the server performs audio recognition processing, and returns the recognition result corresponding to the detected audio frame.

在一些实施方式中,可以采用预先训练好的神经网络模型对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果。识别结果可以例如是检测音频帧对应的类别,从而根据对应的类别进行灯效控制。In some embodiments, a pre-trained neural network model may be used to perform audio recognition processing on the detected audio frames to obtain recognition results corresponding to the detected audio frames. The identification result may be, for example, detecting the category corresponding to the audio frame, so as to perform lighting effect control according to the corresponding category.

下面将以具体的实施方式对步骤S140进行具体阐述,如图6所示,步骤S140可以包括下述步骤。Step S140 will be described in detail below with a specific implementation manner. As shown in FIG. 6 , step S140 may include the following steps.

(1)确定检测音频帧为预设类别的概率。(1) Determine the probability that the detected audio frame is a preset category.

其中,预设类别的数量为多个。Wherein, the number of preset categories is multiple.

在本申请的实施例中,可以通过音频提取算法提取检测音频帧中的音频特征。音频变换算法可以例如是FFT(fast Fourier transform,高速傅里叶变换)频谱变换、MFCC(Mel-scale Frequency Cepstral Coefficients,梅尔倒谱系数)特征变换等,具体可以根据实际使用需要进行设置,本申请对此不作限制。In the embodiment of the present application, the audio features in the audio frame can be extracted and detected by an audio extraction algorithm. The audio transform algorithm can be, for example, FFT (fast Fourier transform, high-speed Fourier transform) spectral transform, MFCC (Mel-scale Frequency Cepstral Coefficients, Mel cepstral coefficients) feature transform, etc., which can be set according to actual needs. There are no restrictions on the application.

在本申请的实施例中,可以采用预先训练好的神经网络模型对提取的音频特征进行音频识别处理,确定音频帧为预设类别的概率。In the embodiment of the present application, a pre-trained neural network model may be used to perform audio recognition processing on the extracted audio features, so as to determine the probability that the audio frame is a preset category.

示例性地,预设类别的数量可以为20个,神经网络模型的最后一层可以采用softmax(归一化指数函数)进行归一化处理,获得检测音频帧在对应每个预设类别的概率,也可以称为置信度。Exemplarily, the number of preset categories can be 20, and the last layer of the neural network model can be normalized by using softmax (normalized exponential function) to obtain the probability of detecting audio frames corresponding to each preset category. , also known as confidence.

在一些实施方式中,确定检测音频帧为预设类别还可以采用Resnet(残差神经网络),VGG(Visual Geometry Group)卷积神经网络,Mobilenet(轻量卷积网络)等深度学习卷积分类算法,本申请对此不作限制。In some embodiments, to determine the detected audio frame as a preset category, deep learning convolution classification such as Resnet (residual neural network), VGG (Visual Geometry Group) convolutional neural network, and Mobilenet (lightweight convolutional network) can also be used algorithm, which is not limited in this application.

示例性地,预设类别可以包括但不限于:流水声类别、爆破声类别、风声类别、雨声类别等,具体可以根据实际使用需要进行设置,本申请对此不作限制。Exemplarily, the preset categories may include but are not limited to: flowing water sound category, popping sound category, wind sound category, rain sound category, etc., which may be set according to actual usage needs, which is not limited in this application.

在一些实施方式中,预设类别中还可以设置其它类别。例如,预设类别包括:第一类别、第二类别、第三类别和其它类别,若音频帧的识别结果为不属于第一类别、第二类别、第三类别中的任一类别,则将音频帧的类别归为其它类别。In some embodiments, other categories may also be set in the preset categories. For example, the preset categories include: the first category, the second category, the third category, and other categories. If the audio frame recognition result is that it does not belong to any one of the first category, the second category, and the third category, the The categories of audio frames are grouped into other categories.

(2)确定概率最高的预设类别作为检测音频帧对应的音乐类别。(2) Determine the preset category with the highest probability as the music category corresponding to the detected audio frame.

在本申请的实施例中,通过上述步骤获得检测音频帧对应每个预设类别的概率之后,将概率最高的预设类别作为检测音频帧对应的音乐类别。In the embodiment of the present application, after obtaining the probability that the detected audio frame corresponds to each preset category through the above steps, the preset category with the highest probability is used as the music category corresponding to the detected audio frame.

在步骤S150中,根据识别结果控制灯光设备的灯效。并返回执行所述依序获取所述音频帧序列中未遍历的其中一个音频帧作为检测音频帧的步骤。In step S150, the lighting effect of the lighting device is controlled according to the recognition result. and returning to the step of sequentially acquiring one of the audio frames that are not traversed in the audio frame sequence as a detected audio frame.

在本申请的实施例中,控制设备根据检测音频帧的识别结果来对灯光设备的灯效进行控制,以呈现与检测音频帧对应的灯效。In the embodiment of the present application, the control device controls the lighting effect of the lighting device according to the recognition result of the detected audio frame, so as to present the lighting effect corresponding to the detected audio frame.

在本申请的实施例中,控制设备可以根据音乐类别控制灯光设备的灯效。In the embodiment of the present application, the control device may control the lighting effect of the lighting device according to the music category.

在一些实施方式中,在确定检测音频帧对应的音乐类别后,还可以作进一步的判断,若检测音频帧对应的音乐类别的概率高于预设类别阈值,则根据音乐类别控制灯光设备的灯效。否则,检测音频帧即使属于音乐类别,也不会根据该音乐类别来控制灯光设备的灯效,即该检测音频帧无效,需要丢弃,因此不对灯光设备的灯效进行控制。In some embodiments, after determining the music category corresponding to the detected audio frame, a further judgment may be made. If the probability of detecting the music category corresponding to the audio frame is higher than the preset category threshold, the lights of the lighting equipment are controlled according to the music category. effect. Otherwise, even if the detected audio frame belongs to the music category, the lighting effect of the lighting device will not be controlled according to the music category, that is, the detected audio frame is invalid and needs to be discarded, so the lighting effect of the lighting device will not be controlled.

可以理解的是,预设类别阈值设置越低,则音频帧归属于对应音乐类别的概率越高,触发对灯光设备的控制越灵敏。从而,可以根据实际使用需要,设置预设类别阈值的具体数值,本申请对此不作限制。It can be understood that the lower the preset category threshold is set, the higher the probability that the audio frame belongs to the corresponding music category, and the more sensitive the triggering of the control of the lighting equipment. Therefore, the specific value of the preset category threshold can be set according to actual use requirements, which is not limited in this application.

在一些实施方式中,每种音乐类别预先设置有对应的控制灯效。在确定音频帧所对应的音乐类别后,可以确定音乐类别对应的控制灯效,进而控制灯光设备展现对应的控制灯效,实现根据音频帧的类别呈现对应的灯效,以构建沉浸式的灯光氛围,提升用户的体验。In some embodiments, each music category is preset with a corresponding control lighting effect. After the music category corresponding to the audio frame is determined, the control lighting effect corresponding to the music category can be determined, and then the lighting equipment can be controlled to display the corresponding control lighting effect, so as to present the corresponding lighting effect according to the category of the audio frame, so as to construct an immersive lighting atmosphere to enhance the user experience.

在一些实施方式中,若音乐类别属于其它类别,则不对灯光设备进行控制,否则,确定音乐类别对应的控制灯效。也就是说,当音频帧属于其它类别时,该音频帧需要丢弃,即不对灯光设备进行控制。在音乐类别不属于其它类别时,才会进行后续的处理,从而确保对灯光设备灯效的精确控制。In some embodiments, if the music category belongs to other categories, the lighting device is not controlled, otherwise, the control lighting effect corresponding to the music category is determined. That is, when the audio frame belongs to other categories, the audio frame needs to be discarded, that is, the lighting device is not controlled. Subsequent processing takes place only when the music category does not belong to other categories, thus ensuring precise control over the lighting effects of the lighting equipment.

在一些实施方式中,在上一个检测音频帧的灯效还未展示完全时,若此时已确定了对当前检测音频帧对应的控制灯效,根据当前检测帧的灯效去控制对正在展现灯效的灯光设备,会导致上一个检测音频帧灯效展现不完全。为了确保灯效展示的效果,在进行灯效控制之前,先确定灯光设备的当前状态。若灯光设备的当前状态为灯效展现状态,即灯光设备还在展现之前检测音频帧的灯效时,则不对灯光设备进行控制。否则,控制灯光设备展现与当前检测音频帧对应的控制灯效。In some embodiments, when the lighting effect of the last detected audio frame has not been fully displayed, if the control lighting effect corresponding to the currently detected audio frame has been determined at this time, the lighting effect of the currently detected audio frame is controlled to be displayed according to the lighting effect of the currently detected frame. The lighting equipment of the lighting effect will cause the lighting effect of the last detected audio frame to be incompletely displayed. In order to ensure the effect of the lighting effect display, the current state of the lighting equipment must be determined before the lighting effect control. If the current state of the lighting device is the lighting effect display state, that is, when the lighting device is still displaying the lighting effect of the audio frame detected before, the lighting device will not be controlled. Otherwise, control the lighting device to display the control lighting effect corresponding to the currently detected audio frame.

在一些实施方式中,在确定对灯光设备进行控制的控制灯效,还可以控制灯光设备展现一次或多次控制灯效。也即,控制完整的单次控制灯效所需时间假设为2s,控制两次完整的控制灯效所需时间需要4s。具体地,可以预先设置需要灯光设备展现灯效的预设次数。预设次数的数量可以根据实际使用需要进行设置,本申请对此不作限制。In some embodiments, after determining the control lighting effect for controlling the lighting device, the lighting device may also be controlled to exhibit one or more control lighting effects. That is, it is assumed that the time required to control a complete single control lighting effect is 2s, and the time required to control two complete control lighting effects requires 4s. Specifically, a preset number of times that the lighting device needs to display the lighting effect can be preset. The number of preset times can be set according to actual usage needs, which is not limited in this application.

在一些实施方式中,在确定对灯光设备进行控制的控制灯效,还可以控制灯光设备在预设过滤时间内重复执行控制灯效。In some embodiments, after determining the control lighting effect for controlling the lighting device, the lighting device may also be controlled to repeatedly execute the control lighting effect within a preset filtering time.

可选地,单次控制灯效的展现时间小于预设过滤时间,从而在预设过滤时间内至少展现一次完整的控制灯效。例如预设过滤时间为6s,单次控制灯效的展现时间为2s,则在预设过滤时间内重复展现3次对应的控制灯效。Optionally, the presentation time of a single control lighting effect is shorter than the preset filtering time, so that the complete control lighting effect is displayed at least once within the preset filtering time. For example, the preset filter time is 6s, and the display time of a single control light effect is 2s, then the corresponding control light effect is repeatedly displayed 3 times within the preset filter time.

可选地,单次控制灯效的展现时间也可以大于预设过滤时间,从而在预设过滤时间内仅展现部分的控制灯效。具体设置可以根据实际使用需要进行调整,本申请对此不作限制。Optionally, the presentation time of a single controlled lighting effect may also be greater than the preset filtering time, so that only part of the controlled lighting effects are displayed within the preset filtering time. The specific settings can be adjusted according to actual usage needs, which are not limited in this application.

在本申请的实施例中,可以根据对应的音乐类别设置对应的灯效。灯效包括但不限制于:亮灯的灯光设备的位置、数量、亮度、颜色、闪烁频率等,从而根据实际需要组合出与音乐类别匹配的灯效。例如,音乐类别为爆破声类别时,对应的灯效可以是当前颜色渐变1s,变换为红色,并以0.05s的闪烁周期进行闪烁,闪烁1s后,颜色由红色渐变1s,变换为原先的颜色。具体可以根据实际使用需要进行任意搭配,本申请对此不作限制。In the embodiment of the present application, the corresponding lighting effect may be set according to the corresponding music category. The lighting effects include but are not limited to: the position, quantity, brightness, color, flickering frequency, etc. of the lighting equipment, so that lighting effects matching the music category can be combined according to actual needs. For example, when the music category is the popping sound category, the corresponding light effect can be the current color gradient for 1s, change to red, and flash with a flickering cycle of 0.05s. After flashing for 1s, the color changes from red to the original color for 1s. . Specifically, any combination can be made according to actual use requirements, which is not limited in this application.

在一些实施方式中,在步骤S110之前,本申请实施例的灯效控制方法还包括包括下述步骤。In some embodiments, before step S110, the lighting effect control method of the embodiment of the present application further includes the following steps.

(1)获取原始视频流。(1) Get the original video stream.

(2)基于所述原始视频流生成至少两路所述待测视频流;(2) generate at least two video streams to be tested based on the original video stream;

(3)将其中一路待测视频流发送至显示设备,以使显示设备根据其中一路待测视频流进行显示。(3) Sending one of the video streams to be tested to the display device, so that the display device displays according to one of the video streams to be tested.

本申请的实施例的灯效控制方法还可以应用于同时进行视频显示和利用视频流进行灯效控制的场景。The lighting effect control method according to the embodiment of the present application can also be applied to a scenario where video display is performed simultaneously and lighting effect control is performed by using a video stream.

具体地,原始视频流可以通过视频源获取,视频源可以例如是电视节目、游戏画面、网络视频等。Specifically, the original video stream may be obtained through a video source, and the video source may be, for example, a TV program, a game screen, a network video, or the like.

进一步地,将原始视频流生成两路待测视频流。如图6所示,控制设备中通过硬件接口实现视频流的接入,获取到原始视频流后再将其一分为二生成至少两路待测视频流,其中一路用来控制显示设备显示具体图像内容,另一路用来通过视频接口转换成多媒体处理芯片能够接收的视频流类型,然后将待测视频流通过多媒体处理芯片对其进行分帧处理获得视频帧图像序列,从而控制灯光设备的灯效进行变换。其中,硬件接口可以例如是VGA(Video Graphics Array,视频图形阵列)、DP(DisplayPort,显示接口)、HDMI(HighDefinition Multimedia Interface,高清多媒体接口)、DVI(Digital Visual Interface,数字视频接口)等;视频接口可以例如是MIPI(Mobile Industry Processor Interface,移动行业处理器接口)、LVDS(Low-Voltage Differential Signaling,低压差分信号传输接口)等;多媒体处理芯片可以例如是SoC(System on Chip,系统级芯片)芯片。进一步地,对原始视频流环出可以通过调用视频采集卡实现。Further, two channels of video streams to be tested are generated from the original video stream. As shown in Figure 6, the control device realizes the access of the video stream through the hardware interface, and then divides the original video stream into two to generate at least two video streams to be tested, one of which is used to control the display device to display the specific video stream. The image content, the other channel is used to convert the video stream type that can be received by the multimedia processing chip through the video interface, and then the video stream to be tested is processed by the multimedia processing chip into frames to obtain the video frame image sequence, so as to control the lights of the lighting equipment. Effectively transform. Wherein, the hardware interface can be, for example, VGA (Video Graphics Array, video graphics array), DP (DisplayPort, display interface), HDMI (High Definition Multimedia Interface, high-definition multimedia interface), DVI (Digital Visual Interface, digital video interface), etc.; video The interface can be, for example, MIPI (Mobile Industry Processor Interface, mobile industry processor interface), LVDS (Low-Voltage Differential Signaling, low-voltage differential signaling interface), etc.; the multimedia processing chip can be, for example, SoC (System on Chip, system-on-chip) chip. Further, looping out the original video stream can be realized by calling the video capture card.

可以理解的是,两路待测视频流内容相同,其中一路待测视频流用于灯效控制,另一路待测视频流用于控制显示设备进行显示,从而确保灯效控制与视频显示的一致性。It can be understood that the content of the two video streams to be tested is the same, one of the video streams to be tested is used for lighting effect control, and the other video stream to be tested is used to control the display device for display, thereby ensuring the consistency of lighting effect control and video display.

在一些实施方式中,控制设备还可以结合视频流中的图像帧和音频帧共同对灯光设备进行控制。例如图像帧中出现怪兽,音频帧对应的音乐类别为恐怖类别,则可以根据怪兽的数量、距离,而调整恐怖类别的灯效的闪烁频率、亮度变化等,从而呈现出更丰富的灯效控制。In some embodiments, the control device may also control the lighting device in combination with the image frames and audio frames in the video stream. For example, if there is a monster in the image frame, and the music category corresponding to the audio frame is the horror category, you can adjust the flickering frequency and brightness change of the lighting effect of the horror category according to the number and distance of the monsters, so as to present a richer lighting effect control. .

在一些实施方式中,为了确保灯效沉浸氛围,灯效控制与视频显示需要保证同步,由于显示设备与灯光设备由两路待测视频流进行控制,在用户对显示设备进行操作后,可能会改变显示设备的显示状态,而若灯光设备仍进行灯效控制,会导致视频显示与灯效控制不同步,影响用户的体验。In some embodiments, in order to ensure the immersive atmosphere of the lighting effect, the lighting effect control and the video display need to be synchronized. Since the display device and the lighting device are controlled by two video streams to be tested, after the user operates the display device, the Changing the display state of the display device, and if the lighting device still controls the lighting effect, will cause the video display to be out of sync with the lighting effect control, affecting the user's experience.

为了解决同步问题,在本申请的实施例中,灯效控制方法还可以包括:当显示设备响应于控制操作,进入与控制操作对应的显示状态时,控制灯光设备进入与控制操作对应的灯效状态。In order to solve the synchronization problem, in the embodiment of the present application, the lighting effect control method may further include: when the display device enters a display state corresponding to the control operation in response to the control operation, controlling the lighting device to enter the lighting effect corresponding to the control operation state.

可选地,控制操作可以包括但不限于:暂停操作、关机操作、重启操作。用户可以通过终端设备发送控制指令至显示设备,以对显示设备进行控制操作。Optionally, the control operation may include, but is not limited to: a suspend operation, a shutdown operation, and a restart operation. The user can send control instructions to the display device through the terminal device to control the display device.

可选地,显示设备接收到控制指令时,可以发送与控制指令对应的灯效控制指令至控制设备,以使控制设备同步对灯光设备进行控制。Optionally, when the display device receives the control command, it can send a lighting effect control command corresponding to the control command to the control device, so that the control device can control the lighting device synchronously.

可选地,用户在发送控制指令时,同时发送两个控制指令,其中一个控制指令发送至显示设备,以对显示设备进行控制操作,另一个控制指令发送至控制设备,以对控制设备进行对应的灯效控制。Optionally, when sending the control command, the user sends two control commands at the same time, one of which is sent to the display device to control the display device, and the other control command is sent to the control device to correspond to the control device. lighting effect control.

在本实施例中,通过获取待测视频流中的音频流,对音频流进行分帧处理以获得音频帧序列;依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;对检测音频帧进行音频识别处理以获得检测音频帧对应的识别结果,根据识别结果控制灯光设备的灯效,通过对音频流进行分帧,以音频帧为单位进行音频识别处理,计算简单方便,且以音频帧的识别结果对灯光设备的灯效进行实时控制,丰富灯效的控制方式。In this embodiment, by acquiring the audio stream in the video stream to be tested, the audio stream is framed to obtain an audio frame sequence; one of the audio frames not traversed in the audio frame sequence is sequentially acquired as the detection audio frame; Detect the audio frame and perform audio recognition processing to obtain the recognition result corresponding to the detected audio frame, control the lighting effect of the lighting equipment according to the recognition result, and perform audio recognition processing in units of audio frames by dividing the audio stream into frames, the calculation is simple and convenient, and Real-time control of lighting effects of lighting equipment based on the recognition results of audio frames, enriching the control methods of lighting effects.

请参阅图6,其示出了本发明一个实施例提供的灯效控制装置200,该灯效控制装置200包括:音频流获取模块210、音频帧序列获取模块220、检测音频帧确定模块230、识别模块240、以及灯效控制模块250。Please refer to FIG. 6, which shows a lighting effect control device 200 provided by an embodiment of the present invention. The lighting effect control device 200 includes: an audio stream acquisition module 210, an audio frame sequence acquisition module 220, a detection audio frame determination module 230, The identification module 240 and the lighting effect control module 250 .

其中,音频流获取模块210用于获取待测视频流中的音频流。Wherein, the audio stream acquisition module 210 is configured to acquire the audio stream in the video stream to be tested.

音频帧序列获取模块220用于对音频流进行分帧处理以获得音频帧序列。The audio frame sequence acquisition module 220 is configured to perform frame segmentation processing on the audio stream to obtain the audio frame sequence.

检测音频帧确定模块230用于依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧。The detected audio frame determination module 230 is configured to sequentially acquire one audio frame that is not traversed in the audio frame sequence as the detected audio frame.

识别模块240用于对音频帧序列中的音频帧进行音频识别处理以获得音频帧对应的识别结果。The identification module 240 is configured to perform audio identification processing on the audio frames in the audio frame sequence to obtain identification results corresponding to the audio frames.

灯效控制模块240用于根据识别结果控制灯光设备的灯效。The lighting effect control module 240 is used to control the lighting effect of the lighting device according to the recognition result.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts among the various embodiments, refer to each other Can. As for the apparatus type embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant part, please refer to the partial description of the method embodiment. Any processing manners described in the method embodiments may be implemented by corresponding processing modules in the apparatus embodiments, and will not be repeated in the apparatus embodiments.

在本申请所提供的几个实施例中,所显示或讨论的模块相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be electrical, mechanical or otherwise.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

请参阅图7,基于上述的灯效控制方法,本申请实施例还提供的另一种包括可以执行前述灯效控制方法的处理器的电子设备300,电子设备300还包括一个或多个处理器310、存储器320以及一个或多个应用程序。其中,该存储器320中存储有可以执行前述实施例中内容的程序,而处理器310可以执行该存储器中存储的程序。Referring to FIG. 7 , based on the above-mentioned lighting effect control method, another electronic device 300 including a processor that can execute the aforementioned lighting effect control method is further provided by the embodiments of the present application, and the electronic device 300 further includes one or more processors 310, memory 320, and one or more applications. Wherein, the memory 320 stores a program that can execute the content in the foregoing embodiments, and the processor 310 can execute the program stored in the memory.

其中,处理器310可以包括一个或者多个用于处理数据的核以及消息矩阵单元。处理器310利用各种接口和线路连接整个电子设备内的各个部分,通过运行或执行存储在存储器内的指令、程序、代码集或指令集,以及调用存储在存储器内的数据,执行电子设备300的各种功能和处理数据。可选地,处理器310可以采用数字信号处理(Digital SignalProcessing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器310可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics ProcessingUnit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器中,单独通过一块通信芯片进行实现。The processor 310 may include one or more cores for processing data and a message matrix unit. The processor 310 uses various interfaces and lines to connect various parts in the entire electronic device, and executes the electronic device 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. various functions and processing data. Optionally, the processor 310 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in hardware. The processor 310 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor, and be implemented by a communication chip alone.

存储器320可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器420可用于存储指令、程序、代码、代码集或指令集。存储器可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端在使用中所创建。The memory 320 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 420 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing various method embodiments described below, and the like. The storage data area can also store the terminal created in use.

请参考图8,其示出了本申请实施例提供的一种计算机可读取存储介质400的结构框图。该计算机可读取存储介质400中存储有程序代码410,所述程序代码410可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of a computer-readable storage medium 400 provided by an embodiment of the present application. The computer-readable storage medium 400 stores program code 410, and the program code 410 can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读取存储介质400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读取存储介质400包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读取存储介质400具有执行上述方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码可以例如以适当形式进行压缩。The computer-readable storage medium 400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has storage space for program code to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. The program code may, for example, be compressed in a suitable form.

本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实施方式中描述的灯效控制方法。Embodiments of the present application also provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the lighting effect control methods described in the various optional embodiments above.

综上所述,本申请提供的一种灯效控制方法、系统、装置、电子设备及存储介质,通过获取待测视频流中的音频流,对音频流进行分帧处理以获得音频帧序列;对音频帧序列中的音频帧进行音频识别处理以获得音频帧对应的识别结果,根据识别结果控制灯光设备的灯效,通过对音频流进行分帧,以音频帧为单位进行音频识别处理,计算简单方便,且以音频帧的识别结果对灯光设备的灯效进行实时控制,丰富灯效的控制方式。In summary, the present application provides a lighting effect control method, system, device, electronic device and storage medium, by acquiring the audio stream in the video stream to be tested, and performing frame segmentation processing on the audio stream to obtain an audio frame sequence; Perform audio recognition processing on the audio frames in the audio frame sequence to obtain the recognition results corresponding to the audio frames, control the lighting effect of the lighting equipment according to the recognition results, and perform audio recognition processing in units of audio frames by dividing the audio stream into frames. Calculate Simple and convenient, and real-time control of the lighting effect of the lighting equipment based on the recognition result of the audio frame, enriching the control methods of the lighting effect.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (14)

1.一种灯效控制方法,其特征在于,所述方法包括:1. A lighting effect control method, wherein the method comprises: 获取待测视频流中的音频流;Get the audio stream in the video stream to be tested; 对所述音频流进行分帧处理以获得音频帧序列;Framing the audio stream to obtain a sequence of audio frames; 依序获取所述音频帧序列中未遍历的其中一个音频帧作为检测音频帧;Sequentially obtain one of the audio frames that are not traversed in the audio frame sequence as a detection audio frame; 对所述检测音频帧进行音频识别处理以获得所述检测音频帧对应的识别结果;Performing audio recognition processing on the detected audio frame to obtain a recognition result corresponding to the detected audio frame; 根据所述识别结果控制灯光设备的灯效,并返回执行所述依序获取所述音频帧序列中未遍历的其中一个音频帧作为检测音频帧的步骤。Control the lighting effect of the lighting device according to the recognition result, and return to the step of sequentially acquiring one of the audio frames that is not traversed in the audio frame sequence as a detection audio frame. 2.根据权利要求1所述的方法,其特征在于,所述对所述检测音频帧进行音频识别处理以获得所述检测音频帧对应的识别结果,包括:2. The method according to claim 1, wherein, performing audio recognition processing on the detected audio frame to obtain a recognition result corresponding to the detected audio frame, comprising: 确定所述检测音频帧属于预设类别的概率;其中,所述预设类别的数量为多个;Determine the probability that the detected audio frame belongs to a preset category; wherein, the number of the preset category is multiple; 确定概率最高的预设类别作为所述检测音频帧对应的音乐类别;determining the preset category with the highest probability as the music category corresponding to the detected audio frame; 所述根据所述识别结果控制灯光设备的灯效,包括:The controlling the lighting effect of the lighting device according to the recognition result includes: 确定所述音乐类别对应的控制灯效;determining the control lighting effect corresponding to the music category; 控制所述灯光设备展现所述控制灯效。The lighting device is controlled to exhibit the controlled lighting effect. 3.根据权利要求2所述的方法,其特征在于,所述控制所述灯光设备展现所述控制灯效,包括:3. The method according to claim 2, wherein the controlling the lighting device to exhibit the controlled lighting effect comprises: 若所述音乐类别的概率高于预设类别阈值,则控制所述灯光设备展现控制灯效。If the probability of the music category is higher than a preset category threshold, the lighting device is controlled to exhibit a controlled lighting effect. 4.根据权利要求2所述的方法,其特征在于,所述确定所述音乐类别对应的控制灯效,包括:4. The method according to claim 2, wherein the determining the control lighting effect corresponding to the music category comprises: 若所述音乐类别属于其它类别,则不对所述灯光设备进行控制;If the music category belongs to other categories, do not control the lighting equipment; 否则,确定所述音乐类别对应的控制灯效。Otherwise, determine the control lighting effect corresponding to the music category. 5.根据权利要求2所述的方法,其特征在于,所述控制所述灯光设备展现所述控制灯效,包括:5. The method according to claim 2, wherein the controlling the lighting device to exhibit the controlled lighting effect comprises: 确定所述灯光设备的当前状态;determining the current state of the lighting device; 若所述当前状态为灯效展现状态,则不对所述灯光设备进行控制;If the current state is a lighting effect display state, the lighting equipment is not controlled; 否则,控制所述灯光设备展现所述控制灯效。Otherwise, the lighting device is controlled to exhibit the controlled lighting effect. 6.根据权利要求2所述的方法,其特征在于,所述控制所述灯光设备展现所述控制灯效,包括:6. The method according to claim 2, wherein the controlling the lighting device to exhibit the controlled lighting effect comprises: 控制所述灯光设备在预设过滤时间内重复展现所述控制灯效;其中,单次所述控制灯效的展现时间小于所述预设过滤时间。The lighting device is controlled to repeatedly display the control lighting effect within a preset filter time; wherein, the display time of the single control lighting effect is less than the preset filter time. 7.根据权利要求2所述的方法,其特征在于,所述依序获取所述音频帧序列中未遍历的其中一个音频帧作为检测音频帧,包括:7. The method according to claim 2, wherein the sequentially acquiring one of the audio frames that are not traversed in the audio frame sequence as a detection audio frame, comprising: 依序按预设采样间隔获取所述音频帧序列中未遍历的其中一个音频帧作为检测音频帧;Acquiring one of the audio frames that are not traversed in the audio frame sequence according to the preset sampling interval in sequence as the detection audio frame; 其中,单次所述控制灯效的展现时间大于所述预设取样间隔。Wherein, the display time of the single control lighting effect is greater than the preset sampling interval. 8.根据权利要求1至7任一项所述的方法,其特征在于,所述获取待测视频流之前,所述方法还包括:8. The method according to any one of claims 1 to 7, wherein before the acquiring the video stream to be tested, the method further comprises: 获取原始视频流;Get the original video stream; 基于所述原始视频流生成至少两路所述待测视频流;Generate at least two video streams to be tested based on the original video stream; 将其中一路所述待测视频流发送至显示设备,以使显示设备根据所述其中一路待测视频流进行显示;sending one of the video streams to be tested to the display device, so that the display device displays according to the one of the video streams to be tested; 所述获取待测视频流中的音频流;包括:Described acquiring the audio stream in the video stream to be tested; including: 获取其中另一路所述待测视频流中的音频流。Acquire the audio stream in the other video stream to be tested. 9.根据权利要求8所述的方法,其特征在于,所述方法还包括:9. The method according to claim 8, wherein the method further comprises: 当所述显示设备响应于控制操作,进入与所述控制操作对应的显示状态时,控制所述灯光设备进入与所述控制操作对应的灯效状态。When the display device enters a display state corresponding to the control operation in response to the control operation, the lighting device is controlled to enter a lighting effect state corresponding to the control operation. 10.根据权利要求1至8任一项所述的方法,其特征在于,所述灯光设备包括一个或多个灯光单元。10. The method of any one of claims 1 to 8, wherein the lighting device comprises one or more lighting units. 11.一种灯效控制系统,其特征在于,包括:控制设备和与所述控制设备连接的灯光设备;11. A lighting effect control system, comprising: a control device and a lighting device connected to the control device; 其中,所述控制设备用于执行如权利要求1至10任一项所述的灯效控制方法。Wherein, the control device is used to execute the lighting effect control method according to any one of claims 1 to 10. 12.一种灯效控制装置,其特征在于,包括:12. A lighting effect control device, comprising: 音频流获取模块,用于获取待测视频流中的音频流;The audio stream acquisition module is used to acquire the audio stream in the video stream to be tested; 音频帧序列获取模块,用于对所述音频流进行分帧处理以获得音频帧序列;an audio frame sequence acquisition module, for performing frame segmentation processing on the audio stream to obtain an audio frame sequence; 检测音频帧确定模块,用于依序获取音频帧序列中未遍历的其中一个音频帧作为检测音频帧;The detection audio frame determination module is used to sequentially obtain one of the audio frames that are not traversed in the audio frame sequence as the detection audio frame; 识别模块,用于对所述检测音频帧进行音频识别处理以获得所述检测音频帧对应的识别结果;an identification module, configured to perform audio identification processing on the detected audio frame to obtain a corresponding identification result of the detected audio frame; 灯效控制模块,用于根据所述识别结果控制灯光设备的灯效。The lighting effect control module is used to control the lighting effect of the lighting equipment according to the recognition result. 13.一种电子设备,其特征在于,包括:13. An electronic device, characterized in that, comprising: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1-10任一项所述的灯效控制方法。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to execute The light effect control method according to any one of claims 1-10. 14.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-10任一项所述的灯效控制方法。14. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute any one of claims 1-10 lighting effect control method.
CN202111666958.0A 2021-12-31 2021-12-31 Lighting effect control method, system, device, electronic device and storage medium Active CN114422846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666958.0A CN114422846B (en) 2021-12-31 2021-12-31 Lighting effect control method, system, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666958.0A CN114422846B (en) 2021-12-31 2021-12-31 Lighting effect control method, system, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114422846A true CN114422846A (en) 2022-04-29
CN114422846B CN114422846B (en) 2025-04-29

Family

ID=81270724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666958.0A Active CN114422846B (en) 2021-12-31 2021-12-31 Lighting effect control method, system, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114422846B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020038157A1 (en) * 2000-06-21 2002-03-28 Dowling Kevin J. Method and apparatus for controlling a lighting system in response to an audio input
CN106851008A (en) * 2017-03-01 2017-06-13 维沃移动通信有限公司 A kind of lamp light control method and mobile terminal
CN107135578A (en) * 2017-06-08 2017-09-05 复旦大学 Smart Music Chord-Ambient Lighting System Based on TonaLighting Adjustment Technology
US20180061438A1 (en) * 2016-03-11 2018-03-01 Limbic Media Corporation System and Method for Predictive Generation of Visual Sequences
WO2021074678A1 (en) * 2019-10-17 2021-04-22 Ghose Anirvan A system to provide synchronized lighting and effects for cinema and home
CN113286405A (en) * 2021-04-30 2021-08-20 深圳市凯润智能照明有限公司 System and method for realizing synchronous control of lamplight by audio frequency and image
CN113573442A (en) * 2021-07-16 2021-10-29 广东和音元视电子科技有限公司 Method, apparatus, and computer-readable storage medium for audio control of scenes
CN113613369A (en) * 2021-08-11 2021-11-05 深圳市智岩科技有限公司 Light effect control method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020038157A1 (en) * 2000-06-21 2002-03-28 Dowling Kevin J. Method and apparatus for controlling a lighting system in response to an audio input
US20180061438A1 (en) * 2016-03-11 2018-03-01 Limbic Media Corporation System and Method for Predictive Generation of Visual Sequences
CN106851008A (en) * 2017-03-01 2017-06-13 维沃移动通信有限公司 A kind of lamp light control method and mobile terminal
CN107135578A (en) * 2017-06-08 2017-09-05 复旦大学 Smart Music Chord-Ambient Lighting System Based on TonaLighting Adjustment Technology
WO2021074678A1 (en) * 2019-10-17 2021-04-22 Ghose Anirvan A system to provide synchronized lighting and effects for cinema and home
CN113286405A (en) * 2021-04-30 2021-08-20 深圳市凯润智能照明有限公司 System and method for realizing synchronous control of lamplight by audio frequency and image
CN113573442A (en) * 2021-07-16 2021-10-29 广东和音元视电子科技有限公司 Method, apparatus, and computer-readable storage medium for audio control of scenes
CN113613369A (en) * 2021-08-11 2021-11-05 深圳市智岩科技有限公司 Light effect control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114422846B (en) 2025-04-29

Similar Documents

Publication Publication Date Title
CN107436921B (en) Video data processing method, device, equipment and storage medium
CN112669417B (en) Virtual image generation method and device, storage medium and electronic equipment
CN107018370B (en) Display method and system for video wall
CN112652041B (en) Virtual image generation method, device, storage medium and electronic equipment
US8958686B2 (en) Information processing device, synchronization method, and program
WO2022068479A1 (en) Image processing method and apparatus, and electronic device and computer-readable storage medium
CN113038222B (en) Video processing method, device, electronic equipment and storage medium
EP3660632A1 (en) Display apparatus and control method thereof
CN113010075B (en) Multi-signal source window interaction method and system, readable storage medium and electronic device
CN114599130A (en) Intelligent ambient lighting system based on STM32 master control
US11373340B2 (en) Display apparatus and controlling method thereof
WO2020155981A1 (en) Emoticon effect generating method and device and electronic device
CN115811639A (en) Comic video generation method, device, electronic device and storage medium
CN114422846A (en) Lighting effect control method, system, device, electronic device and storage medium
CN115689863A (en) Style transfer model training method, image style transfer method and device
US11737192B2 (en) Lighting effect control method, system, apparatus, electronic device, and storage medium
CN113923477A (en) Video processing method, device, electronic device, and storage medium
US20210044875A1 (en) Electronic device and control method therefor
KR20210049582A (en) Electronic apparatus and controlling method thereof
KR20220072493A (en) Electronic device and method for controlling electronic device
US20220139066A1 (en) Scene-Driven Lighting Control for Gaming Systems
US11706394B1 (en) Method of real-time variable refresh rate video processing for ambient light rendering and system using the same
US20250126221A1 (en) Method, apparatus, electronic device and readable medium for video recording
US20230410831A1 (en) Electronic apparatus and controlling method thereof
CN117041645A (en) Video playing method and device based on digital person, electronic equipment 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

Country or region after: China

Address after: 518057 3301, Building C, Lot 1, Chuangzhi Yuncheng, Liuxian Avenue, Xili Community, Xili Street, Nanshan District, Shenzhen, Guangdong

Applicant after: Shenzhen Zhiyan Technology Co.,Ltd.

Address before: 518000 2901, 2902, 2903, 2904, 3002, block C, building 1, Chuangzhi Yuncheng bid section 1, Liuxian Avenue, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN ZHIYAN TECHNOLOGY Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant