[go: up one dir, main page]

CN114697392A - Image processing method, image processing device, computer equipment and storage medium - Google Patents

Image processing method, image processing device, computer equipment and storage medium Download PDF

Info

Publication number
CN114697392A
CN114697392A CN202011601954.XA CN202011601954A CN114697392A CN 114697392 A CN114697392 A CN 114697392A CN 202011601954 A CN202011601954 A CN 202011601954A CN 114697392 A CN114697392 A CN 114697392A
Authority
CN
China
Prior art keywords
image
frame
reference frame
interface
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011601954.XA
Other languages
Chinese (zh)
Inventor
张志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011601954.XA priority Critical patent/CN114697392A/en
Publication of CN114697392A publication Critical patent/CN114697392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an image processing method, an image processing device, computer equipment and a storage medium; the embodiment of the invention displays the interactive interface of the application program; uploading the interaction information acquired by the interaction interface to a server; receiving image coding data returned by the server according to the interactive information; extracting a reference frame corresponding to the number from a local memory according to the number; and decoding according to the reference frame and the associated frame data to obtain a current display image and displaying the current display image in the interactive interface. Therefore, the reference frames used for encoding and decoding the display image are stored in the server and the terminal respectively, the server is prevented from transmitting the key frame image corresponding to the reference frames to the terminal, network load is more balanced during data transmission, the transmitted data volume is reduced, and operation efficiency of cloud application on the user terminal is improved.

Description

图像处理方法、装置、计算机设备及存储介质Image processing method, device, computer equipment and storage medium

技术领域technical field

本发明涉及互联网技术领域,具体涉及一种图像处理方法、装置、计算机设备及存储介质。The present invention relates to the field of Internet technologies, and in particular, to an image processing method, device, computer equipment and storage medium.

背景技术Background technique

近年来,随着互联网技术的发展以及网络通信速度的提升,云应用得到飞速的发展。云应用指终端与服务云端互动的应用,终端操作同步云端,而占用本地空间的数据也通过云端备份保留。云应用通过终端采集用户输入的交互数据,将终端采集到的交互数据传输给云端进行处理,云端将处理后的结果再返回终端进行显示。如此,用户终端只需具备基础的数据采集和显示功能便能运行需要较强大的图形运算与数据处理能力的应用,释放了用户对高配置终端的依赖。In recent years, with the development of Internet technology and the improvement of network communication speed, cloud applications have developed rapidly. Cloud application refers to the application that the terminal interacts with the service cloud, the terminal operation is synchronized with the cloud, and the data occupying the local space is also retained through the cloud backup. The cloud application collects the interactive data input by the user through the terminal, transmits the interactive data collected by the terminal to the cloud for processing, and the cloud returns the processed result to the terminal for display. In this way, the user terminal only needs to have basic data collection and display functions to run applications that require relatively powerful graphics computing and data processing capabilities, releasing the user's dependence on high-configuration terminals.

然而,目前使用云应用时云端将运行结果返回终端进行显示的过程,由于传输的数据量较大,导致云应用在用户终端的运行效率较慢。However, when a cloud application is currently used, the cloud returns the running result to the terminal for display. Due to the large amount of data transmitted, the running efficiency of the cloud application on the user terminal is relatively slow.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种图像处理方法、装置、计算机设备及存储介质,提升了图像处理的效率,降低数据传输量。Embodiments of the present invention provide an image processing method, apparatus, computer equipment and storage medium, which improve the efficiency of image processing and reduce the amount of data transmission.

本申请第一方面提供一种图像处理方法,包括:A first aspect of the present application provides an image processing method, including:

显示应用程序的交互界面,所述交互界面用于接收交互信息;Displaying an interactive interface of the application, the interactive interface is used to receive interactive information;

将所述交互界面采集到的交互信息上传至服务器;uploading the interactive information collected by the interactive interface to the server;

接收所述服务器根据所述交互信息返回的图像编码数据,所述图像编码数据包括所述服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,所述关联帧数据为计算所述显示图像与所述参考帧之间的差异数据;Receive the image encoding data returned by the server according to the interaction information, where the image encoding data includes the reference frame number and associated frame data determined when the server encodes the displayed image, and the associated frame data is used to calculate the displaying difference data between the image and the reference frame;

根据所述编号从本地存储器中提取出与所述编号对应的参考帧;Extract the reference frame corresponding to the number from the local memory according to the number;

根据参考帧与关联帧数据解码得到当前显示图像,并将所述当前显示图像显示在交互界面中。The currently displayed image is obtained by decoding the reference frame and the associated frame data, and the currently displayed image is displayed in the interactive interface.

本申请第二方面提供了一种图像处理方法,包括:A second aspect of the present application provides an image processing method, including:

接收终端上传的交互信息;Receive interactive information uploaded by the terminal;

根据所述交互信息生成与所述交互信息对应的显示图像;generating a display image corresponding to the interaction information according to the interaction information;

从存储器中存储的参考帧中确定与所述显示图像对应的目标参考帧并确定所述目标参考帧对应的编号;Determine the target reference frame corresponding to the display image from the reference frames stored in the memory and determine the number corresponding to the target reference frame;

确定所述显示图像相对所述目标参考帧的关联帧数据,所述关联帧数据为计算所述显示图像与所述目标参考帧之间的差异数据;determining the associated frame data of the display image relative to the target reference frame, where the associated frame data is calculated difference data between the display image and the target reference frame;

将所述编号与所述关联帧数据发送至所述终端,以使所述终端根据所述编号从所述终端本地存储器中调取与所述编号对应的目标参考帧,并结合所述关联帧数据生成显示图像并对所述显示图像进行显示。sending the number and the associated frame data to the terminal, so that the terminal retrieves the target reference frame corresponding to the number from the local storage of the terminal according to the number, and combines the associated frame The data generates a display image and displays the display image.

本申请第三方面提供了一种图像处理装置,包括:A third aspect of the present application provides an image processing device, including:

显示单元,用于显示应用程序的交互界面,所述交互界面用于接收交互信息;a display unit, configured to display an interactive interface of the application, the interactive interface is used to receive interactive information;

上传单元,用于将所述交互界面采集到的交互信息上传至服务器;an uploading unit, configured to upload the interactive information collected by the interactive interface to the server;

接收单元,用于接收所述服务器根据所述交互信息返回的图像编码数据,所述图像编码数据包括所述服务器对显示图像进行编码时确定的参考帧的编号以及所述显示图像相对所述参考帧的关联帧数据,所述关联帧数据为计算显示图像与所述参考帧之间的差异数据;a receiving unit, configured to receive the image encoding data returned by the server according to the interaction information, the image encoding data including the reference frame number determined when the server encodes the display image and the relative value of the display image to the reference frame The associated frame data of the frame, the associated frame data is the difference data between the calculated display image and the reference frame;

提取单元,用于根据所述编号从本地存储器中提取出与所述编号对应的参考帧;an extraction unit, configured to extract a reference frame corresponding to the number from the local memory according to the number;

解码单元,用于根据所述参考帧与所述关联帧数据解码得到当前显示图像,并将所述当前显示图像显示在交互界面中。A decoding unit, configured to decode the reference frame and the associated frame data to obtain a currently displayed image, and display the currently displayed image in the interactive interface.

本申请第四方面提供了一种图像处理装置,包括:A fourth aspect of the present application provides an image processing apparatus, including:

接收单元,用于接收终端上传的交互信息;a receiving unit, configured to receive the interaction information uploaded by the terminal;

生成单元,用于根据所述交互信息生成与所述交互信息对应的显示图像;a generating unit, configured to generate a display image corresponding to the interaction information according to the interaction information;

第一确定单元,用于从存储器中存储的参考帧中确定与所述显示图像对应的目标参考帧并确定所述目标参考帧对应的编号;a first determining unit, configured to determine a target reference frame corresponding to the display image from the reference frames stored in the memory and determine a number corresponding to the target reference frame;

第二确定单元,用于确定所述显示图像相对所述目标参考帧的关联帧数据,所述关联帧数据为计算所述显示图像与所述目标参考帧之间的差异数据;a second determining unit, configured to determine associated frame data of the display image relative to the target reference frame, where the associated frame data is calculated difference data between the display image and the target reference frame;

发送单元,用于将所述编号与所述关联帧数据发送至所述终端,以使所述终端根据所述编号从所述终端本地存储器中调取与所述编号对应的目标参考帧,并结合所述关联帧数据生成显示图像并对所述显示图像进行显示。a sending unit, configured to send the serial number and the associated frame data to the terminal, so that the terminal retrieves the target reference frame corresponding to the serial number from the local storage of the terminal according to the serial number, and A display image is generated and displayed in combination with the associated frame data.

本申请第五方面提供了一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可以在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现第一方面或者第二方面提供的图像处理方法中的步骤。A fifth aspect of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the first computer program when the processor executes the computer program The aspect or the steps in the image processing method provided in the second aspect.

本申请第六方面提供了一种存储介质,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行第一方面或者第二方面提供的图像处理方法中的步骤。A sixth aspect of the present application provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the steps in the image processing method provided in the first aspect or the second aspect.

本申请第七方面提供了一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在存储介质中。计算机设备的处理器从存储介质读取所述计算机指令,处理器执行所述计算机指令,使得所述计算机设备执行第一方面或第二方面提供的图像处理方法中的步骤。A seventh aspect of the present application provides a computer program product or computer program, wherein the computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium. The processor of the computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the image processing method provided in the first aspect or the second aspect.

本申请实施例通过显示应用程序的交互界面,交互界面用于接收交互信息;将交互界面采集到的交互信息上传至服务器;接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;根据编号从本地存储器中提取出与编号对应的参考帧;根据参考帧与关联帧数据解码得到当前显示图像并将当前显示图像显示在交互界面中。以此,通过将参考帧在终端本地保存,使得服务器向终端发送图像数据时,仅需发送参考帧编号以及关联帧数据,避免了参考帧对应的关键帧的发送。从而减少了服务器向终端传输的数据量,提升了终端接收图像数据的效率,进而提升了云应用在用户终端的运行效率。In the embodiment of the present application, the interactive interface of the application program is displayed, and the interactive interface is used for receiving interactive information; uploading the interactive information collected by the interactive interface to the server; The number of the reference frame and the associated frame data determined when the image is encoded. The associated frame data is the difference data between the displayed image and the reference frame; the reference frame corresponding to the number is extracted from the local memory according to the number; The associated frame data is decoded to obtain the currently displayed image, and the currently displayed image is displayed in the interactive interface. In this way, by storing the reference frame locally in the terminal, when the server sends image data to the terminal, it only needs to send the reference frame number and associated frame data, avoiding the sending of the key frame corresponding to the reference frame. Thus, the amount of data transmitted from the server to the terminal is reduced, the efficiency of the terminal receiving image data is improved, and the operation efficiency of the cloud application in the user terminal is further improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1a是本发明提供的云应用场景下数据传输的场景示意图。FIG. 1a is a schematic diagram of a data transmission scenario in a cloud application scenario provided by the present invention.

图1b是本发明提供的云应用场景下数据传输的另一场景示意图。FIG. 1b is a schematic diagram of another scenario of data transmission in a cloud application scenario provided by the present invention.

图2是发明实施例提供的图像处理方法的流程示意图。FIG. 2 is a schematic flowchart of an image processing method provided by an embodiment of the present invention.

图3是本发明实施例提供的图像处理方法的另一流程示意图。FIG. 3 is another schematic flowchart of an image processing method provided by an embodiment of the present invention.

图4a是本申请提供的智能刷脸支付云应用的支付终端的示意图。Fig. 4a is a schematic diagram of a payment terminal of a cloud application of smart face-scanning payment provided by the present application.

图4b至图4e是本申请提供的智能刷脸支付云应用的参考帧的示意图。FIG. 4b to FIG. 4e are schematic diagrams of reference frames of the smart face-swiping payment cloud application provided by the present application.

图4f是本申请提供的智能刷脸支付云应用中云服务器对显示图像进行编码的过程示意图。FIG. 4f is a schematic diagram of the process of encoding the displayed image by the cloud server in the smart face-swiping payment cloud application provided by the present application.

图5是本发明实施例提供图像处理方法的又一流程示意图。FIG. 5 is another schematic flowchart of an image processing method provided by an embodiment of the present invention.

图6是本发明实施例提供图像处理装置的结构示意图。FIG. 6 is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图7是本发明实施例提供图像处理装置的另一结构示意图。FIG. 7 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图8是本发明实施例提供图像处理装置的又一结构示意图。FIG. 8 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图9是本发明实施例提供图像处理装置的又一结构示意图。FIG. 9 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图10是本发明实施例提供图像处理装置的又一结构示意图。FIG. 10 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图11是本发明实施例提供图像处理装置的又一结构示意图。FIG. 11 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图12是本发明实施例提供图像处理装置的又一结构示意图。FIG. 12 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图13是本发明实施例提供图像处理装置的又一结构示意图。FIG. 13 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图14是本发明实施例提供图像处理装置的又一结构示意图。FIG. 14 is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.

图15是本发明实施例提供的计算机设备的结构示意图。FIG. 15 is a schematic structural diagram of a computer device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

本发明实施例提供一种图像处理方法、装置、计算机设备及存储介质,用于解决云应用场景下服务器向终端传输的数据量较大导致云应用处理效率慢的技术问题。其中,云应用可以包括云教育、云会议、云社交、云游戏以及云医疗等。Embodiments of the present invention provide an image processing method, apparatus, computer equipment, and storage medium, which are used to solve the technical problem of slow cloud application processing efficiency due to a large amount of data transmitted from a server to a terminal in a cloud application scenario. Among them, cloud applications may include cloud education, cloud conference, cloud social networking, cloud gaming, and cloud medical treatment.

