+

CN116208730A - Method, device, equipment and storage medium for improving video clarity - Google Patents

Method, device, equipment and storage medium for improving video clarity Download PDF

Info

Publication number
CN116208730A
CN116208730A CN202310212368.3A CN202310212368A CN116208730A CN 116208730 A CN116208730 A CN 116208730A CN 202310212368 A CN202310212368 A CN 202310212368A CN 116208730 A CN116208730 A CN 116208730A
Authority
CN
China
Prior art keywords
super
video
resolution
frame
definition
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
CN202310212368.3A
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.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
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 Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202310212368.3A priority Critical patent/CN116208730A/en
Publication of CN116208730A publication Critical patent/CN116208730A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4053Scaling of whole images or parts thereof, e.g. expanding or contracting based on super-resolution, i.e. the output image resolution being higher than the sensor resolution

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for improving video definition, wherein the method comprises the following steps: determining optimal computing power and required video of the terminal equipment based on a video request sent by the terminal equipment, and sending a superdivision model and definition level of the determined required video based on the optimal computing power to the terminal equipment; screening out a superdivision list from the required video based on the target definition selected from the definition level by the terminal equipment, wherein the superdivision list records superdivision image blocks needing superdivision in the required video; and sending the superdivision list and the video blocks to the terminal equipment so that the terminal equipment can obtain the high-definition video corresponding to the required video based on the superdivision image blocks recorded by the superdivision list of the superdivision model. In the method, any terminal equipment can obtain the super-division model meeting the self optimal calculation power, and the calculation amount is reduced by reducing the image blocks needing super-division, so that the terminal equipment can provide high-definition quality video for users.

Description

改善视频清晰度的方法、装置、设备及存储介质Method, device, equipment and storage medium for improving video clarity

技术领域technical field

本申请涉及无线通信技术领域,尤其涉及一种改善视频清晰度的方法、装置、设备及存储介质。The present application relates to the technical field of wireless communication, and in particular to a method, device, device and storage medium for improving video clarity.

背景技术Background technique

由于用户利用终端设备观看高清视频的需求与日俱增,但是当前的网络带宽受限,导致终端设备不能对用户提供高质量的视频。Due to the increasing demand of users to watch high-definition video through terminal equipment, the current network bandwidth is limited, so that the terminal equipment cannot provide high-quality video to users.

目前,终端设备在计算能力上进行了加强,以通过加强的计算能力将低清视频转化为高清视频,以使终端设备可以在网络带宽受限时,仍然能够使用户观看高清视频,为了充分利用终端设备中的CPU(central processing unit,中央处理器)与GPU(graphicsprocessing unit,图像处理器)等资源,降低内存的要求,会使用超分模型,对视频进行处理,终端设备一般会对视频进行超分运算。但是,超分模型为深度神经模型,对计算能力的要求高,一些终端设备的计算能力不能满足超分模型,导致计算能力不满足超分模型的终端设备,仍然无法为用户提供高清质量的视频。At present, the computing power of terminal equipment has been enhanced to convert low-definition video into high-definition video through enhanced computing power, so that terminal equipment can still enable users to watch high-definition video when the network bandwidth is limited. In order to make full use of The CPU (central processing unit, central processing unit) and GPU (graphics processing unit, image processor) and other resources in the terminal device reduce the memory requirements and use the super-resolution model to process the video. The terminal device generally processes the video. Super-resolution operation. However, the super-resolution model is a deep neural model, which requires high computing power. The computing power of some terminal devices cannot meet the super-resolution model. As a result, terminal devices whose computing power does not meet the super-resolution model still cannot provide users with high-definition quality video. .

发明内容Contents of the invention

本申请的主要目的在于提供一种改善视频清晰度的方法、装置、设备及存储介质,旨在解决现有技术中计算能力不满足超分模型的终端设备,无法为用户提供高清质量视频的技术问题。The main purpose of this application is to provide a method, device, device, and storage medium for improving video clarity, aiming to solve the problem that the terminal equipment in the prior art whose computing power does not meet the super-resolution model cannot provide users with high-definition quality video technology question.

为实现上述目的,本申请提供一种改善视频清晰度的方法,所述改善视频清晰度的方法包括:In order to achieve the above purpose, the present application provides a method for improving video clarity, and the method for improving video clarity includes:

基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;Based on the video request sent by the terminal device, determine the optimal computing power of the terminal device and the required video, and send the super-resolution model and the determined video of the required video based on the optimal computing power to the terminal device clarity level;

基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;Based on the target definition selected by the terminal device from the definition level, a super-resolution list is selected from the required video, wherein the super-resolution list records the super-resolution image blocks in the required video that need to be super-resolution ;

将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。Sending the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain the desired video Corresponding high-definition video.

可选地,所述基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单的步骤,包括:Optionally, the step of selecting a super-resolution list from the required video based on the target definition selected by the terminal device from the definition level includes:

获取所述所需视频清晰度为所述目标清晰度的视频块;Acquiring the video blocks whose required video resolution is the target resolution;

将所述视频块进行低清帧率解码,获取每个所述视频块的宏块解码信息;Decoding the video blocks at a low-definition frame rate to obtain macroblock decoding information for each of the video blocks;

基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重与所述帧内图像块的帧内超分权重;Based on the decoding information of the macroblock, divide the image block in the video block into an inter image block and an intra image block, and determine the inter frame super-resolution weight of the inter frame image block and the intra frame image block. The intra-frame super-resolution weight;

基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单。Based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm, determine the super-resolution list of the desired video.

可选地,所述基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重的步骤,包括:Optionally, based on the macroblock decoding information, the image blocks in the video block are divided into inter image blocks and intra image blocks, and the inter frame super-resolution weight of the inter frame image blocks is determined. steps, including:

基于所述宏块解码信息,确定每个所述视频块内的帧间宏块;determining an inter macroblock within each of said video blocks based on said macroblock decoding information;

将含有所述帧间宏块的图像块定义为帧间图像块;defining an image block containing the inter macroblock as an inter image block;

计算所述帧间图像块之间的依赖程度与误差扩散度;Calculating the degree of dependence and the degree of error diffusion between the image blocks between the frames;

基于所述依赖程度与所述误差扩散度的乘积,将所述帧间图像块划分为多个帧间清单,其中,每划分一个所述帧间清单需要重新计算剩余所述帧间图像块之间的依赖程度与误差扩散度;Based on the product of the degree of dependence and the degree of error diffusion, divide the inter-frame image block into multiple inter-frame lists, where each division of the inter-frame list requires recalculating the remaining inter-frame image blocks The degree of dependence and error diffusion between

基于所述依赖程度的高低,确定每个所述帧间清单内帧间图像块的帧间超分权重。Based on the degree of dependence, the inter-frame super-resolution weights of the inter-frame image blocks in each of the inter-frame lists are determined.

可选地,所述基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧内图像块的帧内超分权重的步骤,包括:Optionally, based on the macroblock decoding information, the image blocks in the video block are divided into inter image blocks and intra image blocks, and the intra frame super-resolution weight of the intra frame image blocks is determined steps, including:

基于所述宏块解码信息,确定每个所述视频块内的帧内宏块;determining intra macroblocks within each of the video blocks based on the macroblock decoding information;

将含有所述帧内宏块的图像块定义为帧内图像块;defining an image block containing the intra macroblock as an intra image block;

计算所述帧内图像块的依赖估值,并基于预设的所述帧内图像块的纹理复杂度,修正所述依赖估值,得到修正依赖度;calculating a dependency estimate of the intra-frame image block, and modifying the dependency estimate based on the preset texture complexity of the intra-frame image block to obtain a modified dependency;

基于所述修正依赖度的排序,将所述帧内图像块等比例划分为多个帧内清单,并确定每个所述帧内清单的帧内超分权重。Based on the sorting of the modified dependencies, the intra-frame image blocks are divided into multiple intra-frame lists in equal proportions, and the intra-frame super-resolution weight of each of the intra-frame lists is determined.

可选地,所述基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单的步骤,包括:Optionally, the step of determining the super-resolution list of the desired video based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm includes:

基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,计算在所述视频块内每个图像块的清晰度达到目标清晰度时,需要超分面积最小的图像块组合;Based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm, calculate the image with the smallest super-resolution area when the definition of each image block in the video block reaches the target definition. block combination;

将所述图像块组合内的图像块定义为超分图像块,并基于所述超分图像块确定超分清单。The image blocks in the combination of image blocks are defined as super-resolution image blocks, and a super-resolution list is determined based on the super-resolution image blocks.

可选地,所述将所述超分清单与所述视频块发送至所述终端设备的步骤,包括:Optionally, the step of sending the super-resolution list and the video blocks to the terminal device includes:

基于预设的游程编码,将所述超分清单与所述视频块打包为游程数据包;Packing the super-resolution list and the video blocks into a run-length packet based on a preset run-length encoding;

对所述游程数据包与未使用游程编码打包的普通数据包进行数据量对比;Comparing the amount of data between the run-length data packet and an ordinary data packet that is not packaged with run-length encoding;

从所述游程数据包与所述普通数据包中选择数据量少的发送数据包,基于所述发送数据包将所述超分清单与所述视频块发送至所述终端设备。Selecting a sending data packet with a small amount of data from the run length data packet and the normal data packet, and sending the super resolution list and the video block to the terminal device based on the sending data packet.

可选地,所述基于所述最优计算力,确定的所述所需视频的超分模型的步骤,包括:Optionally, the step of determining the super-resolution model of the desired video based on the optimal computing power includes:

从所述所需视频对应的超分模型组中选择出计算力小于或等于所述最优计算力的超分模型;Selecting a super-resolution model whose computing power is less than or equal to the optimal computing power from the super-resolution model group corresponding to the desired video;

其中,每个所述所需视频都对应多个不同计算难度的超分模型。Wherein, each of the required videos corresponds to a plurality of super-resolution models with different calculation difficulties.

本申请还提供一种改善视频清晰度的装置,改善视频清晰度的装置包括:The present application also provides a device for improving video clarity, and the device for improving video clarity includes:

确定模块,用于基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;A determining module, configured to determine the optimal computing power and required video of the terminal device based on the video request sent by the terminal device, and send the required video determined based on the optimal computing power to the terminal device The super-resolution model and definition level;

选择模块,用于基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;A selection module, configured to filter out a super-resolution list from the required video based on the target definition selected by the terminal device from the definition level, wherein the super-resolution list records that the required video requires super-resolution The super-resolution image block of ;

发送模块,用于将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。A sending module, configured to send the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain The high-definition video corresponding to the desired video.

本申请还提供一种改善视频清晰度的设备,改善视频清晰度的设备为实体节点设备,改善视频清晰度的设备包括:存储器、处理器以及存储在存储器上并可在处理器上运行的改善视频清晰度的方法的程序,改善视频清晰度的方法的程序被处理器执行时可实现如上述的改善视频清晰度的方法的步骤。The present application also provides a device for improving video clarity. The device for improving video clarity is a physical node device. The device for improving video clarity includes: a memory, a processor, and an improved device stored on the memory and operable on the processor. The program of the method for video definition, when the program of the method for improving video definition is executed by the processor, can realize the steps of the above-mentioned method for improving video definition.

本申请还提供一种存储介质,存储介质上存储有实现上述改善视频清晰度的方法的程序,改善视频清晰度的方法的程序被处理器执行时实现如上述的改善视频清晰度的方法的步骤。The present application also provides a storage medium, on which a program for realizing the above-mentioned method for improving video definition is stored, and when the program for improving video definition is executed by a processor, the steps of the above-mentioned method for improving video definition are realized .

本申请提供一种改善视频清晰度的方法、装置、设备及存储介质,与现有技术中计算能力不满足超分模型的终端设备,无法为用户提供高清质量视频相比,在本申请中,基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。在本申请中,根据终端设备的最优计算力,向该终端设备发送与所需视频对应的超分模型,再根据终端设备从所需视频的清晰度等级中选择的目标清晰度,向终端设备发送超分后可以达到目标清晰度的视频块与超分清单,以供终端设备超分超分清单中记载的超分图像块,得到所述所需视频对应的高清视频,即在本申请中,向终端设备发送满足终端最优计算力的超分模型,并向终端发送筛选好的超分清单,以供任意一个终端设备都可以获得满足自身最优计算力的超分模型,并减少终端设备的计算量,以使终端设备可以为用户提供高清质量的视频。This application provides a method, device, device, and storage medium for improving video clarity. Compared with terminal equipment in the prior art whose computing power does not meet the super-resolution model and cannot provide users with high-definition quality video, in this application, Based on the video request sent by the terminal device, determine the optimal computing power of the terminal device and the required video, and send the super-resolution model and the determined video of the required video based on the optimal computing power to the terminal device Clarity level; based on the target definition selected by the terminal device from the clarity level, a super-resolution list is screened from the required video, wherein the super-resolution list records the required video. Super-resolution image blocks; sending the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, to obtain The high-definition video corresponding to the desired video. In this application, according to the optimal computing power of the terminal device, the super-resolution model corresponding to the required video is sent to the terminal device, and then according to the target definition selected by the terminal device from the definition level of the required video, the terminal The device sends the video blocks and the super-resolution list that can reach the target resolution after super-resolution, so that the terminal device can obtain the high-definition video corresponding to the desired video by using the super-resolution image blocks recorded in the super-resolution super-resolution list, that is, in this application In this method, the super-resolution model that satisfies the terminal’s optimal computing power is sent to the terminal device, and the screened super-resolution list is sent to the terminal, so that any terminal device can obtain a super-resolution model that meets its own optimal computing power, and reduce The calculation amount of the terminal device, so that the terminal device can provide users with high-definition quality video.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings on the premise of not paying creative work.

图1为本申请改善视频清晰度的方法第一实施例的流程示意图;FIG. 1 is a schematic flow chart of a first embodiment of a method for improving video clarity in the present application;

图2为本申请改善视频清晰度的系统框架示意图;Fig. 2 is a schematic diagram of a system framework for improving video clarity in the present application;

图3为本申请实施例方案涉及的硬件运行环境的设备机构示意图;FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;

图4为本申请改善视频清晰度的方法第二实施例的流程示意图。FIG. 4 is a schematic flowchart of a second embodiment of a method for improving video clarity in the present application.

本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

本申请实施例提供一种改善视频清晰度的方法,在本申请改善视频清晰度的方法的第一实施例中,参照图1,改善视频清晰度的方法包括:The embodiment of the present application provides a method for improving video clarity. In the first embodiment of the method for improving video clarity of the present application, referring to FIG. 1, the method for improving video clarity includes:

步骤S10,基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;Step S10, based on the video request sent by the terminal device, determine the optimal computing power and the required video of the terminal device, and send the super video of the required video determined based on the optimal computing power to the terminal device Sub-model and clarity level;

步骤S20,基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;Step S20, based on the target definition selected by the terminal device from the definition level, filter out a super-resolution list from the desired video, wherein the super-resolution list records the super-resolution list of the desired video that needs to be super-resolution sub-image blocks;

步骤S30,将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。Step S30, sending the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain the The HD video corresponding to the desired video.

本实施例旨在:使每个终端设备都能获得满足自身最优计算力的超分模型,以使每个终端设备都可以为用户提供高清质量的视频。The purpose of this embodiment is to enable each terminal device to obtain a super-resolution model that satisfies its own optimal computing power, so that each terminal device can provide users with high-definition quality video.

在本实施例中,需要说明的是,改善视频清晰度的方法可以应用于改善视频清晰度的装置,该改善视频清晰度的装置从属于改善视频清晰度的设备,该改善视频清晰度的设备属于改善视频清晰度的系统。In this embodiment, it should be noted that the method for improving video definition can be applied to a device for improving video definition, and the device for improving video definition is subordinate to the device for improving video definition, and the device for improving video definition It belongs to the system of improving video clarity.

在本实施例中,改善视频清晰度的系统包括服务器与终端设备,其中,终端设备用于向服务器发送用户所需视频的请求指令;还用于接收所述服务器发送的超分信息,并向所述服务器发送基于所述超分信息确定的质量请求,其中,所述超分信息中的超分模型是基于自身的最优计算力确定的;还用于接收所述服务器发送的视频块与超分清单,基于所述超分清单与预设的解码器,确定所述视频块中需要超分的待处理图像块,与不需要超分的原始视频块;还用于基于所述超分模型,对所述待处理图像块进行超分,得到超分图像块;还用于基于所述解码器与所述视频块内视频帧的顺序,解码所述超分图像块与所述原始视频块,得到所述所需视频对应的高清视频。In this embodiment, the system for improving video clarity includes a server and a terminal device, wherein the terminal device is used to send a request instruction for the video required by the user to the server; it is also used to receive the super-resolution information sent by the server, and send The server sends a quality request determined based on the super-resolution information, wherein the super-resolution model in the super-resolution information is determined based on its own optimal computing power; it is also used to receive the video block sent by the server and The super-resolution list, based on the super-resolution list and the preset decoder, determines the image blocks to be processed that need to be super-resolution in the video block, and the original video blocks that do not need to be super-resolution; A model that performs super-resolution on the image block to be processed to obtain a super-resolution image block; and is also used to decode the super-resolution image block and the original video based on the sequence of video frames in the decoder and the video block blocks to obtain the high-definition video corresponding to the desired video.

在本实施例中,在服务器中,每个视频都对应有一组超分模型组,且每组超分模型组中都有多个不同计算难度的超分模型组,再根据终端设备的最优计算力,从超分模型组中挑选出计算难度满足终端设备最优计算力的超分模型,以使每个终端设备都可以根据自身的计算能力获取所需视频的超分模型,也即,使每个终端设备都可以利用超分模型,将低清视频转化为高清视频,提高视频的清晰度。In this embodiment, in the server, each video corresponds to a group of super-resolution model groups, and each group of super-resolution model groups has a plurality of super-resolution model groups with different calculation difficulties, and then according to the optimal Computational power, select a super-resolution model whose computational difficulty meets the optimal computing power of the terminal device from the super-resolution model group, so that each terminal device can obtain the super-resolution model of the required video according to its own computing power, that is, Each terminal device can use the super-resolution model to convert low-definition video into high-definition video and improve the clarity of the video.

其中,目标清晰度可以是终端设备根据当前带宽确定的,以使终端设备可以播放在当前带宽下最高清晰度的视频,且稳定播放。The target resolution may be determined by the terminal device according to the current bandwidth, so that the terminal device can play the video with the highest resolution under the current bandwidth and play it stably.

在本实施例中,终端设备接收到超分模型,将超分模型与终端设备中的解码器紧耦合,并利用超分模型对超分清单中记载的超分图像块进行超分,再利用解码器对超分后得到的高清压缩视频进行解码,得到高清视频。也即,在本实施例中,通过超分清单减少终端设备需要超分的图像块,以减少终端设备的计算量。In this embodiment, the terminal device receives the super-resolution model, tightly couples the super-resolution model with the decoder in the terminal device, and uses the super-resolution model to perform super-resolution on the super-resolution image blocks recorded in the super-resolution list, and then uses The decoder decodes the high-definition compressed video obtained after super-resolution to obtain high-definition video. That is, in this embodiment, image blocks that need to be super-resolved by the terminal device are reduced through the super-resolution list, so as to reduce the calculation amount of the terminal device.

需要说明的是,视频可以划分为多个固定长度的视频块,也即,每个视频块都是有相同数量的视频帧组成的,视频是由多个视频块组成的,在获取目标清洗度后,将视频划分为视频块,通过对视频块中的图像块进行分析,确定需要超分的超分图像块,并将超分图像块对应在超分清单中标记出来,以供终端设备,根据超分清单中的标记,利用超分模型对对应的超分图像块进行超分。It should be noted that the video can be divided into multiple fixed-length video blocks, that is, each video block is composed of the same number of video frames, and the video is composed of multiple video blocks. Finally, the video is divided into video blocks, and by analyzing the image blocks in the video blocks, the super-resolution image blocks that need to be super-resolution are determined, and the corresponding super-resolution image blocks are marked in the super-resolution list for terminal equipment. According to the marks in the super-resolution list, use the super-resolution model to perform super-resolution on the corresponding super-resolution image block.

在本实施例中,终端设备在接收到超分清单与视频块后,先对超分清单进行解码,以便从超分清单中获取超分图像块的标记,再从视频块中找出对应的超分图像块,对超分图像块进行超分,并对其余不需要超分的图像块转化为高清压缩图像块,最后将高清压缩图像块与超分后图像块,按照所需视频的时序,对高清压缩图像块与超分后的图像块进行解码,得到与目标清晰度对应的高清视频。In this embodiment, after receiving the super-resolution list and video blocks, the terminal device first decodes the super-resolution list, so as to obtain the marks of the super-resolution image blocks from the super-resolution list, and then finds the corresponding Super-resolution image blocks, perform super-resolution on super-resolution image blocks, and convert the remaining image blocks that do not need super-resolution into high-definition compressed image blocks, and finally combine high-definition compressed image blocks and super-resolution image blocks according to the timing of the required video , decoding the high-definition compressed image block and the super-resolution image block to obtain a high-definition video corresponding to the target definition.

在本实施中,参考图2,图2为本申请改善视频清晰度的系统框架示意图。In this implementation, refer to FIG. 2 , which is a schematic diagram of a system framework for improving video definition in this application.

具体步骤如下:Specific steps are as follows:

步骤S10,基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;Step S10, based on the video request sent by the terminal device, determine the optimal computing power and the required video of the terminal device, and send the super video of the required video determined based on the optimal computing power to the terminal device Sub-model and clarity level;

其中,图2中的“SR Models with Different Complexities”为“难度等级不同的超分模型”,“Download pretrained SR models”为“下载超分模型”,“Video Chunks andPatch Lists”为“视频块和超分清单”,“Server Side”为“服务器端”,“Client Side”“移动端”也即,终端设备,“ABR Controller”为“自适应流传输算法”,“SR-Codec”为“超分解码器”也即,解码器,“Decode Lists”为“解码列表”。Among them, "SR Models with Different Complexities" in Figure 2 refers to "super-resolution models with different difficulty levels", "Download pretrained SR models" refers to "download super-resolution models", and "Video Chunks and Patch Lists" refers to "video chunks and super-resolution models". Sub-list", "Server Side" is "server side", "Client Side" is "mobile terminal", that is, terminal equipment, "ABR Controller" is "adaptive streaming algorithm", "SR-Codec" is "super resolution Decoder" that is, decoder, "Decode Lists" is "decoding list".

在本实施例中,在服务器向终端设备发送超分模型之前,先接收终端设备的视频请求,根据视频请求,确定终端设备的最优计算力,与终端设备请求的视频,也即所需视频。In this embodiment, before the server sends the super-resolution model to the terminal device, it first receives the video request of the terminal device, and determines the optimal computing power of the terminal device according to the video request, and the video requested by the terminal device, that is, the required video .

其中,所需视频可以是终端设备需要的视频名称,或视频代码等,具体不做限定。Wherein, the required video may be a video name or a video code required by the terminal device, which is not specifically limited.

在本实施例中,服务器在接收到视频请求后,服务器根据视频请求,获取终端设备的基本配置信息,并根据基本信息推断出终端设备的最优计算力,根据最优计算力,向终端设备发送所需视频的从超分模型与该所需视频的所有清晰度等级,以供终端设备可以根据自身的带宽环境,从清晰度等级中选择一个可以是所需视频正常播放,且清晰度高的目标清晰度。In this embodiment, after the server receives the video request, the server obtains the basic configuration information of the terminal device according to the video request, and infers the optimal computing power of the terminal device based on the basic information, and sends a request to the terminal device according to the optimal computing power. Send the super-resolution model of the required video and all the definition levels of the required video, so that the terminal device can choose one of the definition levels according to its own bandwidth environment, so that the desired video can be played normally, and the definition is high target clarity.

其中,清晰度等级可以是低清、高清、超清、或4k等清晰度等级,具体不做限定。Wherein, the definition level may be a definition level such as low-definition, high-definition, ultra-definition, or 4k, which is not specifically limited.

在本实施例中,终端设备内设置有解码器,在终端设备接收到超分模型后,将超分模型嵌入在解码器内部,以使解码器与超分模型紧耦合。In this embodiment, the terminal device is provided with a decoder, and after receiving the super-resolution model, the terminal device embeds the super-resolution model in the decoder, so that the decoder and the super-resolution model are tightly coupled.

需要说明的是,服务器预先为每一个视频训练出不同复杂程度的专有的超分模型,适应不同计算能力的终端设备,且超分模型的复杂程度各不相同。It should be noted that the server pre-trains proprietary super-resolution models of different complexity for each video, adapting to terminal devices with different computing capabilities, and the complexity of the super-resolution models varies.

步骤S20,基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块。Step S20, based on the target definition selected by the terminal device from the definition level, filter out a super-resolution list from the desired video, wherein the super-resolution list records the super-resolution list of the desired video that needs to be super-resolution Divide image blocks.

需要说明的是,终端设备内设置有自适应流传输算法,在终端设备接收到清晰度等级后,通过自适应流传输算法从清晰度等级中选择出是用于当前带宽环境的目标清晰度。It should be noted that an adaptive streaming algorithm is set in the terminal device, and after receiving the definition level, the terminal device selects the target definition used in the current bandwidth environment from the definition level through the adaptive streaming algorithm.

在本实施例中,终端设备确定好目标清晰度后,将带有目标清晰度的视频块请求信息发送至服务器,以供服务器向终端设备发送对应的视频块与超分清单,终端设备在接收到超分清单后,先对超分清单进行解码,根据超清单将视频块中需要超分的超分图像块化存在解码器中。In this embodiment, after the terminal device determines the target resolution, it sends the video block request information with the target resolution to the server, so that the server can send the corresponding video block and super-resolution list to the terminal device, and the terminal device receives After arriving at the super-resolution list, first decode the super-resolution list, and block the super-resolution images in the video block that need to be super-resolution according to the super-resolution list and store them in the decoder.

在本实施例中,服务器根据目标清晰度,将清晰度对应的视频内容划分为视频块,从视频块中选择出需要超分的超分图像块,并将超分图像块对应的编码记载到超分清单中,以减少终端设备超分图像块的数量,降低终端设备的计算量,进而节省终端设备的计算力。In this embodiment, the server divides the video content corresponding to the definition into video blocks according to the target definition, selects the super-resolution image block that needs super-resolution from the video blocks, and records the encoding corresponding to the super-resolution image block in In the super-resolution list, the number of super-resolution image blocks of the terminal device is reduced, the calculation amount of the terminal device is reduced, and the computing power of the terminal device is saved.

具体地,所述基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单的步骤,包括:Specifically, the step of screening out the super-resolution list from the desired video based on the target definition selected by the terminal device from the definition level includes:

步骤S21,获取所述所需视频清晰度为所述目标清晰度的视频块;Step S21, acquiring video blocks whose required video resolution is the target resolution;

步骤S22,将所述视频块进行低清帧率解码,获取每个所述视频块的宏块解码信息;Step S22, performing low-definition frame rate decoding on the video block, and obtaining macroblock decoding information of each video block;

步骤S23,基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重与所述帧内图像块的帧内超分权重;Step S23, based on the decoding information of the macroblock, divide the image block in the video block into an inter image block and an intra image block, and determine the inter frame over-resolution weight of the inter image block and the frame The intra-frame super-resolution weight of the inner image block;

步骤S24,基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单。Step S24: Determine the super-resolution list of the desired video based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm.

其中,宏块解码信息包括运动矢量、量化参数与残差。Wherein, the macroblock decoding information includes motion vectors, quantization parameters and residuals.

其中,运动矢量可以描述图像块或宏块间的参考次序和频率。残差和量化参数可以描述误差扩散和依赖程度。Among them, the motion vector can describe the reference order and frequency between image blocks or macroblocks. Residuals and quantization parameters can describe the error spread and degree of dependence.

其中,依赖程度可以是当图像块或宏块被选中超分时,对于后续视频的质量提升程度。而误差扩散指的是从上一个选中超分的图像块或宏块出发,传播到当前图像块或宏块过程中产生的超分质量损失。Wherein, the degree of dependence may be the degree of quality improvement for subsequent videos when an image block or macroblock is selected for super-resolution. The error diffusion refers to the super-resolution quality loss generated in the process of propagating from the last selected super-resolution image block or macroblock to the current image block or macroblock.

在本实施例中,服务器可以通过解码器的开源代码,利用解码器在服务中对低清压缩视频进行解码,得到宏块解码信息,也即,服务器从解码器中逐帧获取大小不一的宏块解码信息。In this embodiment, the server can use the open source code of the decoder to decode the low-definition compressed video in the service to obtain the macroblock decoding information. Macroblock decoding information.

在本实施例中,利用宏块解码信息,将视频块中的图像块划分为帧间图像块与帧内图像块,其中,宏块解码信息中含有帧间宏块与帧内宏块,若图像块中含有帧内宏块,则该图像块为帧内图像块,若图像块中含有帧间宏块,则该图像块为帧内红块。In this embodiment, the image blocks in the video block are divided into inter-frame image blocks and intra-frame image blocks by using the macroblock decoding information, wherein the macroblock decoding information includes inter-frame macroblocks and intra-frame macroblocks, if If the image block contains an intra-frame macroblock, the image block is an intra-frame image block, and if the image block contains an inter-frame macroblock, then the image block is an intra-frame red block.

在本实施例中,根据宏块解码信息估算出每个帧内图像块的依赖估值,根据依赖估值对帧内图像块排序,以确定帧内图像块的帧内超分权重,并计算出每个着帧间宏块的依赖程度与误差扩散值,利用依赖程度与误差扩散值,计算帧间图像块的帧间超分权重。In this embodiment, the dependent estimation of each intra-frame image block is estimated according to the macroblock decoding information, and the intra-frame image blocks are sorted according to the dependent estimation to determine the intra-frame super-resolution weight of the intra-frame image block, and calculate The dependence degree and error diffusion value of each inter-frame macroblock are obtained, and the inter-frame super-resolution weight of the inter-frame image block is calculated by using the dependence degree and error diffusion value.

在本实施例中,由于视频块的目标清晰度不同,最终选择的超分图像块数量也不同,根据帧间超分权重、帧内超分权重与预设的搜索算法,视频块的图像快中,筛选出满足目标清晰度,需要超分的图像快,以使终端设备可以减少计算量,并使终端设备播放目标清晰度的视频。In this embodiment, due to the different target resolutions of the video blocks, the number of super-resolution image blocks finally selected is also different. In the process, the images that meet the target definition and need to be super-resolution are screened out quickly, so that the terminal device can reduce the amount of calculation, and enable the terminal device to play the video of the target definition.

具体地,所述基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重的步骤,包括:Specifically, the step of dividing the image block in the video block into an inter image block and an intra image block based on the macroblock decoding information, and determining the inter frame super-resolution weight of the inter image block ,include:

步骤A10,基于所述宏块解码信息,确定每个所述视频块内的帧间宏块;Step A10, based on the macroblock decoding information, determine an inter-frame macroblock in each of the video blocks;

步骤A20,将含有所述帧间宏块的图像块定义为帧间图像块;Step A20, defining the image block containing the inter macroblock as an inter image block;

步骤A30,计算所述帧间图像块之间的依赖程度与误差扩散度;Step A30, calculating the degree of dependence and the degree of error diffusion between the inter-frame image blocks;

步骤A40,基于所述依赖程度与所述误差扩散度的乘积,将所述帧间图像块划分为多个帧间清单,其中,每划分一个所述帧间清单需要重新计算剩余所述帧间图像块之间的依赖程度与误差扩散度;Step A40: Divide the inter-frame image block into multiple inter-frame lists based on the product of the degree of dependence and the degree of error diffusion, wherein each division of one of the inter-frame lists requires recalculation of the remaining inter-frame Dependency and error diffusion between image blocks;

步骤A50,基于所述依赖程度的高低,确定每个所述帧间清单内帧间图像块的帧间超分权重。Step A50, based on the degree of dependence, determine the inter-frame super-resolution weights of the inter-frame image blocks in each of the inter-frame lists.

在本实施例中,每个宏块根据面积的大小进行依赖程度的初始化并通过解码的参考关系进行后向传播,最终得到每个宏块的依赖程度。In this embodiment, the degree of dependence of each macroblock is initialized according to the size of the area, and the backward propagation is performed through the decoded reference relationship, and finally the degree of dependence of each macroblock is obtained.

在本实施例中,由于依赖程度的定义是超分一个图像块或宏块对后续视频帧的质量改善估计,然而由于帧间宏块需要参考其它帧间宏块进行解码,会出现对某一个帧间宏块解码后清晰度下降到预设的最低清晰度,此时,再继续参考该帧间宏块对下一个帧间宏块进行解码,是在浪费计算力,所以利用误差扩散在清晰度损失值到达一定程度后,也即解码后的清晰度到达最低清洗度时,再重新对剩余的帧间图像块进行依赖程度与误差扩散度的计算,并在新的帧间清单中,确定帧间超分权重。在本实施例中,通过更换帧间超分清单,可以减少超分后视频质量的损失。In this embodiment, since the definition of the degree of dependence is to estimate the quality improvement of subsequent video frames by super-dividing an image block or macroblock, however, since inter-frame macroblocks need to be decoded with reference to other inter-frame macroblocks, there will be some After the inter-frame macroblock is decoded, the definition drops to the preset minimum resolution. At this time, it is a waste of computing power to continue to refer to the inter-frame macroblock to decode the next inter-frame macroblock. After the degree of loss reaches a certain level, that is, when the decoded resolution reaches the minimum degree of cleanliness, recalculate the dependence degree and error diffusion degree of the remaining inter-frame image blocks, and determine in the new inter-frame list Inter-frame super-resolution weights. In this embodiment, by replacing the inter-frame super-resolution list, the loss of video quality after super-resolution can be reduced.

在本实施例中,当帧间图像块误差扩散值与依赖程度的乘积超过设置的阈值时,超分的图像块会被选中加入到新的帧间清单中并将误差扩散值设置为0。并设置不同的阈值获得不同的帧间清单。In this embodiment, when the product of the error diffusion value and the dependence degree of an inter-frame image block exceeds a set threshold, the over-resolved image block will be selected and added to a new inter-frame list and the error diffusion value will be set to 0. And set different thresholds to obtain different inter-frame lists.

其中,不同的阈值对应不同的帧间清单和不同数目的帧间图像块。Wherein, different thresholds correspond to different inter-frame lists and different numbers of inter-frame image blocks.

在本市实施中,由于宏块的依赖程度可以利用宏块间的参考关系以及解码信息建模进行计算。由于宏块的帧内和帧间编码,不同的宏块之间存在参考关系。由于帧间宏块只能参考已经重建的宏块进行解码,帧间宏块的依赖程度可以后向传播到那些被参考的宏块,并累加这些宏块的依赖程度。In this city's implementation, since the degree of dependence of macroblocks can be calculated using the reference relationship between macroblocks and decoding information modeling. Due to the intra-frame and inter-frame coding of macroblocks, there are reference relationships between different macroblocks. Since inter macroblocks can only be decoded with reference to already reconstructed macroblocks, the dependencies of inter macroblocks can be propagated backwards to those referenced macroblocks, and the dependencies of these macroblocks can be accumulated.

具体地,所述基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧内图像块的帧内超分权重的步骤,包括:Specifically, the step of dividing the image block in the video block into an inter image block and an intra image block based on the macroblock decoding information, and determining the intra frame super-resolution weight of the intra frame image block ,include:

步骤B10,基于所述宏块解码信息,确定每个所述视频块内的帧内宏块;Step B10, based on the macroblock decoding information, determine intra-frame macroblocks in each of the video blocks;

步骤B20,将含有所述帧内宏块的图像块定义为帧内图像块;Step B20, defining the image block containing the intra-frame macroblock as an intra-frame image block;

步骤B30,计算所述帧内图像块的依赖估值,并基于预设的所述帧内图像块的纹理复杂度,修正所述依赖估值,得到修正依赖度;Step B30, calculating the dependency estimation of the image block in the frame, and correcting the dependency estimation based on the preset texture complexity of the image block in the frame to obtain the modified dependency;

步骤B40,基于所述修正依赖度的排序,将所述帧内图像块等比例划分为多个帧内清单,并确定每个所述帧内清单的帧内超分权重。Step B40, based on the ranking of the corrected dependencies, divide the intra-frame image blocks into multiple intra-frame lists in equal proportions, and determine the intra-frame super-resolution weight of each of the intra-frame lists.

在本实施例中,将帧内图像块的依赖估值加入图像纹理复杂度进行修正,得到修正依赖度。由于对于纹理复杂的图像块往往超分得到高频信息更多,而对于纹理简单的图像块往往超分后得到的高频信息更少,所以利用纹理复杂度修正将依赖估值,可以提高帧内超分权重的准确率。In this embodiment, the dependency estimate of the image block in the frame is added to the image texture complexity for correction to obtain the correction dependency. Since image blocks with complex textures tend to get more high-frequency information after super-resolution, and image blocks with simple textures tend to get less high-frequency information after super-resolution, so the use of texture complexity correction will rely on estimation, which can improve the frame rate. The accuracy rate of the inner overweight weight.

在本实施例中,将低清图像块经过双线性内插放大和超分放大后的均方误差,并用整张图片的均方误差归一化,作为依赖程度的系数进行修正,可以保证当超分产生的有用信息更多时,系数会更大,超分优先级会得到提高。In this embodiment, the mean square error of the low-resolution image block after bilinear interpolation amplification and super-resolution amplification is normalized with the mean square error of the entire picture, and corrected as a coefficient of dependence degree, which can ensure When more useful information is generated by super-resolution, the coefficient will be larger, and the priority of super-resolution will be increased.

在本实施例中,根据修正依赖度得到帧内图像块排序,再将帧内图像块等比例划分为多个帧内清单,根据每个帧内清单中帧内图像块的排序,确定每个帧内超分权重。In this embodiment, the intra-frame image block sorting is obtained according to the correction dependency, and then the intra-frame image blocks are divided into multiple intra-frame lists in equal proportions. According to the sorting of intra-frame image blocks in each intra-frame list, each Intra-frame super-resolution weights.

步骤S30,将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。Step S30, sending the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain the The HD video corresponding to the desired video.

在本实施例中,将超分清单与视频块发送至终端设备后,终端设备根据超分清单与解码器,确定视频块中需要超分的待处理图像块,与不需要超分的原始视频块,再根据超分模型,对待处理图像块进行超分,得到超分图像块,根据解码器与视频块内视频帧的顺序,解码超分图像块与原始视频块,得到所需视频对应的高清视频。In this embodiment, after sending the super-resolution list and video blocks to the terminal device, the terminal device determines the image blocks to be processed in the video blocks that need super-resolution and the original video blocks that do not need super-resolution according to the super-resolution list and the decoder. block, and then according to the super-resolution model, perform super-resolution on the image block to be processed to obtain the super-resolution image block, and decode the super-resolution image block and the original video block according to the order of the decoder and the video frame in the video block, and obtain the required video corresponding HD video.

在本实施例中,利用解码器解码超分图像块与原始视频块,得到所需视频对应的高清视频的步骤,可以是利用解码器与视频帧的帧顺序,获取视频块当前视频帧的运算解码信息,与最近解码视频帧的参考解码信息,根据运算解码信息与参考解码信息,解码原始视频块对应的原始视频帧,或超分图像块对应的超分视频帧,得到高清视频帧,再根据帧顺序,将高清视频帧整合,得到所需视频对应的高清视频。In this embodiment, the step of using the decoder to decode the super-resolution image block and the original video block to obtain the high-definition video corresponding to the desired video may be the operation of obtaining the current video frame of the video block by using the frame sequence of the decoder and the video frame The decoding information, and the reference decoding information of the latest decoded video frame, according to the operation decoding information and the reference decoding information, decode the original video frame corresponding to the original video block, or the super-resolution video frame corresponding to the super-resolution image block, to obtain the high-definition video frame, and then According to the frame sequence, the high-definition video frames are integrated to obtain the high-definition video corresponding to the desired video.

在本实施例中,根据超分清单与预设的解码器,确定视频块中需要超分的待处理图像块,与不需要超分的原始视频块的步骤,可以是根据预设的解码器解码超分清单,并从超分清单中,确定视频块中需要超分的图像块的超分位置信息,根据解码器解码视频块,得到视频块的低清视频帧,根据超分位置信息,从低清视频帧中筛选出需要超分的待处理图像块,将不存在待处理图像块的低清视频帧的视频块定义为原始视频块。In this embodiment, according to the super-resolution list and the preset decoder, the step of determining the image blocks to be processed that require super-resolution and the original video blocks that do not need super-resolution in the video block may be based on the preset decoder Decode the super-resolution list, and determine the super-resolution position information of the image block that needs to be super-resolution in the video block from the super-resolution list, decode the video block according to the decoder, and obtain the low-definition video frame of the video block, according to the super-resolution position information, The image blocks to be processed that require super-resolution are screened out from the low-definition video frames, and the video blocks of the low-definition video frames that do not have image blocks to be processed are defined as original video blocks.

在本实施例中,在终端设备解码的过程中,利用解码信息对帧内图像块和残差信息进行双线性内插放大,并按放大比例放大运动矢量,以此构建高清的参考帧队列。解码器根据从服务器中接收到的超分清单,选择超分低清参考帧队列中的图像块并在高清参考帧队列的相应位置刷新。解码器可以根据高清参考帧队列重建出高分辨的图像。解码和超分的紧耦合在解码方式上降低了计算要求。In this embodiment, during the decoding process of the terminal device, the decoding information is used to perform bilinear interpolation and amplification on the intra-frame image blocks and residual information, and the motion vector is enlarged according to the amplification ratio, so as to construct a high-definition reference frame queue . According to the super-resolution list received from the server, the decoder selects image blocks in the super-resolution low-definition reference frame queue and refreshes them at corresponding positions in the high-definition reference frame queue. The decoder can reconstruct high-resolution images according to the high-definition reference frame queue. The tight coupling of decoding and super-resolution reduces computational requirements in the way of decoding.

本申请提供一种改善视频清晰度的方法、装置、设备及存储介质,与现有技术中计算能力不满足超分模型的终端设备,无法为用户提供高清质量视频相比,在本申请中,基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。在本申请中,根据终端设备的最优计算力,向该终端设备发送与所需视频对应的超分模型,再根据终端设备从所需视频的清晰度等级中选择的目标清晰度,向终端设备发送超分后可以达到目标清晰度的视频块与超分清单,以供终端设备超分超分清单中记载的超分图像块,得到所述所需视频对应的高清视频,即在本申请中,向终端设备发送满足终端最优计算力的超分模型,并向终端发送筛选好的超分清单,以供任意一个终端设备都可以获得满足自身最优计算力的超分模型,并减少终端设备的计算量,以使终端设备可以为用户提供高清质量的视频。This application provides a method, device, device, and storage medium for improving video clarity. Compared with terminal equipment in the prior art whose computing power does not meet the super-resolution model and cannot provide users with high-definition quality video, in this application, Based on the video request sent by the terminal device, determine the optimal computing power of the terminal device and the required video, and send the super-resolution model and the determined video of the required video based on the optimal computing power to the terminal device Clarity level; based on the target definition selected by the terminal device from the clarity level, a super-resolution list is screened from the required video, wherein the super-resolution list records the required video. Super-resolution image blocks; sending the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, to obtain The high-definition video corresponding to the desired video. In this application, according to the optimal computing power of the terminal device, the super-resolution model corresponding to the required video is sent to the terminal device, and then according to the target definition selected by the terminal device from the definition level of the required video, the terminal The device sends the video blocks and the super-resolution list that can reach the target resolution after super-resolution, so that the terminal device can obtain the high-definition video corresponding to the desired video by using the super-resolution image blocks recorded in the super-resolution super-resolution list, that is, in this application Among them, the super-resolution model that satisfies the terminal’s optimal computing power is sent to the terminal device, and the screened super-resolution list is sent to the terminal, so that any terminal device can obtain a super-resolution model that meets its own optimal computing power, and reduce The calculation amount of the terminal device, so that the terminal device can provide users with high-definition quality video.

进一步地,基于本申请中上述实施例,提供本申请的另一实施例,在该实施例中,参考图4,所述基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单的步骤,包括:Further, based on the above-mentioned embodiments in this application, another embodiment of this application is provided. In this embodiment, referring to FIG. 4 , the inter-frame over-resolution weight, the intra-frame over-resolution weight and the The established search algorithm determines the steps of the super-resolution list of the desired video, including:

步骤S01,基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,计算在所述视频块内每个图像块的清晰度达到目标清晰度时,需要超分面积最小的图像块组合;Step S01, based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and the preset search algorithm, calculate the required super-resolution area when the resolution of each image block in the video block reaches the target resolution The smallest combination of image blocks;

步骤S02,将所述图像块组合内的图像块定义为超分图像块,并基于所述超分图像块确定超分清单。Step S02, defining the image blocks in the combination of image blocks as super-resolution image blocks, and determining a super-resolution list based on the super-resolution image blocks.

在本实施例中,在获得帧内和帧间清单后,寻找合适的帧内-帧间图像块组合并对图像块序号进行压缩,最终输出超分清单,以利用超分清单保证在达到将低清图像块超分为相同清晰度要求的情况下,终端设备有较低的计算负担,同时占用较低的带宽。In this embodiment, after obtaining the intra-frame and inter-frame lists, find a suitable combination of intra-frame and inter-frame image blocks and compress the sequence numbers of the image blocks, and finally output the super-resolution list, so as to use the super-resolution list to ensure that the When the low-definition image blocks are super-divided into the same definition requirements, the terminal device has a lower calculation burden and occupies a lower bandwidth at the same time.

例如,有M个帧间清单,N个帧内清单。因为测量视频质量需要完整解码整个视频块的视频,这将带来一定的时延。如果穷尽搜索,引入的时间复杂度为“M*N”,但是算法将其时间复杂度降低为O(M+N)。因为在图像块构成的二维空间中,当帧间图像块或者帧内图像块的面积增加时,测得的视频质量会增加。利用这一特点,测量当前图像块组合的视频质量。在当前视频质量小于质量要求时,增加帧内图像块面积。在当前视频质量大于质量要求时,减少帧间图像块面积。通过这种搜索方式可以找到M*N个离散点中面积最小的图像块组合,并减少测量视频质量需要的时间。For example, there are M inter lists and N intra lists. Because measuring video quality requires full decoding of the video for the entire video block, this will introduce a certain delay. If the search is exhaustive, the time complexity introduced is "M*N", but the algorithm reduces its time complexity to O(M+N). Because in the two-dimensional space composed of image blocks, when the area of the inter-frame image block or the intra-frame image block increases, the measured video quality will increase. Using this feature, measure the video quality of the current tile combination. When the current video quality is lower than the quality requirement, increase the image block area in the frame. When the current video quality is greater than the quality requirement, reduce the image block area between frames. Through this search method, the image block combination with the smallest area among the M*N discrete points can be found, and the time required for measuring the video quality can be reduced.

在本实施例中,由于在视频块内每个图像块的清晰度达到目标清晰度时,需要超分的图像块的组合面积最小,且此时的帧内图像块与帧间图像块的比例能够提高计算效率,所以根据帧间超分权重、帧内超分权重与预设的搜索算法,计算视频块内每个图像块的清晰度达到目标清晰度时,需要超分面积最小的图像块组合,以提高终端设备的计算效率,减少计算量,进而降低超分时对终端设备计算力的要求,进而使终端设备可以在当前带宽换将下稳定播放最高清晰度的视频。In this embodiment, when the resolution of each image block in the video block reaches the target resolution, the combined area of the image blocks that need to be over-resolved is the smallest, and the ratio of the intra-frame image block to the inter-frame image block at this time is It can improve the calculation efficiency, so according to the inter-frame super-resolution weight, intra-frame super-resolution weight and preset search algorithm, when calculating the definition of each image block in the video block to reach the target definition, the image block with the smallest super-resolution area is required Combined to improve the computing efficiency of the terminal equipment, reduce the amount of calculation, and then reduce the computing power requirements of the terminal equipment for super time-sharing, so that the terminal equipment can stably play the highest-definition video under the current bandwidth exchange.

进一步地,基于本申请中上述实施例,提供本申请的另一实施例,在该实施例中,所述将所述超分清单与所述视频块发送至所述终端设备的步骤,包括:Further, based on the above-mentioned embodiments of the present application, another embodiment of the present application is provided. In this embodiment, the step of sending the super-resolution list and the video blocks to the terminal device includes:

步骤C10,基于预设的游程编码,将所述超分清单与所述视频块打包为游程数据包;Step C10, based on the preset run-length encoding, pack the super-resolution list and the video blocks into a run-length data packet;

步骤C20,对所述游程数据包与未使用游程编码打包的普通数据包进行数据量对比;Step C20, comparing the amount of data between the run-length data packet and the normal data packet packed without run-length encoding;

步骤C30,从所述游程数据包与所述普通数据包中选择数据量少的发送数据包,基于所述发送数据包将所述超分清单与所述视频块发送至所述终端设备。Step C30, selecting a sending data packet with a small amount of data from the run-length data packet and the normal data packet, and sending the super-resolution list and the video block to the terminal device based on the sending data packet.

在本实施例中,再利用超分清单记录需要超分超分图像块时,可以超分清单中,将超分图像块的编码标记,或将超分图像块的比特位设置为1,将不标记不需要超分的图像块的编码,或将不需要超分的图像块的比特位设置为0,以便终端设备可以从超分清单中识别超分图像块。In this embodiment, when the super-resolution image block needs to be recorded by using the super-resolution list, the encoding mark of the super-resolution image block can be set in the super-resolution list, or the bit of the super-resolution image block can be set to 1, and the Do not mark the encoding of the image blocks that do not require super-resolution, or set the bits of the image blocks that do not require super-resolution to 0, so that the terminal device can identify the super-resolution image blocks from the super-resolution list.

在本实施例中,由于使用游程编码打包的数据包数据大小较小,所以,利用游程编码对超分图像块与视频块进行打包,得到游程数据包,并使用出游程编码之外的打包方式对超分图像块与视频块进行打包,得到普通数据包,再比较游程数据包与普通数据包的数据大小,从游程数据包与普通数据包中筛选出数据小的数据包作为发送数据包,也即,从游程数据包与普通数据包中筛选出数据量少的数据包,并将该使用该数据包将超分清单与视频块发送至所述终端设备,以减少传输超分清单与视频块时消耗的带宽,为视频终端提供更好带宽环境。In this embodiment, since the size of the packet data packaged using run-length encoding is relatively small, run-length encoding is used to package the super-resolution image block and video block to obtain a run-length data packet, and a packing method other than run-length encoding is used Pack the super-resolution image blocks and video blocks to obtain ordinary data packets, then compare the data size of the run-length data packets and ordinary data packets, and select the data packets with small data from the run-length data packets and ordinary data packets as sending data packets, That is, from the run-length data packets and ordinary data packets, the data packets with a small amount of data are screened out, and the super-resolution list and video blocks are sent to the terminal device using the data packets, so as to reduce the transmission of the super-resolution list and video blocks. The bandwidth consumed by blocks provides a better bandwidth environment for video terminals.

参照图3,图3是本申请实施例方案涉及的硬件运行环境的设备机构示意图。Referring to FIG. 3 , FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.

如图3所示,该改善视频清晰度的设备可以包括:处理器1001,例如CPU,存储器1005,通信总线1002。其中,通信总线1002用于实现处理器1001和存储器1005之间的连接通信。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储设备。As shown in FIG. 3 , the device for improving video definition may include: a processor 1001 , such as a CPU, a memory 1005 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and communication between the processor 1001 and the memory 1005 . The memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

可选地,该改善视频清晰度的设备还可以包括矩形用户接口、网络接口、摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。矩形用户接口可以包括显示屏(Display)、输入子模块比如键盘(Keyboard),可选矩形用户接口还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Optionally, the device for improving video clarity may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. The rectangular user interface may include a display screen (Display), an input sub-module such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. Optionally, the network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface).

本领域技术人员可以理解,图3中示出的改善视频清晰度的设备机构并不构成对改善视频清晰度的设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the device mechanism for improving video clarity shown in FIG. components, or different component arrangements.

如图3所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块以及改善视频清晰度的程序。操作系统是管理和控制改善视频清晰度的设备硬件和软件资源的程序,支持改善视频清晰度的程序以及其它软件和程序的运行。网络通信模块用于实现存储器1005内部各组件之间的通信,以及与改善视频清晰度的系统中其它硬件和软件之间通信。As shown in FIG. 3 , the memory 1005 as a storage medium may include an operating system, a network communication module, and a program for improving video definition. An operating system is a program that manages and controls device hardware and software resources that improve video clarity, supports programs that improve video clarity, and runs other software and programs. The network communication module is used to realize the communication among various components inside the memory 1005, and communicate with other hardware and software in the system for improving video definition.

在图3所示的改善视频清晰度的设备中,处理器1001用于执行存储器1005中存储的改善视频清晰度的程序,实现上述任一项的改善视频清晰度的方法的步骤。In the device for improving video definition shown in FIG. 3 , the processor 1001 is configured to execute the program for improving video definition stored in memory 1005 to implement the steps of any one of the methods for improving video definition above.

本申请改善视频清晰度的设备具体实施方式与上述改善视频清晰度的方法各实施例基本相同,在此不再赘述。The specific implementation manners of the device for improving video clarity in the present application are basically the same as the above-mentioned embodiments of the method for improving video clarity, and will not be repeated here.

本申请还提供一种改善视频清晰度的装置,改善视频清晰度的装置包括:The present application also provides a device for improving video clarity, and the device for improving video clarity includes:

确定模块,用于基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;A determining module, configured to determine the optimal computing power and required video of the terminal device based on the video request sent by the terminal device, and send the required video determined based on the optimal computing power to the terminal device The super-resolution model and definition level;

选择模块,用于基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;A selection module, configured to filter out a super-resolution list from the required video based on the target definition selected by the terminal device from the definition level, wherein the super-resolution list records that the required video requires super-resolution The super-resolution image block of ;

发送模块,用于将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。A sending module, configured to send the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain The high-definition video corresponding to the desired video.

可选地,所述选择模块包括:Optionally, the selection module includes:

获取模块,用于获取所述所需视频清晰度为所述目标清晰度的视频块;An acquisition module, configured to acquire video blocks whose required video definition is the target definition;

解码模块,用于将所述视频块进行低清帧率解码,获取每个所述视频块的宏块解码信息;A decoding module, configured to decode the video blocks at a low-definition frame rate, and obtain macroblock decoding information of each of the video blocks;

划分模块,用于基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重与所述帧内图像块的帧内超分权重;A division module, configured to divide the image block in the video block into an inter image block and an intra image block based on the macroblock decoding information, and determine the inter-frame super-resolution weight and the inter-frame image block of the inter-frame image block. Intra-frame super-resolution weight of the image block in the above-mentioned frame;

第一确定子模块,用于基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单。The first determining submodule is configured to determine the super-resolution list of the desired video based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm.

可选地,所述划分模块包括:Optionally, the division module includes:

第二确定子模块,用于基于所述宏块解码信息,确定每个所述视频块内的帧间宏块;The second determining submodule is configured to determine an inter-frame macroblock in each of the video blocks based on the macroblock decoding information;

第一定义模块,用于将含有所述帧间宏块的图像块定义为帧间图像块;A first definition module, configured to define an image block containing the inter macroblock as an inter image block;

第一计算模块,用于计算所述帧间图像块之间的依赖程度与误差扩散度;The first calculation module is used to calculate the degree of dependence and the degree of error diffusion between the image blocks between the frames;

第一划分子模块,用于基于所述依赖程度与所述误差扩散度的乘积,将所述帧间图像块划分为多个帧间清单,其中,每划分一个所述帧间清单需要重新计算剩余所述帧间图像块之间的依赖程度与误差扩散度;The first division sub-module is used to divide the inter-frame image block into multiple inter-frame lists based on the product of the dependence degree and the error diffusion degree, wherein each division of the inter-frame list needs to be recalculated The dependence degree and error diffusion degree between the remaining inter-frame image blocks;

第三确定模块,用于基于所述依赖程度的高低,确定每个所述帧间清单内帧间图像块的帧间超分权重。The third determining module is configured to determine the inter-frame super-resolution weight of the inter-frame image blocks in each of the inter-frame lists based on the degree of dependence.

可选地,所述划分模块还包括:Optionally, the division module also includes:

第四确定模块,用于基于所述宏块解码信息,确定每个所述视频块内的帧内宏块;A fourth determining module, configured to determine an intra macroblock in each video block based on the macroblock decoding information;

第二定义模块,用于将含有所述帧内宏块的图像块定义为帧内图像块;A second definition module, configured to define the image block containing the intra macroblock as an intra image block;

第二计算模块,用于计算所述帧内图像块的依赖估值,并基于预设的所述帧内图像块的纹理复杂度,修正所述依赖估值,得到修正依赖度;The second calculation module is used to calculate the dependent estimate of the intra-frame image block, and modify the dependent estimate based on the preset texture complexity of the intra-frame image block to obtain the corrected dependency;

第二划分子模块,用于基于所述修正依赖度的排序,将所述帧内图像块等比例划分为多个帧内清单,并确定每个所述帧内清单的帧内超分权重。The second division sub-module is configured to divide the intra-frame image blocks into multiple intra-frame lists in equal proportions based on the sorting of the modified dependencies, and determine the intra-frame super-resolution weight of each of the intra-frame lists.

可选地,所述第一确定子模块包括:Optionally, the first determining submodule includes:

计算子模块,用于基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,计算在所述视频块内每个图像块的清晰度达到目标清晰度时,需要超分面积最小的图像块组合;The calculation sub-module is used to calculate when the definition of each image block in the video block reaches the target definition based on the inter-frame over-resolution weight, the intra-frame over-resolution weight and the preset search algorithm, it needs The combination of image blocks with the smallest super-resolution area;

确定单元,用于将所述图像块组合内的图像块定义为超分图像块,并基于所述超分图像块确定超分清单。A determining unit, configured to define the image blocks in the combination of image blocks as super-resolution image blocks, and determine a super-resolution list based on the super-resolution image blocks.

可选地,所述发送模块包括:Optionally, the sending module includes:

打包模块,用于基于预设的游程编码,将所述超分清单与所述视频块打包为游程数据包;A packing module, configured to pack the super-resolution list and the video block into a run-length data packet based on preset run-length encoding;

对比模块,用于对所述游程数据包与未使用游程编码打包的普通数据包进行数据量对比;A comparison module, configured to compare the amount of data between the run-length data packet and an ordinary data packet packed without run-length encoding;

发送子模块,用于从所述游程数据包与所述普通数据包中选择数据量少的发送数据包,基于所述发送数据包将所述超分清单与所述视频块发送至所述终端设备。A sending submodule, configured to select a sending data packet with a small amount of data from the run length data packet and the normal data packet, and send the super-resolution list and the video block to the terminal based on the sending data packet equipment.

可选地,所述确定模块包括:Optionally, the determination module includes:

选择单元,用于从所述所需视频对应的超分模型组中选择出计算力小于或等于所述最优计算力的超分模型;A selection unit, configured to select a super-resolution model whose computing power is less than or equal to the optimal computing power from the super-resolution model group corresponding to the desired video;

其中,每个所述所需视频都对应多个不同计算难度的超分模型。Wherein, each of the required videos corresponds to a plurality of super-resolution models with different calculation difficulties.

本申请改善视频清晰度的装置的具体实施方式与上述改善视频清晰度的方法各实施例基本相同,在此不再赘述。The specific implementation manners of the device for improving video clarity in the present application are basically the same as the embodiments of the above-mentioned method for improving video clarity, and will not be repeated here.

本申请实施例提供了一种存储介质,且存储介质存储有一个或者一个以上程序,一个或者一个以上程序还可被一个或者一个以上的处理器执行以用于实现上述任一项的改善视频清晰度的方法的步骤。An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and one or more programs can also be executed by one or more processors to achieve any of the above-mentioned improved video clarity The steps of the degree method.

本申请存储介质具体实施方式与上述改善视频清晰度的方法各实施例基本相同,在此不再赘述。The specific implementation manners of the storage medium in the present application are basically the same as the above-mentioned embodiments of the method for improving video clarity, and will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个等”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements that are not expressly listed, or that are inherent to the process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising an etc." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk, etc.) ) includes several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method of each embodiment of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效机构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent mechanism or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种改善视频清晰度的方法,其特征在于,所述改善视频清晰度的方法,包括:1. A method for improving video clarity, characterized in that, the method for improving video clarity includes: 基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;Based on the video request sent by the terminal device, determine the optimal computing power of the terminal device and the required video, and send the super-resolution model and the determined video of the required video based on the optimal computing power to the terminal device clarity level; 基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;Based on the target definition selected by the terminal device from the definition level, a super-resolution list is selected from the required video, wherein the super-resolution list records the super-resolution image blocks in the required video that need to be super-resolution ; 将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。Sending the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain the desired video Corresponding high-definition video. 2.如权利要求1所述的改善视频清晰度的方法,其特征在于,所述基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单的步骤,包括:2. The method for improving video definition according to claim 1, characterized in that, based on the target definition selected by the terminal device from the definition level, filter out super Checklist steps include: 获取所述所需视频清晰度为所述目标清晰度的视频块;Acquiring the video blocks whose required video resolution is the target resolution; 将所述视频块进行低清帧率解码,获取每个所述视频块的宏块解码信息;Decoding the video blocks at a low-definition frame rate to obtain macroblock decoding information for each of the video blocks; 基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重与所述帧内图像块的帧内超分权重;Based on the decoding information of the macroblock, divide the image block in the video block into an inter image block and an intra image block, and determine the inter frame super-resolution weight of the inter frame image block and the intra frame image block. The intra-frame super-resolution weight; 基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单。Based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm, determine the super-resolution list of the desired video. 3.如权利要求2所述的改善视频清晰度的方法,其特征在于,所述基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧间图像块的帧间超分权重的步骤,包括:3. The method for improving video clarity according to claim 2, wherein, based on the macroblock decoding information, the image blocks in the video block are divided into inter-frame image blocks and intra-frame image blocks , and the step of determining the inter-frame super-resolution weight of the inter-frame image block includes: 基于所述宏块解码信息,确定每个所述视频块内的帧间宏块;determining an inter macroblock within each of said video blocks based on said macroblock decoding information; 将含有所述帧间宏块的图像块定义为帧间图像块;defining an image block containing the inter macroblock as an inter image block; 计算所述帧间图像块之间的依赖程度与误差扩散度;Calculating the degree of dependence and the degree of error diffusion between the image blocks between the frames; 基于所述依赖程度与所述误差扩散度的乘积,将所述帧间图像块划分为多个帧间清单,其中,每划分一个所述帧间清单需要重新计算剩余所述帧间图像块之间的依赖程度与误差扩散度;Based on the product of the degree of dependence and the degree of error diffusion, divide the inter-frame image block into multiple inter-frame lists, where each division of the inter-frame list requires recalculating the remaining inter-frame image blocks The degree of dependence and error diffusion between 基于所述依赖程度的高低,确定每个所述帧间清单内帧间图像块的帧间超分权重。Based on the degree of dependence, the inter-frame super-resolution weights of the inter-frame image blocks in each of the inter-frame lists are determined. 4.如权利要求2所述的改善视频清晰度的方法,其特征在于,所述基于所述宏块解码信息,将所述视频块中的图像块划分为帧间图像块与帧内图像块,并确定所述帧内图像块的帧内超分权重的步骤,包括:4. The method for improving video clarity according to claim 2, wherein, based on the macroblock decoding information, the image blocks in the video block are divided into inter image blocks and intra image blocks , and the step of determining the intra-frame super-resolution weight of the intra-frame image block includes: 基于所述宏块解码信息,确定每个所述视频块内的帧内宏块;determining intra macroblocks within each of the video blocks based on the macroblock decoding information; 将含有所述帧内宏块的图像块定义为帧内图像块;defining an image block containing the intra macroblock as an intra image block; 计算所述帧内图像块的依赖估值,并基于预设的所述帧内图像块的纹理复杂度,修正所述依赖估值,得到修正依赖度;calculating a dependency estimate of the intra-frame image block, and modifying the dependency estimate based on the preset texture complexity of the intra-frame image block to obtain a modified dependency; 基于所述修正依赖度的排序,将所述帧内图像块等比例划分为多个帧内清单,并确定每个所述帧内清单的帧内超分权重。Based on the sorting of the modified dependencies, the intra-frame image blocks are divided into multiple intra-frame lists in equal proportions, and the intra-frame super-resolution weight of each of the intra-frame lists is determined. 5.如权利要求2所述的改善视频清晰度的方法,其特征在于,所述基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,确定所述所需视频的超分清单的步骤,包括:5. The method for improving video clarity as claimed in claim 2, characterized in that, determining the required The steps of the super-score checklist of the video, including: 基于所述帧间超分权重、所述帧内超分权重与预设的搜索算法,计算在所述视频块内每个图像块的清晰度达到目标清晰度时,需要超分面积最小的图像块组合;Based on the inter-frame super-resolution weight, the intra-frame super-resolution weight and a preset search algorithm, calculate the image with the smallest super-resolution area when the definition of each image block in the video block reaches the target definition. block combination; 将所述图像块组合内的图像块定义为超分图像块,并基于所述超分图像块确定超分清单。The image blocks in the combination of image blocks are defined as super-resolution image blocks, and a super-resolution list is determined based on the super-resolution image blocks. 6.如权利要求1所述的改善视频清晰度的方法,其特征在于,所述将所述超分清单与所述视频块发送至所述终端设备的步骤,包括:6. The method for improving video clarity according to claim 1, wherein the step of sending the super-resolution list and the video blocks to the terminal device includes: 基于预设的游程编码,将所述超分清单与所述视频块打包为游程数据包;Packing the super-resolution list and the video blocks into a run-length packet based on a preset run-length encoding; 对所述游程数据包与未使用游程编码打包的普通数据包进行数据量对比;Comparing the amount of data between the run-length data packet and an ordinary data packet that is not packaged with run-length encoding; 从所述游程数据包与所述普通数据包中选择数据量少的发送数据包,基于所述发送数据包将所述超分清单与所述视频块发送至所述终端设备。Selecting a sending data packet with a small amount of data from the run length data packet and the normal data packet, and sending the super resolution list and the video block to the terminal device based on the sending data packet. 7.如权利要求1所述的改善视频清晰度的方法,其特征在于,所述基于所述最优计算力,确定的所述所需视频的超分模型的步骤,包括:7. The method for improving video clarity as claimed in claim 1, wherein the step of determining the super-resolution model of the desired video based on the optimal computing power comprises: 从所述所需视频对应的超分模型组中选择出计算力小于或等于所述最优计算力的超分模型;Selecting a super-resolution model whose computing power is less than or equal to the optimal computing power from the super-resolution model group corresponding to the desired video; 其中,每个所述所需视频都对应多个不同计算难度的超分模型。Wherein, each of the required videos corresponds to a plurality of super-resolution models with different calculation difficulties. 8.一种改善视频清晰度的装置,其特征在于,所述改善视频清晰度的装置包括:8. A device for improving video clarity, characterized in that the device for improving video clarity comprises: 确定模块,用于基于终端设备发送的视频请求,确定所述终端设备的最优计算力与所需视频,并向所述终端设备发送基于所述最优计算力,确定的所述所需视频的超分模型与清晰度等级;A determining module, configured to determine the optimal computing power and required video of the terminal device based on the video request sent by the terminal device, and send the required video determined based on the optimal computing power to the terminal device The super-resolution model and definition level; 选择模块,用于基于所述终端设备从所述清晰度等级中选择的目标清晰度,从所述所需视频中筛选出超分清单,其中,超分清单记载了所需视频中需要超分的超分图像块;A selection module, configured to filter out a super-resolution list from the required video based on the target definition selected by the terminal device from the definition level, wherein the super-resolution list records that the required video requires super-resolution The super-resolution image block of ; 发送模块,用于将所述超分清单与所述视频块发送至所述终端设备,以供所述终端设备基于所述超分模型超分所述超分清单记载的超分图像块,得到所述所需视频对应的高清视频。A sending module, configured to send the super-resolution list and the video blocks to the terminal device, so that the terminal device can super-resolution the super-resolution image blocks recorded in the super-resolution list based on the super-resolution model, and obtain The high-definition video corresponding to the desired video. 9.一种改善视频清晰度的设备,其特征在于,所述改善视频清晰度的设备包括:存储器、处理器以及存储在存储器上的用于实现改善视频清晰度的方法的程序,9. A device for improving video clarity, characterized in that, the device for improving video clarity includes: a memory, a processor and a program stored on the memory for realizing the method for improving video clarity, 存储器用于存储实现改善视频清晰度的方法的程序;memory for storing a program implementing a method for improving video clarity; 处理器用于执行实现改善视频清晰度的方法的程序,以实现如权利要求1至7中任一项所述改善视频清晰度的方法的步骤。The processor is used to execute the program for implementing the method for improving video definition, so as to realize the steps of the method for improving video definition according to any one of claims 1-7. 10.一种存储介质,其特征在于,存储介质上存储有实现改善视频清晰度的方法的程序,实现改善视频清晰度的方法的程序被处理器执行以实现如权利要求1至7中任一项所述改善视频清晰度的方法的步骤。10. A storage medium, characterized in that, the storage medium is stored with a program for implementing a method for improving video clarity, and the program for implementing the method for improving video clarity is executed by a processor to implement any one of claims 1 to 7. The steps of the method for improving video clarity described in the item.
CN202310212368.3A 2023-02-27 2023-02-27 Method, device, equipment and storage medium for improving video clarity Pending CN116208730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310212368.3A CN116208730A (en) 2023-02-27 2023-02-27 Method, device, equipment and storage medium for improving video clarity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310212368.3A CN116208730A (en) 2023-02-27 2023-02-27 Method, device, equipment and storage medium for improving video clarity

Publications (1)

Publication Number Publication Date
CN116208730A true CN116208730A (en) 2023-06-02

Family

ID=86509309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310212368.3A Pending CN116208730A (en) 2023-02-27 2023-02-27 Method, device, equipment and storage medium for improving video clarity

Country Status (1)

Country Link
CN (1) CN116208730A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117291810A (en) * 2023-11-27 2023-12-26 腾讯科技(深圳)有限公司 Video frame processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117291810A (en) * 2023-11-27 2023-12-26 腾讯科技(深圳)有限公司 Video frame processing method, device, equipment and storage medium
CN117291810B (en) * 2023-11-27 2024-03-12 腾讯科技(深圳)有限公司 Video frame processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11361404B2 (en) Electronic apparatus, system and controlling method thereof
US20200374524A1 (en) Method and apparatus for video encoding and decoding
US7403564B2 (en) System and method for multiple channel video transcoding
US11172220B2 (en) Video encoding method, and storage medium thereof
KR101894420B1 (en) Adaptive video transcoding method and its system for maximizing transcoding server capacity
US8396122B1 (en) Video codec facilitating writing an output stream in parallel
CN113132728B (en) Coding method and coder
CN114071161B (en) Image encoding method, image decoding method and related devices
CN101842812A (en) System and method for parameter quality-aware selection in digital image transcoding
EP3614231A1 (en) Method and apparatus for determining quality of experience of vr multi-media
WO2017041551A1 (en) Spice protocol-based image transmission method and apparatus
JP2019512970A (en) Apparatus and method for adaptive computation of quantization parameters in display stream compression
CN116208730A (en) Method, device, equipment and storage medium for improving video clarity
CN108200429B (en) Bayer image compression method and device
CN110876065A (en) Method for constructing candidate motion information list, method and device for inter-frame prediction
CN111050169B (en) Method and device for generating quantization parameter in image coding and terminal
CN113473125B (en) Code rate control method, device, storage medium and product
CN112702605B (en) Video transcoding system, video transcoding method, electronic device, and storage medium
US20050195901A1 (en) Video compression method optimized for low-power decompression platforms
JP5956316B2 (en) Subjective image quality estimation apparatus, subjective image quality estimation method, and program
JP2005502285A (en) Method and apparatus for encoding successive images
CN118175325A (en) Method for constructing candidate motion information list, inter-frame prediction method and device
WO2024108931A1 (en) Video encoding and decoding methods and apparatus
JP2004518199A (en) coding
CN101112101A (en) Rate control techniques for video encoding using parametric equations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载