WO2022252567A1 - Method and device for determining priority order of video encoding and decoding on basis of correlation comparison - Google Patents

Method and device for determining priority order of video encoding and decoding on basis of correlation comparison Download PDF

Info

Publication number
WO2022252567A1
WO2022252567A1 PCT/CN2021/139138 CN2021139138W WO2022252567A1 WO 2022252567 A1 WO2022252567 A1 WO 2022252567A1 CN 2021139138 W CN2021139138 W CN 2021139138W WO 2022252567 A1 WO2022252567 A1 WO 2022252567A1
Authority
WO
WIPO (PCT)
Prior art keywords
correlation
video
coding
determining
encoding
Prior art date
Application number
PCT/CN2021/139138
Other languages
French (fr)
Chinese (zh)
Inventor
洪一帆
王琪
周东东
滕波
Original Assignee
浙江智慧视频安防创新中心有限公司
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 浙江智慧视频安防创新中心有限公司 filed Critical 浙江智慧视频安防创新中心有限公司
Publication of WO2022252567A1 publication Critical patent/WO2022252567A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/127Prioritisation of hardware or computational resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Definitions

  • the present invention relates to the technical field of multimedia processing, in particular to a method and a device for determining video encoding and decoding priorities based on correlation degree comparison.
  • Video compression based on video analysis tasks is somewhat different from other video compression scenarios.
  • scenarios such as film and television video compression the quality of compressed video is mainly judged by people subjectively, and the impact of distortion caused by video compression is mainly the impact of human subjective perception.
  • Video analysis is generally done automatically by a computer, and it is required that the analysis result of the compressed video should be consistent with the analysis result of the uncompressed video, otherwise it will cause erroneous analysis results.
  • a public document (CN111901594A) has proposed the concept of "just identifiable distortion".
  • the just identifiable distortion is the distortion threshold of the coded image that causes the visual analysis accuracy to be less than the preset accuracy, and the coding parameters are determined according to the just identifiable distortion of the image, and the image is coded according to the coding parameters to obtain a corresponding coded image, which can Under the same bit rate, the performance of visual analysis tasks on encoded images can be improved, which can save more bit rates.
  • Existing publications disclose the use of just identifiable distortion prediction models to determine encoding parameters, but do not disclose how to transmit the encoding parameters and their encoding blocks to overcome the problem of limited transmission channels.
  • determining the encoding parameters according to the just identifiable distortion of the image can concentrate most of the bit rate on the encoding blocks that affect the visual analysis task, and they have a higher impact on the video analysis results than other encoding blocks.
  • the determination of the coding order in the standard is only related to video content, it has nothing to do with video analysis. Therefore, The encoding order and the transmission order of the encoded data cannot prioritize important data according to the needs of video analysis.
  • the purpose of the present invention is to provide a method and device for determining the priority order of video encoding and decoding based on the correlation degree comparison, which is used to solve the above-mentioned technology that the encoding order and the transmission order of encoded data cannot prioritize important data according to the needs of video analysis question.
  • a method for determining video encoding priority based on correlation comparison comprising the following steps:
  • the encoded block is encoded and/or transmitted.
  • the above-mentioned method for determining video encoding priority based on correlation comparison, said determining the coding block for priority encoding includes:
  • the determination of the coding block for priority coding also includes the coding sequence formed by horizontal scanning, vertical scanning and diagonal scanning.
  • the coding block represents a video data block that is subjected to intra-frame prediction coding.
  • the coding block has a corresponding correlation for each video analysis task.
  • the determination of the correlation degree corresponding to each coding block includes: performing numerical modification on each coding block to determine the correlation degree between each coding block and a video analysis task.
  • a method for determining priority order of video decoding based on correlation comparison comprising the following steps:
  • the video code stream is decoded for the decoder to decode to obtain corresponding image frames.
  • a device for determining video encoding priority based on correlation comparison comprising:
  • a determination module is used to modify the numerical value of each coding block to determine the correlation between each coding block and the video analysis task;
  • a comparison module configured to preset a reference threshold, and compare the correlation corresponding to each coding block with the threshold
  • An encoding module configured to select encoding blocks whose correlation degrees exceed the reference threshold and encode them preferentially.
  • the above-mentioned device for determining video coding priority based on correlation comparison further includes a block module for dividing the entire image frame into one or more coding blocks, and each coding block is a rectangular area containing an integer number of CTUs.
  • a device for determining video decoding priority based on correlation comparison comprising:
  • a conversion module configured to convert the encoding sequence indication information and video data into a video code stream
  • the decoding module is used to decode the video code stream for the decoder to decode to obtain corresponding image frames.
  • An electronic device comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, and executed when the processor runs the computer program to achieve any of the above A method for prioritizing video coding based on correlation comparison.
  • a computer-readable storage medium on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the method for determining video encoding priority based on correlation comparison described in any one of the above.
  • the method and device for determining the priority order of video encoding and decoding based on the correlation degree comparison determine the correlation degree between each sub-block and the video analysis task according to the video analysis task, determine the encoding sequence based on the correlation degree, the encoding sequence and the sequence of the encoded data
  • the transmission sequence prioritizes important data according to the needs of video analysis, performs video encoding, and converts the encoded data into video code streams, which can ensure the accuracy of video analysis results within an acceptable range, and at the same time ensure the best data compression rate .
  • FIG. 1 is a schematic diagram of a method for determining video coding priority based on correlation comparison in the present invention
  • Fig. 2 is a schematic diagram of the horizontal scanning coding sequence in the embodiment of the present invention.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • a method for determining video coding priority based on correlation comparison includes the following steps:
  • the encoded block is encoded and/or transmitted.
  • the coding blocks for determining priority coding also include coding sequences formed by horizontal scanning, vertical scanning and diagonal scanning.
  • Preset a reference threshold compare whether the correlation degree corresponding to the coding block exceeds the reference threshold, preset a threshold, compare the correlation degree of each coding block with the threshold, and the ones higher than the threshold are considered to be closely related to a specific video analysis task relevant, has the highest encoding priority;
  • the coding blocks whose correlation degrees exceed the reference threshold are selected for priority coding, and in the coding sequence formed by horizontal scanning, vertical scanning, and diagonal scanning, several coding blocks with correlation degrees exceeding a certain threshold are selected for coding priority.
  • the block scan order of H.266/VVC includes diagonal scan, horizontal scan and vertical scan order.
  • the coding blocks that are preferentially coded are 2, 7, and 8.
  • the horizontal scanning coding order is still maintained in the priority coding block and other coding blocks.
  • the complete coding sequence is: 2, 7, 8, 1, 3, 4, 5, 6, 9, 10, 11, 12, 1, 14, 15, 16.
  • video analysis tasks include image classification, object detection, and pose estimation.
  • distorted images Pic1, Pic2, Pic3, For an original image Pic0, distorted images Pic1, Pic2, Pic3, .
  • the increase of the degree of distortion will reduce the accuracy of the visual analysis results.
  • the encoding parameters that have a greater impact on the distortion degree include quantization parameters (QP), target code rates, and the like.
  • QP quantization parameters
  • target code rates target code rates
  • the degree of distortion degree increases to a certain threshold
  • the prediction of the image by the visual analysis model will completely fail. Therefore, in Pic1, Pic2, Pic3, . Therefore, by trying different sets of encoding parameters and then analyzing the corresponding distorted image with a specific visual analysis process, it is judged whether the accurate result is obtained. Theoretically speaking, a set of optimal parameter combinations can be obtained, just enough to ensure that the accuracy of the video analysis results is within an acceptable range, and at the same time ensure the best data compression rate and other beneficial effects.
  • the coding block represents a video data block that implements intra-frame prediction coding.
  • the block method of VVC and HEVC is followed.
  • a frame of image is divided into one or more coded block rows and coded block columns, and each coded block is a rectangular area containing an integer number of CTUs.
  • CTUs are divided into CUs according to the quadtree division method, and each CU can be divided into PUs and TUs.
  • a coded block or sub-block or sub-block is used to represent a block of video data subjected to intra-frame predictive coding.
  • each of the encoding blocks has one corresponding correlation.
  • the determination of the correlation degree corresponding to each coding block includes: performing numerical modification on each coding block to determine each coding block The block is related to the video analysis task.
  • a method for determining priority order of video decoding based on correlation comparison comprising the following steps:
  • the video code stream is decoded for the decoder to decode to obtain corresponding image frames.
  • Compression coding is performed on all codes in the above sequence, and all possible video compression technologies, existing and future, can be utilized.
  • the framed data is compressed using an intra-frame coding technique, that is, at least including intra-frame prediction, DCT transformation, quantization, and entropy coding processes.
  • a device for determining video encoding priority based on correlation comparison comprising:
  • the block module is used to divide the entire image frame into one or more coding blocks, and each coding block is a rectangular area containing an integer number of CTUs;
  • a determining module configured to modify the values of each coding block to determine the correlation between each coding block and the video analysis task
  • a comparison module configured to preset a reference threshold, and compare the correlation corresponding to each coding block with the threshold
  • An encoding module configured to select encoding blocks whose correlation degrees exceed the reference threshold and encode them preferentially.
  • a device for determining video decoding priority based on correlation comparison comprising:
  • a conversion module configured to convert the encoding sequence indication information and video data into a video code stream
  • the decoding module is used to decode the video code stream for the decoder to decode to obtain corresponding image frames.
  • the processor and the memory may be connected through a bus or in other ways, taking connection through a bus as an example.
  • the processor may be a central processing unit (Central Processing Unit, CPU).
  • the processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the memory can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as the cascaded progressive network in the embodiment of the present application.
  • the processor executes various functional applications and data processing of the processor by running non-transitory software programs/instructions and functional modules stored in the memory.
  • the memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created by the processor, and the like.
  • the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices.
  • the memory may optionally include memory located remotely from the processor, such remote memory may be connected to the processor via a network (eg, via a communication interface). Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • An embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are executed to perform the methods in the foregoing embodiments of the present application.
  • Computer-readable storage media include physically volatile and non-volatile, removable and non-removable media implemented in any manner or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. medium.
  • Computer-readable storage media specifically include, but are not limited to, U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), erasable programmable read-only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash or other solid-state memory technology, CD-ROM, Digital Versatile Disk (DVD), HD-DVD, Blue-Ray or other optical storage device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer.
  • ROM read-only memory
  • RAM random access memory
  • EPROM erasable programmable read-only Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • Flash Flash or other
  • program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types.
  • program modules may be located in both local and remote memory storage devices.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art or the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the method and device for determining the priority order of video encoding and decoding based on the correlation degree comparison determine the correlation degree between each sub-block and the video analysis task according to the video analysis task, determine the encoding sequence based on the correlation degree, the encoding sequence and the sequence of the encoded data
  • the transmission sequence prioritizes important data according to the needs of video analysis, performs video encoding, and converts the encoded data into video code streams, which can ensure the accuracy of video analysis results within an acceptable range, and at the same time ensure the best data compression rate .