请参阅图1a,为云应用场景下数据传输的场景示意图;包括服务器A和至少一个终端B(图中仅示出2个),以及与服务器A连接的存储器。服务器A和终端B之间可以通过通信网络连接,该通信网络,包括无线网络以及有线网络,其中无线网络包括无线广域网、无线局域网、无线城域网、以及无线个人网中的一种或多种的组合。网络中包括路由器、网关等等网络实体,图中并未示意出。终端B可以通过通信网络与服务器A进行信息交互。如图所示,用户通过终端B将终端B的交互界面上采集到的交互信息上传至服务器A。服务器A接收交互信息,并根据交互信息生成与交互信息对应的显示图像,再将生成的显示图像进行编码,然后将将编码后的编码数据发送至终端B。终端B接收到服务器发送的编码数据后对编码数据进行解码得到显示图像,再将显示图像在交互界面上进行显示。Please refer to FIG. 1a , which is a schematic diagram of a data transmission scenario in a cloud application scenario; it includes a server A, at least one terminal B (only two are shown in the figure), and a memory connected to the server A. The server A and the terminal B may be connected through a communication network, the communication network includes a wireless network and a wired network, wherein the wireless network includes one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network The combination. The network includes network entities such as routers and gateways, which are not shown in the figure. The terminal B can exchange information with the server A through the communication network. As shown in the figure, the user uploads the interaction information collected on the interaction interface of the terminal B to the server A through the terminal B. Server A receives the interaction information, generates a display image corresponding to the interaction information according to the interaction information, encodes the generated display image, and sends the encoded encoded data to terminal B. After receiving the encoded data sent by the server, terminal B decodes the encoded data to obtain a display image, and then displays the display image on the interactive interface.

服务器A可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、网络加速服务(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。Server A can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, Middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.

其中,终端B可以是智能收银设备、智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱以及智能手表等,但并不局限于此。终端B可以是一个也可以是多个,终端数量不对本申请方案的保护范围造成限定。终端中可以安装有各种用户所需的应用程序,其中包括智能自助支付、云游戏或者云教育等云应用的应用程序。Wherein, the terminal B may be a smart cash register device, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. There may be one terminal B or multiple terminals, and the number of terminals does not limit the protection scope of the solution of the present application. Various applications required by users can be installed in the terminal, including applications of cloud applications such as intelligent self-service payment, cloud games or cloud education.

如图1b所示,为本申请提供的云应用场景下数据传输的另一场景示意图,在该应用场景中,服务器为云服务器C,云服务器C中包括多个安卓操作系统(图中仅示出3个),每个安卓系统中均可以安装一个或多个安卓应用程序。与云服务器连接的终端设备D可以是一个也可以是多个。具体地,云服务器C中多个操作系统可以分别对应一个终端设备D,也可以只对应一个终端设备D。终端设备D中运行应用1时,应用1通过终端设备D接收用户输入的交互信息,并将用户输入的交互信息发送至云服务器中运行应用1的安卓系统1中,云服务器C中的安卓系统1中运行的应用1根据接收到的交互信息生成显示视频,并将显示视频进行编码得到视频流,再将视频流返回至终端设备D中。终端设备D中的中央处理器对接收到的视频流进行解码得到显示视频,并将显示视频在设备1中运行的应用1的显示画面中进行显示。As shown in Figure 1b, another schematic diagram of data transmission in the cloud application scenario provided by the present application, in this application scenario, the server is a cloud server C, and the cloud server C includes multiple Android operating systems (only shown in the figure). 3 out), one or more Android applications can be installed in each Android system. The number of terminal devices D connected to the cloud server may be one or more. Specifically, multiple operating systems in the cloud server C may respectively correspond to one terminal device D, or may only correspond to one terminal device D. When application 1 is running in terminal device D, application 1 receives the interaction information input by the user through terminal device D, and sends the interaction information input by the user to the Android system 1 running application 1 in the cloud server, and the Android system in cloud server C. The application 1 running in 1 generates a display video according to the received interaction information, encodes the display video to obtain a video stream, and then returns the video stream to the terminal device D. The central processor in the terminal device D decodes the received video stream to obtain a display video, and displays the display video on the display screen of the application 1 running in the device 1 .

需要说明的是,图1a与图1b所示的云应用场景下数据传输的场景示意图仅仅是示例,本申请实施例描述的云应用场景下数据传输的场景是为了更加清楚地说明本申请的技术方案,并不构成对于本申请提供的技术方案的限定,本领域普通技术人员可知,随着图像处理的演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。It should be noted that the schematic diagrams of the data transmission scenarios in the cloud application scenarios shown in FIGS. 1a and 1b are only examples, and the data transmission scenarios in the cloud application scenarios described in the embodiments of the present application are for the purpose of more clearly illustrating the technology of the present application. The solution does not constitute a limitation on the technical solutions provided in this application. Those of ordinary skill in the art know that with the evolution of image processing and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.

基于上述实施场景以下分别进行详细说明。Based on the above implementation scenarios, detailed descriptions are given below.

实施例一Example 1

本申请实施例将从图像处理装置的角度进行描述,该图像处理装置可以集成在终端中。其中,终端可以是智能收银设备、智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱以及智能手表等。如图2所示,为本申请提供的图像处理方法的流程示意图,该处理方法包括:The embodiments of the present application will be described from the perspective of an image processing apparatus, and the image processing apparatus may be integrated in a terminal. The terminal may be a smart cash register device, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. As shown in FIG. 2, which is a schematic flowchart of an image processing method provided by this application, the processing method includes:

步骤101,显示应用程序的交互界面,交互界面用于接收交互信息。Step 101 , displaying an interactive interface of the application, where the interactive interface is used to receive interactive information.

其中,应用程序为装载在终端中的云应用应用程序,包括但不限于智能刷脸支付云应用、云游戏以及云会议等云应用程序。应用程序的交互界面为终端中用于显示交互信息的界面。例如在智能刷脸支付云应用中,交互界面可以显示提示用户将脸正对摄像头的提示信息;在云游戏中,交互界面可以显示游戏界面以及操作区域信息。应用程序的交互界面也可以是终端中用于接收交互信息的界面。例如在智能刷脸支付云应用中,交互界面可以接收用户输入的确认支付的触控信息作为交互信息;在云游戏中,交互界面可以接收用户的操控操作信息作为交互信息。当然,交互界面还包括了用于采集图像信息的摄像头组件、用于采集声音信息的麦克风组件、用于采集终端运动状态的陀螺仪组件以及用于采集温湿度信息的传感器组件等其他信息采集组件。这些信息采集组件采集到的信息也作为交互信息。The applications are cloud application applications loaded in the terminal, including but not limited to cloud applications such as smart face-swiping payment cloud applications, cloud games, and cloud conferences. The interactive interface of the application is an interface used to display interactive information in the terminal. For example, in the smart face payment cloud application, the interactive interface can display prompt information prompting the user to face the camera; in cloud games, the interactive interface can display the game interface and operation area information. The interactive interface of the application may also be an interface in the terminal for receiving interactive information. For example, in the smart face payment cloud application, the interactive interface can receive the touch information input by the user to confirm the payment as the interactive information; in the cloud game, the interactive interface can receive the user's manipulation operation information as the interactive information. Of course, the interactive interface also includes a camera component for collecting image information, a microphone component for collecting sound information, a gyroscope component for collecting terminal motion status, and a sensor component for collecting temperature and humidity information and other information collection components . The information collected by these information collection components is also used as interactive information.

步骤102,将交互界面采集到的交互信息上传至服务器。Step 102: Upload the interaction information collected by the interaction interface to the server.

其中,如前所述,交互界面既包含了显示交互信息以及接收屏幕触控信息的显示屏,还包含了其他信息采集组件。但在当前运行的云应用程序中,并非所有可以采集的交互信息都需要采集。例如在智能刷脸支付云应用中,需采集用户脸部图像信息以及用户在交互界面的显示屏中输入的触控信息作为交互信息。在云游戏应用中,需要采集用户在交互界面的显示屏中输入的触控信息、终端的运动状态信息以及用户输入的语音控制信息等作为交互信息。即可以根据终端实际运行的云应用程序确定需要采集的交互信息,再将采集到的交互信息发送至服务器。Among them, as mentioned above, the interactive interface includes not only a display screen for displaying interactive information and receiving screen touch information, but also other information collection components. But in currently running cloud applications, not all interactive information that can be collected needs to be collected. For example, in the smart face-swiping payment cloud application, the user's face image information and the touch information input by the user on the display screen of the interactive interface need to be collected as interactive information. In cloud game applications, the touch information input by the user on the display screen of the interactive interface, the motion state information of the terminal, and the voice control information input by the user need to be collected as interaction information. That is, the interaction information to be collected can be determined according to the cloud application actually running on the terminal, and then the collected interaction information can be sent to the server.

步骤103,接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据。Step 103: Receive the image encoding data returned by the server according to the interaction information, the image encoding data includes the reference frame number and associated frame data determined when the server encodes the displayed image, and the associated frame data is to calculate the difference between the displayed image and the reference frame. data.

其中,当服务器接收到终端发送的交互信息后,服务器根据应用程序的运行逻辑,结合接收到的交互信息,生成终端的交互界面此时应当显示的显示图像,然后再将生成的显示图像发送到终端,以使得终端将显示图像显示在交互界面上。可以理解的是,显示图像可以是单独的一帧显示图像,也可以是连续的多帧显示图像,连续多帧显示图像即构成了视频流。由于服务器生成的图像或者视频流的数据量较大,直接将服务器生成的图像或者视频流发送到终端,会导致对网络带宽的占用。而且当服务器连接多个终端时,向多个终端同时发送显示图像或者视频流会导致网络拥堵,进而会导致终端接收到显示图像或视频流的速度下降,给终端用户带来网络延迟或卡顿等不好的体验。Wherein, after the server receives the interaction information sent by the terminal, the server generates the display image that should be displayed on the interactive interface of the terminal at this time according to the operation logic of the application program and the received interaction information, and then sends the generated display image to the terminal, so that the terminal displays the display image on the interactive interface. It can be understood that the display image may be a single frame of display image, or may be a continuous multi-frame display image, and the continuous multiple-frame display image constitutes a video stream. Since the image or video stream generated by the server has a large amount of data, directly sending the image or video stream generated by the server to the terminal will occupy network bandwidth. Moreover, when the server is connected to multiple terminals, sending display images or video streams to multiple terminals at the same time will cause network congestion, which in turn will reduce the speed at which terminals receive displayed images or video streams, causing network delays or freezes to end users. Wait for a bad experience.

在相关技术中,为了减小服务器向终端传输的数据量,加快显示图像或视频流的传输速度,在显示图像或视频流发送前,服务器先对显示图像或视频流进行编码压缩,从而减小传输的数据量;终端接收到编码后的编码数据后,再对编码数据进行解码得到显示图像和视频流。具体地,对显示图像或视频流进行编码压缩,可以采用IPB编码方式对显示图像或视频流进行编码压缩。其中I帧(帧内编码帧)是一个全帧压缩编码帧,它将全帧显示图像信息进行压缩,不需要参考其他的画面即可完成压缩,解码时只需I帧的数据就可重构完整图像。由于I帧保留了一帧画面的完整数据,因此I帧编码的压缩率较低,常见的I帧压缩率为7。P帧(向前预测编码帧)为当前帧图像与前一个I帧或P帧的差别,即P帧为差别帧,P帧没有完整画面数据,只有与前一个I帧或P帧的画面差别的数据。编码时P帧是以I帧或P帧为参考帧,计算当前帧图像相对于参考帧的差别帧数据。差别帧数据包含了参考帧中每个点的预测值和运动矢量。终端在解码时根据接收到的每个点的预测值和运动矢量结合参考帧中该点的信息,得到P帧中每个点的样值,从而得到完整的当前帧图像。相对于I帧,P帧的压缩率较高,常见的P帧压缩率为20。B帧(双向预测内插编码帧)是双向差别帧,即B帧记录的是本帧图像与前后帧的差别,B帧的压缩率更高,常见的B帧压缩率为50。In the related art, in order to reduce the amount of data transmitted by the server to the terminal and speed up the transmission speed of the displayed image or video stream, before the displayed image or video stream is sent, the server encodes and compresses the displayed image or video stream, thereby reducing the size of the displayed image or video stream. The amount of transmitted data; after the terminal receives the encoded encoded data, it decodes the encoded data to obtain the displayed image and video stream. Specifically, to encode and compress the displayed image or video stream, an IPB encoding method may be used to encode and compress the displayed image or video stream. Among them, I frame (intra-frame coding frame) is a full-frame compression coding frame, which compresses the displayed image information of the whole frame. It can be compressed without referring to other pictures. When decoding, only the data of the I frame can be reconstructed. full image. Since the I frame retains the complete data of one frame of picture, the compression rate of the I frame encoding is low, and the common I frame compression rate is 7. P frame (forward predictive coding frame) is the difference between the current frame image and the previous I frame or P frame, that is, the P frame is a difference frame, and the P frame does not have complete picture data, only the picture difference from the previous I frame or P frame. The data. During encoding, the P frame takes the I frame or the P frame as the reference frame, and calculates the difference frame data of the current frame image relative to the reference frame. The difference frame data contains the predicted value and motion vector for each point in the reference frame. When decoding, the terminal obtains the sample value of each point in the P frame according to the received prediction value of each point and the motion vector combined with the information of the point in the reference frame, thereby obtaining the complete current frame image. Compared with the I frame, the compression rate of the P frame is higher, and the common compression rate of the P frame is 20. The B frame (bidirectional predictive interpolation coding frame) is a bidirectional difference frame, that is, the B frame records the difference between the image of the current frame and the previous and previous frames. The compression rate of the B frame is higher, and the common B frame compression rate is 50.

在相关技术中,一般会将一个场景的第一帧图像按照I帧进行编码,再将编码得到的I帧作为参考帧进行后续帧的P帧以及B帧编码。其中,在解码时若多次使用P帧作为参考帧,会造成解码错误的扩散。因此为了保证数据传输的准确性,不仅在每个场景的第一帧图像编码时按照I帧进行编码,若一个场景维持较长时间时,在该场景中往往会设置每隔预设时间段进行一次I帧编码并将编码得到的I帧传输给终端进行解码显示。由于I帧编码的压缩率较低,I帧数据的传输时仍然具有较大的数据量。In the related art, the first frame image of a scene is generally encoded as an I frame, and then the encoded I frame is used as a reference frame to encode P and B frames of subsequent frames. Among them, if the P frame is used as the reference frame for many times during decoding, decoding errors will spread. Therefore, in order to ensure the accuracy of data transmission, not only the first frame image of each scene is encoded according to the I frame, but if a scene is maintained for a long time, it is often set to perform every preset time period in the scene. Encode the I frame once and transmit the encoded I frame to the terminal for decoding and display. Due to the low compression rate of the I-frame encoding, the I-frame data still has a large amount of data during transmission.

