Video dynamic coding compression method based on dynamic perception

Through dynamic sensing technology, the moving targets and influence ranges in the video data are obtained, heat maps are drawn and the compression ratio is adjusted, which solves the problem of detail loss and visual disharmony in video data compression, and achieves high-quality video data compression.

CN118433388BActive Publication Date: 2024-10-22SANLI VIDEO FREQUENCY SCI & TECH SHENZHEN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410883371.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-22
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Existing technologies will lose video information during the video data compression process, resulting in loss of details, degradation of picture quality, and a sense of visual disharmony between the foreground and background.

Method used

The video dynamic coding and compression method based on dynamic perception is used to obtain the dynamic perception points and influence range of the moving target, determine the perceived heat, draw a dynamic perception heat map, and divide the moving target area and heat map area according to the heat map to dynamically adjust the compression ratio Perform compression.

Benefits of technology

It effectively improves the compression quality of video data, ensures the details and quality of video data, and improves the compression effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433388B_ABST
    Figure CN118433388B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of Internet of Things data processing, and specifically to a video dynamic encoding compression method based on dynamic perception, including obtaining a dynamic perception point of each moving target in data to be compressed; obtaining an influence range of the dynamic perception point, and determining the perception heat corresponding to each position within the influence range; using the perception heat, determining a dynamic perception heat map of each frame of video data in the data to be compressed; using the dynamic perception heat map to divide a moving target area and a heat map area, and determining the corresponding target compression ratio, and then compressing the data to be compressed; that is, in the present application, by obtaining the dynamic perception point of each moving target in the data to be compressed and its influence range, and then determining the perception heat corresponding to each position within the influence range, and then determining the dynamic perception heat of each frame of video data, and then calculating the target compression ratio for compression, the compression effect of the video data can be effectively improved, and the details and quality of the compressed video data are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things data processing, and in particular to a video dynamic encoding compression method based on dynamic perception. Background Art

[0002] With the development of the information age, the application of video data is becoming more and more extensive. Road surveillance video is of great significance for maintaining traffic order, ensuring road safety, and improving the level of social security. Generally, video acquisition equipment such as cameras arranged at road intersections are used to collect information on the actual conditions of the road, and then the collected video data is further encoded and compressed through video processing such as video compression. Finally, the encoded and compressed road surveillance video is stored for the secondary use of the road surveillance video in the future.

[0003] Generally speaking, in order to save road monitoring video data for a longer period of time, the video needs to be compressed. In the compression process, the existing technology is a hybrid coding strategy using motion estimation and motion compensation, which is essentially a lossy compression that separates the foreground and background. Some video information will inevitably be lost to achieve a higher compression ratio, resulting in loss of details and reduced picture quality, as well as a visual disharmony between the foreground and background. Summary of the invention