Abstract

Disclosed are a method and a device for determining the priority order of video encoding and decoding on the basis of correlation comparison, the method comprising: determining a corresponding correlation between each encoding block and each video analysis task; determining, on the basis of the correlation, a preferentially encoded encoding block; and encoding and/or transmitting the encoding block. The present invention determines, according to the requirements of a video analysis task, the correlation between sub-blocks and the video analysis task, determines encoding order on the basis of correlation, the encoding order and the transmission order of encoded data thereof preferentially processing important data according to the requirements of video analysis, performs video encoding, and converts the encoded data into a video code stream, which can ensure that the accuracy of video analysis results is within an acceptable range, and at the same time ensures that the data compression rate is optimal.

Description

基于相关度比较确定视频编解码优先顺序的方法及装置Method and device for determining priority order of video encoding and decoding based on correlation degree comparison 技术领域technical field
本发明涉及到多媒体处理的技术领域,尤其涉及到基于相关度比较确定视频编解码优先顺序的方法及装置。The present invention relates to the technical field of multimedia processing, in particular to a method and a device for determining video encoding and decoding priorities based on correlation degree comparison.
背景技术Background technique
基于视频分析任务的视频压缩与其它视频压缩场景有一定的差异性。在影视视频压缩等场景中,压缩后的视频质量主要由人主观判断,视频压缩导致的失真造成的影响主要是人主观感受上的影响。而视频分析一般由计算机自动完成,要求对压缩后的视频进行分析的结果应该与对压缩前视频进行的分析结果一致,否则造成错误的分析结果。为了兼顾较大的压缩效率和准确的视频分析,已有公开文献(CN111901594A)提出“恰可识别失真”概念。恰可识别失真是编码图像造成视觉分析准确度小于预设准确度的失真阈值,根据图像的恰可识别失真确定编码参数,并根据编码参数对所述图像进行编码,得到相应的编码图像,能够在同等码率下实现编码图像上的视觉分析任务性能提升,能够节省较多码率。已有公开文献公开了利用恰可识别失真预测模型确定编码参数,但没有公开如何传输编码参数及其编码块以克服传输通道受限的问题。Video compression based on video analysis tasks is somewhat different from other video compression scenarios. In scenarios such as film and television video compression, the quality of compressed video is mainly judged by people subjectively, and the impact of distortion caused by video compression is mainly the impact of human subjective perception. Video analysis is generally done automatically by a computer, and it is required that the analysis result of the compressed video should be consistent with the analysis result of the uncompressed video, otherwise it will cause erroneous analysis results. In order to take into account greater compression efficiency and accurate video analysis, a public document (CN111901594A) has proposed the concept of "just identifiable distortion". The just identifiable distortion is the distortion threshold of the coded image that causes the visual analysis accuracy to be less than the preset accuracy, and the coding parameters are determined according to the just identifiable distortion of the image, and the image is coded according to the coding parameters to obtain a corresponding coded image, which can Under the same bit rate, the performance of visual analysis tasks on encoded images can be improved, which can save more bit rates. Existing publications disclose the use of just identifiable distortion prediction models to determine encoding parameters, but do not disclose how to transmit the encoding parameters and their encoding blocks to overcome the problem of limited transmission channels.
容易推断,根据图像的恰可识别失真确定编码参数,可以将大部分码率集中到影响视觉分析任务的编码块上,它们比其它编码块对视频分析结果的影响更高。在带宽受限等传输环境下,将重要程度更高的影响视觉分析任务的编码块数据优先传输是很重要的,但由于标准中编码顺序的确定只跟视频内容有关,与视频分析无关,因此编码顺序及其编码后数据的传输顺序无法根据视频分析的需要将重要数据优先处理。It is easy to infer that determining the encoding parameters according to the just identifiable distortion of the image can concentrate most of the bit rate on the encoding blocks that affect the visual analysis task, and they have a higher impact on the video analysis results than other encoding blocks. In a transmission environment such as limited bandwidth, it is very important to prioritize the transmission of more important coded block data that affects visual analysis tasks. However, since the determination of the coding order in the standard is only related to video content, it has nothing to do with video analysis. Therefore, The encoding order and the transmission order of the encoded data cannot prioritize important data according to the needs of video analysis.
发明内容Contents of the invention
本发明的目的在于提供一种基于相关度比较确定视频编解码优先顺序的方法及装置,用于解决编码顺序及其编码后数据的传输顺序无法根据视频分析的需要将重要数据优先处理的上述技术问题。The purpose of the present invention is to provide a method and device for determining the priority order of video encoding and decoding based on the correlation degree comparison, which is used to solve the above-mentioned technology that the encoding order and the transmission order of encoded data cannot prioritize important data according to the needs of video analysis question.
一种基于相关度比较确定视频编码优先顺序的方法,包括以下步骤:A method for determining video encoding priority based on correlation comparison, comprising the following steps:
确定各编码块与各视频分析任务对应的相关度;Determine the degree of correlation between each encoding block and each video analysis task;
基于所述相关度确定优先编码的编码块;determining a coding block for priority coding based on the correlation;
将所述编码块进行编码和/或传输。The encoded block is encoded and/or transmitted.
上述的基于相关度比较确定视频编码优先顺序的方法,所述确定优先编码的编码块 包括:The above-mentioned method for determining video encoding priority based on correlation comparison, said determining the coding block for priority encoding includes:
预设一参考阈值,比较编码块与各视频分析任务对应的相关度是否超过所述参考阈值;Preset a reference threshold, and compare whether the correlation between the coding block and each video analysis task exceeds the reference threshold;
选择所述相关度超过所述参考阈值的编码块优先进行编码。Selecting coding blocks whose correlation degrees exceed the reference threshold are preferentially coded.
上述的基于相关度比较确定视频编码优先顺序的方法,所述确定优先编码的编码块还包括在横向扫描、垂直扫描和对角扫描形成的编码顺序。In the above-mentioned method for determining video coding priority based on correlation degree comparison, the determination of the coding block for priority coding also includes the coding sequence formed by horizontal scanning, vertical scanning and diagonal scanning.
上述的基于相关度比较确定视频编码优先顺序的方法,所述编码块代表实施帧内预测编码的视频数据块。In the above-mentioned method for determining video coding priority based on correlation comparison, the coding block represents a video data block that is subjected to intra-frame prediction coding.
上述的基于相关度比较确定视频编码优先顺序的方法,在所述视频分析任务为多个时,所述编码块针对每个视频分析任务各有一个对应的相关度。In the above-mentioned method for determining video coding priority based on correlation comparison, when there are multiple video analysis tasks, the coding block has a corresponding correlation for each video analysis task.
上述的基于相关度比较确定视频编码优先顺序的方法,所述确定各编码块对应的相关度包括:对所述各编码块进行数值修改确定各编码块与视频分析任务相关度。In the above-mentioned method for determining video encoding priority based on correlation degree comparison, the determination of the correlation degree corresponding to each coding block includes: performing numerical modification on each coding block to determine the correlation degree between each coding block and a video analysis task.
一种基于相关度比较确定视频解码优先顺序的方法,包括以下步骤:A method for determining priority order of video decoding based on correlation comparison, comprising the following steps:
将编码顺序指示信息和视频数据转换成视频码流;Converting the encoding sequence indication information and video data into a video code stream;
对所述视频码流解码供解码器进行解码,得到相应的图像帧。The video code stream is decoded for the decoder to decode to obtain corresponding image frames.
一种基于相关度比较确定视频编码优先顺序的装置,包括:A device for determining video encoding priority based on correlation comparison, comprising:
确定模块,用于对各编码块进行数值修改确定各编码块与视频分析任务相关度;A determination module is used to modify the numerical value of each coding block to determine the correlation between each coding block and the video analysis task;
比较模块,用于预设一参考阈值,将各编码块对应的相关度与该阈值比较;A comparison module, configured to preset a reference threshold, and compare the correlation corresponding to each coding block with the threshold;
编码模块,用于选择相关度超过所述参考阈值的编码块优先编码。An encoding module, configured to select encoding blocks whose correlation degrees exceed the reference threshold and encode them preferentially.
上述的基于相关度比较确定视频编码优先顺序的装置,还包括分块模块,用于将整幅图像帧划分为一个或多个编码块,每个编码块是一个矩形区域包含整数个CTU。The above-mentioned device for determining video coding priority based on correlation comparison further includes a block module for dividing the entire image frame into one or more coding blocks, and each coding block is a rectangular area containing an integer number of CTUs.
一种基于相关度比较确定视频解码优先顺序的装置,包括:A device for determining video decoding priority based on correlation comparison, comprising:
转换模块,用于将编码顺序指示信息和视频数据转换成视频码流;A conversion module, configured to convert the encoding sequence indication information and video data into a video code stream;
解码模块,用于根据视频码流解码供解码器进行解码,得到相应的图像帧。The decoding module is used to decode the video code stream for the decoder to decode to obtain corresponding image frames.
一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器运行所述计算机程序时执行以实现以上任一项所述的基于相关度比较确定视频编码优先顺序的方法。An electronic device, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, and executed when the processor runs the computer program to achieve any of the above A method for prioritizing video coding based on correlation comparison.
一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现以上任一项所述的基于相关度比较确定视频编码优先顺序的方法。A computer-readable storage medium, on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the method for determining video encoding priority based on correlation comparison described in any one of the above.
上述技术方案具有如下优点或有益效果:The above technical solution has the following advantages or beneficial effects:
本发明中这种基于相关度比较确定视频编解码优先顺序的方法及装置根据视频分析任务需要 确定个子块与视频分析任务的相关度,基于相关度确定编码顺序,编码顺序及其编码后数据的传输顺序根据视频分析的需要将重要数据优先处理,进行视频编码,将编码后的数据转换成视频码流,能够保证视频分析结果的准确度在可以接受的范围内,同时保证数据压缩率最佳。In the present invention, the method and device for determining the priority order of video encoding and decoding based on the correlation degree comparison determine the correlation degree between each sub-block and the video analysis task according to the video analysis task, determine the encoding sequence based on the correlation degree, the encoding sequence and the sequence of the encoded data The transmission sequence prioritizes important data according to the needs of video analysis, performs video encoding, and converts the encoded data into video code streams, which can ensure the accuracy of video analysis results within an acceptable range, and at the same time ensure the best data compression rate .
附图说明Description of drawings
图1是本发明一种基于相关度比较确定视频编码优先顺序的方法的示意图;FIG. 1 is a schematic diagram of a method for determining video coding priority based on correlation comparison in the present invention;
图2是本发明实施例中水平扫描编码顺序的示意图。Fig. 2 is a schematic diagram of the horizontal scanning coding sequence in the embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
在本发明的描述中,需要理解的是,术语“上”、“下”、“前”“后”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "upper", "lower", "front" and "rear" are based on the orientation or positional relationship shown in the drawings, and are only for convenience The present invention is described and simplified descriptions do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and thus should not be construed as limiting the present invention.
术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。The terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features.
结合图1、图2所示,一种基于相关度比较确定视频编码优先顺序的方法,包括以下步骤:As shown in FIG. 1 and FIG. 2, a method for determining video coding priority based on correlation comparison includes the following steps:
对整幅图像帧进行分块,分成相同形状的若干编码块;Block the entire image frame into several coding blocks of the same shape;
确定各编码块与各视频分析任务对应的相关度;Determine the degree of correlation between each encoding block and each video analysis task;
基于所述相关度确定优先编码的编码块;determining a coding block for priority coding based on the correlation;
将所述编码块进行编码和/或传输。The encoded block is encoded and/or transmitted.
所述确定优先编码的编码块包括:The encoding blocks for determining priority encoding include:
预设一参考阈值,比较编码块与各视频分析任务对应的相关度是否超过所述参考阈值;Preset a reference threshold, and compare whether the correlation between the coding block and each video analysis task exceeds the reference threshold;
选择所述相关度超过所述参考阈值的编码块优先进行编码。Selecting coding blocks whose correlation degrees exceed the reference threshold are preferentially coded.
所述确定优先编码的编码块还包括在横向扫描、垂直扫描和对角扫描形成的编码顺序。The coding blocks for determining priority coding also include coding sequences formed by horizontal scanning, vertical scanning and diagonal scanning.
预设一参考阈值,比较编码块对应的相关度是否超过所述参考阈值,预设一个阈值,将各编码块相关度与该阈值比较,高于该阈值的被认为是与特定视频分析任务紧密相 关,具有最高的编码优先级;Preset a reference threshold, compare whether the correlation degree corresponding to the coding block exceeds the reference threshold, preset a threshold, compare the correlation degree of each coding block with the threshold, and the ones higher than the threshold are considered to be closely related to a specific video analysis task relevant, has the highest encoding priority;
在编码顺序中,选择所述相关度超过所述参考阈值的编码块优先编码,在横向扫描、垂直扫描、对角扫描形成的编码顺序中,选择若干相关度超过一定阈值的编码块优先编码。In the coding order, the coding blocks whose correlation degrees exceed the reference threshold are selected for priority coding, and in the coding sequence formed by horizontal scanning, vertical scanning, and diagonal scanning, several coding blocks with correlation degrees exceeding a certain threshold are selected for coding priority.
例如,H.266/VVC的块扫描顺序包括对角扫描、水平扫描和垂直扫描顺序。For example, the block scan order of H.266/VVC includes diagonal scan, horizontal scan and vertical scan order.
作为示例,假设各编码块相关度如下:As an example, assume that the correlation of each coding block is as follows:
编码块coding block 相关度relativity
11 0.50.5
22 0.850.85
33 0.50.5
44 0.30.3
55 0.10.1
66 22
77 0.750.75
88 0.80.8
99 0.20.2
1010 0.20.2
1111 0.10.1
1212 0.30.3
1313 0.20.2
1414 0.10.1
1515 00
1616 00
表1Table 1
设定相关度阈值为0.6,则优先编码的编码块为2、7、8。在优先编码块和其它编码块中仍维持水平扫描编码顺序,完整的编码顺序为:2,7,8,1,3,4,5,6,9,10,11,12,1,14,15,16。If the correlation threshold is set to 0.6, the coding blocks that are preferentially coded are 2, 7, and 8. The horizontal scanning coding order is still maintained in the priority coding block and other coding blocks. The complete coding sequence is: 2, 7, 8, 1, 3, 4, 5, 6, 9, 10, 11, 12, 1, 14, 15, 16.
本实施例中,视频分析任务包括图像分类、目标检测和姿态估计等。对于一幅原始图像Pic0,经过编码压缩后会产生不同质量的失真图像Pic1,Pic2,Pic3,...,Picn,其中分别对应一组编码参数P1,P2,P3,...,Pn。失真程度的增大会使得视觉分析结果准确度降低。其中,对失真度影响较大的编码参数包括量化参数(QP)、目标码率等。当失真程度增大到某个阈值后,视觉分析模型对该图像的预测将完全失效。因此,在Pic1,Pic2,Pic3,...,Picn中,可能只有其中部分图像可用,即保证视觉分析结果准确度在可以接受的范围内。因此,通过尝试不同的编码参数集合,然后用特定的视觉分析过程对相应的失真图像进行分析,判断是否得到准确的结果。理论上讲,可以得到一组最佳参数组合,刚好能够保证视频分析结果的准确度在可以接受的范围内,同时保证数据压缩率最佳等其它有益效果。In this embodiment, video analysis tasks include image classification, object detection, and pose estimation. For an original image Pic0, distorted images Pic1, Pic2, Pic3, . The increase of the degree of distortion will reduce the accuracy of the visual analysis results. Among them, the encoding parameters that have a greater impact on the distortion degree include quantization parameters (QP), target code rates, and the like. When the degree of distortion increases to a certain threshold, the prediction of the image by the visual analysis model will completely fail. Therefore, in Pic1, Pic2, Pic3, . Therefore, by trying different sets of encoding parameters and then analyzing the corresponding distorted image with a specific visual analysis process, it is judged whether the accurate result is obtained. Theoretically speaking, a set of optimal parameter combinations can be obtained, just enough to ensure that the accuracy of the video analysis results is within an acceptable range, and at the same time ensure the best data compression rate and other beneficial effects.
根据视频分析任务需要确定个子块与视频分析任务的相关度,至少部分基于相关确定编码顺序,进行视频编码,将编码后的数据转换成视频码流。Determine the degree of correlation between the sub-blocks and the video analysis task according to the needs of the video analysis task, determine the coding order based on at least part of the correlation, perform video coding, and convert the coded data into a video code stream.
进一步地,本发明一种基于相关度比较确定视频编码优先顺序的方法的较佳的实施 例中,所述编码块代表实施帧内预测编码的视频数据块。Further, in a preferred embodiment of the method for determining video coding priority based on correlation comparison in the present invention, the coding block represents a video data block that implements intra-frame prediction coding.
其中,在一种实施例中,沿用VVC和HEVC的分块方法。一帧图像被划分为一个或多个编码块行和编码块列,每个编码块是一个矩形区域包含整数个CTU。按照HEVC标准,CTU会按四叉树划分方式被划分为CU,每个CU又可以划分为PU和TU。在VVC中将不再区分CU、PU和TU的概念。无论哪种方式,在本发明中,用编码块或子块或分块代表实施帧内预测编码的视频数据块。Wherein, in one embodiment, the block method of VVC and HEVC is followed. A frame of image is divided into one or more coded block rows and coded block columns, and each coded block is a rectangular area containing an integer number of CTUs. According to the HEVC standard, CTUs are divided into CUs according to the quadtree division method, and each CU can be divided into PUs and TUs. In VVC, the concepts of CU, PU and TU will no longer be distinguished. Either way, in the present invention, a coded block or sub-block or sub-block is used to represent a block of video data subjected to intra-frame predictive coding.
进一步地,本发明一种基于相关度比较确定视频编码优先顺序的方法的较佳的实施例中,在所述视频分析任务为多个时,所述编码块针对每个视频分析任务各有一个对应的相关度。Further, in a preferred embodiment of the method for determining video encoding priorities based on correlation comparison in the present invention, when there are multiple video analysis tasks, each of the encoding blocks has one corresponding correlation.
进一步地,本发明一种基于相关度比较确定视频编码优先顺序的方法的较佳的实施例中,所述确定各编码块对应的相关度包括:对所述各编码块进行数值修改确定各编码块与视频分析任务相关度。Further, in a preferred embodiment of the method for determining video encoding priority based on correlation degree comparison in the present invention, the determination of the correlation degree corresponding to each coding block includes: performing numerical modification on each coding block to determine each coding block The block is related to the video analysis task.
在一种实施例中,依次选择一个编码块或多个相邻编码块组合(例如2,4,8个),对其像素值(亮度和/或色度值)进行数值反转(二进制表示中0变成1,1变成0),而其它编码块数值保持不变。然后基于修改后的图像帧开展视频分析,观察分析准确率的变化(0-100%),计算相关度=(1-分析准确率)。这样可以确定每个编码块或每个相邻编码块组合针对特定视频分析任务的相关度。显然,相关度高的重要程度高。如果同时存在多个视频分析任务,则一个编码块针对每个视频分析任务有一个对应的相关度。In one embodiment, one coding block or a combination of multiple adjacent coding blocks (for example, 2, 4, 8) are sequentially selected, and its pixel values (luminance and/or chrominance values) are numerically reversed (binary representation 0 becomes 1, 1 becomes 0), while the values of other coding blocks remain unchanged. Then carry out video analysis based on the modified image frame, observe the change of analysis accuracy rate (0-100%), and calculate correlation degree=(1-analysis accuracy rate). This enables the determination of how relevant each coding block or combination of adjacent coding blocks is to a specific video analysis task. Apparently, a high degree of correlation has a high degree of importance. If multiple video analysis tasks exist at the same time, a coding block has a corresponding correlation degree for each video analysis task.
一种基于相关度比较确定视频解码优先顺序的方法,包括以下步骤:A method for determining priority order of video decoding based on correlation comparison, comprising the following steps:
将编码顺序指示信息和视频数据转换成视频码流;Converting the encoding sequence indication information and video data into a video code stream;
对所述视频码流解码供解码器进行解码,得到相应的图像帧。The video code stream is decoded for the decoder to decode to obtain corresponding image frames.
按上述顺序对所有编码进行压缩编码,可以利用现有及未来所有可能视频压缩技术。在一种实施例中,对所成帧数据采用帧内编码技术进行压缩,即至少包括帧内预测、DCT变换、量化、熵编码过程。Compression coding is performed on all codes in the above sequence, and all possible video compression technologies, existing and future, can be utilized. In an embodiment, the framed data is compressed using an intra-frame coding technique, that is, at least including intra-frame prediction, DCT transformation, quantization, and entropy coding processes.
一种基于相关度比较确定视频编码优先顺序的装置,包括:A device for determining video encoding priority based on correlation comparison, comprising:
分块模块,用于将整幅图像帧被划分为一个或多个编码块,每个编码块是一个矩形区域包含整数个CTU;The block module is used to divide the entire image frame into one or more coding blocks, and each coding block is a rectangular area containing an integer number of CTUs;
确定模块,用于对所述各编码块进行数值修改确定各编码块与视频分析任务相关度;A determining module, configured to modify the values of each coding block to determine the correlation between each coding block and the video analysis task;
比较模块,用于预设一参考阈值,将各编码块对应的相关度与该阈值比较;A comparison module, configured to preset a reference threshold, and compare the correlation corresponding to each coding block with the threshold;
编码模块,用于选择相关度超过所述参考阈值的编码块优先编码。An encoding module, configured to select encoding blocks whose correlation degrees exceed the reference threshold and encode them preferentially.
一种基于相关度比较确定视频解码优先顺序的装置,包括:A device for determining video decoding priority based on correlation comparison, comprising:
转换模块,用于将编码顺序指示信息和视频数据转换成视频码流;A conversion module, configured to convert the encoding sequence indication information and video data into a video code stream;
解码模块,用于根据视频码流解码供解码器进行解码,得到相应的图像帧。The decoding module is used to decode the video code stream for the decoder to decode to obtain corresponding image frames.
一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器运行所述计算机程序时执行以实现以上任一项所述的基于相关度比较确定视频编码优先顺序的方法。An electronic device, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, and executed when the processor runs the computer program to achieve any of the above A method for prioritizing video encoding based on correlation comparison.
其中,所述存储器与所述一个或多个处理器通信连接,所述存储器中存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行,以使所述一个或多个处理器执行本申请前述实施例中的方法。Wherein, the memory is connected in communication with the one or more processors, the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors , so that the one or more processors execute the methods in the foregoing embodiments of the present application.
具体地,处理器和存储器可以通过总线或者其他方式连接,以通过总线连接为例。处理器可以为中央处理器(Central Processing Unit,CPU)。处理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。Specifically, the processor and the memory may be connected through a bus or in other ways, taking connection through a bus as an example. The processor may be a central processing unit (Central Processing Unit, CPU). The processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的级联渐进网络等。处理器通过运行存储在存储器中的非暂态软件程序/指令以及功能模块,从而执行处理器的各种功能应用以及数据处理。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as the cascaded progressive network in the embodiment of the present application. The processor executes various functional applications and data processing of the processor by running non-transitory software programs/instructions and functional modules stored in the memory.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络(比如通过通信接口)连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created by the processor, and the like. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include memory located remotely from the processor, such remote memory may be connected to the processor via a network (eg, via a communication interface). Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
本申请的一个实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行后执行本申请前述实施例中的方法。An embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are executed to perform the methods in the foregoing embodiments of the present application.
前述的计算机可读取存储介质包括以存储如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方式或技术来实现的物理易失性和非易失性、可移动和不可移动介 质。计算机可读取存储介质具体包括,但不限于,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、可擦除可编程只读存储器(EPROM)、电可擦可编程只读存储器(EEPROM)、闪存或其他固态存储器技术、CD-ROM、数字多功能盘(DVD)、HD-DVD、蓝光(Blue-Ray)或其他光存储设备、磁带、磁盘存储或其他磁性存储设备、或能用于存储所需信息且可以由计算机访问的任何其他介质。The foregoing computer-readable storage media include physically volatile and non-volatile, removable and non-removable media implemented in any manner or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. medium. Computer-readable storage media specifically include, but are not limited to, U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), erasable programmable read-only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash or other solid-state memory technology, CD-ROM, Digital Versatile Disk (DVD), HD-DVD, Blue-Ray or other optical storage device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer.
尽管此处所述的主题是在结合操作系统和应用程序在计算机系统上的执行而执行的一般上下文中提供的,但本领域技术人员可以认识到,还可结合其他类型的程序模块来执行其他实现。一般而言,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、组件、数据结构和其他类型的结构。本领域技术人员可以理解,此处所述的本主题可以使用其他计算机系统配置来实践,包括手持式设备、多处理器系统、基于微处理器或可编程消费电子产品、小型计算机、大型计算机等,也可使用在其中任务由通过通信网络连接的远程处理设备执行的分布式计算环境中。在分布式计算环境中,程序模块可位于本地和远程存储器存储设备的两者中。Although the subject matter described herein is presented in the general context of being executed in connection with the execution of operating systems and application programs on a computer system, those skilled in the art will recognize that other types of program modules can also be used to execute other programs. accomplish. Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Those skilled in the art will appreciate that the subject matter described herein may be practiced using other computer system configurations, including handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, etc. , can also be used in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
本领域普通技术人员可以意识到,结合本文中所本申请的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and method steps of the examples described in conjunction with the embodiments of the present application herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对原有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art or the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
本发明中这种基于相关度比较确定视频编解码优先顺序的方法及装置根据视频分析任务需要确定个子块与视频分析任务的相关度,基于相关度确定编码顺序,编码顺序及其编码后数据的传输顺序根据视频分析的需要将重要数据优先处理,进行视频编码,将编码后的数据转换成视频码流,能够保证视频分析结果的准确度在可以接受的范围内,同时保证数据压缩率最佳。In the present invention, the method and device for determining the priority order of video encoding and decoding based on the correlation degree comparison determine the correlation degree between each sub-block and the video analysis task according to the video analysis task, determine the encoding sequence based on the correlation degree, the encoding sequence and the sequence of the encoded data The transmission sequence prioritizes important data according to the needs of video analysis, performs video encoding, and converts the encoded data into video code streams, which can ensure the accuracy of video analysis results within an acceptable range, and at the same time ensure the best data compression rate .
以上仅为本发明较佳的实施例,并非因此限制本发明的实施方式及保护范围,对于 本领域技术人员而言,应当能够意识到凡运用本发明说明书及图示内容所作出的等同替换和显而易见的变化所得到的方案,均应当包含在本发明的保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the implementation and protection scope of the present invention. For those skilled in the art, they should be able to realize the equivalent replacement and The solutions obtained by obvious changes shall all be included in the protection scope of the present invention.