为进一步降低服务器向终端传输的数据量,本申请实施例提供的图像处理方法在服务器对显示图像进行编码时,均以I帧为参考帧进行P帧编码。此处I帧并非一个固定的I帧,而是会随着应用程序的使用场景发生变化。此处I帧即为编辑P帧的参考帧,一个应用程序有多个使用场景,也就具有多个参考帧,每个参考帧都具有一个与之对应的唯一的编号。如此,对应用程序的显示图像进行编码,即以当前显示图像对应的参考帧进行P帧编码,亦即计算当前显示图像与其对应的参考帧之间的差异数据,该差异数据经压缩后得到关联帧数据。如此,当前显示图像编码得到的结果为当前显示图像对应的关联帧数据。终端接收服务器返回的关联帧数据以及编码使用的参考帧的编号,即可根据编号从终端本地存储的参考帧中提取出与编号对应的参考帧,再结合关联帧数据解码得到显示图像。如此,服务器向终端的数据传输只需传输参考帧的编号以及关联帧数据。而且关联帧数据是进行P帧编码的,压缩率较高,数据量较小。In order to further reduce the amount of data transmitted by the server to the terminal, the image processing method provided by the embodiments of the present application all use the I frame as a reference frame to perform P frame encoding when the server encodes the displayed image. The I frame here is not a fixed I frame, but will change with the usage scene of the application. Here the I frame is the reference frame for editing the P frame. An application has multiple usage scenarios, that is, there are multiple reference frames, and each reference frame has a unique number corresponding to it. In this way, the display image of the application is encoded, that is, the P-frame encoding is performed with the reference frame corresponding to the currently displayed image, that is, the difference data between the currently displayed image and its corresponding reference frame is calculated, and the difference data is compressed to be associated frame data. In this way, the result obtained by encoding the currently displayed image is the associated frame data corresponding to the currently displayed image. The terminal receives the associated frame data returned by the server and the number of the reference frame used for encoding, and can extract the reference frame corresponding to the number from the reference frame stored locally by the terminal according to the number, and then decode the associated frame data to obtain a display image. In this way, the data transmission from the server to the terminal only needs to transmit the number of the reference frame and the associated frame data. Moreover, the associated frame data is encoded by the P frame, the compression rate is high, and the amount of data is small.

步骤104,根据编号从本地存储器中提取出与编号对应的参考帧。Step 104: Extract the reference frame corresponding to the number from the local memory according to the number.

其中,当终端接收到服务器返回的参考帧编号和关联帧数据后,从终端的本地存储器中查找与参考帧编号对应的参考帧。在本申请提供的图像处理方法中,在终端的本地存储器与服务器的存储器中分别存储有一套与应用程序对应的参考帧数据,参考帧数据包括多个参考帧以及与每个参考帧对应的编号。终端的本地存储器中存储的与应用程序对应的参考帧据与服务器中存储的与应用程序对应的参考帧数据相同。即终端根据接收到的编号提取出的参考帧与服务器对当前帧显示图像进行P帧编码时使用的参考帧相同。Wherein, after receiving the reference frame number and associated frame data returned by the server, the terminal searches for the reference frame corresponding to the reference frame number from the local memory of the terminal. In the image processing method provided by the present application, a set of reference frame data corresponding to the application program is stored in the local memory of the terminal and the memory of the server respectively, and the reference frame data includes a plurality of reference frames and a serial number corresponding to each reference frame . The reference frame data corresponding to the application program stored in the local memory of the terminal is the same as the reference frame data corresponding to the application program stored in the server. That is, the reference frame extracted by the terminal according to the received serial number is the same as the reference frame used when the server performs P-frame encoding on the displayed image of the current frame.

步骤105,根据参考帧与关联帧数据解码得到当前显示图像,并将当前显示图像显示在交互界面中。Step 105: Decode the currently displayed image according to the reference frame and the associated frame data, and display the currently displayed image in the interactive interface.

其中,终端根据服务器发送的编号提取出对应的参考帧后,使用该参考帧以及接收到的关联帧数据进行解码,即可得到当前显示图像。当前显示图像与服务器根据交互信息生成的显示图像相同。解码得到当前显示图像后,终端将当前显示图像再交互界面中进行显示。Wherein, after the terminal extracts the corresponding reference frame according to the serial number sent by the server, and decodes by using the reference frame and the received associated frame data, the currently displayed image can be obtained. The current display image is the same as the display image generated by the server according to the interaction information. After decoding to obtain the currently displayed image, the terminal displays the currently displayed image in the interactive interface.

在一些实施例中,本申请提供的图像处理方法还可以包括如下步骤:In some embodiments, the image processing method provided by the present application may further include the following steps:

1、从交互界面显示的界面图像中确定预设数量个参考帧;1. Determine a preset number of reference frames from the interface image displayed on the interactive interface;

2、按照预置的规则对每个参考帧进行编号;2. Number each reference frame according to the preset rules;

3、将每个参考帧与对应的编号关联存储于终端的本地存储器中;3. Associate each reference frame with the corresponding serial number and store it in the local memory of the terminal;

4、将每个参考帧和与其对应的编号上传至服务器,以使得服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。4. Upload each reference frame and its corresponding serial number to the server, so that the server associates each reference frame with the corresponding serial number and stores it in the storage space of the server.

其中,上述步骤可以在步骤103之前任一步骤中或之前任一步骤之前执行。其中交互界面显示的界面图像包括应用程序的整个运行流程中交互界面的每一帧显示的界面图像。交互界面的每一帧显示的界面图像可以根据应用程序历史运行数据获得。从交互界面显示的界面图像中确定预设数量个参考帧,可以对界面图像中每隔预设帧提取一帧界面图像进行I帧编码得到参考帧,也可以按照其他设置的规则进行参考帧的确定。Wherein, the above steps may be performed in any step before step 103 or before any previous step. The interface image displayed on the interactive interface includes the interface image displayed in each frame of the interactive interface in the entire running process of the application. The interface image displayed in each frame of the interactive interface can be obtained according to the historical running data of the application. A preset number of reference frames can be determined from the interface images displayed on the interactive interface. One frame of the interface image can be extracted from the interface image every preset frame and subjected to I-frame encoding to obtain the reference frame, or the reference frame can be coded according to other set rules. Sure.

在一些实施例中,从交互界面显示的界面图像中确定预设数量个参考帧,包括:In some embodiments, a preset number of reference frames are determined from interface images displayed on the interactive interface, including:

a、获取应用程序运行的交互界面对应显示的每一帧界面图像;a. Obtain each frame of the interface image displayed corresponding to the interactive interface of the application running;

b、将界面图像按照图像相似度进行分类,得到多个界面图像集合;b. Classify the interface images according to the image similarity to obtain a plurality of interface image sets;

c、从每个界面图像集合中提取任意一帧界面图像作为参考帧。c. Extract any frame of interface image from each interface image set as a reference frame.

其中,根据应用程序运行的历史数据获取到应用程序运行的交互界面对应显示的每一帧界面图像后,将这些界面图像进行分类。具体地,可以按照界面图像对应的应用场景或者界面图像的图像相似度对这些界面图像分类,分类后可以得到多个界面图像集合。每个界面图像集合中都包含至少一帧界面图像,然后从每个界面图像集合中提取一帧界面图像,再对这些帧界面图像进行I帧编码得到多个参考帧。Wherein, after each frame of interface images displayed corresponding to the interactive interface of the application program is obtained according to the historical data of the operation of the application program, these interface images are classified. Specifically, these interface images can be classified according to the application scenarios corresponding to the interface images or the image similarity of the interface images, and after the classification, multiple interface image sets can be obtained. Each interface image set includes at least one frame of interface image, and then one frame of interface image is extracted from each interface image set, and I-frame encoding is performed on these interface images to obtain multiple reference frames.

在一些实施例中,将界面图像按照图像相似度进行分类,得到多个界面图像集合,包括:In some embodiments, the interface images are classified according to the image similarity to obtain a plurality of interface image sets, including:

采用图像识别算法对每个界面图像进行图像识别,得到每个界面图像对应的识别特征;Image recognition algorithm is used to perform image recognition on each interface image, and the corresponding recognition feature of each interface image is obtained;

根据识别特征的相似度将界面图像进行分类,得到多个界面图像集合。The interface images are classified according to the similarity of the recognition features, and multiple interface image sets are obtained.

其中,采用图像识别算法对每个界面图像进行图像识别,具体可以采用卷积神经网络对界面图像进行图像识别,得到每个界面图像的识别特征。再对识别特征进行相似度计算,根据识别特征的相似度将界面图像分类为多个界面图像集合。Wherein, an image recognition algorithm is used to perform image recognition on each interface image, and specifically, a convolutional neural network can be used to perform image recognition on the interface image to obtain the recognition feature of each interface image. Then the similarity calculation is performed on the identification features, and the interface images are classified into multiple interface image sets according to the similarity of the identification features.

在一些实施例中,本申请实施例提供的图像处理方法还包括:In some embodiments, the image processing method provided by the embodiments of the present application further includes:

当接收到服务器发送的应用程序更新指令时,对应用程序进行更新;When receiving the application program update instruction sent by the server, update the application program;

从更新后的应用程序的交互界面显示的界面图像中提取预设数量个参考帧并按照预置的规则对每个参考帧进行编号;Extract a preset number of reference frames from the interface image displayed on the interactive interface of the updated application and number each reference frame according to the preset rules;

将每个参考帧与对应的编号关联存储于终端的本地存储器中;Associate each reference frame with the corresponding number and store it in the local memory of the terminal;

将每个参考帧和与其对应的编号上传至服务器,以使得服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。Upload each reference frame and its corresponding serial number to the server, so that the server stores each reference frame and the corresponding serial number in the storage space of the server in association with each other.

其中,当应用程序的版本发生更新后,服务器向终端发送应用程序更新指令,终端根据应用程序发送的更新指令进行自动更新。由于更新版本后的应用程序在运行时显示的界面图像可能发生变化,此时终端会自动根据更新后的应用程序的交互界面显示的界面图像中提取参考帧,并对重新提取的参考帧进行重新编号并在终端的本地存储器进行存储。对重新提取的参考帧进行编号及存储的同时,将终端中保存的原应用程序对应的参考帧及编号数据进行删除。之后,再将重新提取的参考帧及其编号发送至服务器,以使服务器根据接收到的重新提取的参考帧及编号对原先保存的参考帧数据进行更新。Wherein, after the version of the application program is updated, the server sends an application program update instruction to the terminal, and the terminal automatically updates according to the update instruction sent by the application program. Since the interface image displayed by the updated version of the application may change during runtime, the terminal will automatically extract the reference frame according to the interface image displayed by the updated application's interactive interface, and re-extract the reference frame. numbered and stored in the terminal's local memory. While numbering and storing the re-extracted reference frame, delete the reference frame and numbering data corresponding to the original application program saved in the terminal. After that, the re-extracted reference frame and its serial number are sent to the server, so that the server can update the previously stored reference frame data according to the received re-extracted reference frame and its serial number.

根据上述描述可知,本申请实施例提供的图像处理方法,通过显示应用程序的交互界面,交互界面用于接收交互信息;将交互界面采集到的交互信息上传至服务器;接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;根据编号从本地存储器中提取出与编号对应的参考帧;根据参考帧与关联帧数据解码得到当前显示图像并将当前显示图像显示在交互界面中。以此,通过将参考帧在终端本地保存,使得服务器向终端发送图像数据时,仅需发送参考帧编号以及关联帧数据,避免了参考帧的发送。从而减少了服务器向终端传输的数据量,提升了终端接收图像数据的效率,进而提升了云应用在用户终端的运行效率。As can be seen from the above description, the image processing method provided by the embodiments of the present application displays the interactive interface of the application program, and the interactive interface is used to receive interactive information; upload the interactive information collected by the interactive interface to the server; receive the information returned by the server according to the interactive information Image encoding data, the image encoding data includes the number of the reference frame determined when the server encodes the displayed image and the associated frame data. The associated frame data is the difference data between the displayed image and the reference frame; extracted from the local storage according to the number. The reference frame corresponding to the serial number; the currently displayed image is obtained by decoding the reference frame and the associated frame data, and the currently displayed image is displayed in the interactive interface. In this way, by saving the reference frame locally in the terminal, when the server sends image data to the terminal, it only needs to send the reference frame number and associated frame data, thereby avoiding the sending of the reference frame. Thus, the amount of data transmitted from the server to the terminal is reduced, the efficiency of the terminal receiving image data is improved, and the operation efficiency of the cloud application in the user terminal is further improved.

实施例二Embodiment 2

根据实施例一所描述的方法,以下将举例进行进一步详细说明。在本实施例中,图像处理方法以终端为执行主体进行描述。According to the method described in the first embodiment, further detailed description will be given below by taking an example. In this embodiment, the image processing method is described with the terminal as the execution subject.

请参阅图3,为本申请实施例提供的图像处理方法的另一流程示意图,该方法包括如下步骤:Please refer to FIG. 3 , which is another schematic flowchart of an image processing method provided by an embodiment of the present application. The method includes the following steps:

步骤201,终端从应用程序交互界面显示的界面图像中确定预设数量个参考帧,并对参考帧进行编号。Step 201, the terminal determines a preset number of reference frames from the interface image displayed on the application interactive interface, and numbers the reference frames.

其中,如前所述,应用程序可以为云应用程序。具体地,可以为云游戏、云会议或者智能刷脸支付云应用等云应用程序。那么终端即可为云游戏、云会议的用户终端,或者是智能刷脸支付云应用的支付终端。本申请实施例中,以下应用程序可以均以智能刷脸支付云应用为例进行描述。则此处的终端可以为智能刷脸支付的支付终端。在本申请提供的图像处理方法中,支付终端先对智能刷脸支付云应用在支付终端的交互界面上显示的界面图像进行获取。具体地,可以获取智能刷脸支付云应用的一个历史运行过程的视频流,再将该视频流划分为若干帧界面图像。得到界面图像后,支付终端再在这些若干帧界面图像中提取预设数量帧界面图像,再对这些界面图像进行I帧编码后得到预设数量个参考帧。Wherein, as mentioned above, the application may be a cloud application. Specifically, it can be cloud applications such as cloud games, cloud conferences, or smart face payment cloud applications. Then the terminal can be a user terminal for cloud games, cloud conferences, or a payment terminal for smart face payment cloud applications. In the embodiments of the present application, the following application programs may be described by taking the smart face-scanning payment cloud application as an example. Then the terminal here can be a payment terminal for smart face-scanning payment. In the image processing method provided by the present application, the payment terminal first acquires the interface image displayed on the interactive interface of the payment terminal by the smart face-swiping payment cloud application. Specifically, a video stream of a historical running process of the smart face-swiping payment cloud application can be obtained, and then the video stream can be divided into several frames of interface images. After obtaining the interface images, the payment terminal extracts a preset number of frames of interface images from these several frames of interface images, and then performs I-frame encoding on these interface images to obtain a preset number of reference frames.

在一些实施例中,终端从应用程序交互界面显示的界面图像中提取预设数量个参考帧,包括:In some embodiments, the terminal extracts a preset number of reference frames from the interface image displayed on the application interactive interface, including:

1、终端对应用程序交互界面显示的每一帧界面图像进行排序;1. The terminal sorts each frame of interface images displayed on the application interactive interface;

2、按照排序顺序确定每一帧界面图像的前一帧界面图像;2. Determine the interface image of the previous frame of each frame of interface image according to the sorting order;

3、当界面图像不存在前一帧界面图像时,确定当前帧界面图像为参考帧;当界面图像存在前一帧界面图像时,获取界面图像与前一帧界面图像的相似度;3. When the interface image does not have the interface image of the previous frame, determine the interface image of the current frame as the reference frame; when the interface image has the interface image of the previous frame, obtain the similarity between the interface image and the interface image of the previous frame;

4、当相似度小于预设阈值时,确定当前帧界面图像为参考帧。4. When the similarity is less than the preset threshold, determine the interface image of the current frame as the reference frame.

其中,当支付终端根据应用程序历史运行的视频流获取到若干帧界面图像后,对获取到的界面图像按照应用程序的运行流程顺序进行排序。将排序后的图像序列中第一帧界面图像进行I帧编码得到一个参考帧,再将其他每一帧界面图像与其前一帧界面图像进行相似度比较,如果当前帧界面图像与前一帧界面图像的相似度小于一个预设的阈值时,则可以确定当前帧界面图像对应的应用场景与其前一帧的界面图像对应的应用场景发生了变化,则对当前帧界面图像进行I帧编码得到参考帧。以此方法对图像序列中每一帧界面图像进行确定,从而确定出智能刷脸支付云应用的所有参考帧。当确定了所有的参考帧后,将这些参考帧提取出来,并按照图像序列中的排序顺序对每一个参考帧进行编号。Wherein, after the payment terminal acquires several frames of interface images according to the video stream of the historical running of the application, it sorts the acquired interface images according to the sequence of the running process of the application. Perform I-frame encoding on the first frame of the interface image in the sorted image sequence to obtain a reference frame, and then compare the similarity between each other frame of interface image and the previous frame of interface image. When the similarity of the images is less than a preset threshold, it can be determined that the application scene corresponding to the interface image of the current frame has changed with the application scene corresponding to the interface image of the previous frame, and then the interface image of the current frame is subjected to I-frame encoding to obtain a reference. frame. In this way, each frame of the interface image in the image sequence is determined, so as to determine all the reference frames of the smart face-swiping payment cloud application. When all the reference frames are determined, these reference frames are extracted, and each reference frame is numbered according to the sorting order in the image sequence.

具体地,如图4a所示,为本申请提供的智能刷脸支付云应用的支付终端的示意图,当智能刷脸支付云应用运行时,支付终端的显示界面上显示该智能刷脸支付云应用的交互界面,交互界面中显示的界面图像随着刷脸识别及支付操作的过程实时变化。支付终端对刷脸支付过程中支付终端显示界面上显示的视频流进行获取,并将该视频流拆分成若干帧界面图像。支付终端再将拆分得到的若干帧界面图像按照刷脸支付的顺序进行排序,得到界面图像序列。将该界面图像序列的第一帧界面图像进行I帧编码得到一个参考帧,如图4b所示,确定图4b为智能支付云应用的一个参考帧。对于图像序列中的其他帧界面图像,分别获取当前帧图像与其前一帧图像的图像相似度。如果当前帧图像与其前一帧图像的图像相似度小于预设阈值时,将该当前帧图像编码为智能刷脸支付云应用的一个参考帧。然后,通过该方法逐一确定该智能支付云应用的所有参考帧。如图4c、图4d以及图4e所示,均为按前述方法确定的智能支付云应用参考帧。确定了智能支付云应用的参考帧后,按照刷脸支付运行流程对每个参考帧进行编号。例如,确定图4b对应的参考帧编号为01,图4c对应的参考帧编号为02,图4d对应的参考帧编号为03,图4e对应的参考帧编号为04。Specifically, as shown in FIG. 4a , which is a schematic diagram of a payment terminal of the smart face-swiping payment cloud application provided by the present application, when the smart face-swiping payment cloud application is running, the display interface of the payment terminal displays the smart face-swiping payment cloud application. The interface image displayed in the interactive interface changes in real time with the process of face recognition and payment operations. The payment terminal acquires the video stream displayed on the display interface of the payment terminal during the face-swiping payment process, and splits the video stream into several frames of interface images. The payment terminal then sorts several frames of interface images obtained by splitting in the order of face-swiping payment to obtain a sequence of interface images. A reference frame is obtained by performing I-frame encoding on the first frame of the interface image of the interface image sequence, as shown in FIG. 4b, and it is determined that FIG. 4b is a reference frame of the smart payment cloud application. For other frame interface images in the image sequence, the image similarity between the current frame image and the previous frame image is obtained respectively. If the image similarity between the current frame image and the previous frame image is less than the preset threshold, the current frame image is encoded as a reference frame of the smart face brush payment cloud application. Then, all reference frames of the smart payment cloud application are determined one by one through this method. As shown in Fig. 4c, Fig. 4d and Fig. 4e, all are the smart payment cloud application reference frames determined according to the foregoing method. After the reference frame of the smart payment cloud application is determined, each reference frame is numbered according to the face-swiping payment operation process. For example, it is determined that the reference frame number corresponding to FIG. 4b is 01, the reference frame number corresponding to FIG. 4c is 02, the reference frame number corresponding to FIG. 4d is 03, and the reference frame number corresponding to FIG. 4e is 04.

步骤202,终端将每个参考帧与对应的编号关联存储于终端的本地存储器中。Step 202, the terminal associates each reference frame with the corresponding serial number and stores it in the local memory of the terminal.

其中,支付终端将提取到的参考帧与对应的编号进行关联存储,存储在支付终端的本地存储器中,以便后续个根据参考帧的编号从存储器中提取与编号对应的参考帧。The payment terminal associates and stores the extracted reference frame with the corresponding serial number, and stores it in the local memory of the payment terminal, so that subsequent reference frames corresponding to the serial number are extracted from the memory according to the serial number of the reference frame.

步骤203,终端将每个参考帧与对应的编号上传至服务器,以使得服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。Step 203, the terminal uploads each reference frame and the corresponding serial number to the server, so that the server associates each reference frame and the corresponding serial number and stores it in the storage space of the server.

其中,支付终端不仅将提取到的参考帧与对应的编号在终端的本地存储器中进行存储,还将每个参考帧及对应的编号上传至服务器中进行存储。其中,智能刷脸支付云应用运行的服务器可以是云服务器。Wherein, the payment terminal not only stores the extracted reference frame and the corresponding serial number in the local memory of the terminal, but also uploads each reference frame and the corresponding serial number to the server for storage. Among them, the server running the smart face-scanning payment cloud application may be a cloud server.

步骤204,终端显示应用程序的交互界面。Step 204, the terminal displays the interactive interface of the application.

其中,当用户在支付终端的显示界面上触控智能刷脸支付云应用的显示图标时,终端向云服务器发送开启智能刷脸支付云应用的操作指令,云服务器根据该操作指令启动装载的智能刷脸支付云应用程序,并将该应用程序的显示画面返回至终端进行显示,该显示画面就是智能刷脸支付云应用的交互界面。用户可以在交互界面上输入交互信息,交互界面也可以显示服务器根据交互界面处理后输出的交互内容。Wherein, when the user touches the display icon of the smart face-swiping payment cloud application on the display interface of the payment terminal, the terminal sends an operation instruction to the cloud server to open the smart face-swiping payment cloud application, and the cloud server starts the loaded smart payment according to the operation instruction. Scan the face payment cloud application, and return the display screen of the application to the terminal for display, and the display screen is the interactive interface of the smart face payment cloud application. The user can input interactive information on the interactive interface, and the interactive interface can also display the interactive content processed and output by the server according to the interactive interface.

步骤205,终端将采集到的交互信息上传至服务器,以使服务器根据交互信息生成显示图像。Step 205, the terminal uploads the collected interaction information to the server, so that the server generates a display image according to the interaction information.

其中,支付终端可以通过交互界面采集交互信息,也可以根据支付终端上安装的摄像头、麦克风、陀螺仪、传感器等其他组件采集用户输入的图像、视频、语音、运动状态、温湿度等其他交互信息。支付终端采集到这些交互信息后,将采集到的交互信息数据上传至云服务器,云服务器根据支付终端上传的交互信息并结合智能刷脸支付云应用当前的运行场景生成对应的显示图像。Among them, the payment terminal can collect interactive information through the interactive interface, and can also collect images, video, voice, motion status, temperature and humidity and other interactive information input by the user according to other components such as cameras, microphones, gyroscopes, and sensors installed on the payment terminal. . After the payment terminal collects the interaction information, it uploads the collected interaction information data to the cloud server, and the cloud server generates the corresponding display image according to the interaction information uploaded by the payment terminal and combined with the current running scene of the smart face payment cloud application.

步骤206,终端接收服务器返回的图像编码数据。Step 206, the terminal receives the image encoding data returned by the server.

其中,当云服务器根据支付终端上传的交互数据以及智能刷脸支付云应用的运行场景生成对应的显示图像后,使用步骤203中支付终端上传至云服务器的参考帧进行P帧编码,即确定显示图像相对于与其对应的参考帧的差异数据,将该差异数据压缩后得到关联帧数据。其中,云服务器在对显示图像进行P帧编码前,需先确定显示图像对应的参考帧。具体地,可以将存储在云服务器的存储器中的所有参考帧分别与显示图像进行相似度比较,确定与显示图像相似度最高的参考帧为与显示图像对应的参考帧。确定了与显示图像对应的参考帧之后,再根据存储的参考帧与编号的对应关系,确定参考帧对应的编号。如图4f所示,为本申请实施例提供的智能刷脸支付运应用中云服务器对显示图像进行编码的过程示意图。如图所示,服务器确定与生成的每帧显示图像对应的参考帧,然后再使用每帧显示图像对应的参考帧对每帧显示图像进行P帧编码,得到由每帧显示图像对应的P帧(关联帧数据)构成的视频流。如此,在云服务器对显示图像进行P帧编码得到关联帧数据后,将关联帧数据与参考帧的编号一同作为图像编码数据发送给支付终端,支付终端接收云服务器返回的图像编码数据,再对该图像编码数据进行解码。Wherein, after the cloud server generates a corresponding display image according to the interaction data uploaded by the payment terminal and the operation scenario of the smart face-swiping payment cloud application, it uses the reference frame uploaded by the payment terminal to the cloud server in step 203 to perform P-frame encoding, that is, the display is determined to be displayed. The difference data of the image relative to the corresponding reference frame is compressed to obtain the associated frame data. The cloud server needs to determine the reference frame corresponding to the displayed image before encoding the P-frame of the displayed image. Specifically, all reference frames stored in the memory of the cloud server may be compared with the displayed image for similarity, and the reference frame with the highest similarity with the displayed image is determined as the reference frame corresponding to the displayed image. After the reference frame corresponding to the displayed image is determined, the number corresponding to the reference frame is determined according to the stored correspondence between the reference frame and the number. As shown in FIG. 4f , it is a schematic diagram of the process of encoding the displayed image by the cloud server in the smart face-scanning payment operation application provided by the embodiment of the present application. As shown in the figure, the server determines the reference frame corresponding to each frame of the generated display image, and then uses the reference frame corresponding to each frame of the display image to perform P-frame encoding on each frame of the display image to obtain the P frame corresponding to each frame of the display image. (associated frame data) video stream. In this way, after the cloud server performs P-frame encoding on the displayed image to obtain the associated frame data, the associated frame data and the reference frame number are sent to the payment terminal as image encoding data, and the payment terminal receives the image encoding data returned by the cloud server, and then processes the image encoding data returned by the cloud server. The image encoded data is decoded.

步骤207,终端根据编号从本地存储器中提取出与编号对应的参考帧。Step 207, the terminal extracts the reference frame corresponding to the number from the local memory according to the number.

其中,支付终端接收到云服务器返回的图像编码数据后,从服务器返回的图像编码数据中确定显示图像编码时使用的参考帧的编号,再根据编号从支付终端本地存储的参考帧中提取出与编号对应的参考帧。Wherein, after receiving the image encoding data returned by the cloud server, the payment terminal determines the number of the reference frame used when displaying the image encoding from the image encoding data returned by the server, and then extracts the reference frame from the reference frame stored locally by the payment terminal according to the number. The reference frame corresponding to the number.

步骤208,终端根据参考帧与关联帧数据解码得到当前显示图像,并将当前显示图像显示在交互界面中。Step 208: The terminal decodes the reference frame and the associated frame data to obtain the currently displayed image, and displays the currently displayed image in the interactive interface.

其中,支付终端从本地存储器中提取出与编号对应的参考帧后,根据显示图像对应的参考帧与关联帧数据进行解码得到显示图像,此处显示图像即为当前显示图像。支付终端再将解码得到的当前显示图像显示在交互界面中。可以理解的是,在智能刷脸支付云应用程序的刷脸阶段,终端持续采集交互信息并发送至云服务器中,云服务器也实时根据终端上传的交互数据生成连续帧的显示图像。即云服务器根据交互信息生成了视频流,云服务器再对视频流中的每一帧显示图像进行P帧编码,并实时将每一帧显示图像编码使用的参考帧编号以及P帧编码得到的关联帧数据返回至支付终端进行解码显示。因此,智能刷脸支付云应用程序在刷脸阶段也会在交互界面中显示相应的视频流。Wherein, after extracting the reference frame corresponding to the serial number from the local memory, the payment terminal decodes the reference frame corresponding to the displayed image and the associated frame data to obtain the displayed image, where the displayed image is the current displayed image. The payment terminal then displays the currently displayed image obtained by decoding in the interactive interface. It is understandable that in the face-swiping stage of the smart face-swiping payment cloud application, the terminal continuously collects interactive information and sends it to the cloud server, and the cloud server also generates continuous frames of display images according to the interactive data uploaded by the terminal in real time. That is, the cloud server generates a video stream according to the interaction information, and then the cloud server performs P-frame encoding on each frame of the displayed image in the video stream, and real-time encodes the reference frame number used for encoding each frame of the displayed image and the correlation obtained by the P-frame encoding. The frame data is returned to the payment terminal for decoding and display. Therefore, the smart face-swiping payment cloud application will also display the corresponding video stream in the interactive interface during the face-swiping stage.

根据上述描述可知,本申请实施例提供的图像处理方法,通过显示应用程序的交互界面,交互界面用于接收交互信息;将交互界面采集到的交互信息上传至服务器;接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;根据编号从本地存储器中提取出与编号对应的参考帧;根据参考帧与关联帧数据解码得到当前显示图像并将当前显示图像显示在交互界面中。以此,通过将参考帧在终端本地保存,使得服务器向终端发送图像数据时,仅需发送参考帧编号以及关联帧数据,避免了参考帧的发送。从而减少了服务器向终端传输的数据量,提升了终端接收图像数据的效率,进而提升了云应用在用户终端的运行效率。As can be seen from the above description, the image processing method provided by the embodiments of the present application displays the interactive interface of the application program, and the interactive interface is used to receive interactive information; upload the interactive information collected by the interactive interface to the server; receive the information returned by the server according to the interactive information Image encoding data, the image encoding data includes the number of the reference frame determined when the server encodes the displayed image and the associated frame data. The associated frame data is the difference data between the displayed image and the reference frame; extracted from the local storage according to the number. The reference frame corresponding to the serial number; the currently displayed image is obtained by decoding the reference frame and the associated frame data, and the currently displayed image is displayed in the interactive interface. In this way, by saving the reference frame locally in the terminal, when the server sends image data to the terminal, it only needs to send the reference frame number and associated frame data, thereby avoiding the sending of the reference frame. Thus, the amount of data transmitted from the server to the terminal is reduced, the efficiency of the terminal receiving image data is improved, and the operation efficiency of the cloud application in the user terminal is further improved.

实施例三Embodiment 3

本申请实施例将从图像处理装置的角度进行描述,该图像处理装置可以集成在服务器中。其中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、网络加速服务(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。如图5所示,为本申请提供的图像处理方法的流程示意图,该处理方法包括:The embodiments of the present application will be described from the perspective of an image processing apparatus, and the image processing apparatus may be integrated in a server. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, and cloud communications. , middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. As shown in FIG. 5, it is a schematic flowchart of an image processing method provided by this application, and the processing method includes:

步骤301,接收终端上传的交互信息。Step 301: Receive interaction information uploaded by a terminal.

其中,终端为与服务器连接并进行数据交互的终端。例如,在云游戏场景下,服务器为云服务器,终端为云游戏的游戏用户终端。在智能刷脸支付云应用场景下,终端为支付终端。当应用程序在服务器上运行时,通过终端持续采集用户输入的交互信息,服务器根据交互信息生成处理结果并将处理结果返回至终端进行显示。服务器中可以同时运行多个应用程序,因此与服务器连接并进行数据交互的终端可以为一个也可以为多个。本实施例中以运行一个应用程序为例进行说明。可以理解的是,当服务器中同时运行多个应用程序时,每个应用程序的图像处理方法与本实施例中的相同。The terminal is a terminal that is connected to the server and performs data interaction. For example, in a cloud game scenario, the server is a cloud server, and the terminal is a game user terminal of the cloud game. In the smart face payment cloud application scenario, the terminal is the payment terminal. When the application program runs on the server, the terminal continuously collects the interaction information input by the user, and the server generates processing results according to the interaction information and returns the processing results to the terminal for display. Multiple application programs can be run in the server at the same time, so there can be one terminal or multiple terminals that are connected to the server and perform data interaction. In this embodiment, an example of running an application is used for description. It can be understood that, when multiple application programs are run in the server at the same time, the image processing method of each application program is the same as that in this embodiment.

步骤302,根据交互信息生成与交互信息对应的显示图像。Step 302: Generate a display image corresponding to the interaction information according to the interaction information.

其中,服务器中运行的应用程序根据终端上传的交互信息进行相应的处理。例如,当应用程序为云游戏时,服务器接收终端上传的对游戏中任务进行控制的操作指令,将这些操作指令融合到游戏程序中,使得游戏中的人物按照用户终端接收到的操作指令进行移动或者攻击,并生成相应的动画、视频流数据。可以理解的是,动画、视频流数据均是由多帧连续的显示图像构成,因此实质为服务器根据终端上传的交互信息生成对应的交互图像,由于终端连续上传交互信息,服务器根据连续上传的交互信息连续生成多帧显示图像。The application program running in the server performs corresponding processing according to the interaction information uploaded by the terminal. For example, when the application is a cloud game, the server receives the operation instructions uploaded by the terminal to control the tasks in the game, and integrates these operation instructions into the game program, so that the characters in the game move according to the operation instructions received by the user terminal. Or attack, and generate corresponding animation and video stream data. It can be understood that animation and video stream data are composed of multiple frames of continuous display images, so the essence is that the server generates corresponding interactive images according to the interactive information uploaded by the terminal. The information continuously generates multiple frames of display images.

步骤303,从存储器中存储的参考帧中确定与显示图像对应的目标参考帧并确定目标参考帧对应的编号。Step 303: Determine the target reference frame corresponding to the display image from the reference frames stored in the memory and determine the number corresponding to the target reference frame.

其中,服务器根据终端上传的交互信息生成对应的显示图像后,对生成的显示图像进行编码,以减少传输的数据量,具体地,服务器先从存储器中存储的参考帧中确定与显示图像对应的目标参考帧。再利用该目标参考帧对显示图像进行P帧编码。After generating the corresponding display image according to the interaction information uploaded by the terminal, the server encodes the generated display image to reduce the amount of data transmitted. Specifically, the server first determines the corresponding display image from the reference frames stored in the memory. target reference frame. Then use the target reference frame to perform P-frame coding on the displayed image.

在一些实施例中,从存储器中存储的参考帧中确定与显示图像对应的目标参考帧,包括:In some embodiments, determining the target reference frame corresponding to the display image from the reference frames stored in the memory includes:

1、将显示图像与存储器中存储的参考帧进行逐一比较,以确定显示图像与每一参考帧的相似度;1. Compare the displayed image with the reference frames stored in the memory one by one to determine the similarity between the displayed image and each reference frame;

2、确定与显示图像相似度最高的参考帧为目标参考帧。2. Determine the reference frame with the highest similarity with the displayed image as the target reference frame.

其中,当服务器根据终端上传的交互信息生成显示图像后,将显示图像与存储器中存储的所有参考帧进行相似度计算,确定显示图像与每一参考帧的相似度。具体地,可以基于一个预设的相似度计算算法对显示图像与参考帧进行相似度计算。当确定了显示图像与每个参考帧的相似度后,将与显示图像的相似度最高的参考帧确定为显示图像对应的目标参考帧。Wherein, after the server generates the display image according to the interaction information uploaded by the terminal, the similarity calculation is performed between the display image and all reference frames stored in the memory, and the similarity between the display image and each reference frame is determined. Specifically, the similarity calculation between the displayed image and the reference frame may be performed based on a preset similarity calculation algorithm. After the similarity between the displayed image and each reference frame is determined, the reference frame with the highest similarity with the displayed image is determined as the target reference frame corresponding to the displayed image.

在一些实施例中,当应用程序的交互界面显示的显示图像比较单一而且固定时。例如智能刷脸支付云应用程序,其交互界面显示的显示图像主要有:刷脸界面、手机号输入页面、确认支付页面以及支付结果页等较为固定且单一的界面。那么对于这些应用程序的参考帧可以与各个应用场景进行绑定,对每个应用场景确定一个与其对应的参考帧。例如对刷脸应用场景,可以确定一个刷脸应用场景对应的参考帧。如此,当根据终端输入的交互信息确定当前显示的显示界面对应的应用场景为刷脸应用场景时,可以直接调用刷脸应用场景对应的参考帧作为目标参考帧对显示图像进行P帧编码。如此则无需再将显示图像与存储的所有参考帧进行相似度计算再根据相似度确定目标参考帧了。从而提高了服务器对图像进行编码的效率。In some embodiments, when the display image displayed by the interactive interface of the application is relatively single and fixed. For example, in a smart face payment cloud application, the display images displayed on the interactive interface mainly include: face brushing interface, mobile phone number input page, payment confirmation page, and payment result page, etc., which are relatively fixed and single interfaces. Then the reference frames for these applications can be bound with each application scenario, and a corresponding reference frame is determined for each application scenario. For example, for a face brushing application scenario, a reference frame corresponding to a face brushing application scene may be determined. In this way, when it is determined according to the interaction information input by the terminal that the application scene corresponding to the currently displayed display interface is the face brushing application scene, the reference frame corresponding to the face brushing application scene can be directly called as the target reference frame to perform P-frame encoding on the displayed image. In this way, there is no need to calculate the similarity between the displayed image and all the stored reference frames, and then determine the target reference frame according to the similarity. Thus, the efficiency of encoding the image by the server is improved.

进一步地,由于在存储器中参考帧与其对应的编号进行关联存储,确定了与显示图像对应的目标参考帧后,同时可以确定与目标参考帧对应的编号。Further, since the reference frame is stored in association with its corresponding number in the memory, after the target reference frame corresponding to the display image is determined, the number corresponding to the target reference frame can be determined at the same time.

步骤304,确定显示图像相对于目标参考帧的关联帧数据,关联帧数据为计算显示图像与目标参考帧之间的差异数据。Step 304: Determine the associated frame data of the display image relative to the target reference frame, where the associated frame data is calculated difference data between the display image and the target reference frame.

其中,确定了显示图像对应的目标参考帧后,利用显示图像对应的目标参考帧对显示图像进行P帧编码。具体地,计算显示图像相对于目标参考帧的差异数据,再将计算得到的差异数据进行压缩,得到关联帧数据。此处由于是对目标图像进行P帧编码,因此对差异数据的压缩率为20。Wherein, after the target reference frame corresponding to the display image is determined, the display image is P-frame encoded by using the target reference frame corresponding to the display image. Specifically, the difference data of the display image relative to the target reference frame is calculated, and then the calculated difference data is compressed to obtain the associated frame data. Here, since the target image is P-frame encoded, the compression ratio of the difference data is 20.

步骤305,将编号与关联帧数据发送至终端,以使终端根据编号从终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据生成显示图像并对显示图像进行显示。Step 305: Send the serial number and the associated frame data to the terminal, so that the terminal retrieves the reference frame corresponding to the serial number from the local storage of the terminal according to the serial number, and generates and displays the display image in combination with the related frame data.

其中,服务器将确定的显示图像进行P帧编码时对应的目标参考帧的编号,以及根据目标参考帧进行P帧编码得到的关联帧数据,一同发送给终端。终端根据编号从终端本地存储器中提取出与编号对应的目标参考帧,再结合关联帧数据进行解码得到显示图像,并对显示图像进行显示。如此,由于在服务器和终端中都存储有一致的参考帧,服务器仅需传输参考帧的编号以及P帧编码得到的关联帧数据,终端即可根据参考帧编号及关联帧数据解码得到显示图像。避免了I帧数据或参考帧数据的传输,减少了服务器向终端传输的数据量,提升了终端接收图像数据的效率。另一方面,还减少了传输数据导致的流量消耗,节约了资源。The server sends the number of the target reference frame corresponding to the P-frame encoding of the determined display image and the associated frame data obtained by performing the P-frame encoding according to the target reference frame to the terminal together. According to the serial number, the terminal extracts the target reference frame corresponding to the serial number from the local storage of the terminal, and then decodes it in combination with the associated frame data to obtain a display image, and displays the display image. In this way, since consistent reference frames are stored in both the server and the terminal, the server only needs to transmit the reference frame number and the associated frame data encoded by the P frame, and the terminal can decode the reference frame number and the associated frame data to obtain a display image. The transmission of I frame data or reference frame data is avoided, the amount of data transmitted from the server to the terminal is reduced, and the efficiency of the terminal receiving image data is improved. On the other hand, traffic consumption caused by data transmission is also reduced, and resources are saved.

在一些实施例中,以上实施例提供的图像处理方法还可以包括如下步骤:In some embodiments, the image processing methods provided by the above embodiments may further include the following steps:

1、识别上传交互信息的目标应用程序;1. Identify the target application for uploading interactive information;

2、获取对目标应用程序显示的界面图像进行图像编码时使用的关键帧。关键帧为进行图像编码时保留原帧画面的帧数据。2. Acquire the key frame used when performing image encoding on the interface image displayed by the target application. The key frame is the frame data of the original frame image when image encoding is performed.

3、从关键帧中确定预设数量个参考帧,并对每一参考帧进行编号。3. Determine a preset number of reference frames from the key frames, and number each reference frame.

4、将每一参考帧与对应的编号关联存储于存储器中与目标应用程序对应的存储位置。4. Associate each reference frame with a corresponding number and store it in a storage location in the memory corresponding to the target application.

5、将每一参考帧与对应的编号发送至终端,以使终端将每一参考帧与对应的编号关联存储于终端的本地存储器中。5. Send each reference frame and the corresponding serial number to the terminal, so that the terminal associates and stores each reference frame and the corresponding serial number in the local memory of the terminal.

其中,上述步骤的实现时机可以在服务器对生成的显示图像进行P帧编码之前。具体地,当服务器中存在多个运行的应用程序时,先根据上传的交互数据或者交互数据的上传路径确定上传交互信息的目标应用程序。在相关技术中,是采用IPB编码方式对显示图像进行编码以及传输。因此服务器可以调用以往进行IPB编码时的编码历史数据,提取历史数据中按照I帧编码的方式进行编码得到的I帧数据,这些I帧数据可以称为关键帧数据。关键帧数据为编码时保留原帧画面的帧数据,关键帧数据的压缩率较低,一般为7。服务器对目标应用程序按照IPB编码一个完整运行流程的历史数据中的所有I帧数据进行获取,再从获取到的I帧(关键帧)数据中提取出预设数量个参考帧,并对每个参考帧进行编号。然后,服务器将每一参考帧与对应的编号关联存储于服务器的存储器中,并将每一参考帧与对应的编号同时发送至运行目标应用程序的终端以便终端将参考帧及编号关联存储在终端的本地存储器中。Wherein, the implementation timing of the above steps may be before the server performs P-frame encoding on the generated display image. Specifically, when there are multiple running application programs in the server, the target application program for uploading the interaction information is first determined according to the uploaded interaction data or the upload path of the interaction data. In the related art, the IPB encoding method is used to encode and transmit the displayed image. Therefore, the server can call the encoding history data in the past IPB encoding, and extract the I-frame data obtained by encoding in the I-frame encoding method in the historical data, and these I-frame data can be called key frame data. The key frame data is the frame data of the original frame picture when encoding, and the compression rate of the key frame data is low, generally 7. The server acquires all the I-frame data in the historical data of a complete running process encoded by the target application according to IPB, and then extracts a preset number of reference frames from the acquired I-frame (key frame) data, and analyzes each Reference frames are numbered. Then, the server stores each reference frame and the corresponding serial number in the memory of the server in association with each other, and sends each reference frame and the corresponding serial number to the terminal running the target application program at the same time, so that the terminal can store the reference frame and serial number in the terminal in association with each other. in local storage.

在一些实施例中,从关键帧中确定预设数量个参考帧,包括:In some embodiments, a predetermined number of reference frames are determined from the key frames, including:

a、按照相似度对关键帧进行分类,得到多个关键帧集合。a. Classify key frames according to similarity to obtain multiple key frame sets.

b、从每个关键帧集合中提取一个关键帧作为参考帧。b. Extract a key frame from each key frame set as a reference frame.

其中,由于按照IPB编码时为保证编码数据在解码后的图像不失真,需要每隔预设时间进行一个I帧编码。因此,可能在一个相同的应用场景下编码多个I帧,而同一个应用场景下的I帧差异较小,若将这些I帧都作为参考帧进行存储,则会导致存储器中的存储空间被过分占用。因此,在本申请实施例中,可以先对获取到的关键帧进行分类,得到多个关键帧集合。再从每个关键帧集合中提取一个关键帧作为参考帧。如此则可以避免相似参考帧过多导致对服务器以及终端的存储空间过分占用,节约了终端和服务器的存储空间。Wherein, in order to ensure that the decoded image of the encoded data is not distorted during encoding according to IPB, one I-frame encoding needs to be performed every preset time. Therefore, it is possible to encode multiple I-frames in the same application scenario, but the differences between the I-frames in the same application scenario are small. If these I-frames are all stored as reference frames, the storage space in the memory will be lost. Excessive occupation. Therefore, in this embodiment of the present application, the acquired key frames may be classified first to obtain multiple key frame sets. Then extract a key frame from each key frame set as a reference frame. In this way, it is possible to avoid excessive occupation of the storage space of the server and the terminal due to too many similar reference frames, thereby saving the storage space of the terminal and the server.

根据上述描述可知,本申请实施例通过接收终端上传的交互信息;根据交互信息生成与交互信息对应的显示图像;从存储器中存储的参考帧中确定与显示图像对应的目标参考帧并确定目标参考帧对应的编号;确定显示图像相对目标参考帧的关联帧数据,关联帧数据为计算显示图像与目标参考帧之间的差异数据;将编号与关联帧数据发送至终端,以使终端根据编号从终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据生成显示图像并对显示图像进行显示。以此,服务器向终端传输显示图像时,只需传输参考帧对应的编号以及对显示图像根据参考帧进行编码得到的关联帧数据,终端即可根据编号在终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据解码得到显示图像。从而避免了关键帧数据的传输,减少了云应用中服务器向终端传输的数据量,加速了数据传输速度,进而提升了云应用在终端上的运行效率。According to the above description, in this embodiment of the present application, the interaction information uploaded by the terminal is received; the display image corresponding to the interaction information is generated according to the interaction information; the target reference frame corresponding to the display image is determined from the reference frames stored in the memory, and the target reference frame is determined. The number corresponding to the frame; determine the associated frame data of the display image relative to the target reference frame, and the associated frame data is to calculate the difference data between the display image and the target reference frame; send the number and the associated frame data to the terminal, so that the terminal can change from The reference frame corresponding to the serial number is retrieved from the local storage of the terminal, and a display image is generated and displayed in combination with the associated frame data. In this way, when the server transmits the display image to the terminal, it only needs to transmit the number corresponding to the reference frame and the associated frame data obtained by encoding the display image according to the reference frame, and the terminal can retrieve the corresponding number from the local memory of the terminal according to the number. The reference frame is decoded in combination with the associated frame data to obtain the display image. Therefore, the transmission of key frame data is avoided, the amount of data transmitted from the server to the terminal in the cloud application is reduced, the data transmission speed is accelerated, and the operation efficiency of the cloud application on the terminal is improved.

实施例四Embodiment 4

为了更好地实施以上实施例一种的图像处理方法,本发明实施例还提供一种图像处理装置,该图像处理装置可以集成在终端中,该终端可以包括智能支付终端、智能手机,平板电脑、笔记本电脑和/或个人计算机等。In order to better implement the image processing method of one of the above embodiments, the embodiment of the present invention further provides an image processing apparatus, and the image processing apparatus may be integrated in a terminal, and the terminal may include an intelligent payment terminal, a smart phone, a tablet computer , laptop and/or personal computer, etc.

例如,如图6所示,为本申请实施例提供的图像处理装置的结构示意图,该图像处理装置可以包括显示单元401、上传单元402、接收单元403、提取单元404和解码单元305,如下:For example, as shown in FIG. 6, which is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present application, the image processing apparatus may include a display unit 401, an uploading unit 402, a receiving unit 403, an extracting unit 404, and a decoding unit 305, as follows:

显示单元401,用于显示应用程序的交互界面,交互界面用于接收交互信息;A display unit 401, configured to display an interactive interface of an application, and the interactive interface is used to receive interactive information;

上传单元402,用于将交互界面采集到的交互信息上传至服务器;An uploading unit 402, configured to upload the interaction information collected by the interaction interface to the server;

接收单元403,用于接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;The receiving unit 403 is used for receiving the image encoding data returned by the server according to the interaction information, the image encoding data including the reference frame number and associated frame data determined when the server encodes the display image, and the associated frame data is the calculation of the display image and the reference frame. difference data between;

提取单元404,用于根据编号从本地存储器中提取出与编号对应的参考帧;Extraction unit 404, for extracting the reference frame corresponding to the number from the local memory according to the number;

解码单元405,用于根据参考帧与关联帧数据解码得到当前显示图像,并将当前显示图像显示在交互界面中。The decoding unit 405 is configured to decode the currently displayed image according to the reference frame and the associated frame data, and display the currently displayed image in the interactive interface.

在一些实施例中,如图7所示,为本申请提供的图像处理装置的另一结构示意图,图像处理装置还包括:In some embodiments, as shown in FIG. 7 , which is another schematic structural diagram of the image processing apparatus provided in the present application, the image processing apparatus further includes:

第一确定单元406,用于从交互界面显示的界面图像中确定预设数量个参考帧;a first determining unit 406, configured to determine a preset number of reference frames from the interface images displayed on the interactive interface;

编号单元407,用于按照预置的规则对每个参考帧进行编号;Numbering unit 407, for numbering each reference frame according to a preset rule;

第一存储单元408,用于将每个参考帧与对应的编号关联存储于终端的本地存储器中;The first storage unit 408 is used for storing each reference frame in the local memory of the terminal in association with the corresponding serial number;

第一发送单元409,用于将每个参考帧与对应的编号发送至服务器,以使得所述服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。The first sending unit 409 is configured to send each reference frame and the corresponding serial number to the server, so that the server associates and stores each reference frame and the corresponding serial number in the storage space of the server.

在一些实施例中,如图8所示,为本申请实施例提供的图像处理装置的又一结构示意图,确定单元406,包括:In some embodiments, as shown in FIG. 8 , which is another schematic structural diagram of an image processing apparatus provided in an embodiment of the present application, the determining unit 406 includes:

获取子单元4061,用于获取应用程序运行的交互界面对应显示的每一帧界面图像;The acquisition subunit 4061 is used to acquire each frame of interface image displayed corresponding to the interactive interface in which the application is running;

分类子单元4062,用于将界面图像按照图像相似度进行分类,得到多个界面图像集合;The classification subunit 4062 is used to classify the interface images according to the image similarity to obtain a plurality of interface image sets;

提取子单元4063,用于从每个界面图像集合中提取任意一帧界面图像进行编码得到参考帧。The extraction subunit 4063 is configured to extract any frame of interface image from each interface image set and encode it to obtain a reference frame.

在一些实施例中,分类子单元4062,还用于:In some embodiments, the classification subunit 4062 is also used to:

采用图像识别算法对每个界面图像进行图像识别,得到每个界面图像对应的识别特征;Image recognition algorithm is used to perform image recognition on each interface image, and the corresponding recognition feature of each interface image is obtained;

根据识别特征的相似度将界面图像进行分类,得到多个界面图像集合。The interface images are classified according to the similarity of the recognition features, and multiple interface image sets are obtained.

在一些实施例中,如图9所示,为本申请实施例提供的图像处理装置的又一结构示意图,确定单元406,包括:In some embodiments, as shown in FIG. 9 , which is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present application, the determining unit 406 includes:

排序子单元4064,用于对应用程序交互界面显示的每一帧界面图像进行排序;Sorting subunit 4064, used for sorting each frame of interface images displayed in the application interactive interface;

确定子单元4065,用于按照排序顺序确定每一帧界面图像的前一帧界面图像;Determining subunit 4065, for determining the interface image of the previous frame of each frame of interface image according to the sorting order;

编码子单元4066,用于当界面图像不存在前一帧界面图像时,将当前帧界面图像编码为参考帧;当界面图像存在前一帧界面图像时,获取界面图像与前一帧界面图像的相似度;当所述相似度小于预设阈值时,将当前帧界面图像编码为参考帧。The encoding subunit 4066 is used to encode the interface image of the current frame as a reference frame when the interface image does not have the interface image of the previous frame; when the interface image has the interface image of the previous frame, obtain the difference between the interface image and the interface image of the previous frame. Similarity; when the similarity is less than the preset threshold, encode the current frame interface image as a reference frame.

在一些实施例中,如图10所示,为本申请实施例提供的图像处理装置的又一结构示意图,图像处理装置还包括:In some embodiments, as shown in FIG. 10 , which is another schematic structural diagram of an image processing apparatus provided in an embodiment of the present application, the image processing apparatus further includes:

更新单元410,用于当接收到服务器发送的应用程序更新指令时,对所述应用程序进行更新;An update unit 410, configured to update the application when receiving the application update instruction sent by the server;

第二确定单元411,用于从更新后的应用程序的交互界面显示的界面图像中确定预设数量个参考帧并按照预置的规则对每个参考帧进行编号;The second determining unit 411 is configured to determine a preset number of reference frames from the interface image displayed on the interactive interface of the updated application and number each reference frame according to a preset rule;

第二存储单元412,用于将每个参考帧与对应的编号关联存储于所述终端的本地存储器中;The second storage unit 412 is configured to associate and store each reference frame with the corresponding serial number in the local memory of the terminal;

第二发送单元413,用于将每个参考帧和与其对应的编号发送至服务器,以使得服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。The second sending unit 413 is configured to send each reference frame and its corresponding serial number to the server, so that the server associates each reference frame with the corresponding serial number and stores it in the storage space of the server.

具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

由以上可知,本实施例通过显示单元401显示应用程序的交互界面,交互界面用于接收交互信息;上传单元402将交互界面采集到的交互信息上传至服务器;接收单元403接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;提取单元404根据编号从本地存储器中提取出与编号对应的参考帧;解码单元405根据参考帧与关联帧数据解码得到当前显示图像并将当前显示图像显示在交互界面中。以此,通过将参考帧在终端本地保存,使得服务器向终端发送图像数据时,仅需发送参考帧编号以及关联帧数据,避免了参考帧的发送。从而减少了服务器向终端传输的数据量,提升了终端接收图像数据的效率,进而提升了云应用在用户终端的运行效率。As can be seen from the above, in this embodiment, the display unit 401 is used to display the interactive interface of the application, and the interactive interface is used to receive interactive information; the uploading unit 402 uploads the interactive information collected by the interactive interface to the server; the receiving unit 403 receives the return from the server according to the interactive information The image encoding data, the image encoding data includes the number of the reference frame determined when the server encodes the display image and the associated frame data, and the associated frame data is to calculate the difference data between the displayed image and the reference frame; The reference frame corresponding to the serial number is extracted from the memory; the decoding unit 405 decodes the reference frame and the associated frame data to obtain the currently displayed image and displays the currently displayed image in the interactive interface. In this way, by saving the reference frame locally in the terminal, when the server sends image data to the terminal, it only needs to send the reference frame number and associated frame data, thereby avoiding the sending of the reference frame. Thus, the amount of data transmitted from the server to the terminal is reduced, the efficiency of the terminal receiving image data is improved, and the operation efficiency of the cloud application in the user terminal is further improved.

实施例五Embodiment 5

为更好地实施实施例三中的图像处理方法,本申请还提供一种图像处理装置,该图像处理装置可以集成在服务器中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、网络加速服务(ContentDelivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。In order to better implement the image processing method in the third embodiment, the present application also provides an image processing device, which can be integrated in a server, and the server can be an independent physical server, or can be composed of multiple physical servers. It can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and network acceleration services (Content Delivery Network, CDN), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.

例如,如图11所示,为本申请实施例提供的图像处理装置的又一结构示意图,该图像处理装置可以包括:接收单元501、生成单元502、第一确定单元503、第二确定单元504以及发送单元505,如下:For example, as shown in FIG. 11 , which is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present application, the image processing apparatus may include: a receiving unit 501 , a generating unit 502 , a first determining unit 503 , and a second determining unit 504 And the sending unit 505, as follows:

接收单元501,用于接收终端上传的交互信息;a receiving unit 501, configured to receive interaction information uploaded by a terminal;

生成单元502,用于根据交互信息生成与交互信息对应的显示图像;a generating unit 502, configured to generate a display image corresponding to the interaction information according to the interaction information;

第一确定单元503,用于从存储器中存储的参考帧中确定与显示图像对应的目标参考帧并确定目标参考帧对应的编号;The first determining unit 503 is used to determine the target reference frame corresponding to the display image from the reference frame stored in the memory and determine the number corresponding to the target reference frame;

第二确定单元504,用于确定显示图像相对目标参考帧的关联帧数据,关联帧数据为计算显示图像与目标参考帧之间的差异数据;The second determining unit 504 is used to determine the associated frame data of the display image relative to the target reference frame, where the associated frame data is the difference data between the calculated display image and the target reference frame;

第一发送单元505,用于将编号与关联帧数据发送至终端,以使终端根据编号从终端本地存储器中调取与编号对应的目标参考帧,并结合关联帧数据生成显示图像并对显示图像进行显示。The first sending unit 505 is configured to send the serial number and the associated frame data to the terminal, so that the terminal can retrieve the target reference frame corresponding to the serial number from the local memory of the terminal according to the serial number, and generate a display image in combination with the related frame data and display the image. to display.

在一些实施例中,如图12所示,为本申请实施例提供的图像处理装置的又一结构示意图,图像处理装置还包括:In some embodiments, as shown in FIG. 12 , which is another schematic structural diagram of an image processing apparatus provided by an embodiment of the present application, the image processing apparatus further includes:

识别单元506,用于识别上传交互信息的目标应用程序;An identification unit 506, configured to identify the target application for uploading the interaction information;

获取单元507,用于获取对目标应用程序显示的界面图像进行图像编码时使用的关键帧,关键帧为进行图像编码时保留原帧画面的帧数据;Obtaining unit 507 is used to obtain the key frame used when the interface image displayed by the target application program is subjected to image encoding, and the key frame is the frame data of the original frame picture when the image encoding is performed;

第三确定单元508,用于从关键帧中确定预设数量个参考帧,并对每一参考帧进行编号;A third determining unit 508, configured to determine a preset number of reference frames from the key frames, and number each reference frame;

存储单元509,用于将每一参考帧与对应的编号关联存储于存储器中与目标应用程序对应的存储位置;The storage unit 509 is used to associate and store each reference frame with the corresponding number in the storage location corresponding to the target application program in the memory;

第二发送单元510,用于将每一参考帧与对应的编号发送至终端,以使终端将每一参考帧与对应的编号关联存储于终端的本地存储器中。The second sending unit 510 is configured to send each reference frame and the corresponding serial number to the terminal, so that the terminal associates and stores each reference frame and the corresponding serial number in the local memory of the terminal.

在一些实施例中,如图13所示,为本申请实施例提供的图像处理装置的又一结构示意图,第三确定单元508,包括:In some embodiments, as shown in FIG. 13 , which is another schematic structural diagram of the image processing apparatus provided by the embodiments of the present application, the third determining unit 508 includes:

分类子单元5081,用于按照相似度对关键帧进行分类,得到多个关键帧集合;The classification subunit 5081 is used to classify the key frames according to the similarity to obtain a plurality of key frame sets;

提取子单元5082,用于从每个关键帧集合中提取一个关键帧作为参考帧。The extraction subunit 5082 is used for extracting a key frame from each key frame set as a reference frame.

在一些实施例中,如图14所示,为本申请实施例提供的图像处理装置的又一结构示意图,第一确定单元503,包括:In some embodiments, as shown in FIG. 14 , which is another schematic structural diagram of an image processing apparatus provided in an embodiment of the present application, the first determining unit 503 includes:

比较子单元5031,用于将显示图像与存储器中存储的参考帧进行逐一比较,以确定显示图像与每一参考帧的相似度;The comparison subunit 5031 is used to compare the displayed image with the reference frames stored in the memory one by one to determine the similarity between the displayed image and each reference frame;

第一确定子单元5032,用于确定与显示图像相似度最高的参考帧为目标参考帧;The first determination subunit 5032 is used to determine the reference frame with the highest similarity with the displayed image as the target reference frame;

第二确定子单元5033,用于确定存储器中存储的与目标参考帧对应的编号。The second determination subunit 5033 is configured to determine the number corresponding to the target reference frame stored in the memory.

具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

由以上可知,本实施例通过接收单元501接收终端上传的交互信息;生成单元502根据交互信息生成与交互信息对应的显示图像;第一确定单元503从存储器中存储的参考帧中确定与显示图像对应的目标参考帧并确定目标参考帧对应的编号;第二确定单元504确定显示图像相对目标参考帧的关联帧数据,关联帧数据为计算显示图像与目标参考帧之间的差异数据;第一发送单元505将编号与关联帧数据发送至终端,以使终端根据编号从终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据生成显示图像并对显示图像进行显示。以此,服务器向终端传输显示图像时,只需传输参考帧对应的编号以及对显示图像根据参考帧进行编码得到的关联帧数据,终端即可根据编号在终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据解码得到显示图像。从而避免了关键帧数据的传输,减少了云应用中服务器向终端传输的数据量,加速了数据传输速度,进而提升了云应用在终端上的运行效率。It can be seen from the above that in this embodiment, the interaction information uploaded by the terminal is received by the receiving unit 501; the generating unit 502 generates a display image corresponding to the interaction information according to the interaction information; the first determining unit 503 determines and displays the image from the reference frame stored in the memory The corresponding target reference frame and determine the number corresponding to the target reference frame; the second determination unit 504 determines the associated frame data of the display image relative to the target reference frame, and the associated frame data is to calculate the difference data between the display image and the target reference frame; the first The sending unit 505 sends the serial number and the associated frame data to the terminal, so that the terminal retrieves the reference frame corresponding to the serial number from the local storage of the terminal according to the serial number, and generates and displays the display image in combination with the related frame data. In this way, when the server transmits the display image to the terminal, it only needs to transmit the number corresponding to the reference frame and the associated frame data obtained by encoding the display image according to the reference frame, and the terminal can retrieve the corresponding number from the local memory of the terminal according to the number. The reference frame is decoded in combination with the associated frame data to obtain the display image. Therefore, the transmission of key frame data is avoided, the amount of data transmitted from the server to the terminal in the cloud application is reduced, the data transmission speed is accelerated, and the operation efficiency of the cloud application on the terminal is improved.

实施例六Embodiment 6

本申请实施例还提供一种计算机设备,如图15所示,为本申请提供的服务器的结构示意图。具体来讲:An embodiment of the present application further provides a computer device, as shown in FIG. 15 , which is a schematic structural diagram of the server provided by the present application. Specifically:

该计算机设备可以包括一个或者一个以上处理核心的处理器601、一个或一个以上存储介质的存储器602、电源603和输入单元604等部件。本领域技术人员可以理解,图15中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The computer device may include a processor 601 of one or more processing cores, a memory 602 of one or more storage media, a power supply 603 and an input unit 604 and other components. Those skilled in the art can understand that the computer device structure shown in FIG. 15 does not constitute a limitation to the computer device, and may include more or less components than the one shown, or combine some components, or arrange different components. in:

处理器601是该计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行计算机设备的各种功能和处理数据,从而对计算机设备进行整体监控。可选的,处理器601可包括一个或多个处理核心;优选的,处理器601可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器601中。The processor 601 is the control center of the computer equipment, and uses various interfaces and lines to connect various parts of the entire computer equipment, by running or executing the software programs and/or modules stored in the memory 602, and calling the software programs stored in the memory 602. Data, perform various functions of computer equipment and process data, so as to conduct overall monitoring of computer equipment. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 601.

存储器602可用于存储软件程序以及模块,处理器601通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能以及网页访问等)等;存储数据区可存储根据服务器的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器601对存储器602的访问。The memory 602 can be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602 . The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, and web page access, etc.), etc.; the storage data area Data and the like created according to the use of the server can be stored. Additionally, memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 602 may also include a memory controller to provide processor 601 access to memory 602 .

计算机设备还包括给各个部件供电的电源603,优选的,电源603可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源603还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The computer equipment also includes a power supply 603 for supplying power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so that functions such as charging, discharging, and power consumption management are implemented through the power management system. Power source 603 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

该计算机设备还可包括输入单元604,该输入单元604可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The computer device may also include an input unit 604 that may be operable to receive input numerical or character information and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and functional control.

尽管未示出,服务器还可以包括显示单元等,在此不再赘述。具体在本实施例中,服务器中的处理器601会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现各种功能,如下:Although not shown, the server may also include a display unit and the like, which will not be described herein again. Specifically, in this embodiment, the processor 601 in the server loads the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 executes them and stores them in the memory 602 to realize various functions, as follows:

显示应用程序的交互界面,交互界面用于接收交互信息;将交互界面采集到的交互信息上传至服务器;接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;根据编号从本地存储器中提取出与编号对应的参考帧;根据参考帧与关联帧数据解码得到当前显示图像并将当前显示图像显示在交互界面中。Display the interactive interface of the application, the interactive interface is used to receive interactive information; upload the interactive information collected by the interactive interface to the server; receive the image encoding data returned by the server according to the interactive information, and the image encoding data includes the image encoding data determined when the server encodes the displayed image The number of the reference frame and the associated frame data, the associated frame data is the difference data between the calculated display image and the reference frame; the reference frame corresponding to the number is extracted from the local memory according to the number; The reference frame and the associated frame data are decoded to obtain The currently displayed image and the currently displayed image are displayed in the interactive interface.

或者,接收终端上传的交互信息;根据交互信息生成与交互信息对应的显示图像;从存储器中存储的参考帧中确定与显示图像对应的目标参考帧并确定目标参考帧对应的编号;确定显示图像相对目标参考帧的关联帧数据,关联帧数据为计算显示图像与目标参考帧之间的差异数据;将编号与关联帧数据发送至终端,以使终端根据编号从终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据生成显示图像并对显示图像进行显示。Or, receive the interaction information uploaded by the terminal; generate a display image corresponding to the interaction information according to the interaction information; determine the target reference frame corresponding to the display image from the reference frames stored in the memory and determine the number corresponding to the target reference frame; determine the display image Relative to the associated frame data of the target reference frame, the associated frame data is the difference data between the calculated display image and the target reference frame; the serial number and the related frame data are sent to the terminal, so that the terminal can retrieve and number from the local memory of the terminal according to the serial number The corresponding reference frame is combined with the associated frame data to generate a display image and display the display image.

应当说明的是,本申请实施例提供的计算机设备中处理器实现的功能与上文实施例中的图像处理方法属于同一构思,以上各个操作的具体实施可参见前面的实施例,在此不作赘述。It should be noted that the functions implemented by the processors in the computer equipment provided in the embodiments of the present application belong to the same concept as the image processing methods in the above embodiments, and the specific implementation of the above operations can refer to the previous embodiments, which will not be repeated here. .

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructions, or by instructions that control relevant hardware, and the instructions can be stored in a storage medium and processed by to load and execute.

为此,本发明实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的任一种图像处理方法中的步骤。例如,该指令可以执行如下步骤:To this end, the embodiments of the present invention provide a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute steps in any image processing method provided by the embodiments of the present invention. For example, the instruction can perform the following steps:

显示应用程序的交互界面,交互界面用于接收交互信息;将交互界面采集到的交互信息上传至服务器;接收服务器根据交互信息返回的图像编码数据,图像编码数据包括服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,关联帧数据为计算显示图像与参考帧之间的差异数据;根据编号从本地存储器中提取出与编号对应的参考帧;根据参考帧与关联帧数据解码得到当前显示图像并将当前显示图像显示在交互界面中。Display the interactive interface of the application, the interactive interface is used to receive interactive information; upload the interactive information collected by the interactive interface to the server; receive the image encoding data returned by the server according to the interactive information, and the image encoding data includes the image encoding data determined when the server encodes the displayed image The number of the reference frame and the associated frame data, the associated frame data is the difference data between the calculated display image and the reference frame; the reference frame corresponding to the number is extracted from the local memory according to the number; The reference frame and the associated frame data are decoded to obtain The currently displayed image and the currently displayed image are displayed in the interactive interface.

或者,接收终端上传的交互信息;根据交互信息生成与交互信息对应的显示图像;从存储器中存储的参考帧中确定与显示图像对应的目标参考帧并确定目标参考帧对应的编号;确定显示图像相对目标参考帧的关联帧数据,关联帧数据为计算显示图像与目标参考帧之间的差异数据;将编号与关联帧数据发送至终端,以使终端根据编号从终端本地存储器中调取与编号对应的参考帧,并结合关联帧数据生成显示图像并对显示图像进行显示。Or, receive the interaction information uploaded by the terminal; generate a display image corresponding to the interaction information according to the interaction information; determine the target reference frame corresponding to the display image from the reference frames stored in the memory and determine the number corresponding to the target reference frame; determine the display image Relative to the associated frame data of the target reference frame, the associated frame data is the difference data between the calculated display image and the target reference frame; the serial number and the related frame data are sent to the terminal, so that the terminal can retrieve and number from the local memory of the terminal according to the serial number The corresponding reference frame is combined with the associated frame data to generate a display image and display the display image.

以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

由于该存储介质中所存储的指令,可以执行本发明实施例所提供的任一种图像处理方法中的步骤,因此,可以实现本发明实施例所提供的任一种图像处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the instructions stored in the storage medium can execute the steps in any image processing method provided by the embodiment of the present invention, it is possible to realize the steps that can be realized by any image processing method provided by the embodiment of the present invention. For the beneficial effects, refer to the foregoing embodiments for details, which will not be repeated here.

其中,根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在存储介质中。计算机设备的处理器从存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例一、实施例二以及实施例三中各种可选实现方式中提供的图像处理方法。Wherein, according to one aspect of the present application, there is provided a computer program product or computer program, the computer program product or computer program comprising computer instructions, and the computer instructions are stored in a storage medium. The processor of the computer device reads the computer instruction from the storage medium, and the processor executes the computer instruction, so that the computer device performs the image processing provided in the various optional implementation manners in the above-mentioned Embodiment 1, Embodiment 2, and Embodiment 3 method.

以上对本发明实施例所提供的一种图像处理方法、装置、计算机设备及存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The image processing method, device, computer equipment, and storage medium provided by the embodiments of the present invention have been described above in detail. The principles and implementations of the present invention are described with specific examples in this paper. The descriptions of the above embodiments are only It is used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, this specification The contents should not be construed as limiting the present invention.

Claims (14)

1.一种图像处理方法,其特征在于,包括:1. an image processing method, is characterized in that, comprises: 显示应用程序的交互界面,所述交互界面用于接收交互信息;Displaying an interactive interface of the application, the interactive interface is used to receive interactive information; 将所述交互界面采集到的交互信息上传至服务器;uploading the interactive information collected by the interactive interface to the server; 接收所述服务器根据所述交互信息返回的图像编码数据,所述图像编码数据包括所述服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,所述关联帧数据为计算所述显示图像与所述参考帧之间的差异数据;Receive the image encoding data returned by the server according to the interaction information, where the image encoding data includes the reference frame number and associated frame data determined when the server encodes the displayed image, and the associated frame data is used to calculate the displaying difference data between the image and the reference frame; 根据所述编号从本地存储器中提取出与所述编号对应的参考帧;Extract the reference frame corresponding to the number from the local memory according to the number; 根据所述参考帧与所述关联帧数据解码得到当前显示图像,并将所述当前显示图像显示在交互界面中。The currently displayed image is decoded according to the reference frame and the associated frame data, and the currently displayed image is displayed in the interactive interface. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 从所述交互界面显示的界面图像中确定预设数量个参考帧;Determine a preset number of reference frames from the interface image displayed on the interactive interface; 按照预置的规则对每个参考帧进行编号;Number each reference frame according to preset rules; 将每个参考帧与对应的编号关联存储于所述终端的本地存储器中;storing each reference frame in the local memory of the terminal in association with the corresponding number; 将每个参考帧与对应的编号发送至所述服务器,以使得所述服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。Each reference frame and the corresponding number are sent to the server, so that the server stores each reference frame and the corresponding number in the storage space of the server in association with each other. 3.根据权利要求2所述的方法,其特征在于,所述从所述交互界面显示的界面图像中确定预设数量个参考帧,包括:3. The method according to claim 2, wherein the determining a preset number of reference frames from the interface image displayed on the interactive interface comprises: 获取所述应用程序运行的交互界面对应显示的每一帧界面图像;Acquiring each frame of interface image displayed corresponding to the interactive interface in which the application program runs; 将所述界面图像按照图像相似度进行分类,得到多个界面图像集合;classifying the interface images according to the image similarity to obtain a plurality of interface image sets; 从每个界面图像集合中提取任意一帧界面图像进行编码得到参考帧。Extract any frame of interface image from each interface image set and encode it to obtain a reference frame. 4.根据权利要求3所述的方法,其特征在于,所述将所述界面图像按照图像相似度进行分类,得到多个界面图像集合,包括:4. The method according to claim 3, wherein the interface images are classified according to image similarity to obtain a plurality of interface image sets, comprising: 采用图像识别算法对每一帧界面图像进行图像识别,得到每一帧界面图像对应的识别特征;Image recognition algorithm is used to perform image recognition on each frame of interface image, and the corresponding recognition feature of each frame of interface image is obtained; 根据所述识别特征的相似度将所述界面图像进行分类,得到多个界面图像集合。The interface images are classified according to the similarity of the identification features to obtain a plurality of interface image sets. 5.根据权利要求2所述的方法,其特征在于,所述从所述交互界面显示的界面图像中确定预设数量个参考帧,包括:5. The method according to claim 2, wherein the determining a preset number of reference frames from the interface image displayed on the interactive interface comprises: 对所述应用程序交互界面显示的每一帧界面图像进行排序;Sorting each frame of interface images displayed on the application program interactive interface; 按照排序顺序确定每一帧界面图像的前一帧界面图像;Determine the interface image of the previous frame of each frame of interface image according to the sorting order; 当界面图像不存在前一帧界面图像时,将当前帧界面图像编码为参考帧;When there is no previous frame of interface image in the interface image, encode the interface image of the current frame as a reference frame; 当界面图像存在前一帧界面图像时,获取界面图像与前一帧界面图像的相似度;When the interface image has the interface image of the previous frame, obtain the similarity between the interface image and the interface image of the previous frame; 当所述相似度小于预设阈值时,将当前帧界面图像编码为参考帧。When the similarity is less than the preset threshold, the current frame interface image is encoded as a reference frame. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method of claim 1, wherein the method further comprises: 当接收到服务器发送的应用程序更新指令时,对所述应用程序进行更新;When receiving the application program update instruction sent by the server, update the application program; 从更新后的应用程序的交互界面显示的界面图像中确定预设数量个参考帧并按照预置的规则对每个参考帧进行编号;Determine a preset number of reference frames from the interface image displayed in the interactive interface of the updated application and number each reference frame according to a preset rule; 将每个参考帧与对应的编号关联存储于所述终端的本地存储器中;storing each reference frame in the local memory of the terminal in association with the corresponding number; 将每个参考帧和与其对应的编号上传至所述服务器,以使得所述服务器将每个参考帧与对应的编号关联存储于服务器的存储空间中。Uploading each reference frame and its corresponding serial number to the server, so that the server stores each reference frame and the corresponding serial number in the storage space of the server in association with each other. 7.一种图像处理方法,其特征在于,包括:7. An image processing method, characterized in that, comprising: 接收终端上传的交互信息;Receive interactive information uploaded by the terminal; 根据所述交互信息生成与所述交互信息对应的显示图像;generating a display image corresponding to the interaction information according to the interaction information; 从存储器中存储的参考帧中确定与所述显示图像对应的目标参考帧并确定所述目标参考帧对应的编号;Determine the target reference frame corresponding to the display image from the reference frames stored in the memory and determine the number corresponding to the target reference frame; 确定所述显示图像相对所述目标参考帧的关联帧数据,所述关联帧数据为计算所述显示图像与所述目标参考帧之间的差异数据;determining the associated frame data of the display image relative to the target reference frame, where the associated frame data is calculated difference data between the display image and the target reference frame; 将所述编号与所述关联帧数据发送至所述终端,以使所述终端根据所述编号从所述终端本地存储器中调取与所述编号对应的参考帧,并结合所述关联帧数据生成显示图像并对所述显示图像进行显示。Sending the number and the associated frame data to the terminal, so that the terminal retrieves the reference frame corresponding to the number from the local storage of the terminal according to the number, and combines the associated frame data with the reference frame A display image is generated and displayed. 8.根据权利要求7所述的方法,其特征在于,所述方法还包括:8. The method according to claim 7, wherein the method further comprises: 识别上传所述交互信息的目标应用程序;identifying the target application that uploaded the interaction information; 获取对所述目标应用程序显示的界面图像进行图像编码时使用的关键帧,所述关键帧为进行图像编码时保留原帧画面的帧数据;Obtaining the key frame used when performing image encoding on the interface image displayed by the target application, where the key frame is the frame data of the original frame image when performing image encoding; 从所述关键帧中确定预设数量个参考帧,并对每一参考帧进行编号;Determine a preset number of reference frames from the key frames, and number each reference frame; 将每一参考帧与对应的编号关联存储于存储器中与所述目标应用程序对应的存储位置;Associate and store each reference frame with a corresponding number in a storage location corresponding to the target application in the memory; 将每一参考帧与对应的编号发送至终端,以使所述终端将每一参考帧与对应的编号关联存储于所述终端的本地存储器中。Each reference frame and the corresponding number are sent to the terminal, so that the terminal stores each reference frame and the corresponding number in the local memory of the terminal in association with each other. 9.根据权利要求8所述的方法,其特征在于,所述从所述关键帧中确定预设数量个参考帧,包括:9. The method according to claim 8, wherein the determining a preset number of reference frames from the key frames comprises: 按照相似度对所述关键帧进行分类,得到多个关键帧集合;Classify the key frames according to the similarity to obtain a plurality of key frame sets; 从每个所述关键帧集合中提取一个关键帧作为参考帧。One key frame is extracted from each of the key frame sets as a reference frame. 10.根据权利要求7所述的方法,其特征在于,所述从存储器中存储的参考帧中确定与所述显示图像对应的目标参考帧并确定所述目标参考帧对应的编号,包括:10. The method according to claim 7, wherein determining the target reference frame corresponding to the display image from the reference frames stored in the memory and determining the number corresponding to the target reference frame, comprising: 将所述显示图像与存储器中存储的参考帧进行逐一比较,以确定所述显示图像与每一参考帧的相似度;comparing the displayed image with the reference frames stored in the memory one by one to determine the similarity between the displayed image and each reference frame; 确定与所述显示图像相似度最高的参考帧为目标参考帧;Determine the reference frame with the highest similarity with the displayed image as the target reference frame; 确定所述存储器中存储的与所述目标参考帧对应的编号。A number stored in the memory corresponding to the target reference frame is determined. 11.一种图像处理装置,其特征在于,包括:11. An image processing device, comprising: 显示单元,用于显示应用程序的交互界面,所述交互界面用于接收交互信息;a display unit, configured to display an interactive interface of the application, the interactive interface is used to receive interactive information; 上传单元,用于将所述交互界面采集到的交互信息上传至服务器;an uploading unit, configured to upload the interactive information collected by the interactive interface to the server; 接收单元,用于接收所述服务器根据所述交互信息返回的图像编码数据,所述图像编码数据包括所述服务器对显示图像进行编码时确定的参考帧的编号以及关联帧数据,所述关联帧数据为计算所述显示图像与所述参考帧之间的差异数据;a receiving unit, configured to receive the image encoding data returned by the server according to the interaction information, the image encoding data including the reference frame number determined when the server encodes the displayed image and associated frame data, the associated frame The data is to calculate the difference data between the display image and the reference frame; 提取单元,用于根据所述编号从本地存储器中提取出与所述编号对应的参考帧;an extraction unit, configured to extract a reference frame corresponding to the number from the local memory according to the number; 解码单元,用于根据所述参考帧与所述关联帧数据解码得到当前显示图像,并将所述当前显示图像显示在交互界面中。A decoding unit, configured to decode the reference frame and the associated frame data to obtain a currently displayed image, and display the currently displayed image in the interactive interface. 12.一种图像处理装置,其特征在于,包括:12. An image processing device, comprising: 接收单元,用于接收终端上传的交互信息;a receiving unit, configured to receive the interaction information uploaded by the terminal; 生成单元,用于根据所述交互信息生成与所述交互信息对应的显示图像;a generating unit, configured to generate a display image corresponding to the interaction information according to the interaction information; 第一确定单元,用于从存储器中存储的参考帧中确定与所述显示图像对应的目标参考帧并确定所述目标参考帧对应的编号;a first determining unit, configured to determine a target reference frame corresponding to the display image from the reference frames stored in the memory and determine a number corresponding to the target reference frame; 第二确定单元,用于确定所述显示图像相对所述目标参考帧的关联帧数据,所述关联帧数据为计算所述显示图像与所述目标参考帧之间的差异数据;a second determining unit, configured to determine associated frame data of the display image relative to the target reference frame, where the associated frame data is calculated difference data between the display image and the target reference frame; 发送单元,用于将所述编号与所述关联帧数据发送至所述终端,以使所述终端根据所述编号从所述终端本地存储器中调取与所述编号对应的目标参考帧,并结合所述关联帧数据生成显示图像并对所述显示图像进行显示。a sending unit, configured to send the serial number and the associated frame data to the terminal, so that the terminal retrieves the target reference frame corresponding to the serial number from the local storage of the terminal according to the serial number, and A display image is generated and displayed in combination with the associated frame data. 13.一种计算机设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可以在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至6或权利要求7至10中任一项所述的图像处理方法。13. A computer device, characterized by comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements claim 1 when the processor executes the computer program to 6 or the image processing method of any one of claims 7 to 10. 14.一种存储介质,其特征在于,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至6或权利要求7至10中任一项所述的图像处理方法中的步骤。14. A storage medium, characterized in that the storage medium stores a plurality of instructions, the instructions are adapted to be loaded by a processor to execute any one of claims 1 to 6 or claims 7 to 10. steps in an image processing method.
CN202011601954.XA 2020-12-30 2020-12-30 Image processing method, image processing device, computer equipment and storage medium Pending CN114697392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011601954.XA CN114697392A (en) 2020-12-30 2020-12-30 Image processing method, image processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011601954.XA CN114697392A (en) 2020-12-30 2020-12-30 Image processing method, image processing device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114697392A true CN114697392A (en) 2022-07-01

Family

ID=82131454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011601954.XA Pending CN114697392A (en) 2020-12-30 2020-12-30 Image processing method, image processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114697392A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546204A (en) * 2023-05-18 2023-08-04 浙江大华技术股份有限公司 Image coding method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022540A (en) * 2006-02-13 2007-08-22 中兴通讯股份有限公司 Video monitoring system and method under server/customer end constitution
US20120106644A1 (en) * 2010-10-29 2012-05-03 Canon Kabushiki Kaisha Reference frame for video encoding and decoding
CN106412584A (en) * 2015-07-27 2017-02-15 三星显示有限公司 System and method of transmitting display data
CN108600769A (en) * 2018-04-16 2018-09-28 西安万像电子科技有限公司 Image transfer method, apparatus and system
CN109547786A (en) * 2017-09-22 2019-03-29 阿里巴巴集团控股有限公司 Video coding and the decoded method, apparatus of video

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022540A (en) * 2006-02-13 2007-08-22 中兴通讯股份有限公司 Video monitoring system and method under server/customer end constitution
US20120106644A1 (en) * 2010-10-29 2012-05-03 Canon Kabushiki Kaisha Reference frame for video encoding and decoding
CN106412584A (en) * 2015-07-27 2017-02-15 三星显示有限公司 System and method of transmitting display data
CN109547786A (en) * 2017-09-22 2019-03-29 阿里巴巴集团控股有限公司 Video coding and the decoded method, apparatus of video
CN108600769A (en) * 2018-04-16 2018-09-28 西安万像电子科技有限公司 Image transfer method, apparatus and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546204A (en) * 2023-05-18 2023-08-04 浙江大华技术股份有限公司 Image coding method and device

Similar Documents

Publication Publication Date Title
CN114554211B (en) Content-adaptive video encoding method, device, equipment and storage medium
CN114679607B (en) Video frame rate control method and device, electronic equipment and storage medium
CN112346845B (en) Method, device and equipment for scheduling coding tasks and storage medium
CN114404960B (en) Cloud game resource data processing method, device, computer equipment and storage medium
CN113996056B (en) Data sending and receiving method of cloud gaming and related equipment
CN113906764B (en) Method, device and computer readable medium for transcoding video
CN113965751A (en) Screen content coding method, device, equipment and storage medium
CN111935663B (en) Sensor data stream processing method, device, medium and electronic equipment
US11095901B2 (en) Object manipulation video conference compression
WO2023045619A1 (en) Data processing method and apparatus, and device and readable storage medium
CN112843681B (en) Virtual scene control method and device, electronic equipment and storage medium
CN118233640A (en) Video frame extraction method, distributed video analysis method and system
CN116193197A (en) Data processing method, device, equipment and readable storage medium
US11831698B2 (en) Data streaming protocols in edge computing
CN114697392A (en) Image processing method, image processing device, computer equipment and storage medium
CN111182323A (en) Image processing method, device, client and medium
CN112541391A (en) Violation behavior identification method and system based on examination video analysis
CN112188235B (en) Media processing mode selection method and media processing method
CN116055762A (en) Video synthesis method and device, electronic equipment and storage medium
JP2023546513A (en) Data encoding method, device, and computer program
US20230421779A1 (en) Decoding processing method and apparatus, computer device, and storage medium
CN118450162B (en) Cloud application wonderful video recording method and device, electronic equipment and storage medium
CN116033148A (en) A video encoding method, device, computer equipment and storage medium
CN117412064A (en) Video decoding method, device, electronic equipment and computer storage medium
CN121357372A (en) Image processing methods, apparatus and electronic equipment

Legal Events

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