[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a video dynamic encoding compression method based on dynamic perception, which can effectively improve the quality of compressed data.

[0005] The technical solution adopted is specifically as follows: providing a video dynamic encoding compression method based on dynamic perception, including: obtaining the dynamic perception point of each moving target in the data to be compressed; obtaining the influence range of the dynamic perception point, and determining the perception heat of each dynamic perception point within the influence range; using the perception heat, determining the dynamic perception heat map of each frame of video data in the data to be compressed; using the dynamic perception heat map to divide the moving target area and the heat map area, and determining the target compression ratio of the moving target area and the heat map area, and then compressing the data to be compressed according to the target compression ratio.

[0006] In one embodiment of the present application, the obtaining of the dynamic perception points of each moving target in the data to be compressed includes: obtaining the data to be compressed and preprocessing the data to be compressed; dynamically sensing and analyzing the preprocessed data to be compressed to obtain the dynamic perception points of each moving target in the data to be compressed and the corresponding movement direction.

[0007] In one embodiment of the present application, the data to be compressed is obtained and preprocessed, including: filtering and enhancing each frame of video data in the original video data, and then using spatial redundancy to perform spatial redundancy on the enhanced video data to obtain the data to be compressed.

[0008] In one embodiment of the present application, the preprocessed data to be compressed is dynamically sensed and analyzed to obtain the dynamic perception point and the corresponding motion direction of each moving target in the data to be compressed, including: extracting at least two consecutive frames of video data in the data to be compressed; performing motion estimation on at least two frames of the video data to determine the moving targets and the corresponding motion directions in the data to be compressed; performing centroid position fitting using the pixel points of the moving targets to determine the centroid position of each of the moving targets; marking the centroid position in at least two frames of video data as the dynamic perception point of the moving target.

[0009] In one embodiment of the present application, obtaining the influence range of the dynamic perception point and determining the perceived heat of each of the dynamic perception points within the influence range includes: obtaining the maximum margin of the moving target, the first total pixel value of the moving target, and the second total pixel value of the current frame video data; determining the influence range with the first total pixel value, the second total pixel value, and the longest margin, wherein the influence range is the area outside the movement of the target; performing spatial domain information analysis on the influence range to obtain the information prominence of the influence range; and using the information prominence to determine the perceived heat between different positions within the influence range of each of the dynamic perception points.

[0010] In one embodiment of the present application, the spatial domain information analysis of the influence range to obtain the information prominence of the influence range includes: obtaining a first grayscale histogram of the dynamic perception point within the influence range, and a second grayscale histogram of the moving target within the influence range; using the first grayscale histogram and the second grayscale histogram to determine the distribution difference of different grayscale levels; using the distribution difference and the clustering characteristics of pixel points to determine the information prominence of the influence range.

[0011] In one embodiment of the present application, the information prominence of the influence range is determined by utilizing the distribution difference and the clustering characteristics of pixel points, including: obtaining the area of ​​each connected domain of the grayscale value corresponding to the distribution difference within the influence range, and then obtaining the average area of ​​the connected domain; and determining the information prominence by utilizing the distribution difference and the average area of ​​the connected domain.

[0012] In one embodiment of the present application, the use of the information prominence to determine the perceived heat between different positions within the influence range of each of the dynamic perception points includes: obtaining a first distance between different positions within the influence range; and using the information prominence and the first distance to determine the perceived heat between different positions within the influence range of each of the dynamic perception points.

[0013] In one embodiment of the present application, the use of the perceived heat to determine the dynamic perceived heat map of each frame of video data in the data to be compressed includes: obtaining the perceived heat of all pixels within the influence range of each dynamic perceived point and normalizing it; performing channel mapping in the HSV space on the normalized perceived heat to determine the channel values ​​corresponding to different perceived heats; and using the channel values ​​to color the pixels within the perceived range to obtain the dynamic perceived heat map of each frame of video data.

[0014] In one embodiment of the present application, the dynamic perception heat map is used to divide the moving target area and the heat map area, and the target compression ratio of the moving target area and the heat map area is determined, and then the data to be compressed is compressed according to the target compression ratio, including: using the dynamic perception heat map to divide each frame of video data of the data to be compressed into a moving target area and a heat map area; allocating compression ratios to the moving target area and the heat map area, and obtaining the image quality at each compression ratio; dynamically adjusting the compression ratio according to the image quality to determine the target compression ratio, and then compressing the data to be compressed according to the target compression ratio.

[0015] The present invention has the following beneficial effects: utilizing a dynamic perception method to obtain the dynamic perception points of each moving target in the data to be compressed, determining the influence range and perception heat corresponding to the dynamic perception points, and drawing a perception heat map, and then determining the compression ratio for different areas based on perception compensation, and then compressing the data to be compressed according to the determined compression ratio, thereby ensuring the details and quality of the video data and effectively improving the compression effect of the video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flowchart of a video dynamic encoding and compression method based on dynamic perception is provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a video dynamic encoding compression method based on dynamic perception proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0019] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0020] A specific scheme of a video dynamic encoding compression method based on dynamic perception provided by the present invention is described in detail below with reference to the accompanying drawings.

[0021] See also Figure 1 , which shows a flowchart of a video dynamic encoding compression method based on dynamic perception provided by an embodiment of the present invention.

[0022] The video dynamic coding compression method based on dynamic perception in the present application may include the following steps:

[0023] S10, obtaining a dynamic perception point of each moving target in the data to be compressed.

[0024] The data to be compressed may be video data, image data, etc. The moving target is an object that is displaced in the video data. The dynamic perception point is the centroid position of all pixel points corresponding to the moving target, that is, the mean value of the coordinates of all pixel points of the moving target.

[0025] Specifically, the data to be compressed is obtained, and after preprocessing such as noise reduction, information enhancement, and spatial redundancy removal, continuous frame video data is extracted from the compressed data, and dynamic estimation is then performed based on the continuous frame video data. That is, based on the changes between the first frame video data and the second frame video data, the moving target and the moving direction corresponding to the moving target are obtained, and all pixel points of the moving target in the second frame data are used to fit the centroid position, and the mean value of all pixel points of the moving target is determined as the dynamic perception point of the moving target.

[0026] S20, obtaining the influence range of the dynamic perception point, and determining the perception heat corresponding to each position within the influence range.

[0027] Among them, the influence range is a circle determined by the dynamic perception point as the center, based on the longest margin of the moving target and the total number of pixels. It can be understood that the area of ​​the moving target itself does not belong to the influence range; perceived heat refers to the information prominence corresponding to the distribution difference between the moving target and the corresponding color within the influence range. The greater the distribution difference, the greater the information prominence, the greater the perceived heat, and vice versa.

[0028] Specifically, after obtaining the dynamic perception point of each moving target, the influence range of the dynamic perception point is determined based on the longest margin of the moving target and the total number of pixels, and then the moving object area and the influence range corresponding to the moving target are used to determine the color distribution difference, and then the information prominence is determined, and the information prominence is used to determine the perceived heat at different positions within the influence range, that is, the perceived heat corresponding to each pixel point within the influence range.

[0029] S30. Determine a dynamic perceptual heat map of each frame of video data in the data to be compressed by using the perceptual heat.

[0030] The dynamic perceptual heat map is obtained by normalizing and mapping the perceptual heat at each position within the influence range in each frame of video data.

[0031] Specifically, after obtaining the perceived heat at different positions within the influence range, the perceived heat is used for normalization, and the perceived heat after normalization is subjected to channel mapping in the HSV space to obtain channel values ​​corresponding to different perceived heats, and then the pixel points within the influence range are colored.

[0032] S40, using the dynamic perception heat map to divide the motion target area and the heat map area, and determining the target compression ratio of the motion target area and the heat map area, and then compressing the data to be compressed according to the target compression ratio.

[0033] The moving target area is the area where the moving target itself is located, and the heat map area is the area corresponding to the perception range.

[0034] Specifically, after obtaining the dynamic perception heat map of each frame of video data, the dynamic perception heat map can be used to divide the moving target area according to the area occupied by the moving target itself, and to divide the heat map area according to the influence range, and then dynamically adjust and allocate the compression ratio of the moving target area and the heat map area, and determine the target compression ratio based on the image quality after compression, that is, determine the compression ratio corresponding to the moving target area and the heat map area of ​​each frame of video data, and then compress the data to be compressed according to the target compression ratio.

[0035] In this embodiment, the dynamic perception points of each moving target in the data to be compressed are obtained, and the influence range of each dynamic perception point is determined, and then the perception heat corresponding to each position in the influence range is determined, and then the dynamic perception heat of each frame of video data is determined, and then the target compression ratio of the moving target area and the heat map area divided by the dynamic perception heat map is calculated, and finally the data to be compressed is compressed according to the target compression ratio, which ensures the details and quality of the compressed video data, and can effectively improve the compression effect of the video data.

[0036] Furthermore, executing step S10, ie obtaining the dynamic perception point of each moving target in the data to be compressed, may further include the following steps.

[0037] Obtain the data to be compressed and preprocess the data to be compressed.

[0038] The data to be compressed may be video data or image data; the preprocessing may include filtering, information enhancement, spatial redundancy and other operations.

[0039] Specifically, the original data is acquired through an image acquisition device. The following part takes video data as an example, that is, the original video data is acquired, and the original video data is extracted to obtain each frame of video data, wherein the frame extraction method can be frame extraction using video processing software; each frame of video data is filtered using a filtering method to filter out noise in the original video and retain the information edge in the original video, wherein the filtering method can be a general filtering method, such as a bilateral algorithm; then the filtered video data is enhanced using an image enhancement method to obtain enhanced video data, wherein the image enhancement method can be a general image enhancement method, such as a histogram enhancement algorithm; and then a spatial redundancy algorithm is used to remove spatial redundancy from the enhanced video data, wherein the spatial redundancy algorithm can be a spatial redundancy algorithm related to color sensitivity, such as a spatial redundancy algorithm related to color sensitivity of the user's eyes.

[0040] In some embodiments, the data to be compressed may cover the entire monitoring area and avoid being blocked by obstructions; for example, vehicle driving trajectories, pedestrian traffic conditions, etc. may be collected.

[0041] Furthermore, the preprocessed data to be compressed is dynamically sensed and analyzed to obtain the dynamic sensed points and corresponding movement directions of each moving target in the data to be compressed.

[0042] Specifically, at least two consecutive frames of video data may be extracted from the pre-processed data to be compressed. The following description is made with two frames of video data, namely, a first frame of video data and a second frame of video data.

[0043] Then, motion estimation is performed using the second frame video data and the first frame video data to obtain a moving target in the data to be compressed and a moving direction corresponding to the moving target, wherein the motion estimation can adopt a general motion estimation method, such as an optical flow method.

[0044] Then, the pixel points of the moving target on the second frame video data are obtained, and the centroid position fitting calculation is performed using the coordinates of all the pixel points corresponding to the moving target in the second frame video data; that is, the average of all the pixel point coordinates of each moving target in the second frame video data is used as the centroid position.

[0045] The centroid position is calculated as follows: .

[0046] .

[0047] in, and The first Pixels Coordinates and Coordinates, then the coordinates of the centroid are (x, y).

[0048] Next, the centroid position is marked in at least two frames of video data, and the marked position is used as a dynamic perception point of the second frame of video data.

[0049] It can be understood that if the first frame of video data and the second frame of video data contain multiple moving targets, each moving target has a corresponding dynamic perception point, and the dynamic perception point is calculated using the above calculation method.

[0050] In some embodiments, before obtaining the centroid position, the process may also include: segmenting the moving target in the second frame video data and marking its position, and then in obtaining the centroid position, directly performing centroid position fitting on all pixel points corresponding to the position mark in the second frame video data; wherein, the segmentation method may adopt a commonly used segmentation method, such as semantic segmentation algorithm for segmentation.

[0051] In this embodiment, by dynamically sensing and analyzing continuous frame video data in the data to be compressed, regular objects or irregular objects in the data to be compressed can be dynamically sensed in a pixelated manner, which has a wide range of applications and is convenient for subsequent analysis and compression. The dynamic sensing points and the movement direction of each moving target in the data to be compressed, that is, the movement direction of the dynamic sensing points, can be obtained, providing highly accurate dynamic sensing points and their movement directions, while providing a basis for subsequent high-quality analysis.

[0052] Further, step S20 is executed to obtain the influence range of the dynamic perception point and determine the perceived heat corresponding to each position within the influence range.

[0053] Among them, when the user's eyes watch video data, visual concentration is based on a fixation point, and then radiates to the surroundings based on the fixation point as the field of view. Therefore, the influence range corresponding to the dynamic perception point of each moving target can be calculated by the size proportion of the moving target in the current frame video data, and then the spatial domain information analysis method can be used to determine the perceived heat within the influence range corresponding to each dynamic perception point within the influence range.

[0054] Specifically, the steps include:

[0055] First, obtain the maximum margin of the moving target, the first total pixel value of the moving target, and the second total pixel value of the current frame video data; determine the influence range with the first total pixel value, the second total pixel value, and the longest margin, wherein the influence range is the area outside the target movement.

[0056] The larger the area of ​​the overall shape of the moving object in the video data is, the larger the visual field of the user's eyes will be when viewing the video data with the moving object as the visual fixation point.

[0057] Specifically, the dynamic perception point of the moving target is used as the visual fixation point, and the influence range of each dynamic perception point is calculated by utilizing the proportion of the overall shape of the moving target in the video data; that is, the influence range of each dynamic perception point is calculated by utilizing the first total pixel value of all pixels of the moving target, the second total pixel value of all pixels of the current frame video data, and the maximum edge moment of the moving target; the longest margin can be obtained by semantic segmentation.

[0058] The impact range is calculated as follows: .

[0059] in, is the radius of the impact range, Indicates the longest margin of the moving target; Represents the first total pixel value of all pixels of the moving target, Indicates the second total pixel value of all pixels in the current frame video time.

[0060] The larger the moving target is, the larger the corresponding impact range is; then, in the current frame video data, with the dynamic perception point as the center, The entire area as the radius is taken as the influence range of the dynamic perception point; it can be understood that the influence range of the dynamic perception point does not include the main body area of ​​the moving target.

[0061] Next, the spatial domain information analysis of the impact range is performed to obtain the information prominence of the impact range.

[0062] Among them, the actual focus points of different areas may be different, and under normal circumstances, the user's eyes pay more attention to the area within the dynamic perception range that is closer to the moving target. However, if within the dynamic perception range, there are areas with strong contrast with the moving target or within the dynamic perception range, such as areas with obvious grayscale value differences, then these areas are also areas of high focus for the user's eyes. Therefore, it is necessary to analyze all pixel points within the dynamic perception point range to obtain the information prominence of each grayscale value.

[0063] Furthermore, obtaining the information prominence may include the following steps:

[0064] A first grayscale histogram of the dynamic perception point within the influence range and a second grayscale histogram of the moving target within the influence range are obtained.

[0065] Specifically, by analyzing the histogram, the moving target has a strong contrast with the position within the influence range, and some grayscale values ​​only exist within the influence range of the dynamic perception point, and are not common pixels within the influence range of the dynamic perception point. Such pixels have a strong visual contrast with the moving object. For example, when a vehicle is driving, although the zebra crossing on the road next to it is static, it has obvious color differences from the vehicle and the road, so the corresponding information is more prominent; therefore, the first grayscale histogram of the dynamic perception point within the influence range and the second grayscale histogram of the moving target within the influence range are obtained respectively.

[0066] Next, the distribution difference of different gray levels is determined using the first gray histogram and the second gray histogram.

[0067] Specifically, the gray value is determined Is there a significant difference between the number of points within the influence range of the dynamic perception point and the number of points in the area where the moving target is located? If so, the gray value There is a big difference between the area where the moving target is located and the influence range of the dynamic perception point, and the visual contrast is obvious; then judge the gray value Is it common within the influence range of the dynamic perception point? If so, it means that although there is a difference from the moving target, it is not prominent enough compared with the surrounding scenes and does not need to be overly concerned.

[0068] The distribution difference is calculated as follows:

[0069] in, For the distribution difference, Represents grayscale value The difference between the number within the influence range of the dynamic perception point and the number in the area where the moving target is located; Represents grayscale value Whether it is common within the dynamic perception range, that is, the larger the parameter, the more common it is; is the gray value within the influence range of the dynamic perception point The number of pixels; The gray value of the moving target is The number of pixels; is the number of pixels within the influence range of the dynamic perception point.

[0070] Then, the information prominence of the impact range is determined by using the distribution difference and the clustering characteristics of the pixels.

[0071] That is, the information prominence of each gray value is calculated by using the distribution difference of gray levels and the clustering characteristics of pixels with the same gray level.

[0072] Specifically, the following steps may be included:

[0073] The area of ​​each connected domain of the gray value corresponding to the distribution difference within the influence range is obtained, and then the average area of ​​the connected domain is obtained.

[0074] Among them, the gray value There can be multiple connected domains, so it is necessary to comprehensively calculate all connected domains to obtain the average area of ​​the connected domains. , that is, there are only gray values ​​in the connected domain Pixels.

[0075] Then, the information prominence is determined using the distribution difference and the average value of the connected domain area.

[0076] Among them, the gray value is The greater the distribution difference of the pixels, and when it is not a discrete distribution but a clustered distribution, the corresponding attention should be higher, and the gray value is The pixels are discretely distributed within the influence range of the dynamic perception point, the visual cohesion is not strong, and the contrast with the moving target is not obvious, then the attention is lower, and vice versa.

[0077] The calculation of information prominence is as follows:

[0078] in, is the information prominence, For the distribution difference, is the average area of ​​the connected domain.

[0079] Next, the information prominence is used to determine the perceived heat between different positions within the influence range of each dynamic perception point.

[0080] Specifically, the following steps may be included:

[0081] The first distances between different positions within the influence range and the dynamic perception point are obtained.

[0082] That is, the position coordinates of point m within the influence range of the dynamic perception point and the position coordinates of the dynamic perception point o are obtained, and then the first distance between point m and point o is determined, wherein the first distance may be the Euclidean distance.

[0083] The information prominence and the first distance are used to determine the perceived heat between different positions within the influence range of each dynamic perception point.

[0084] Then, the perceived heat of point m within the influence range is determined based on the information prominence corresponding to point m and the first distance between point m and the dynamic perception point o. The calculation process is as follows:

[0085] in, The perceived heat of point m within the influence range, is the first distance between point m and the dynamic perception point o, is the information prominence corresponding to the grayscale value of the pixel at point m.

[0086] That is, the higher the information prominence of the pixel point m, the closer the distance between point m and the dynamic perception point, which means that the possibility of point m being paid attention to is higher, and the corresponding perceived heat is stronger; conversely, the lower the information prominence of the pixel point m, the farther the distance between point m and the dynamic perception point, which means that the possibility of point m being paid attention to is lower, and the corresponding perceived heat is lower.

[0087] Further, step S30 is executed, that is, using the perceived heat, a dynamic perceived heat map of each frame of video data in the data to be compressed is determined.

[0088] The specific steps include:

[0089] The perceived heat of all pixels within the influence range of each dynamic perception point is obtained and normalized.

[0090] Among them, the influence range of each dynamic perception point may include many pixels. Therefore, it is necessary to obtain the perceived heat of all pixels within the influence range of each dynamic perception point and perform normalization processing. The calculation process of normalization processing is as follows:

[0091] in, After normalization The perceived heat of the point, is the minimum perceived heat within the influence range of the dynamic perception point, It is the maximum perceived heat within the influence range of the dynamic perception point.

[0092] Then, the normalized perceived heat is subjected to channel mapping in the HSV space to determine the channel values ​​corresponding to different perceived heats.

[0093] Among them, the HSV space is the H, S, V three-dimensional color space, and channel mapping is about to convert color information from RGB values ​​to HSV values.

[0094] Specifically, the normalized perceived heat is mapped to the H channel of the HSV space, and then the H channel values ​​corresponding to different perceived heats, that is, the color values, are obtained.

[0095] The mapping is calculated as follows:

[0096] in, express The color value corresponding to the perceived heat of the point, Indicates the floor symbol.

[0097] Next, the channel values ​​are used to color the pixels within the perception range to obtain a dynamic perception heat map for each frame of video data.

[0098] Among them, because each frame of video data can have many dynamic perception points, each dynamic perception point has a corresponding perception range, and there are many pixels in the perception range, therefore, after obtaining the perception heat of the pixels in the perception range and performing channel mapping, the obtained channel values ​​can be used to color the pixels in the perception range, thereby obtaining a dynamic perception heat map for each frame of video data, and finally obtaining a dynamic perception heat map corresponding to multiple frames of video data in the data to be compressed.

[0099] Further, step S40 is executed, that is, the motion target area and the heat map area are divided by using the dynamic perception heat map, and the target compression ratio of the motion target area and the heat map area is determined, and then the data to be compressed is compressed according to the target compression ratio.

[0100] The specific steps include:

[0101] Using the dynamic perception heat map, each frame of video data to be compressed is divided into a motion target area and a heat map area.

[0102] Among them, the dynamic perception heat map corresponds to the influence range of the dynamic perception point in the video data, and does not include the moving target itself. Therefore, based on the dynamic perception heat map, each frame of video data can be divided into a moving target area corresponding to the moving target itself and a heat map area corresponding to the influence range.

[0103] Then, compression ratios are assigned to the moving target area and the heat map area, and the image quality at each compression ratio is obtained.

[0104] Specifically, the maximum compression ratio of the current compressed video data can be determined first, an initial compression ratio can be set, and then the motion target area and heat map area of ​​each frame of video data can be allocated according to the initial compression ratio, and the image quality after compression can be estimated to obtain the estimated result of the image quality of each frame of video data after compression under the compression ratio.

[0105] Next, the compression ratio is dynamically adjusted according to the image quality to determine the target compression ratio of each frame of video data, and then the data to be compressed is compressed according to the target compression ratio.

[0106] That is, the compression ratio is dynamically adjusted and allocated to obtain the image quality corresponding to multiple compression ratios, that is, the initial compression ratio is dynamically adjusted to perform iterative cycles, and the compression ratio corresponding to the best image quality after compression is determined as the target compression ratio, that is, the target compression ratio of each frame of video data is determined; and then according to the target compression ratio of the motion target area and the heat map area, the compression parameters are adaptively adjusted to compress the data to be compressed, that is, the video data to be compressed is compressed.

[0107] In this embodiment, a dynamic perception method is used to obtain the dynamic perception points of each moving target in the data to be compressed, determine the influence range and perception heat corresponding to the dynamic perception points, and draw a perception heat map. Then, based on perception compensation, the compression ratio is determined for different areas, and then the data to be compressed is compressed according to the determined compression ratio, thereby ensuring the details and quality of the video data and effectively improving the compression effect of the video data.

[0108] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0109] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. Video dynamic coding compression method based on dynamic perception, It is characterized in that The method comprises: Obtaining the dynamic perception point of each moving target in the data to be compressed; Obtaining the influence range of the dynamic perception point, and determining the perceived heat corresponding to each position within the influence range; Determine a dynamic perceptual heat map of each frame of video data in the data to be compressed by using the perceptual heat; Using the dynamic perception heat map to divide the moving target area and the heat map area, and determining the target compression ratio of the moving target area and the heat map area, and then compressing the data to be compressed according to the target compression ratio; The step of obtaining the dynamic perception point of each moving target in the data to be compressed includes: Acquire data to be compressed, and preprocess the data to be compressed; Dynamically sensing and analyzing the preprocessed data to be compressed to obtain a dynamic sensing point and a corresponding motion direction of each moving target in the data to be compressed; the dynamic sensing point is the average value of the coordinates of all pixel points of the moving target; The obtaining the influence range of the dynamic perception point and determining the perceived heat corresponding to each position within the influence range includes: Acquire the maximum margin of the moving target, the first total pixel value of the moving target, and the second total pixel value of the current frame video data; determine the influence range by using the first total pixel value, the second total pixel value, and the maximum margin, wherein the influence range is an area outside the moving target; Performing spatial domain information analysis on the impact range to obtain information prominence of the impact range; Determine the perceived heat between different positions within the influence range of each of the dynamic perception points using the information prominence; The step of using the perceived heat to determine a dynamic perceived heat map of each frame of video data in the data to be compressed includes: Obtaining the perceived heat of all pixels within the influence range of each dynamic perception point and performing normalization processing; Perform channel mapping of the normalized perceived heat in the HSV space to determine the channel values ​​corresponding to different perceived heats; The pixel points within the influence range are colored using the channel values ​​to obtain the dynamic perception heat map of each frame of video data.

2. The video dynamic coding compression method based on dynamic perception according to claim 1, It is characterized in that The step of obtaining the data to be compressed and preprocessing the data to be compressed includes: Each frame of video data in the original video data is filtered and enhanced, and then the spatial redundancy algorithm is used to perform spatial redundancy on the enhanced video data to obtain the data to be compressed.

3. The video dynamic coding compression method based on dynamic perception according to claim 1, It is characterized in that The step of dynamically sensing and analyzing the preprocessed data to be compressed to obtain a dynamic sensing point and a corresponding motion direction of each moving target in the data to be compressed includes: Extracting at least two consecutive frames of video data from the data to be compressed; Performing motion estimation on at least two frames of the video data to determine a moving target and a corresponding moving direction in the data to be compressed; Using the pixel points of the moving objects to perform centroid position fitting to determine the centroid position of each moving object; The centroid position is marked in at least two frames of video data and used as a dynamic perception point of the moving object.

4. The video dynamic coding compression method based on dynamic perception according to claim 1, It is characterized in that The performing spatial domain information analysis on the impact range to obtain information prominence of the impact range includes: Acquire a first grayscale histogram of the dynamic perception point within the influence range, and a second grayscale histogram of the moving target within the influence range; Determining distribution differences of different gray levels using the first gray histogram and the second gray histogram; The information prominence of the impact range is determined by utilizing the distribution difference and the clustering characteristics of the pixel points.

5. The video dynamic coding compression method based on dynamic perception according to claim 4, It is characterized in that The determining the information prominence of the impact range by utilizing the distribution difference and the clustering characteristics of the pixel points includes: Obtain the area of ​​each connected domain of the gray value corresponding to the distribution difference within the influence range, and then obtain the average area of ​​the connected domain; The information prominence is determined by using the distribution difference and the average value of the connected domain area.

6. The video dynamic coding compression method based on dynamic perception according to claim 1, It is characterized in that Determining the perceived heat between different positions within the influence range of each dynamic perception point by using the information prominence includes: Acquire a first distance between different positions within the influence range and the dynamic sensing point; The perceived heat between different positions within the influence range of each of the dynamic perception points is determined by using the information prominence and the first distance.

7. The video dynamic coding compression method based on dynamic perception according to claim 1, It is characterized in that The method of dividing the moving target area and the heat map area by using the dynamic perception heat map, and determining the target compression ratio of the moving target area and the heat map area, and then compressing the data to be compressed according to the target compression ratio, includes: Using the dynamic perception heat map, each frame of video data of the data to be compressed is divided into a motion target area and a heat map area; Allocating compression ratios to the moving target area and the heat map area, and obtaining image quality at each compression ratio; The compression ratio is dynamically adjusted according to the image quality to determine a target compression ratio for each frame of video data, and then the data to be compressed is compressed according to the target compression ratio.