Claims (10)

  1. 一种基于相关度比较确定视频编码优先顺序的方法,其特征在于,包括以下步骤:A method for determining video encoding priority based on correlation comparison, characterized in that it comprises the following steps:
    确定各编码块与各视频分析任务对应的相关度;Determine the degree of correlation between each encoding block and each video analysis task;
    基于所述相关度确定优先编码的编码块;determining a coding block for priority coding based on the correlation;
    将所述编码块进行编码和/或传输。The encoded block is encoded and/or transmitted.
  2. 如权利要求1所述的基于相关度比较确定视频编码优先顺序的方法,其特征在于,所述确定优先编码的编码块包括:The method for determining video coding priority based on correlation comparison according to claim 1, wherein said determining a coding block for priority coding comprises:
    预设一参考阈值,比较编码块与各视频分析任务对应的相关度是否超过所述参考阈值;Preset a reference threshold, and compare whether the correlation between the coding block and each video analysis task exceeds the reference threshold;
    选择所述相关度超过所述参考阈值的编码块优先进行编码。Selecting coding blocks whose correlation degrees exceed the reference threshold are preferentially coded.
  3. 如权利要求1所述的基于相关度比较确定视频编码优先顺序的方法,其特征在于,所述确定优先编码的编码块还包括在横向扫描、垂直扫描和对角扫描形成的编码顺序。The method for determining video coding priority based on correlation comparison according to claim 1, wherein said determining the coding block for priority coding further includes the coding sequence formed by horizontal scanning, vertical scanning and diagonal scanning.
  4. 如权利要求1所述的基于相关度比较确定视频编码优先顺序的方法,其特征在于,所述编码块代表实施帧内预测编码的视频数据块。The method for determining video coding priority based on correlation comparison according to claim 1, wherein the coding block represents a video data block for implementing intra-frame prediction coding.
  5. 如权利要求1所述的基于相关度比较确定视频编码优先顺序的方法,其特征在于,在所述视频分析任务为多个时,所述编码块针对每个视频分析任务各有一个对应的相关度。The method for determining video encoding priority based on correlation comparison according to claim 1, wherein when there are multiple video analysis tasks, each of the encoding blocks has a corresponding correlation for each video analysis task. Spend.
  6. 如权利要求1所述的基于相关度比较确定视频编码优先顺序的方法,其特征在于,所述确定各编码块对应的相关度包括:对所述各编码块进行数值修改确定各编码块与视频分析任务相关度。The method for determining video coding priority based on correlation degree comparison according to claim 1, wherein said determining the correlation degree corresponding to each coding block comprises: modifying the values of each coding block to determine the correlation between each coding block and the video coding block. Analyze task dependencies.
  7. 一种基于相关度比较确定视频解码优先顺序的方法,其特征在于,包括以下步骤:A method for determining video decoding priority order based on correlation comparison, is characterized in that, comprises the following steps:
    将编码顺序指示信息和视频数据转换成视频码流;Converting the encoding sequence indication information and video data into a video code stream;
    对所述视频码流解码供解码器进行解码,得到相应的图像帧。The video code stream is decoded for the decoder to decode to obtain corresponding image frames.
  8. 一种基于相关度比较确定视频编码优先顺序的装置,其特征在于,包括:A device for determining video coding priority based on correlation comparison, characterized in that it includes:
    确定模块,用于对各编码块进行数值修改确定各编码块与视频分析任务相关度;A determination module is used to modify the numerical value of each coding block to determine the correlation between each coding block and the video analysis task;
    比较模块,用于预设一参考阈值,将各编码块对应的相关度与该阈值比较;A comparison module, configured to preset a reference threshold, and compare the correlation corresponding to each coding block with the threshold;
    编码模块,用于选择相关度超过所述参考阈值的编码块优先编码。An encoding module, configured to select encoding blocks whose correlation degrees exceed the reference threshold and encode them preferentially.
  9. 如权利要求8所述的基于相关度比较确定视频编码优先顺序的装置,其特征在于,还包括分块模块,用于将整幅图像帧划分为一个或多个编码块,每个编码块是一个矩形区域包含整数个CTU。The device for determining video coding priority based on correlation comparison according to claim 8, further comprising a block module, which is used to divide the entire image frame into one or more coding blocks, and each coding block is A rectangular area contains an integer number of CTUs.
  10. 一种基于相关度比较确定视频解码优先顺序的装置,其特征在于,包括:A device for determining video decoding priority based on correlation comparison, characterized in that it includes:
    转换模块,用于将编码顺序指示信息和视频数据转换成视频码流;A conversion module, configured to convert the encoding sequence indication information and video data into a video code stream;
    解码模块,用于根据视频码流解码供解码器进行解码,得到相应的图像帧。The decoding module is used to decode the video code stream for the decoder to decode to obtain corresponding image frames.
