CN112843677B - System delay determining method, device, equipment and storage medium - Google Patents
System delay determining method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112843677B CN112843677B CN202110172567.7A CN202110172567A CN112843677B CN 112843677 B CN112843677 B CN 112843677B CN 202110172567 A CN202110172567 A CN 202110172567A CN 112843677 B CN112843677 B CN 112843677B
- Authority
- CN
- China
- Prior art keywords
- window
- signal
- time
- multimedia signal
- operation instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000004044 response Effects 0.000 claims abstract description 98
- 230000035772 mutation Effects 0.000 claims abstract description 32
- 230000008859 change Effects 0.000 claims description 80
- 230000005236 sound signal Effects 0.000 claims description 32
- 238000012549 training Methods 0.000 claims description 19
- 238000001514 detection method Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004927 fusion Effects 0.000 claims description 11
- 230000001934 delay Effects 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 claims description 7
- 238000012706 support-vector machine Methods 0.000 claims description 6
- 238000013461 design Methods 0.000 claims description 5
- 238000007637 random forest analysis Methods 0.000 claims description 4
- 230000003238 somatosensory effect Effects 0.000 claims description 4
- 230000009466 transformation Effects 0.000 claims description 4
- 238000009877 rendering Methods 0.000 abstract description 16
- 230000003993 interaction Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 15
- 238000012545 processing Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 6
- 238000012360 testing method Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000007474 system interaction Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000005266 casting Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
- A63F13/358—Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/46—Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
- G06V10/462—Salient features, e.g. scale invariant feature transforms [SIFT]
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- User Interface Of Digital Computer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本公开实施例涉及数据处理技术领域,尤其涉及一种系统延时确定方法、装置、设备和存储介质。The embodiments of the present disclosure relate to the technical field of data processing, and in particular, to a method, device, device and storage medium for determining system delay.
背景技术Background technique
在远程渲染系统中,用户通过客户端输入操作指令,将操作指令发送至服务器,服务器获取该操作指令对应的媒体信号,并将媒体信号返回至客户端,客户端响应上述媒体信号并进行展示。在远程渲染系统中,由于客户端需要去服务器请求媒体信号,导致操作指令到展示相应的媒体信号之间有一定的延时。常见远程渲染系统延时包括云游戏的延时,投屏应用的延时,或者远程桌面的延时等。In the remote rendering system, the user inputs an operation instruction through the client and sends the operation instruction to the server. The server obtains the media signal corresponding to the operation instruction and returns the media signal to the client. The client responds to the above media signal and displays it. In the remote rendering system, since the client needs to request the media signal from the server, there is a certain delay between the operation command and the display of the corresponding media signal. Common remote rendering system delays include cloud game delays, screen-casting application delays, or remote desktop delays, etc.
现有技术中,多采用基于高速相机的人工测量方法来确定远程渲染系统的延时。图1是基于高速相机的延时确定方法的示意图;如图1所示,使用高速相机记录用户对远程渲染系统的输入和远程系统的响应。然后人工找到用户输入的视频帧和系统响应发生的视频帧,两者之间的时间差就是系统延时。In the prior art, a manual measurement method based on a high-speed camera is often used to determine the delay of the remote rendering system. Fig. 1 is a schematic diagram of a delay determination method based on a high-speed camera; as shown in Fig. 1 , a high-speed camera is used to record the user's input to the remote rendering system and the response of the remote system. Then manually find the video frame input by the user and the video frame where the system responds. The time difference between the two is the system delay.
上述方法可以较为准确地测得远程系统的延时,但是需要昂贵的高速相机,同时,人工寻找用户输入帧和系统响应帧也是一件费时费力的工作。The above method can measure the delay of the remote system more accurately, but requires an expensive high-speed camera, and at the same time, manually searching for user input frames and system response frames is also a time-consuming and laborious work.
发明内容Contents of the invention
本公开实施例提供一种系统延时确定方法、装置、设备和存储介质,以方便快捷地测量远程渲染系统的交互延时。Embodiments of the present disclosure provide a method, device, device and storage medium for determining system delay, so as to conveniently and quickly measure the interaction delay of a remote rendering system.
第一方面,本公开实施例提供了一种系统延时确定方法,包括:In a first aspect, an embodiment of the present disclosure provides a system delay determination method, including:
响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻;Responding to a user operation instruction acting on the multimedia signal of the background window, acquiring the input moment of the user operation instruction;
检测背景窗口和前景窗口中的多媒体信号,其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口;detecting a multimedia signal in a background window and a foreground window, wherein the background window is a first time window before the input moment and the foreground window is a second time window after the input moment;
基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定所述用户操作指令的响应时刻;Determine the response time of the user operation instruction based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window;
根据所述输入时刻和所述响应时刻确定系统的系统延时。A system delay of the system is determined according to the input time and the response time.
第二方面,本公开实施例还提供了一种系统延时确定装置,其特征在于,包括:In the second aspect, the embodiment of the present disclosure also provides a device for determining system delay, which is characterized in that it includes:
输入时刻获取模块,用于响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻;The input time acquisition module is used to acquire the input time of the user operation command in response to the user operation command acting on the multimedia signal of the background window;
多媒体信号检测模块,用于检测背景窗口和前景窗口中的多媒体信号,其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口;A multimedia signal detection module, configured to detect multimedia signals in a background window and a foreground window, wherein the background window is a first time window before the input moment, and the foreground window is a second time after the input moment window;
响应时刻确定模块,用于基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定所述用户操作指令的响应时刻;A response time determination module, configured to determine the response time of the user operation instruction based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window;
系统延时确定模块,用于根据所述输入时刻和所述响应时刻确定系统的系统延时。A system delay determination module, configured to determine the system delay of the system according to the input time and the response time.
第三方面,本公开实施例还提供了一种系统延时确定设备,包括:In a third aspect, an embodiment of the present disclosure also provides a device for determining system delay, including:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开实施例中任一项所述的系统延时确定方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for determining system delay according to any one of the embodiments of the present disclosure.
第四方面,本公开实施例还提供了一种计算机存储介质,所述介质存储有计算机程序,所述计算机程序被处理器执行时实现如本公开实施例中任一项所述的系统延时确定方法。In a fourth aspect, the embodiments of the present disclosure further provide a computer storage medium, the medium stores a computer program, and when the computer program is executed by a processor, the system delay as described in any one of the embodiments of the present disclosure is implemented. Determine the method.
本公开提供一种系统延时确定方法、装置、设备和存储介质,上述系统延时确定方法包括:响应于作用在背景窗口的多媒体信号上的用户操作指令,获取用户操作指令的输入时刻;检测背景窗口和前景窗口中的多媒体信号,其中,背景窗口是输入时刻之前的第一时间窗口,前景窗口是输入时刻之后的第二时间窗口;基于前景窗口中的多媒体信号相对于背景窗口中的多媒体信号的突变情况,确定用户操作指令的响应时刻;根据输入时刻和响应时刻确定系统的系统延时。本公开实施例通过获取用户操作指令的输入时刻以及用户操作指令对应的响应时刻确定系统延时,该方案不需要昂贵的硬件设备,也不需要过多的人工参与,可以方便快捷地测量远程渲染系统的交互延时。The present disclosure provides a system delay determination method, device, device and storage medium. The system delay determination method includes: responding to a user operation instruction acting on a multimedia signal in a background window, obtaining the input time of the user operation instruction; detecting The multimedia signal in the background window and the foreground window, wherein, the background window is the first time window before the input moment, and the foreground window is the second time window after the input moment; based on the multimedia signal in the foreground window relative to the multimedia in the background window The sudden change of the signal determines the response time of the user's operation command; the system delay of the system is determined according to the input time and the response time. The embodiment of the present disclosure determines the system delay by obtaining the input time of the user operation command and the corresponding response time of the user operation command. This solution does not require expensive hardware equipment or excessive manual participation, and can measure remote rendering conveniently and quickly. System interaction delay.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1是基于高速相机的延时确定方法的示意图;Fig. 1 is a schematic diagram of a delay determination method based on a high-speed camera;
图2是远程渲染系统的拓扑结构的示意图;FIG. 2 is a schematic diagram of a topology structure of a remote rendering system;
图3是本公开实施例提供的一种系统延时确定方法的流程图;FIG. 3 is a flow chart of a method for determining system delay provided by an embodiment of the present disclosure;
图4是本公开实施例提供的另一种系统延时确定方法的流程图;FIG. 4 is a flow chart of another method for determining system delay provided by an embodiment of the present disclosure;
图5是本公开实施例提供的一种系统延时确定方法的示意图;FIG. 5 is a schematic diagram of a system delay determination method provided by an embodiment of the present disclosure;
图6是本公开实施例提供的MoSIFT和MFCC的示意图;FIG. 6 is a schematic diagram of MoSIFT and MFCC provided by an embodiment of the present disclosure;
图7是本公开实施例提供的在两个云游戏上的延时结果的示意图;Fig. 7 is a schematic diagram of delay results on two cloud games provided by an embodiment of the present disclosure;
图8是本公开实施例提供的一种系统延时确定装置的示意图;FIG. 8 is a schematic diagram of an apparatus for determining system delay provided by an embodiment of the present disclosure;
图9是本公开实施例提供的一种系统延时确定设备的结构图。Fig. 9 is a structural diagram of a device for determining system delay provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and/or executed in parallel. Additionally, method embodiments may include additional steps and/or omit performing illustrated steps. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment"; the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are used for illustrative purposes only, and are not used to limit the scope of these messages or information.
首先,以云游戏延时为例进行说明。云游戏(Cloud gaming)又可称为游戏点播(gaming on demand),是一种以云计算技术为基础的在线游戏技术。云游戏技术使图形处理与数据运算能力相对有限的轻端设备(thin client)能运行高品质游戏。在云游戏场景下,游戏并不在玩家游戏客户端,而是在云端服务器中运行,并由云端服务器将游戏场景渲染为视频音频流,通过网络传输给玩家游戏客户端。玩家游戏客户端无需拥有强大的图形运算与数据处理能力,仅需拥有基本的流媒体播放能力与获取玩家输入指令并发送给云端服务器的能力即可。为了保证云游戏过程的顺畅,需要进行云游戏延时测试。First, take cloud game delay as an example for illustration. Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In the cloud game scenario, the game is not running on the player's game client, but in the cloud server, and the cloud server renders the game scene into a video and audio stream, which is transmitted to the player's game client through the network. The player's game client does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input instructions and send them to the cloud server. In order to ensure the smoothness of the cloud game process, a cloud game delay test is required.
其次,对远程渲染系统延时进行简单介绍。如图2所示,一个远程渲染系统往往包含一个本地的客户端和一个远程的服务器,其端到端的延时包含了输入硬件延时t1,主进程延时和输出硬件延时t2。其中主进程延时包含了本地的客户端处理延时(图2中未示出),网络传输延时(图2中的局域网上传延时t2、广域网上传延时t3、广域网下载延时t5、局域网下载延时t6)和远程服务器的处理延时t7,是客户端到服务端延时的最主要的部分。输入硬件延时t1和输出硬件延时t2通常是一个基本不变的常数值,同时主进程延时往往远远大于输入硬件延时t1和输出硬件延时t2。因此本公开中主要考虑确定如图2中所示的主进程延时。Secondly, a brief introduction to the delay of the remote rendering system. As shown in Figure 2, a remote rendering system usually includes a local client and a remote server, and its end-to-end delay includes input hardware delay t1, main process delay and output hardware delay t2. Wherein the master process delay includes local client processing delay (not shown in Fig. 2), network transmission delay (local area network upload delay t2 in Figure 2, WAN upload delay t3, WAN download delay t5, The local area network download delay t6) and the processing delay t7 of the remote server are the most important parts of the delay from the client to the server. The input hardware delay t1 and the output hardware delay t2 are usually a constant value that does not change, and the delay of the main process is often much greater than the input hardware delay t1 and the output hardware delay t2. Therefore, this disclosure mainly considers determining the delay of the main process as shown in FIG. 2 .
需要说明的是,在下述实施例中的系统延时均是指图2中的主进程延时,不包括输入硬件延时t1和输出硬件延时t2。It should be noted that the system delay in the following embodiments refers to the delay of the main process in FIG. 2 , excluding the input hardware delay t1 and the output hardware delay t2 .
本实施例中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。客户端可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。客户端以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本实施例在此不做限制。In this embodiment, the server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, and network services Cloud servers for basic cloud computing services such as cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Clients can be smartphones, tablets, laptops, desktop computers, smart speakers, smart watches, etc., but are not limited thereto. The client and the server may be connected directly or indirectly through wired or wireless communication, which is not limited in this embodiment.
图3是本公开实施例提供的一种系统延时确定方法的流程图,本实施例可适用于确定远程渲染交互系统的响应延迟情况,该方法可以由系统延时确定装置来执行,所述系统延时确定装置可以通过软件和/或硬件的方式来实现。所述系统延时确定方法应用于客户端中。Fig. 3 is a flow chart of a method for determining system delay provided by an embodiment of the present disclosure. This embodiment is applicable to determining the response delay of a remote rendering interactive system, and the method can be executed by a system delay determining device. The device for determining the system delay can be implemented by means of software and/or hardware. The method for determining the system delay is applied to the client.
需要说明的是,本实施例所提供的系统延时确定方法具体可以在客户端上使用,并可认为具体由集成在客户端上的系统延时确定装置执行,其中,客户端可以是包括了处理器、存储器、输入装置和输出装置的计算机设备。如笔记本电脑、台式计算机、平板电脑以及智能终端等。It should be noted that the system delay determination method provided in this embodiment can be used on the client, and can be considered to be executed by a system delay determination device integrated on the client, wherein the client can include A computer device with a processor, memory, input devices, and output devices. Such as notebook computers, desktop computers, tablet computers and smart terminals.
如图3所示,本实施例提供的系统延时确定方法主要包括步骤S11、S12和S13和S14。As shown in FIG. 3 , the system delay determination method provided in this embodiment mainly includes steps S11 , S12 , S13 and S14 .
S11、响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻。S11. In response to a user operation instruction acting on a multimedia signal in a background window, acquire an input time of the user operation instruction.
其中,所述用户操作指令可以是通过客户端的输入装置输入的操作指令,上述输入装置可以是内置于客户端中的输入设备,如:触摸显示屏,内置语音输入装置等;也可以是通过通讯线与客户端进行连接的外置输入设备,如:鼠标、键盘、游戏手柄等。Wherein, the user operation instruction may be an operation instruction input through an input device of the client, and the above-mentioned input device may be an input device built into the client, such as: a touch screen, a built-in voice input device, etc.; External input devices connected to the client via cable, such as mouse, keyboard, gamepad, etc.
示例性的,操作指令可以是随机对鼠标、键盘或游戏手柄的点击操作。操作指令还可以是随机点击操作界面中的可操作点,或规定的可操作点位置,例如:操作界面的四角、中心或其他虚拟元素对应的位置,具体的形式因实际场景而定。Exemplarily, the operation instruction may be a random click operation on the mouse, keyboard or gamepad. The operation instruction can also be a random click on an operable point in the operation interface, or a specified position of the operable point, for example: the four corners, the center of the operation interface, or the corresponding position of other virtual elements. The specific form depends on the actual scene.
其中,所述背景窗口是所述输入时刻之前的第一时间窗口。背景窗口的多媒体信号可以是输入时刻之前一个时间窗口内的视频音频信号。Wherein, the background window is a first time window before the input moment. The multimedia signal in the background window may be a video and audio signal in a time window before the input moment.
进一步的,输入时刻可以是响应到用户操作指令的时刻,也可以是用户进行操作的时刻。具体的,若输入时刻是响应到用户操作指令的时刻,则测得的系统延时是包括输入硬件延时,若输入时刻是用户进行操作的时刻,则测得的系统延时是不包括输入硬件延时。Further, the input time may be the time when the user operation instruction is responded to, or the time when the user performs an operation. Specifically, if the input moment is the moment when the user operates an instruction, the measured system delay includes the input hardware delay; if the input moment is the moment when the user performs an operation, the measured system delay does not include the input delay. hardware delay.
在一个优选实施方式中,输入时刻是指客户端的处理器响应到操作指令的时刻。由于用户进行操作的时刻到响应的时刻是指输入硬件延时,输入硬件延时往往是一个固定的数值,且获取响应到操作指令的时刻要比获取用户进行操作的时刻容易,因此,本实施例中,输入时刻是指响应到操作指令的时刻。In a preferred embodiment, the input time refers to the time when the processor of the client responds to the operation instruction. Since the time from the user's operation to the response time refers to the input hardware delay, the input hardware delay is often a fixed value, and it is easier to obtain the time from the response to the operation command than the time from the user's operation. Therefore, this implementation In the example, the input time refers to the time when the operation instruction is responded to.
其中,多媒体是指多种媒体的综合,一般包括文本,图片,照片,音频和视频等多种媒体形式。多媒体信号一般可以理解为上述多种媒体形式对应的数据信号。Among them, multimedia refers to the synthesis of multiple media, generally including text, pictures, photos, audio and video and other media forms. A multimedia signal can generally be understood as a data signal corresponding to the above-mentioned various media forms.
获取输入时刻可以是检测到响应于用户输入的操作指令时,获取此时的系统时间。获取输入时刻还可以是响应于用户输入的操作指令后,读取该操作指令对应的时间戳,以获取输入时刻。需要说明的是,本实施例仅对获取输入时刻的方式进行说明,而非限定。Acquiring the input time may be to acquire the system time at that time when an operation instruction inputted by the user is detected. Acquiring the input time may also be to read the time stamp corresponding to the operation instruction after responding to the operation instruction input by the user, so as to obtain the input time. It should be noted that this embodiment only illustrates the manner of acquiring the input time, but does not limit it.
S12、检测背景窗口和前景窗口中的多媒体信号。S12. Detect multimedia signals in the background window and the foreground window.
其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口。Wherein, the background window is a first time window before the input moment, and the foreground window is a second time window after the input moment.
其中,时间窗口,通常对于一些实时信息展示中的概念,比如维持一个五分钟的交易明细时间窗口,就需要记录当前时间,到五分钟之前的所有交易明细,而五分钟之前的数据,则丢掉。在本实施例中,一个时间窗口可以是多个视频帧的时间或者多个音频帧的时间。Among them, the time window, usually for some concepts in real-time information display, such as maintaining a five-minute transaction detail time window, it is necessary to record the current time, all transaction details up to five minutes ago, and the data before five minutes, then discarded . In this embodiment, a time window may be the time of multiple video frames or the time of multiple audio frames.
具体的,检测背景窗口的多媒体信号可以是检测输入时刻之前一个时间窗口内的视频图像或者音频。检测前景窗口的多媒体信号可以是检测输入时刻后前一个时间窗口内的视频图像或者音频。具体的,可以是确定输入时刻后,抽取输入时刻之前的多帧视频或者音频作为背景窗口的多媒体信号,可以是确定输入时刻后,抽取输入时刻之后的多帧视频或者音频作为前景窗口的多媒体信号。Specifically, the multimedia signal of the detection background window may be a video image or audio in a time window before the detection input moment. The multimedia signal of the detection foreground window may be a video image or audio in a time window before the detection input moment. Specifically, after the input time is determined, multiple frames of video or audio before the input time may be extracted as the multimedia signal of the background window; after the input time is determined, multiple frames of video or audio after the input time may be extracted as the multimedia signal of the foreground window .
S13、基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定所述用户操作指令的响应时刻。S13. Based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window, determine a response time for the user operation instruction.
用户操作指令发送至云端服务器,云端服务器基于所述用户操作指令将游戏场景渲染为视频音频流,通过网络传输给客户端,客户端接收渲染后的视频音频流,并进行显示。The user operation instruction is sent to the cloud server, and the cloud server renders the game scene into a video and audio stream based on the user operation instruction, and transmits it to the client through the network, and the client receives and displays the rendered video and audio stream.
用户操作指令的响应时刻可以理解为客户端通过输出装置展示多媒体信号的时刻,即客户端的处理器将多媒体信号发送至输出装置,输出装置得到多媒体信号的时刻。上述输出装置可以是内置于计算机设备中的输出设备,如:触摸显示屏、内置音箱等;也可以是通过通讯线与计算机设备进行连接的外置输出设备,如:投影仪、数字TV、外置音箱等。The response time of the user operation command can be understood as the time when the client displays the multimedia signal through the output device, that is, the time when the processor of the client sends the multimedia signal to the output device, and the output device obtains the multimedia signal. The above-mentioned output device can be an output device built in the computer equipment, such as a touch screen, a built-in speaker, etc.; it can also be an external output device connected to the computer equipment through a communication line, such as a projector, a digital TV, an external speakers, etc.
示例性的,上述用户操作指令的响应时刻可以是接收到视频信号并渲染完成后,即将通过触摸显示屏或者数字TV进行展示的时刻。上述用户操作指令的响应时刻还可以是接收到音频信号并渲染完成后,即将通过音箱播放音频的时刻。Exemplarily, the response time of the above-mentioned user operation instruction may be the time when the video signal is received and rendered and is about to be displayed through a touch screen or a digital TV. The response time of the above-mentioned user operation instruction may also be the time when the audio signal is about to be played through the speaker after the audio signal is received and rendered.
在本实施例中,确定用户操作指令的响应时刻可以是检测到响应于多媒体信号时,获取此时的系统时间确定响应多媒体信号的响应时刻还可以是响应于多媒体信号后,读取多媒体信号对应的展示时间戳,以获取输入时刻。需要说明的是,本实施例仅对确定响应时刻的方式进行说明,而非限定。In this embodiment, the determination of the response time of the user operation instruction may be when a response to the multimedia signal is detected, and the system time at this time is acquired to determine the response time of the response to the multimedia signal. The impression timestamp for the input moment. It should be noted that this embodiment only illustrates the manner of determining the response time, rather than limiting it.
在一个实施方式中,利用起始点检测方法确定所述用户操作指令的响应时刻。In one embodiment, a starting point detection method is used to determine the response time of the user operation instruction.
具体的,检测在背景窗口和前景窗口中是否有明显的多媒体信号突变。例如音频的能量在背景窗口中没有突变而在前景窗口有明显的突变,则认为该突变由用户操作指令引起,是系统对用户操作指令的响应,获取该突变对应的时刻,并确定为确定响应多媒体信号的响应时刻。Specifically, it is detected whether there is an obvious mutation of the multimedia signal in the background window and the foreground window. For example, if there is no sudden change in the energy of the audio in the background window but there is an obvious sudden change in the foreground window, then the sudden change is considered to be caused by the user’s operation command, which is the system’s response to the user’s operation command, and the moment corresponding to the sudden change is obtained and determined as a definite response Response time for multimedia signals.
S14、根据所述输入时刻和所述响应时刻确定系统的系统延时。S14. Determine a system delay of the system according to the input time and the response time.
如图2所示,多媒体信号在本地客户端上的响应时刻与用户输入操作指令对应的输入时刻的差值,为计算得到的系统延时。As shown in FIG. 2 , the difference between the response time of the multimedia signal on the local client and the input time corresponding to the user's input operation command is the calculated system delay.
本公开实施例提供的系统延时确定方法包括:响应于作用在背景窗口的多媒体信号上的用户操作指令,获取用户操作指令的输入时刻;检测背景窗口和前景窗口中的多媒体信号,其中,背景窗口是输入时刻之前的第一时间窗口,前景窗口是输入时刻之后的第二时间窗口;基于前景窗口中的多媒体信号相对于背景窗口中的多媒体信号的突变情况,确定用户操作指令的响应时刻;根据输入时刻和响应时刻确定系统的系统延时。本公开实施例通过获取用户操作指令的输入时刻以及用户操作指令对应的响应时刻确定系统延时,该方案不需要昂贵的硬件设备,也不需要过多的人工参与,可以方便快捷地测量远程渲染系统的交互延时。The system delay determination method provided by the embodiment of the present disclosure includes: responding to the user operation instruction acting on the multimedia signal of the background window, obtaining the input time of the user operation instruction; detecting the multimedia signal in the background window and the foreground window, wherein, the background The window is the first time window before the input moment, and the foreground window is the second time window after the input moment; based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window, determine the response time of the user operation instruction; Determine the system delay of the system according to the input time and response time. The embodiment of the present disclosure determines the system delay by obtaining the input time of the user operation command and the corresponding response time of the user operation command. This solution does not require expensive hardware equipment or excessive manual participation, and can measure remote rendering conveniently and quickly. System interaction delay.
在上述实施例的基础上,本公开实施例对所述系统延时确定方法进行优化。图4是本公开实施例提供的另一种系统延时确定方法的流程图;如图4所示,本公开实施例所提供的系统延时确定方法主要包括如下步骤:On the basis of the foregoing embodiments, embodiments of the present disclosure optimize the method for determining system delay. Fig. 4 is a flowchart of another method for determining system delay provided by an embodiment of the present disclosure; as shown in Fig. 4 , the method for determining system delay provided by an embodiment of the present disclosure mainly includes the following steps:
S21、响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻。S21. In response to a user operation instruction acting on a multimedia signal in a background window, acquire an input time of the user operation instruction.
S22、检测背景窗口和前景窗口中的多媒体信号,其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口。S22. Detect multimedia signals in a background window and a foreground window, wherein the background window is a first time window before the input moment, and the foreground window is a second time window after the input moment.
在本实施例中,时间窗口,通常对于一些实时信息展示中的概念,比如维持一个五分钟的交易明细时间窗口,就需要记录当前时间,到五分钟之前的所有交易明细,而五分钟之前的数据,则丢掉。在本实施例中,一个时间窗口可以是多个视频帧的时间或者多个音频帧的时间。In this embodiment, the time window, usually for some concepts in real-time information display, such as maintaining a five-minute transaction detail time window, needs to record all transaction details up to five minutes before the current time, and five minutes ago data is discarded. In this embodiment, a time window may be the time of multiple video frames or the time of multiple audio frames.
S23、确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的。S23. Determine whether the sudden change of the multimedia signal in the foreground window is caused by the user operation instruction.
在本实施例中,信号突变可以理解为在较短的时间内,在信号波形上发生了极大的变化。背景窗口中的多媒体信号未发生突变可以立即为背景窗口中的多媒体信号在波形上没有发生变化,或者发生的变化小于变化阈值。前景窗口中的多媒体信号发生突变可以立即为背景窗口中的多媒体信号在波形上发生极大变化,或者发生的变化大于或等于变化阈值。上述变化阈值可以根据实际情况进行设置,本实施例中不再进行限定。In this embodiment, a sudden change in the signal can be understood as a great change in the signal waveform within a relatively short period of time. The absence of a sudden change in the multimedia signal in the background window may immediately mean that the waveform of the multimedia signal in the background window does not change, or the change is smaller than the change threshold. A sudden change in the multimedia signal in the foreground window may immediately cause a great change in the waveform of the multimedia signal in the background window, or the change is greater than or equal to the change threshold. The foregoing change threshold may be set according to actual conditions, and is not limited in this embodiment.
进一步的,检测在背景窗口和前景窗口中是否有明显的信号突变。例如音频的能量在背景窗口中没有突变而在前景窗口有明显的突变,则认为该突变由用户输入引起,是系统对操作指令的响应,则将前景窗口中的音频的能量发生突变的时刻确定为响应音频的响应时刻。同理,视频的能量在背景窗口中没有突变而在前景窗口有明显的突变,则认为该突变由用户输入引起,是系统对操作指令的响应,则将前景窗口中的视频的能量发生突变的时刻确定为响应视频的响应时刻。Further, detect whether there are obvious signal mutations in the background window and the foreground window. For example, if the energy of the audio has no sudden change in the background window but has an obvious sudden change in the foreground window, it is considered that the sudden change is caused by user input and is the system’s response to the operation command, and the moment when the energy of the audio in the foreground window suddenly changes is determined. The response time for the response audio. In the same way, if the energy of the video has no sudden change in the background window but has an obvious sudden change in the foreground window, it is considered that the sudden change is caused by user input and is the system's response to the operation command, and the energy of the video in the foreground window is suddenly changed. The moment is determined as the response moment of the response video.
在一个实施方式中,确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的,包括:将所述前景窗口中的所述多媒体信号的突变信号和所述用户操作指令输入至预先训练的一致性分类器中;基于所述一致性分类器的输出结果确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的。In one embodiment, determining whether the sudden change of the multimedia signal in the foreground window is caused by the user operation instruction includes: combining the sudden change signal of the multimedia signal in the foreground window with the user operation instruction The instruction is input into a pre-trained consistent classifier; and based on the output result of the consistent classifier, it is determined whether the sudden change of the multimedia signal in the foreground window is caused by the user operation instruction.
在本实施例中,一致性分类器用于检测所述前景窗口中的所述多媒体信号的突变信号和所述用户操作指令输入是否具备一致性,即所述前景窗口中的所述多媒体信号的突变信号是否由用户操作指令引起。具体的,所述前景窗口中的所述多媒体信号的突变信号是由用户操作指令引起,则具备一致性,所述前景窗口中的所述多媒体信号的突变信号不是由用户操作指令引起,则不具备一致性。In this embodiment, the consistency classifier is used to detect whether the mutation signal of the multimedia signal in the foreground window is consistent with the user operation instruction input, that is, the mutation signal of the multimedia signal in the foreground window Whether the signal is caused by a user action command. Specifically, if the mutation signal of the multimedia signal in the foreground window is caused by a user operation instruction, then it has consistency; if the mutation signal of the multimedia signal in the foreground window is not caused by a user operation instruction, then it is not Be consistent.
示例性的,在射击云游戏中,如果用户操作指令是射击指令,所述前景窗口中的所述多媒体信号的突变信号是射击动作(包括射击的视频和/或射击的音频),那么则确定所述前景窗口中的所述多媒体信号的突变信号与用户输入的射击指令具备一致性。如果用户操作指令是射击指令,所述前景窗口中的所述多媒体信号的突变信号是瞄准动作,那么则确定所述前景窗口中的所述多媒体信号的突变信号与用户输入的射击指令具备一致性。Exemplarily, in the shooting cloud game, if the user operation instruction is a shooting instruction, and the mutation signal of the multimedia signal in the foreground window is a shooting action (including shooting video and/or shooting audio), then it is determined The mutation signal of the multimedia signal in the foreground window is consistent with the shooting instruction input by the user. If the user operation instruction is a shooting instruction, and the mutation signal of the multimedia signal in the foreground window is an aiming action, then it is determined that the mutation signal of the multimedia signal in the foreground window is consistent with the shooting instruction input by the user .
在一个实施方式中,所述一致性分类器的训练过程,包括:获取训练样本集,所述训练样本集包括:多个历史操作指令和多个历史多媒体信号的突变信号;提取各个所述历史多媒体信号的突变信号的特征;统计第一特征出现的次数,所述第一特征是指与历史操作指令对应的历史多媒体信号的突变信号的特征;将所述第一特征出现的次数确定为历史操作指令对应的标准化值;将所述历史操作指令和所述历史操作指令对应标准化值输入至预设分类器中进行训练,得到一致性分类器。In one embodiment, the training process of the consistency classifier includes: obtaining a training sample set, the training sample set including: a plurality of historical operation instructions and mutation signals of a plurality of historical multimedia signals; extracting each of the historical The feature of the mutation signal of the multimedia signal; The number of times that the first feature occurs is counted, and the first feature refers to the feature of the mutation signal of the historical multimedia signal corresponding to the historical operation instruction; The number of times that the first feature occurs is determined as the history A normalized value corresponding to the operation instruction; inputting the historical operation instruction and the normalized value corresponding to the historical operation instruction into a preset classifier for training to obtain a consistent classifier.
具体的,所述预设分类器包括如下一种或多种:支撑向量机SVM分类器,最近邻分类器,朴素贝叶斯分类器,随机森林分类器,线性判别分类器。Specifically, the preset classifiers include one or more of the following: support vector machine SVM classifier, nearest neighbor classifier, naive Bayesian classifier, random forest classifier, and linear discriminant classifier.
其中,所述预先训练的一致性分类器通过特征词袋模型进行训练。Wherein, the pre-trained consistency classifier is trained through the bag-of-features model.
在本实施例中,相同的用户输入行为会带来相似的系统响应。为了检测系统响应的一致性,针对一个远程渲染,会先收集一部分的数据来预训练一个一致性分类器,在测试阶段使用预训练的一致性分类器判断检测到的响应的多媒体信号是否满足响应的一致性。具体的,使用特征词袋模型(Bag of Feature)来训练针对系统响应的分类器。In this embodiment, the same user input behavior will bring about similar system response. In order to detect the consistency of the system response, for a remote rendering, a part of the data will be collected to pre-train a consistency classifier, and the pre-trained consistency classifier will be used in the test phase to judge whether the detected multimedia signal of the response meets the response consistency. Specifically, a bag of feature model (Bag of Feature) is used to train a classifier for system response.
其中,所述多媒体信号包括以下模态中的一种或多种:视频信号,音频信号,体感信号。Wherein, the multimedia signal includes one or more of the following modalities: video signal, audio signal, and somatosensory signal.
在一个实施方式中,提取各个所述历史多媒体信号的突变信号的特征,包括:在所述多媒体信号包括视频信号时,提取各个视频信号的突变信号对应的尺度不变特征变换SIFT特征。In one embodiment, extracting the feature of each abrupt signal of the historical multimedia signal includes: when the multimedia signal includes a video signal, extracting a scale-invariant feature transformation SIFT feature corresponding to the abrupt signal of each video signal.
在一个实施方式中,提取各个所述历史多媒体信号的突变信号的特征,包括:在所述多媒体信号包括音频信号时,提取各个音频信号的突变信号对应的梅尔倒频谱系数。In one embodiment, extracting the feature of each abrupt signal of the historical multimedia signal includes: when the multimedia signal includes an audio signal, extracting the cepstral mel coefficients corresponding to the abrupt signal of each audio signal.
具体的,在训练一致性分类器时,针对不同模态的数据,使用不同的特征。对视频数据,使用尺度不变特征变换(Scale-invariant feature transform,SIFT)特征进行训练。对音频数据,使用梅尔倒频谱系数(Mel-Frequency Cepstral Coefficients,MFCC)进行训练。预设分类器使用单类别的支撑向量机(Support Vector Machine,SVM),最近邻分类器等。Specifically, when training a consistent classifier, different features are used for data of different modalities. For video data, the scale-invariant feature transform (SIFT) features are used for training. For audio data, Mel-Frequency Cepstral Coefficients (MFCC) are used for training. The default classifier uses a single-class Support Vector Machine (Support Vector Machine, SVM), nearest neighbor classifier, etc.
S24、若所述前景窗口中的所述多媒体信号发生突变是所述用户操作指令引起的,则执行基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻的操作。S24. If the sudden change of the multimedia signal in the foreground window is caused by the user operation instruction, perform a change based on the multimedia signal in the foreground window relative to the multimedia signal in the background window In case of a sudden change, determine the operation at the time when the system responds to the user operation instruction.
在一个实施方式中,基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻,包括:若所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号发生突变,则将所述前景窗口中的多媒体信号发生突变的时刻确定为响应所述操作指令的所述响应时刻。In one embodiment, based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window, determining the response time for the system to respond to the user operation instruction includes: if the When the multimedia signal in the foreground window changes abruptly relative to the multimedia signal in the background window, the moment when the multimedia signal in the foreground window changes suddenly is determined as the response time for responding to the operation instruction.
进一步的,音频的能量在背景窗口中没有突变而在前景窗口有明显的突变,则认为该突变由用户输入引起,是系统对操作指令的响应,则将前景窗口中的音频的能量发生突变的时刻确定为响应音频的响应时刻。同理,视频的能量在背景窗口中没有突变而在前景窗口有明显的突变,则认为该突变由用户输入引起,是系统对操作指令的响应,则将前景窗口中的视频的能量发生突变的时刻确定为响应视频的响应时刻。Further, if there is no sudden change in the energy of the audio in the background window but there is an obvious sudden change in the foreground window, it is considered that the sudden change is caused by user input, which is the system’s response to the operation command, and the energy of the audio in the foreground window is suddenly changed. time is determined as the response time of the response audio. In the same way, if the energy of the video has no sudden change in the background window but has an obvious sudden change in the foreground window, it is considered that the sudden change is caused by user input and is the system's response to the operation command, and the energy of the video in the foreground window is suddenly changed. The moment is determined as the response moment of the response video.
S25、针对每种模态信号,基于该模态对应的输入时刻和输出时刻确定该模态对应的响应延时。S25. For each mode signal, determine a response delay corresponding to the mode based on the input time and output time corresponding to the mode.
在本实施例在中,通过上述方式确定系统延时可能是单模态延时,也可能是多模态延时。当多媒体信号是单一的视频信号或者单一的音频信号时,直接将所述响应时刻与所述输入时刻的差值确定为系统延时。In this embodiment, the system delay determined in the above manner may be a single-mode delay or a multi-mode delay. When the multimedia signal is a single video signal or a single audio signal, the difference between the response time and the input time is directly determined as the system delay.
当多媒体信号包括多种媒体信号时,例如同时包括视频信号或者音频信号,则使用信号融合算法将所述多个模态的系统延时进行融合,得到系统延时。When the multimedia signal includes multiple media signals, such as video signals or audio signals, a signal fusion algorithm is used to fuse the system delays of the multiple modalities to obtain the system delay.
S26、利用信号融合算法将多种模态对应的响应延时进行融合,确定所述系统的系统延时。S26. Use a signal fusion algorithm to fuse response delays corresponding to multiple modes to determine a system delay of the system.
将多个模态的系统延时进行融合,得到最终的延时结果,该部分可以使用预标定的模态延迟偏差来进行融合,也可在模态延迟偏差的基础上,使用信号融合算法(如Kalman滤波等)进行进一步融合。The system delays of multiple modes are fused to obtain the final delay result. This part can be fused using the pre-calibrated modal delay deviation, or the signal fusion algorithm can be used on the basis of the modal delay deviation ( Such as Kalman filtering, etc.) for further fusion.
例如:针对用户输入的同一操作指令,音效往往比画面的变化要慢,因此可以在音效对应的延时增加之后,与画面的延时进行加权平均,得到新的系统延时,即最终的系统延时。其中,各个媒体信号对应的权重值可以根据实际情况进行设置,本实施例中不再具体限定。For example, for the same operation command input by the user, the sound effect is often slower than the change of the screen, so after the delay corresponding to the sound effect is increased, it can be weighted and averaged with the delay of the screen to obtain a new system delay, that is, the final system delay. Wherein, the weight value corresponding to each media signal may be set according to the actual situation, and is not specifically limited in this embodiment.
在上述实施例的基础上,所述方法还包括:基于所述系统延时对系统设计参数进行优化。On the basis of the foregoing embodiments, the method further includes: optimizing system design parameters based on the system delay.
本公开实施例中,客户端通过前述用于客户端的方法实施例确定系统延时后,可以通过系统延时上传给服务器,服务器收到该系统延时后可以在服务器中显示给用户观看,便于用户根据该系统延时后进行进一步数据统计、分析和优化。具体地,在系统开发测试应用中,开发人员可以通过服务器获取本申请实施例终端确定的系统延时来进行系统性能测试,并可根据测试的结果对系统的设计指标或参数进行调整或优化。而在实际的运维应用中,系统运营商、系统运维人员等用户可以通过服务器获取本申请实施例确定的系统延时来在现网环境的产品中统计实际用户的系统延时指标数据、协助定位用户卡顿等问题,还可以根据此系统延时数据来对系统进行优化,如针对延迟较高的地区或运营商优化接入部署。In the embodiment of the present disclosure, after the client determines the system delay through the aforementioned method embodiments for the client, it can upload the delay to the server through the system delay, and the server can display the delay to the user on the server after receiving the system delay, which is convenient The user performs further data statistics, analysis and optimization after a delay according to the system. Specifically, in the application of system development and testing, the developer can obtain the system delay determined by the terminal of the embodiment of the present application through the server to perform system performance testing, and can adjust or optimize the design indicators or parameters of the system according to the test results. In actual operation and maintenance applications, users such as system operators and system operation and maintenance personnel can obtain the system delay determined by the embodiment of the present application through the server to count the system delay index data of actual users in products in the live network environment, Assist in locating problems such as user freezes, and optimize the system based on the system delay data, such as optimizing access deployment for areas with high delay or operators.
在上述实施例的基础上,本公开实施例再提供一种优选实例,本实施例中以多媒体信号包括视频信号和音频信号为例进行说明。图5是本公开实施例提供的一种系统延时确定方法的示意图。On the basis of the foregoing embodiments, the embodiments of the present disclosure provide another preferred example. In this embodiment, a multimedia signal including a video signal and an audio signal is taken as an example for illustration. Fig. 5 is a schematic diagram of a method for determining system delay provided by an embodiment of the present disclosure.
如图5所示,分别从音频的背景窗口中获取背景窗口音频信号,从音频的前景窗口中获取前景窗口音频信号,判断背景窗口音频信号和前景窗口音频信号的突变情况,若是背景窗口音频信号未突变和前景窗口音频信号的突变,则进行音频事件监测,若否,则将背景窗口音频信号和前景窗口音频信号丢弃,音频事件监测之后提取音频信号中的MFCC,通过音频信号中MFCC进行一致行检测,判断音频信号中MFCC是否满足一致性检测,若满足,则将音频信号的延时发送至融合模块,若否,则丢弃音频信号中MFCC。As shown in Figure 5, the background window audio signal is obtained from the background window of the audio, the foreground window audio signal is obtained from the foreground window of the audio, and the sudden change of the background window audio signal and the foreground window audio signal is judged. If the background window audio signal If there is no mutation and the mutation of the audio signal of the foreground window, the audio event monitoring is carried out. If not, the audio signal of the background window and the audio signal of the foreground window are discarded. After the audio event monitoring, the MFCC in the audio signal is extracted, and the MFCC in the audio signal is used for consistency. Line detection, judging whether the MFCC in the audio signal meets the consistency detection, if it is satisfied, the delay of the audio signal is sent to the fusion module, if not, the MFCC in the audio signal is discarded.
分别从视频的背景窗口中获取背景窗口视频信号,从视频的前景窗口中获取前景窗口视频信号,判断背景窗口视频信号和前景窗口视频信号的突变情况,若是背景窗口视频信号未突变和前景窗口视频信号的突变,则进行视频事件监测,若否,则将背景窗口视频信号和前景窗口视频信号丢弃,视频事件监测之后提取视频信号中的MoSIFT/SURF,通过视频信号中MoSIFT/SURF进行一致行检测,判断视频信号中MoSIFT/SURF是否满足一致性检测,若满足,则将视频信号的延时发送至融合模块,若否,则丢弃视频信号中MoSIFT/SURF。Obtain the video signal of the background window from the background window of the video, obtain the video signal of the foreground window from the foreground window of the video, and judge the sudden change of the video signal of the background window and the video signal of the foreground window. If there is a sudden change in the signal, the video event monitoring is performed. If not, the background window video signal and the foreground window video signal are discarded. After the video event monitoring, the MoSIFT/SURF in the video signal is extracted, and the consistent row detection is performed through MoSIFT/SURF in the video signal. , to judge whether the MoSIFT/SURF in the video signal meets the consistency detection, if so, send the delay of the video signal to the fusion module, if not, discard the MoSIFT/SURF in the video signal.
融合模块将音频信号的延时和视频信号的延时进行多模态融合,得到系统延时。The fusion module performs multimodal fusion of the delay of the audio signal and the delay of the video signal to obtain the system delay.
进一步的,图6的左图是视频数据中MoSIFT,图6的右图是音频数据中MFCC,针对图6中视频数据和音频数据的延时结果如图7所示。图7显示了在测试数据中添加人工延时后算法测得的延迟随人工延迟的变化的情况。结果显示本公开的延时估计结果较好地反映了人工添加的延时。Further, the left figure in Figure 6 is MoSIFT in video data, and the right figure in Figure 6 is MFCC in audio data, and the delay results for the video data and audio data in Figure 6 are shown in Figure 7 . Figure 7 shows how the delay measured by the algorithm varies with artificial delay after artificial delay is added to the test data. The results show that the delay estimation results of the present disclosure better reflect the artificially added delay.
图8是本公开实施例提供的一种系统延时确定装置的示意图,本实施例可适用于确定远程渲染交互系统的延时情况,所述系统延时确定装置可以通过软件和/或硬件的方式来实现。所述系统延时确定装置配置于客户端中。Fig. 8 is a schematic diagram of a device for determining system delay provided by an embodiment of the present disclosure. This embodiment is applicable to determining the delay of a remote rendering interactive system, and the device for determining system delay can be implemented through software and/or hardware way to achieve. The system delay determination device is configured in the client.
如图8所示,本实施例提供的系统延时确定装置主要包括输入时刻获取模块81、多媒体信号检测模块82、响应时刻确定模块83和系统延时确定模块84。As shown in FIG. 8 , the system delay determination device provided by this embodiment mainly includes an input
输入时刻获取模块81,用于响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻;The input
多媒体信号检测模块82,用于检测背景窗口和前景窗口中的多媒体信号,其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口;A multimedia
响应时刻确定模块83,用于基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定所述用户操作指令的响应时刻;A response
系统延时确定模块84,用于根据所述输入时刻和所述响应时刻确定系统的系统延时。A system
本公开实施例提供的系统延时确定装置执行如下操作:响应于作用在背景窗口的多媒体信号上的用户操作指令,获取用户操作指令的输入时刻;检测背景窗口和前景窗口中的多媒体信号,其中,背景窗口是输入时刻之前的第一时间窗口,前景窗口是输入时刻之后的第二时间窗口;基于前景窗口中的多媒体信号相对于背景窗口中的多媒体信号的突变情况,确定用户操作指令的响应时刻;根据输入时刻和响应时刻确定系统的系统延时。本公开实施例通过获取用户操作指令的输入时刻以及用户操作指令对应的响应时刻确定系统延时,该方案不需要昂贵的硬件设备,也不需要过多的人工参与,可以方便快捷地测量远程渲染系统的交互延时。The device for determining the system delay provided by the embodiment of the present disclosure performs the following operations: in response to the user operation instruction acting on the multimedia signal of the background window, obtain the input time of the user operation instruction; detect the multimedia signal in the background window and the foreground window, wherein , the background window is the first time window before the input time, and the foreground window is the second time window after the input time; based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window, determine the response of the user operation command Time: Determine the system delay of the system according to the input time and response time. The embodiment of the present disclosure determines the system delay by obtaining the input time of the user operation command and the corresponding response time of the user operation command. This solution does not require expensive hardware equipment or excessive manual participation, and can measure remote rendering conveniently and quickly. System interaction delay.
进一步的,响应时刻确定模块83,具体用于若所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号发生突变,则将所述前景窗口中的多媒体信号发生突变的时刻确定为响应所述操作指令的所述响应时刻。Further, the response
进一步的,所述装置还包括:突变信号判断模块,用于在基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻之前,确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的;若所述前景窗口中的所述多媒体信号发生突变是所述用户操作指令引起的,则执行基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻的操作。Further, the device further includes: a sudden signal judging module, configured to determine that the system responds to the user based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window. Before the response time of the operation instruction, determine whether the mutation of the multimedia signal in the foreground window is caused by the user operation instruction; if the mutation of the multimedia signal in the foreground window is caused by the user operation instruction If yes, the operation of determining the response time when the system responds to the user operation instruction is performed based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window.
进一步的,突变信号判断模块,具体用于将所述前景窗口中的所述多媒体信号的突变信号和所述用户操作指令输入至预先训练的一致性分类器中;基于所述一致性分类器的输出结果确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的。Further, the mutation signal judging module is specifically configured to input the mutation signal of the multimedia signal in the foreground window and the user operation instruction into a pre-trained consistency classifier; The output result determines whether the sudden change of the multimedia signal in the foreground window is caused by the user operation instruction.
进一步的,所述一致性分类器的训练过程,包括:Further, the training process of the consistency classifier includes:
获取训练样本集,所述训练样本集包括:多个历史操作指令和多个历史多媒体信号的突变信号;Obtain a training sample set, the training sample set includes: a plurality of historical operation instructions and mutation signals of a plurality of historical multimedia signals;
提取各个所述历史多媒体信号的突变信号的特征;Extracting the features of the mutation signals of each of the historical multimedia signals;
统计第一特征出现的次数,所述第一特征是指与历史操作指令对应的历史多媒体信号的突变信号的特征;Counting the number of occurrences of the first feature, where the first feature refers to the feature of a sudden change signal of the historical multimedia signal corresponding to the historical operation instruction;
将所述第一特征出现的次数确定为历史操作指令对应的标准化值;Determining the number of occurrences of the first feature as a normalized value corresponding to the historical operation instruction;
将所述历史操作指令和所述历史操作指令对应标准化值输入至预设分类器中进行训练,得到一致性分类器。Inputting the historical operation instructions and the normalized values corresponding to the historical operation instructions into a preset classifier for training to obtain a consistent classifier.
进一步的,所述预设分类器包括如下一种或多种:Further, the preset classifiers include one or more of the following:
支撑向量机SVM分类器,最近邻分类器,朴素贝叶斯分类器,随机森林分类器,线性判别分类器。Support Vector Machine SVM Classifier, Nearest Neighbor Classifier, Naive Bayes Classifier, Random Forest Classifier, Linear Discriminant Classifier.
进一步的,所述多媒体信号包括以下模态中的一种或多种:视频信号,音频信号,体感信号。Further, the multimedia signal includes one or more of the following modalities: video signal, audio signal, and somatosensory signal.
进一步的,提取各个所述历史多媒体信号的突变信号的特征,包括:Further, extracting the features of the mutation signals of each of the historical multimedia signals, including:
在所述多媒体信号包括视频信号时,提取各个视频信号的突变信号对应的尺度不变特征变换SIFT特征。When the multimedia signal includes a video signal, the scale-invariant feature transformation SIFT feature corresponding to the sudden change signal of each video signal is extracted.
进一步的,提取各个所述历史多媒体信号的突变信号的特征,包括:Further, extracting the features of the mutation signals of each of the historical multimedia signals, including:
在所述多媒体信号包括音频信号时,提取各个音频信号的突变信号对应的梅尔倒频谱系数。When the multimedia signal includes an audio signal, the cepstral mel coefficients corresponding to the sudden change signal of each audio signal are extracted.
进一步的,系统延时确定模块84,具体用于针对每种模态信号,基于该模态对应的输入时刻和输出时刻确定该模态对应的响应延时;利用信号融合算法将多种模态对应的响应延时进行融合,确定所述系统的系统延时。Further, the system
进一步的,所述装置还包括:参数优化模块,用于基于所述系统延时对系统设计参数进行优化。Further, the device further includes: a parameter optimization module, configured to optimize system design parameters based on the system delay.
本实施例所提供的系统延时确定装置可执行本公开任意实施例所提供的系统延时确定方法,具备执行系统延时确定方法相应的功能模块和有益效果。The device for determining system delay provided in this embodiment can execute the method for determining system delay provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method for determining system delay.
下面参考图9,其示出了适于用来实现本公开实施例的电子设备(例如图9中的客户端设备或服务端)900的结构示意图。本公开实施例中的客户端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载客户端(例如车载导航客户端)等等的移动客户端以及诸如数字TV、台式计算机等等的固定客户端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 9 , it shows a schematic structural diagram of an electronic device (such as the client device or server in FIG. 9 ) 900 suitable for implementing the embodiments of the present disclosure. Client devices in embodiments of the present disclosure may include, but are not limited to, devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), car client Mobile clients such as car navigation clients, etc. and stationary clients such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 9 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储装置908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9, an
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 905:
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 909 , or from storage means 908 , or from
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,服务端可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the server can communicate with any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium ( For example, communication networks) interconnect. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:
响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻;Responding to a user operation instruction acting on the multimedia signal of the background window, acquiring the input moment of the user operation instruction;
检测背景窗口和前景窗口中的多媒体信号,其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口;detecting a multimedia signal in a background window and a foreground window, wherein the background window is a first time window before the input moment and the foreground window is a second time window after the input moment;
基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定所述用户操作指令的响应时刻;Determine the response time of the user operation instruction based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window;
根据所述输入时刻和所述响应时刻确定系统的系统延时。A system delay of the system is determined according to the input time and the response time.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device and storage medium are provided, including:
响应于作用在背景窗口的多媒体信号上的用户操作指令,获取所述用户操作指令的输入时刻;Responding to a user operation instruction acting on the multimedia signal of the background window, acquiring the input moment of the user operation instruction;
检测背景窗口和前景窗口中的多媒体信号,其中,所述背景窗口是所述输入时刻之前的第一时间窗口,所述前景窗口是所述输入时刻之后的第二时间窗口;detecting a multimedia signal in a background window and a foreground window, wherein the background window is a first time window before the input moment and the foreground window is a second time window after the input moment;
基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定所述用户操作指令的响应时刻;Determine the response time of the user operation instruction based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window;
根据所述输入时刻和所述响应时刻确定系统的系统延时。A system delay of the system is determined according to the input time and the response time.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided, based on the multimedia signal in the foreground window relative to the background window The sudden change of the multimedia signal, and determine the response time when the system responds to the user operation instruction, including:
若所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号发生突变,则将所述前景窗口中的多媒体信号发生突变的时刻确定为响应所述操作指令的所述响应时刻。If the multimedia signal in the foreground window changes abruptly relative to the multimedia signal in the background window, determine the moment when the multimedia signal in the foreground window changes suddenly as the response to the operation instruction Response time.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,在基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻之前,还包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided, based on the multimedia signal in the foreground window relative to the background window Before determining the sudden change of the multimedia signal in the system to respond to the user operation instruction, it also includes:
确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的;determining whether the sudden change in the multimedia signal in the foreground window is caused by the user operation instruction;
若所述前景窗口中的所述多媒体信号发生突变是所述用户操作指令引起的,则执行基于所述前景窗口中的所述多媒体信号相对于所述背景窗口中的所述多媒体信号的突变情况,确定系统响应所述用户操作指令的响应时刻的操作。If the sudden change in the multimedia signal in the foreground window is caused by the user operation instruction, then execute based on the sudden change of the multimedia signal in the foreground window relative to the multimedia signal in the background window , determining an operation at a time when the system responds to the user operation instruction.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,所确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device and storage medium are provided, and it is determined whether the sudden change of the multimedia signal in the foreground window is the Caused by user operation instructions, including:
将所述前景窗口中的所述多媒体信号的突变信号和所述用户操作指令输入至预先训练的一致性分类器中;inputting the mutation signal of the multimedia signal in the foreground window and the user operation instruction into a pre-trained consistent classifier;
基于所述一致性分类器的输出结果确定所述前景窗口中的所述多媒体信号发生突变是否是所述用户操作指令引起的。It is determined based on the output result of the consistency classifier whether the sudden change of the multimedia signal in the foreground window is caused by the user operation instruction.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,所述一致性分类器的训练过程,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided. The training process of the consistency classifier includes:
获取训练样本集,所述训练样本集包括:多个历史操作指令和多个历史多媒体信号的突变信号;Obtain a training sample set, the training sample set includes: a plurality of historical operation instructions and mutation signals of a plurality of historical multimedia signals;
提取各个所述历史多媒体信号的突变信号的特征;Extracting the features of the mutation signals of each of the historical multimedia signals;
统计第一特征出现的次数,所述第一特征是指与历史操作指令对应的历史多媒体信号的突变信号的特征;Counting the number of occurrences of the first feature, where the first feature refers to the feature of a sudden change signal of the historical multimedia signal corresponding to the historical operation instruction;
将所述第一特征出现的次数确定为历史操作指令对应的标准化值;Determining the number of occurrences of the first feature as a normalized value corresponding to the historical operation instruction;
将所述历史操作指令和所述历史操作指令对应标准化值输入至预设分类器中进行训练,得到一致性分类器。Inputting the historical operation instructions and the normalized values corresponding to the historical operation instructions into a preset classifier for training to obtain a consistent classifier.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,所述预设分类器包括如下一种或多种:According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided, and the preset classifier includes one or more of the following:
支撑向量机SVM分类器,最近邻分类器,朴素贝叶斯分类器,随机森林分类器,线性判别分类器。Support Vector Machine SVM Classifier, Nearest Neighbor Classifier, Naive Bayes Classifier, Random Forest Classifier, Linear Discriminant Classifier.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,所述多媒体信号包括以下模态中的一种或多种:视频信号,音频信号,体感信号。According to one or more embodiments of the present disclosure, a system delay determination method, device, device and storage medium are provided, the multimedia signal includes one or more of the following modalities: video signal , audio signal, somatosensory signal.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,提取各个所述历史多媒体信号的突变信号的特征,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided, and the characteristics of each abrupt change signal of the historical multimedia signal are extracted, including:
在所述多媒体信号包括视频信号时,提取各个视频信号的突变信号对应的尺度不变特征变换SIFT特征。When the multimedia signal includes a video signal, the scale-invariant feature transformation SIFT feature corresponding to the sudden change signal of each video signal is extracted.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,提取各个所述历史多媒体信号的突变信号的特征,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided, and the characteristics of each abrupt change signal of the historical multimedia signal are extracted, including:
在所述多媒体信号包括音频信号时,提取各个音频信号的突变信号对应的梅尔倒频谱系数。When the multimedia signal includes an audio signal, the cepstral mel coefficients corresponding to the sudden change signal of each audio signal are extracted.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,根据所述输入时刻和所述响应时刻确定系统的系统延时,包括:According to one or more embodiments of the present disclosure, a system delay determination method, device, device and storage medium are provided, and the system delay of the system is determined according to the input time and the response time, including :
针对每种模态信号,基于该模态对应的输入时刻和输出时刻确定该模态对应的响应延时;For each mode signal, determine the response delay corresponding to the mode based on the input time and output time corresponding to the mode;
利用信号融合算法将多种模态对应的响应延时进行融合,确定所述系统的系统延时。A signal fusion algorithm is used to fuse response delays corresponding to multiple modes to determine the system delay of the system.
根据本公开的一个或多个实施例,提供了一种系统延时确定系统延时确定方法、装置、设备和存储介质,所述方法还包括:基于所述系统延时对系统设计参数进行优化。According to one or more embodiments of the present disclosure, a system delay determination method, device, device, and storage medium are provided, and the method further includes: optimizing system design parameters based on the system delay .
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principle. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, while operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or performed in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while the above discussion contains several specific implementation details, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110172567.7A CN112843677B (en) | 2021-02-08 | 2021-02-08 | System delay determining method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110172567.7A CN112843677B (en) | 2021-02-08 | 2021-02-08 | System delay determining method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112843677A CN112843677A (en) | 2021-05-28 |
CN112843677B true CN112843677B (en) | 2023-07-11 |
Family
ID=75989245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110172567.7A Active CN112843677B (en) | 2021-02-08 | 2021-02-08 | System delay determining method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112843677B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113876437B (en) * | 2021-09-13 | 2024-02-23 | 上海微创医疗机器人(集团)股份有限公司 | Storage medium, robot system, and computer device |
CN114422401B (en) * | 2021-12-07 | 2024-08-30 | 宁波路特斯机器人有限公司 | Remote control delay measurement method, device and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103222262A (en) * | 2010-11-19 | 2013-07-24 | 思科技术公司 | System and method for skipping video coding in a network environment |
JP5602963B1 (en) * | 2014-01-30 | 2014-10-08 | グリー株式会社 | GAME MANAGEMENT PROGRAM, GAME MANAGEMENT METHOD, AND GAME MANAGEMENT SYSTEM |
CN107181906A (en) * | 2016-03-11 | 2017-09-19 | 深圳市骄阳数字图像技术有限责任公司 | Image pickup method and device |
CN110855907A (en) * | 2019-10-19 | 2020-02-28 | 中国航空工业集团公司洛阳电光设备研究所 | Low-delay video overlay frame buffer scheduler based on prediction |
JP6809731B1 (en) * | 2019-12-05 | 2021-01-06 | ネットスマイル株式会社 | Video signal processing system and video signal processing method |
CN112256372A (en) * | 2020-10-20 | 2021-01-22 | 北京字跳网络技术有限公司 | Information processing method and device and electronic equipment |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5745204B2 (en) * | 2008-07-28 | 2015-07-08 | 株式会社バンダイナムコエンターテインメント | Program, information storage medium and game machine |
CN102710898B (en) * | 2011-08-26 | 2015-02-18 | 新奥特(北京)视频技术有限公司 | Method and system for synchronously switching foreground and background of color key device |
US8812725B2 (en) * | 2012-05-18 | 2014-08-19 | Cisco Technology Inc. | System and method for latency reduction in a network environment |
CN102801923B (en) * | 2012-08-30 | 2015-09-09 | 广东威创视讯科技股份有限公司 | A kind of video matrix switching Delay time defining method, equipment and system |
US9603049B2 (en) * | 2013-07-22 | 2017-03-21 | Seven Networks, Llc | Extending delay tolerance of mobile applications for optimizing mobile traffic management |
US9886094B2 (en) * | 2014-04-28 | 2018-02-06 | Microsoft Technology Licensing, Llc | Low-latency gesture detection |
CN104253996B (en) * | 2014-09-18 | 2018-02-09 | 中安消技术有限公司 | The sending, receiving method and its device and Transmission system of video data |
CN105261202B (en) * | 2015-11-05 | 2019-03-19 | 江苏省电力公司电力科学研究院 | Transmission delay measurement method based on B-spline interpolating wavelet Singularity detection |
US10390082B2 (en) * | 2016-04-01 | 2019-08-20 | Oath Inc. | Computerized system and method for automatically detecting and rendering highlights from streaming videos |
EP3465605B1 (en) * | 2016-05-27 | 2021-01-20 | Analog Way S.A.S. | A computer-implemented method for reducing video latency of a computer video processing system and computer program product thereto |
CN107222274B (en) * | 2017-07-11 | 2020-07-07 | 成都德芯数字科技股份有限公司 | Delay detection method and system |
CN108988974B (en) * | 2018-06-19 | 2020-04-07 | 远形时空科技(北京)有限公司 | Time delay measuring method and device and system for time synchronization of electronic equipment |
CN110795298B (en) * | 2019-11-06 | 2021-05-11 | 腾讯科技(深圳)有限公司 | Touch display delay determining method and device, storage medium and electronic device |
CN111245680B (en) * | 2020-01-10 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Method, device, system, terminal and server for detecting cloud game response delay |
CN111367434B (en) * | 2020-03-06 | 2023-02-10 | Oppo广东移动通信有限公司 | Touch delay detection method and device, electronic equipment and storage medium |
CN112055237B (en) * | 2020-08-31 | 2022-07-19 | 北京爱奇艺科技有限公司 | Method, system, apparatus, device and storage medium for determining screen-to-screen delay |
-
2021
- 2021-02-08 CN CN202110172567.7A patent/CN112843677B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103222262A (en) * | 2010-11-19 | 2013-07-24 | 思科技术公司 | System and method for skipping video coding in a network environment |
JP5602963B1 (en) * | 2014-01-30 | 2014-10-08 | グリー株式会社 | GAME MANAGEMENT PROGRAM, GAME MANAGEMENT METHOD, AND GAME MANAGEMENT SYSTEM |
CN107181906A (en) * | 2016-03-11 | 2017-09-19 | 深圳市骄阳数字图像技术有限责任公司 | Image pickup method and device |
CN110855907A (en) * | 2019-10-19 | 2020-02-28 | 中国航空工业集团公司洛阳电光设备研究所 | Low-delay video overlay frame buffer scheduler based on prediction |
JP6809731B1 (en) * | 2019-12-05 | 2021-01-06 | ネットスマイル株式会社 | Video signal processing system and video signal processing method |
CN112256372A (en) * | 2020-10-20 | 2021-01-22 | 北京字跳网络技术有限公司 | Information processing method and device and electronic equipment |
Non-Patent Citations (1)
Title |
---|
基于光学相控阵器研究中的特性与实现;蒋宏彬;刘广智;杨筱舟;;绵阳师范学院学报(第08期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112843677A (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9544346B1 (en) | Systems and methods for selecting a node for media streaming | |
CN112135169B (en) | Media content loading method, device, equipment and medium | |
CN112488783B (en) | Image acquisition method and device and electronic equipment | |
CN112153460B (en) | Video dubbing method and device, electronic equipment and storage medium | |
CN111414543B (en) | Method, device, electronic equipment and medium for generating comment information sequence | |
CN112843677B (en) | System delay determining method, device, equipment and storage medium | |
WO2022262470A1 (en) | Video processing method and apparatus, storage medium, and electronic device | |
WO2023142913A1 (en) | Video processing method and apparatus, readable medium and electronic device | |
WO2023088006A1 (en) | Cloud game interaction method and apparatus, readable medium, and electronic device | |
WO2023138468A1 (en) | Virtual object generation method and apparatus, device, and storage medium | |
WO2023098576A1 (en) | Image processing method and apparatus, device, and medium | |
CN111416996A (en) | Multimedia file detection method, multimedia file playing device, multimedia file equipment and storage medium | |
CN113144620B (en) | Method, device, platform, readable medium and equipment for detecting frame synchronous game | |
WO2021227953A1 (en) | Image special effect configuration method, image recognition method, apparatuses, and electronic device | |
WO2024099314A1 (en) | Viewing angle prediction method and apparatus, device, and storage medium | |
CN113139082A (en) | Multimedia content processing method, apparatus, device and medium | |
WO2023000782A1 (en) | Method and apparatus for acquiring video hotspot, readable medium, and electronic device | |
CN112990176A (en) | Writing quality evaluation method and device and electronic equipment | |
CN110781066A (en) | User behavior analysis method, device, equipment and storage medium | |
CN112287171A (en) | Information processing method and device and electronic equipment | |
CN112905291B (en) | Data display method, device and electronic device | |
CN115272760A (en) | Small sample smoke image fine classification method suitable for forest fire smoke detection | |
CN112286808B (en) | Application program testing method and device, electronic equipment and medium | |
CN113515329B (en) | Special effect attribute setting method and device | |
JP2023526110A (en) | Video special effect arrangement method, video special effect apparatus, device, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |