A video monitoring data compression method for oral correction

Through segmentation processing and redundant performance direction adjustment, the problem of low video data compression efficiency in the existing technology is solved, efficient compression of oral correction video monitoring data is achieved, and the effectiveness of the data is improved.

CN118646892BActive Publication Date: 2024-10-29YOUAN TECHNOLOGY (NANTONG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411111122.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-10-29
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

Existing video data compression technology cannot effectively achieve high-efficiency compression, resulting in low compression efficiency of video data. Especially in the process of oral correction, the storage and transmission needs of video monitoring data cannot be met.

Method used

By obtaining video data, determining the redundant expression direction of pixels after segmentation processing, adjusting the redundant expression direction of local areas, and correcting pixels according to the loss necessity value, thereby achieving efficient compression of video data. Specific steps include: obtaining video data, processing it in segments, determining the redundant presentation direction, adjusting the redundant presentation direction, correcting the video data, and performing compression.

Benefits of technology

It improves the compression efficiency of video data, achieves efficient compression of video data, avoids the loss of pixel information in key areas, and improves the effectiveness of video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646892B_ABST
    Figure CN118646892B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing, and in particular to a video surveillance data compression method for oral correction. The method comprises: firstly acquiring video data, the video data comprising data of at least two frames of images; then, according to the video data, determining the redundant representation of pixels in one frame of image in three channels respectively, and determining the redundant representation direction of the pixels according to the redundant representation, the redundant representation comprising the redundant representation of the pixels and the surrounding pixels in the same frame of image and the pixels at the same position in the adjacent frame of image; then, according to the redundant representation direction, adjusting the redundant representation direction of the pixels in each frame of image in each color channel; then, compressing the video data according to the redundant representation direction of each pixel in each color channel. By adjusting the redundant representation direction of pixels at different positions in the color channel during the compression process of the surveillance video, the compression efficiency of the video data is improved, and efficient compression of the video data is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of image processing, and in particular to a video monitoring data compression method for oral correction. Background Art

[0002] With the rapid development of computer technology and network communication technology, real-time visual communication, multimedia communication, video monitoring and other services are attracting more and more attention. For example, through oral technology, the treatment process of repairing uneven teeth, abnormal tooth shape, and abnormal tooth color. Generally, in the process of oral correction treatment, in order to avoid conflicts between doctors and patients, or to provide a teaching basis for oral correction practice, it is necessary to monitor the oral correction process by video and store the obtained monitoring video. Therefore, in order to meet the needs of data storage or video transmission, video data compression technology has become an urgent problem to be solved.

[0003] For the compression of video data, generally the focus is on the consistency of pixels within a frame of video or between consecutive frames of video, and the pixels with the same pixel value are statistically represented to achieve the compression of video data. The essence of the compression is the compression of redundant expressions in video images.

[0004] However, in general videos, the redundancy is limited, and conventional video data compression techniques cannot achieve efficient compression, resulting in low compression efficiency for video data. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a video monitoring data compression method for oral correction.

[0006] The present invention is achieved through the following technical solutions:

[0007] The present invention provides a video monitoring data compression method for oral correction, comprising:

[0008] Acquire video data, the video data including data of at least two frames of images; segment the video data, and determine the loss necessity value generated by compressing the pixel points according to each frame of the image in the same segment after segmentation;

[0009] Determine, according to the video data, redundant representations of pixels in a frame of image in three channels respectively, and determine redundant representation directions of the pixels according to the redundant representations, wherein the redundant representations include redundant representations of the pixels and surrounding pixels in the same frame of image or pixels at the same position in adjacent frame of image;

[0010] According to the redundant expression direction of the pixel points, the redundant expression direction of the local area in each frame image is obtained; according to the local redundant expression direction in each frame image and the loss necessity value, the pixel points are corrected to obtain corrected video data;

[0011] The video data is compressed based on the corrected video data.

[0012] Furthermore, the segmenting of the video data includes:

[0013] Performing cosine similarity processing on the Nth frame image and the images of all frames in the same segment to determine the N-1th cosine similarity value K, wherein the Nth frame image and the N-1th frame image in the same segment are adjacent frame images, N is an integer greater than 2, and the images of all frames in the same segment include consecutive adjacent frame images, and the cosine similarity value of each frame image is greater than a preset cosine similarity value;

[0014] If the N-1th cosine similarity value K is greater than the preset cosine similarity value, it is determined that the Nth frame image and the first frame image to the N-1th frame image are the same segment.

[0015] Furthermore, the determining of the loss necessity value caused by compressing the pixel points according to each frame image in the same segment after segmentation includes:

[0016] The necessity value of loss caused by compressing the ith pixel is determined based on the shortest distance between the ith pixel in a frame image and the edge of the image, and the difference in pixel values ​​between the ith pixel in the image and the pixel at the ith position corresponding to each frame image in an adjacent domain, wherein each frame image in the adjacent domain includes all images from the first frame image to the vth frame image, the vth frame image is adjacent to the one frame image, and the first frame image to the vth frame image and the one frame image are images of the same segment.

[0017] Furthermore, the determining of the loss necessity value caused by compressing the i-th pixel point includes:

[0018] Loss Necessity Value ,in, represents the shortest distance between the i-th pixel and the edge in the image, It indicates the difference in pixel value between the current i-th pixel and its nearest neighbor, the i-th pixel at the corresponding position in the v-th frame image. Indicates the most adjacent The frame video image reflects the loss necessity value of the i-th pixel.

[0019] Further, determining redundant representations of pixels in a frame of image in three channels respectively according to the video data, and determining redundant representation directions of the pixels according to the redundant representations, includes:

[0020] According to the number of pixels of the i-th pixel in the first channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, the redundant performance of the i-th pixel in the first channel is determined in the same frame or adjacent frames, and the number of pixels The number of pixels whose four neighborhoods of the i-th pixel point in the first channel image have the same pixel value as the i-th pixel point, and the x-th pixel point includes a pixel point whose pixel value difference with the i-th pixel point is less than a preset value;

[0021] According to the number of pixels of the i-th pixel in the second channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the second channel in the same frame or adjacent frames;

[0022] According to the number of pixels of the i-th pixel in the third channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the third channel in the same frame or adjacent frames;

[0023] The redundant expression direction of the i-th pixel is determined according to the redundant expression of the first channel, the redundant expression of the second channel and the redundant expression of the third channel.

[0024] Furthermore, the obtaining of the redundant expression direction of the local area in each frame image according to the redundant expression direction of the pixel points includes:

[0025] Get the redundant expression direction of all points in a frame of image;

[0026] Classifying the pixels in the frame of image with the same redundant expression direction into a class of pixels, and determining a connected domain formed by the class of pixels;

[0027] When it is determined that the connected domain is smaller than a preset connected domain value, the redundant expression direction of each pixel in the connected domain is adjusted to the redundant expression direction in an adjacent connected domain, and the adjacent connected domain is arranged adjacent to the connected domain; the redundant expression direction corresponding to the connected domain is the redundant expression direction of the local area.

[0028] Furthermore, the pixel points are corrected according to the local redundant expression direction in each frame image and the loss necessity value to obtain the corrected video data, including:

[0029] Determine the correction gain / loss value according to the loss necessity value of the i-th pixel point, the number of newly added pixels and the pixel value correction amount of the i-th pixel point , the number of newly added pixels includes the number of pixels with the same pixel value added in the current redundant expression direction after the current correction;

[0030] If the corrected profit or loss value If the normalized value of is greater than the preset value of the correction gain / loss value, it is determined that the pixel points in the area corresponding to the same redundant expression direction around the i-th pixel point are corrected;

[0031] If the corrected profit or loss value If the normalized value of is less than or equal to the preset value of the correction gain / loss value, it is determined that the pixel points in the area corresponding to the same redundant expression direction around the i-th pixel point will not be corrected;

[0032] Obtain corrected video data.

[0033] Furthermore, the corrected profit and loss value is ,in Represents the loss necessity value of the i-th pixel, Indicates the number of pixels with the same pixel value added in the current redundant expression direction after the current correction. Indicates the pixel value correction of the i-th pixel.

[0034] Compared with the prior art, the present invention has the following beneficial technical effects:

[0035] The video surveillance data compression method for oral correction provided by the present invention first obtains video data, wherein the video data includes data of at least two frames of images; then, according to the video data, determines the redundant performance of pixels in one frame of image in three channels respectively, and determines the redundant performance direction of the pixel according to the redundant performance, wherein the redundant performance includes the redundant performance of the pixel and surrounding pixels in the same frame of image or pixels at the same position in adjacent frames of image; then, obtains the redundant performance direction of the local area in each frame of image according to the redundant performance direction; then, according to the local redundant performance direction in each frame of image and the loss necessity value, corrects the pixel to obtain corrected video data, and compresses the video data according to the corrected video data. By adjusting the redundant performance direction of pixels at different positions in the color channel during the compression process of the surveillance video, the compression efficiency of the video data is improved, thereby realizing efficient compression of the video data. Furthermore, when adjusting, the loss of effective information of the original image after the adjustment of the redundant performance direction of the current pixel is considered, so as to avoid the correction of pixel information in the key area, thereby improving the effectiveness of the video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a flow chart of a video monitoring data compression method for oral correction according to an embodiment of the present invention;

[0037] Figure 2 It is a schematic diagram of the structure of a video monitoring data compression device for oral correction according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present invention is further described in detail below in conjunction with specific embodiments, which are intended to explain the present invention rather than to limit it.

[0039] An embodiment of the present invention provides a video surveillance data compression method for oral correction. The video surveillance data compression method for oral correction can be implemented by a video surveillance data compression device for oral correction. The device can be set in the video compression device or independently set outside the video compression device, and there is no limitation here.

[0040] Figure 1 FIG. 1 is a flow chart of a video surveillance data compression method for oral correction according to an embodiment of the present invention; Figure 1 As shown, the video monitoring data compression method for oral correction includes:

[0041] Step 101, obtaining video data, wherein the video data includes data of at least two frames of images; segmenting the video data, and determining a loss necessity value caused by compressing pixel points according to each frame image in the same segment after segmentation.

[0042] The video data in this embodiment includes data of at least two frames of images.

[0043] For example, a camera can be used to capture continuous images, that is, to obtain video data, and the obtained video data can be directly transmitted to the data management center. The video data includes continuous multiple frames of images. For example, during the oral correction process, the medical staff performing the correction wears a recording camera and uses the camera to capture video data of the oral correction process. The obtained video data is directly transmitted to the data management center, and compressed and stored in subsequent steps.

[0044] The redundant representation in this embodiment includes the redundant representation of the pixel point and the surrounding pixels in the same frame image or the pixels at the same position in adjacent frame images, and the three channels can be three color channels, namely, RGB channels.

[0045] Specifically, it is known that video data is composed of video frame images. In the actual video compression process, the similarity relationship between adjacent video frame images is mainly targeted to remove data redundancy formed by similar areas. To compress image data based on the similarity between adjacent video frame images, it is first necessary to select corresponding adjacent video frames, that is, to segment the video.

[0046] The purpose of video segmentation is to obtain multiple similar video frames, that is, the video frames contained in the same segment have high similarity.

[0047] That is to say, after the video data is acquired, the video data is segmented and processed, including:

[0048] Performing cosine similarity processing on the Nth frame image and the images of all frames in the same segment to determine the N-1th cosine similarity value K, wherein the Nth frame image and the N-1th frame image in the same segment are adjacent frame images, N is an integer greater than 2, and the images of all frames in the same segment include consecutive adjacent frame images, and the cosine similarity value of each frame image is greater than a preset cosine similarity value;

[0049] If the N-1th cosine similarity value K is greater than the preset cosine similarity value, it is determined that the Nth frame image and the first frame image to the N-1th frame image are the same segment.

[0050] For example, according to the sequence of video frames, we first calculate the cosine similarity K of adjacent frame images. When K is greater than 0.7 (empirical value), the corresponding adjacent frames are in the same segment. Then we expand the segment, that is, we calculate the cosine similarity K of the subsequent adjacent frames of the segment and all the video frames in the segment. When the minimum value of K is greater than 0.7 (empirical value), we expand the current adjacent frame into the current segment. And so on, we complete the segmentation of all video frames.

[0051] In this embodiment, by segmenting the surveillance video, segmented videos with higher similarity are obtained. In practice, the similarity between images in the segmented videos is simultaneously expressed as the same image or adjacent frame images. At this time, for the similarity of images in the same video, the present invention directly uses three-dimensional run-length coding to compress the segmented videos.

[0052] The necessity value of loss caused by compressing the pixel points is determined according to each frame image under the same segment after segmentation.

[0053] In general, during compression, the more continuous and consistent pixels there are in the same segmented video, the higher the compression efficiency. At this time, there may be some unimportant information in the video frame that destroys the continuous and consistent features in a single frame image, or destroys the continuous and consistent features of pixels between video frames. Therefore, in order to improve the compression efficiency in practice, it is first necessary to eliminate the influence of pixels that have a destructive effect on information continuity, that is, the loss necessity.

[0054] Determining the necessity value of loss caused by compressing the ith pixel point specifically includes: determining the necessity value of loss caused by compressing the ith pixel point based on the shortest distance between the ith pixel point in a frame image and the edge of the image, and the difference in pixel values ​​between the ith pixel point in the image and the ith position pixel points corresponding to each frame image in the adjacent domain, wherein each frame image in the adjacent domain includes all images from the first frame image to the vth frame image, the vth frame image is adjacent to the one frame image, and the first frame image to the vth frame image and the one frame image are images of the same segment.

[0055] For example, in a segmented video, the consistency of pixels is mainly manifested in the consistency of adjacent pixels in the same frame and the consistency of pixels at the same position in adjacent frames. At this time, the more consistent pixels there are, the more information can be compressed. In practice, adjacent positions and adjacent frames show more similarity of pixels. At this time, similar pixels are approximated to improve the compression rate of the video.

[0056] For approximate processing of similar pixels, lossy compression is performed. In order to ensure the integrity of the effective information of the video, it is necessary to first determine the necessity of different pixel loss. Generally, the closer the pixel is to the edge of the image, the more information the pixel reflects, and the less necessary its loss is. The greater the change of the pixel between adjacent frames, the greater the possibility that it reflects video operation information, and the less necessary its loss is. Based on this, the necessity value of pixel loss in the image is determined to be ,in Indicates the necessity of loss of the i-th pixel, Indicates the shortest distance between the ith pixel and the edge in the image. The edge is obtained by edge detection and has a length not less than a preset value. For example, the preset value is set to 40 empirical values. The larger it is, the greater the necessity of information loss of the i-th pixel. It represents the difference in pixel value between the current ith pixel and its nearest neighbor, the ith pixel at the vth frame. The larger the value, the less necessary it is to lose the ith pixel. Indicates the most adjacent The frame video image reflects the necessity of the i-th pixel loss, wherein the present invention For experience values, such as setting .

[0057] Step 102: Determine the redundant representation of pixels in a frame of image in three channels respectively according to the video data, and determine the redundant representation direction of the pixels according to the redundant representation.

[0058] In the segmented video, the adjacent similar pixels are approximated to achieve efficient video compression. It is known that the video frame image is represented by RGB three-channel information, and different channels have different redundancy representations. Because the three-channel information reflects the original video frame image information together, the change of a single channel information has little effect on the original information. Therefore, in the actual compression process, the redundancy of single or multiple channel information can be improved by adjusting and correcting the RGB three-channel information, thereby achieving efficient compression.

[0059] Preferably, determining the redundant representations of pixels in a frame of image in three channels respectively according to the video data, and determining the redundant representation direction of the pixels according to the redundant representations specifically includes:

[0060] According to the number of pixels of the i-th pixel in the first channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, the redundant performance of the i-th pixel in the first channel is determined in the same frame or adjacent frames, and the number of pixels The number of pixels whose four neighborhoods of the i-th pixel point in the first channel image have the same pixel value as the i-th pixel point, and the x-th pixel point includes a pixel point whose pixel value difference with the i-th pixel point is less than a preset value;

[0061] According to the number of pixels of the i-th pixel in the second channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the second channel in the same frame or adjacent frames;

[0062] According to the number of pixels of the i-th pixel in the third channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the third channel in the same frame or adjacent frames;

[0063] The redundant expression direction of the i-th pixel is determined according to the redundant expression of the first channel, the redundant expression of the second channel and the redundant expression of the third channel.

[0064] Among them, since the redundancy of the three-channel image information of the RGB image is analyzed, in this embodiment, the first channel image, the second channel image and the third channel image are respectively the image under the R channel, the image under the G channel and the image under the B channel.

[0065] For example, in a segmented video, the information redundancy of pixels at different positions is expressed differently, that is, the redundancy expressed by the consistency with surrounding pixels in the same frame image, or the information redundancy expressed by the consistency of pixels at the same position in adjacent frames. Therefore, before the actual redundancy adjustment, it is first necessary to determine the direction of the redundancy expressed by pixels at different positions.

[0066] It is known that image information is expressed in the three channels of RGB, so we first need to determine the redundancy of the three channels in the same frame or adjacent frames. The redundancy is expressed as actual redundancy and redundancy trend. That is, the more consecutive identical points of adjacent pixels in the same channel, the higher the information redundancy, and the smaller the continuous difference, the higher the redundancy trend. At this time, the redundancy expression in the R channel is determined based on the pixel value relationship of adjacent pixels in the same frame image, which is specifically expressed as ,in, Indicates the redundant representation of the i-th pixel in the R channel, It indicates the number of pixels whose four neighbors of the i-th pixel in the R channel image have the same pixel value as the i-th pixel. The larger the value, the higher the redundancy of the i-th pixel in the R channel. It indicates that in the u-th direction in its 4-neighborhood, the interval between the x-th pixel and the i-th pixel whose pixel value difference with the i-th pixel is less than H0. The larger its value is, the greater the redundancy trend of the x-th pixel is. It indicates the number of pixels whose pixel values ​​in the uth direction differ from those of the i-th pixel in its 4-neighborhood by less than H0. Indicates the number of directions contained in the 4-neighborhood of the i-th pixel; where H0=10 (empirical value), represents the necessity value of the x-th pixel loss. The larger its value is, the more real the corresponding redundancy trend is. Indicates the redundancy trend of the current u-th direction, It indicates the redundant trend of the four neighborhood directions.

[0067] Using the same method, the redundant expressions of the three channels of the pixel points in the same frame or adjacent frames are determined respectively, and the direction reflected by the maximum value of the redundant expression is the redundant expression direction of the corresponding pixel point.

[0068] The above steps are used to determine the redundant expression directions of different points. The actual redundancy and redundancy trends in different directions are analyzed at the same time, and the redundancy trend is used to reflect the ductility of the redundancy in the current direction, so that the subsequent steps can correct the current direction, that is, the subsequent correction has the highest redundancy effect, so as to facilitate efficient compression in the current redundant expression direction.

[0069] Step 103, according to the redundant expression direction of the pixel points, obtain the redundant expression direction of the local area in each frame image; according to the local redundant expression direction in each frame image and the loss necessity value, correct the pixel points to obtain corrected video data.

[0070] In this embodiment, after determining the redundant expression direction of the pixel points corresponding to each image in the segmented video frame image, in the actual compression process, the compression direction is determined by the redundant expression direction, and then the RGB three-channel information is adjusted and corrected to improve the real redundancy of the redundant expression direction, thereby improving the compression effect of the video.

[0071] Specifically, for the actual compression process of segmented videos, the redundant expression directions at different positions are different, so the compression directions at different positions are different. At this time, it is necessary to determine the local direction of video compression according to the redundant expression directions of multiple adjacent pixels, that is, to determine the adjustment directions of the RGB channels at different positions.

[0072] Preferably, redundant expression directions of all points in a frame of image are obtained; then, pixel points with the same redundant expression direction in the frame of image are classified into a category of pixel points, and a connected domain formed by the category of pixel points is determined; when it is determined that the connected domain is less than a preset connected domain value, the redundant expression direction of each pixel point in the connected domain is adjusted to the redundant expression direction in an adjacent connected domain, and the adjacent connected domain is arranged adjacent to the connected domain; the redundant expression direction corresponding to the connected domain is the redundant expression direction of the local area.

[0073] Further, the correction gain / loss value is determined according to the loss necessity value of the i-th pixel point, the number of newly added pixels and the pixel value correction amount of the i-th pixel point. The number of newly added pixels includes the number of pixels with the same pixel value added in the current redundant expression direction after the current correction. If the correction gain / loss value If the normalized value of is greater than the preset value of the correction gain / loss value, it is determined that the pixel points in the area corresponding to the same redundant expression direction around the i-th pixel point are corrected; if the correction gain / loss value If the normalized value of is less than or equal to the preset value of the correction gain / loss value, it is determined that no correction is performed on the pixels in the area corresponding to the same redundant expression direction around the i-th pixel.

[0074] For example, first determine the redundant expression direction of all points in a frame of image, then classify all points according to the redundant expression direction. At this time, the larger the connected domain formed by points of the same category, the clearer the local redundant expression direction of the current position. Then determine the size of the connected domain formed by the classification, and judge the area with a connected domain smaller than M0 as an area with unclear redundant expression direction. Then directly classify it as the connected domain with the closest distance and a connected domain larger than M0, that is, correct the redundant expression direction of the area. And so on, until the size of all connected domains is larger than M0, where M0 can be an empirical value, for example, set M0=30.

[0075] By using the above steps, the redundant expression direction of the local area is determined, wherein the redundant expression direction of a single point is corrected so that the redundant expression of the local area is made consistent, thereby facilitating the redundant compression of the local area in a consistent direction.

[0076] Furthermore, after determining the redundant expression directions at different positions of the video frame image, video compression is performed in the obtained redundant expression directions, that is, the actual redundancy of the redundant expression direction at the current position is increased. The specific process is as follows:

[0077] During the compression process, the redundant expression direction of a position is determined, and then in the area of ​​the current same redundant expression direction, the pixel value distribution of the three RGB channels is adjusted, that is, the pixel values ​​of the channels corresponding to the redundant expression direction are corrected to improve the consistency of the pixel values ​​in the current channel direction. In the correction process, the correction gain / loss value of the points that damage the redundant expression in the current direction is first determined. The more the increase in the number of continuous and consistent points in the current channel, the higher the correction gain / loss value. At the same time, the higher the loss necessity value of the correction point, the less damage to the original information after correction, and the higher the correction gain / loss value. The correction gain / loss value obtained in this way is ,in Indicates the loss necessity value of the i-th point. The larger its value is, the less damage the current correction will cause to the original image information, and the higher the correction gain or loss value will be. It indicates the number of pixels with the same pixel value added in the current redundant expression direction after the current correction. The larger the value, the higher the correction gain or loss value. Represents the pixel value correction amount of the ith pixel point. The larger the value, the more the image information is lost, and the lower the correction gain / loss value. The method for obtaining the pixel value correction amount of the ith pixel point is specifically to obtain the absolute value of the difference between the pixel value of the ith pixel point in the channel corresponding to the current redundant expression direction in the current frame image and the pixel value of the corresponding position pixel point in the adjacent previous frame image in the same channel.

[0078] According to the above steps, in the area corresponding to the same redundant expression direction in the image, the correction gain / loss values ​​of all points that damage the redundant expression are determined. At this time, the points that need to be corrected are determined by the size of the correction gain / loss values. Specifically, all points in the area of ​​the same redundant expression direction are first corrected. Normalize, directly use the maximum and minimum normalization method, input all , output the normalized result , at this time The point is adjusted, otherwise no adjustment is made. For example, set .

[0079] Similarly, all points at all positions in the segmented video are corrected using their redundant expression directions to obtain corrected video data.

[0080] Using the above steps, the RGB pixel channels of the pixel point are corrected, and the correction direction is consistent with the redundant performance of the current position, which improves the redundant performance of the video data in one direction, thereby improving the compression efficiency of the video. At the same time, the loss of effective information of the original image after the current point correction is considered, that is, the original video information is guaranteed to be relatively complete.

[0081] Step 104: compress the video data according to the corrected video data.

[0082] Specifically, the distribution of pixels at different positions in the segmented video in the RGB three channels is adjusted to increase the redundancy of a certain channel. At this time, in the adjusted video, the redundant expression direction at different positions is used to compress it, and the existing run-length encoding can be used to encode and compress the video data, which will not be repeated here.

[0083] This embodiment first obtains video data, which includes data of at least two frames of images; then, based on the video data, determines the redundant expressions of pixels in one frame of image in three channels respectively, and determines the redundant expression direction of the pixel according to the redundant expression, wherein the redundant expression includes the redundant expression of the pixel and surrounding pixels in the same frame of image or pixels at the same position in adjacent frames of image; then, based on the redundant expression direction of the pixel, obtains the local redundant expression direction in each frame of image to obtain corrected video data; then, compresses the video data according to the corrected video data. By adjusting the redundant expression direction of pixels at different positions in the color channel during the compression process of the surveillance video, the compression efficiency of the video data is improved, thereby realizing efficient compression of the video data. Furthermore, when adjusting, the loss of effective information of the original image after the adjustment of the redundant expression direction of the current pixel is considered to avoid the correction of pixel information in the key area, thereby improving the effectiveness of the video data.

[0084] Figure 2 FIG. 1 is a schematic diagram of the structure of a video monitoring data compression device for oral correction according to an embodiment of the present invention; Figure 2 As shown, the video monitoring data compression device for oral correction includes: an acquisition module 21, a processing module 22, an adjustment module 23 and a compression module 24; wherein:

[0085] The acquisition module 21 is used to acquire video data, wherein the video data includes data of at least two frames of images; segment the video data, and determine the loss necessity value generated by compressing the pixel points according to each frame of the image in the same segment after segmentation;

[0086] The processing module 22 is used to determine the redundant representation of the pixel points in a frame of image in three channels respectively according to the video data, and determine the redundant representation direction of the pixel points according to the redundant representation, wherein the redundant representation includes the redundant representation of the pixel points and the surrounding pixel points in the same frame of image or the pixel points at the same position in the adjacent frame of image, and the three channels include: RGB channels;

[0087] The adjustment module 23 is used to obtain the redundant expression direction of the local area in each frame image according to the redundant expression direction of the pixel point; correct the pixel point according to the local redundant expression direction in each frame image and the loss necessity value to obtain the corrected video data;

[0088] The compression module 24 is used to correct the video data and compress the video data.

[0089] The implementation principle of the embodiment of the present invention is Figure 1 The implementation principles of the illustrated embodiments are similar and will not be described in detail here.

[0090] In an embodiment of the present invention, by acquiring video data, the video data includes data of at least two frames of images; then, according to the video data, the redundant expressions of the pixels in one frame of image in three channels are determined, and the redundant expression direction of the pixels is determined according to the redundant expression, and the redundant expression includes the redundant expression of the pixels and the surrounding pixels in the same frame of image or the pixels at the same position in the adjacent frames of image; then, according to the redundant expression direction, the redundant expression direction of the local area in each frame of image is obtained to obtain the corrected video data; then, according to the corrected video data, the video data is compressed. By adjusting the redundant expression direction of the pixels at different positions in the color channel during the compression process of the surveillance video, the compression efficiency of the video data is improved, thereby achieving efficient compression of the video data.

[0091] Further, on the basis of the above embodiment, the processing module 22 is also used to perform cosine similarity processing on the Nth frame image and the images of all frames in the same segment to determine the N-1th cosine similarity value K, the Nth frame image and the N-1th frame image in the same segment are adjacent frame images, N is an integer greater than 2, the images of all frames in the same segment include continuous adjacent frame images, and the cosine similarity value of each frame image is greater than a preset cosine similarity value; if the N-1th cosine similarity value K is greater than the preset cosine similarity value, it is determined that the Nth frame image and the first frame image to the N-1th frame image are the same segment.

[0092] Preferably, on the basis of the above-mentioned embodiment, the processing module 22 is further used to determine the loss necessity value caused by compressing the ith pixel point according to the shortest distance between the ith pixel point in a frame image and the edge of the image, and the difference in pixel values ​​between the ith pixel point in the image and the pixel points at the ith position corresponding to each frame image in the adjacent domain, wherein each frame image in the adjacent domain includes all images from the first frame image to the vth frame image, the vth frame image is adjacent to the one frame image, and the first frame image to the vth frame image and the one frame image are images of the same segment.

[0093] In this embodiment, based on the above embodiment, the processing module 22 is specifically used to calculate the number of pixels of the i-th pixel in the first channel image. , and the redundant trend of the x-th pixel in the four neighborhood directions, the redundant performance of the i-th pixel in the first channel is determined in the same frame or adjacent frames, and the number of pixels The number of pixels whose four neighborhoods of the i-th pixel point in the first channel image are continuously equal to the pixel value of the i-th pixel point, and the x-th pixel point includes a pixel point whose pixel value difference with the i-th pixel point is less than a preset value; according to the number of pixels of the i-th pixel point in the second channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the second channel in the same frame or adjacent frames; according to the number of pixels of the i-th pixel in the third channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant expression of the ith pixel in the third channel in the same frame or adjacent frames; determine the redundant expression direction of the ith pixel according to the redundant expression of the first channel, the redundant expression of the second channel and the redundant expression of the third channel.

[0094] On the basis of the above embodiment, the adjustment module 23 is used to obtain the redundant expression direction of all points in a frame of image; classify the pixel points with the same redundant expression direction in the frame of image into a category of pixel points, and determine the connected domain formed by the category of pixel points; when it is determined that the connected domain is less than a preset connected domain value, adjust the redundant expression direction of each pixel point in the connected domain to the redundant expression direction in an adjacent connected domain, and the adjacent connected domain is set adjacent to the connected domain.

[0095] Further, based on the above embodiment, the adjustment module 23 is further used to determine the correction gain / loss value according to the loss necessity value of the i-th pixel point, the number of newly added pixels and the pixel value correction amount of the i-th pixel point. The number of newly added pixels includes the number of pixels with the same pixel value added in the current redundant expression direction after the current correction. If the correction gain / loss value If the normalized value of is greater than the preset value of the correction gain / loss value, it is determined that the pixel points in the area corresponding to the same redundant expression direction around the i-th pixel point are corrected; if the correction gain / loss value If the normalized value of is less than or equal to the preset value of the correction gain / loss value, it is determined that no correction is performed on the pixels in the area corresponding to the same redundant expression direction around the i-th pixel.

[0096] The implementation principle and technical effect of the embodiment of the present invention are Figure 1 The implementation principles and technical effects of the illustrated embodiments are similar and will not be described in detail here.

Claims

1. A video monitoring data compression method for oral correction, characterized in that: include: Acquire video data, where the video data includes data of at least two frames of images; The video data is segmented and the necessity value of the loss caused by compressing the pixel points is determined according to each frame image in the same segment after segmentation; Determine, according to the video data, redundant representations of pixels in a frame of image in three channels respectively, and determine redundant representation directions of the pixels according to the redundant representations, wherein the redundant representations include redundant representations of the pixels and surrounding pixels in the same frame of image or pixels at the same position in adjacent frame of image; According to the redundant expression direction of the pixel points, the redundant expression direction of the local area in each frame image is obtained; according to the local redundant expression direction in each frame image and the loss necessity value, the pixel points are corrected to obtain corrected video data; compressing the video data according to the corrected video data; The determining of the loss necessity value caused by compressing the pixel points according to each frame image in the same segment after segmentation includes: Determine the loss necessity value generated by compressing the i-th pixel according to the shortest distance between the i-th pixel in a frame of image and the edge of the image, and the pixel value difference between the i-th pixel in the frame of image and the pixel at the i-th position corresponding to each frame of image in the adjacent domain, wherein each frame of image in the adjacent domain includes all images from the first frame of image to the v-th frame of image, the v-th frame of image is adjacent to the one frame of image, and the first frame of image to the v-th frame of image and the one frame of image are images of the same segment; The obtaining of the redundant expression direction of the local area in each frame image according to the redundant expression direction of the pixel points includes: Get the redundant expression direction of all points in a frame of image; Classifying the pixels in the frame of image with the same redundant expression direction into a class of pixels, and determining a connected domain formed by the class of pixels; When it is determined that the connected domain is smaller than a preset connected domain value, the redundant expression direction of each pixel in the connected domain is adjusted to the redundant expression direction in an adjacent connected domain, and the adjacent connected domain is arranged adjacent to the connected domain; The redundant expression direction corresponding to the connected domain is the redundant expression direction of the local area.

2. The video surveillance data compression method for oral correction according to claim 1, characterized in that: The segmentation processing of the video data comprises: Performing cosine similarity processing on the Nth frame image and the images of all frames in the same segment to determine the N-1th cosine similarity value K, wherein the Nth frame image and the N-1th frame image in the same segment are adjacent frame images, N is an integer greater than 2, and the images of all frames in the same segment include consecutive adjacent frame images, and the cosine similarity value of each frame image is greater than a preset cosine similarity value; If the N-1th cosine similarity value K is greater than the preset cosine similarity value, it is determined that the Nth frame image and the first frame image to the N-1th frame image are the same segment.

3. The video surveillance data compression method for oral correction according to claim 1, characterized in that: The determining of the loss necessity value generated by compressing the i-th pixel point includes: The loss necessity value ,in, represents the shortest distance between the i-th pixel and the edge in the image, It indicates the difference in pixel value between the current i-th pixel and its nearest neighbor, the i-th pixel at the corresponding position in the v-th frame image. Indicates the most adjacent The frame video image reflects the loss necessity value of the i-th pixel.

4. The video surveillance data compression method for oral correction according to claim 1, characterized in that: Determining redundant representations of pixels in a frame of image in three channels respectively according to the video data, and determining redundant representation directions of the pixels according to the redundant representations, includes: According to the number of pixels of the i-th pixel in the first channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, the redundant performance of the i-th pixel in the first channel is determined in the same frame or adjacent frames, and the number of pixels The number of pixels whose four neighborhoods of the i-th pixel point in the first channel image have the same pixel value as the i-th pixel point, and the x-th pixel point includes a pixel point whose pixel value difference with the i-th pixel point is less than a preset value; According to the number of pixels of the i-th pixel in the second channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the second channel in the same frame or adjacent frames; According to the number of pixels of the i-th pixel in the third channel image , and the redundant trend of the x-th pixel in the four neighborhood directions, determine the redundant performance of the i-th pixel in the third channel in the same frame or adjacent frames; The redundant expression direction of the i-th pixel is determined according to the redundant expression of the first channel, the redundant expression of the second channel and the redundant expression of the third channel.

5. The video surveillance data compression method for oral correction according to claim 1, characterized in that: The step of correcting the pixel points according to the local redundant expression direction in each frame image and the loss necessity value to obtain the corrected video data includes: According to the loss necessity value of the i-th pixel point, the number of newly added pixels and the pixel value correction amount of the i-th pixel point, the correction gain or loss value is determined , the number of newly added pixels includes the number of pixels with the same pixel value added in the current redundant expression direction after the current correction; If the corrected profit or loss value If the normalized value of is greater than the preset value of the correction gain / loss value, it is determined that the pixel points in the area corresponding to the same redundant expression direction around the i-th pixel point are corrected; If the corrected profit or loss value If the normalized value of is less than or equal to the preset value of the correction gain / loss value, it is determined that the pixel points in the area corresponding to the same redundant expression direction around the i-th pixel point will not be corrected; Obtain corrected video data.

6. The video surveillance data compression method for oral correction according to claim 5, characterized in that: The corrected profit and loss value is ,in Represents the loss necessity value of the i-th pixel, Indicates the number of pixels with the same pixel value added in the current redundant expression direction after the current correction. Indicates the pixel value correction of the i-th pixel.

7. The video monitoring data compression method for oral correction according to claim 6, characterized in that: The method for obtaining the pixel value correction amount of the i-th pixel point is specifically as follows: In the channel corresponding to the i-th pixel in the current redundant expression direction, the absolute value of the difference between the pixel value of the i-th pixel in the channel in the current frame image and the pixel value of the corresponding position pixel in the adjacent previous frame image in the same channel is used as the pixel value correction amount of the i-th pixel.

8. The video monitoring data compression method for oral correction according to claim 5, characterized in that: The preset value of the corrected profit and loss value is 0.9.

Citation Information

Patent Citations

  • Image compression method and device and image decompression method and device

    CN114501011A

  • Data transmission method and hospital intelligent transmission system

    CN117014519A