PCT/CN2021/139138 2021-06-03 2021-12-17 Method and device for determining priority order of video encoding and decoding on basis of correlation comparison WO2022252567A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110617182.7A CN113079375B (en) 2021-06-03 2021-06-03 Method and device for determining video coding and decoding priority order based on correlation comparison
CN202110617182.7 2021-06-03

Publications (1)

Publication Number Publication Date
WO2022252567A1 true WO2022252567A1 (en) 2022-12-08

Family

ID=76616963

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139138 WO2022252567A1 (en) 2021-06-03 2021-12-17 Method and device for determining priority order of video encoding and decoding on basis of correlation comparison

Country Status (2)

Country Link
CN (1) CN113079375B (en)
WO (1) WO2022252567A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079375B (en) * 2021-06-03 2022-03-08 浙江智慧视频安防创新中心有限公司 Method and device for determining video coding and decoding priority order based on correlation comparison
CN113489983A (en) * 2021-06-11 2021-10-08 浙江智慧视频安防创新中心有限公司 Method and device for determining block coding parameters based on correlation comparison

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233283B1 (en) * 1998-06-23 2001-05-15 Lucent Technologies Inc. Layered video coding using perceptual coding criteria for error resilience in packet networks
CN101102495A (en) * 2007-07-26 2008-01-09 武汉大学 A video image decoding and encoding method and device based on area
CN101379831A (en) * 2006-02-24 2009-03-04 三星电子株式会社 Image coding/decoding method and apparatus
US20100124274A1 (en) * 2008-11-17 2010-05-20 Cheok Lai-Tee Analytics-modulated coding of surveillance video
CN105306945A (en) * 2014-07-10 2016-02-03 北京创鑫汇智科技发展有限责任公司 Scalable synopsis coding method and device for monitor video
CN113079375A (en) * 2021-06-03 2021-07-06 浙江智慧视频安防创新中心有限公司 Method and device for determining video coding and decoding priority order based on correlation comparison

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013181821A1 (en) * 2012-06-07 2013-12-12 Mediatek Singapore Pte. Ltd. Improved intra transform skip mode
CN104853196B (en) * 2014-02-18 2018-10-19 华为技术有限公司 Decoding method and device
CN108076345A (en) * 2016-11-09 2018-05-25 阿里巴巴集团控股有限公司 The coding method of multi-angle video frame, transmission method, device, computer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233283B1 (en) * 1998-06-23 2001-05-15 Lucent Technologies Inc. Layered video coding using perceptual coding criteria for error resilience in packet networks
CN101379831A (en) * 2006-02-24 2009-03-04 三星电子株式会社 Image coding/decoding method and apparatus
CN101102495A (en) * 2007-07-26 2008-01-09 武汉大学 A video image decoding and encoding method and device based on area
US20100124274A1 (en) * 2008-11-17 2010-05-20 Cheok Lai-Tee Analytics-modulated coding of surveillance video
CN105306945A (en) * 2014-07-10 2016-02-03 北京创鑫汇智科技发展有限责任公司 Scalable synopsis coding method and device for monitor video
CN113079375A (en) * 2021-06-03 2021-07-06 浙江智慧视频安防创新中心有限公司 Method and device for determining video coding and decoding priority order based on correlation comparison

Also Published As

Publication number Publication date
CN113079375A (en) 2021-07-06
CN113079375B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US11936884B2 (en) Coded-block-flag coding and derivation
US11412229B2 (en) Method and apparatus for video encoding and decoding
WO2022252567A1 (en) Method and device for determining priority order of video encoding and decoding on basis of correlation comparison
US11647196B2 (en) Method and apparatus for encoding image, method and apparatus for decoding image, electronic device, and system
US20190246107A1 (en) Encoding and decoding methods and corresponding devices
US20160323600A1 (en) Methods and Apparatus for Use of Adaptive Prediction Resolution in Video Coding
CN109688407B (en) Reference block selection method and device for coding unit, electronic equipment and storage medium
CN111316642B (en) Method and apparatus for signaling image coding and decoding partition information
WO2021004153A1 (en) Image prediction method, coder, decoder, and storage medium
WO2019085942A1 (en) Sao mode decision-making method, apparatus, electronic device and readable storage medium
US20190045185A1 (en) Coding tools for subjective quality improvements in video codecs
WO2020001325A1 (en) Image encoding method, decoding method, encoder, decoder and storage medium
WO2021037041A1 (en) Data decoding method and apparatus, and data coding method and apparatus
CN107454414B (en) Image encoding/decoding method and related device
MX2012004747A (en) Embedded graphics coding: reordered bitstream for parallel decoding.
US20230388491A1 (en) Colour component prediction method, encoder, decoder and storage medium
CN110996127B (en) Image encoding and decoding method, device and system
CN111432213A (en) Adaptive tile data size coding for video and image compression
JP7437426B2 (en) Inter prediction method and device, equipment, storage medium
CN108683915B (en) Method and device for writing dQP value and electronic equipment
WO2022166370A1 (en) Video encoding and decoding method and apparatus, computer program product, computer-readable storage medium, and electronic device
US10045022B2 (en) Adaptive content dependent intra prediction mode coding
US20210344924A1 (en) Method for processing information, encoder and decoder
CN116982262A (en) State transition for dependent quantization in video coding
CN109672889A (en) The method and device of the sequence data head of constraint

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21943919

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE