CN116600137A - Video image compression storage or decompression method, device, equipment and medium - Google Patents

Video image compression storage or decompression method, device, equipment and medium Download PDF

Info

Publication number
CN116600137A
CN116600137A CN202310872436.9A CN202310872436A CN116600137A CN 116600137 A CN116600137 A CN 116600137A CN 202310872436 A CN202310872436 A CN 202310872436A CN 116600137 A CN116600137 A CN 116600137A
Authority
CN
China
Prior art keywords
image data
detected
video image
target image
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310872436.9A
Other languages
Chinese (zh)
Other versions
CN116600137B (en
Inventor
詹澄海
曾水生
涂华康
韦玉善
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dongming Juchuang Electronics Co ltd
Original Assignee
Shenzhen Dongming Juchuang Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dongming Juchuang Electronics Co ltd filed Critical Shenzhen Dongming Juchuang Electronics Co ltd
Priority to CN202310872436.9A priority Critical patent/CN116600137B/en
Publication of CN116600137A publication Critical patent/CN116600137A/en
Application granted granted Critical
Publication of CN116600137B publication Critical patent/CN116600137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application discloses a video image compression storage or decompression method, a device, equipment and a medium, wherein the video image compression storage method comprises the following steps: acquiring reference image data corresponding to a reference video image; acquiring image data to be detected corresponding to a next frame of video image; comparing the reference image data with the image data to be detected to obtain a comparison result; if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected; and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired. The method aims to improve the problem that the video image occupies more storage space.

Description

Video image compression storage or decompression method, device, equipment and medium
Technical Field
The present application relates to the field of video image processing technologies, and in particular, to a method, apparatus, device, and medium for compressing, storing, or decompressing video images.
Background
With the rapid development of computer technology and network communication technology, the application of real-time visual communication, multimedia communication, network television, video monitoring, video live broadcast and other services is becoming wider and wider. The transmission and storage of video images involved in these services is also increasing, and therefore video images occupy more and more storage space.
Disclosure of Invention
The embodiment of the application provides a video image compression storage or decompression method, device, equipment and medium, which are used for improving the problem that video images occupy more storage space.
A video image compression storage method comprising:
acquiring reference image data corresponding to a reference video image;
acquiring image data to be detected corresponding to a next frame of video image;
comparing the reference image data with the image data to be detected to obtain a comparison result;
if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected;
and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
A video image compression storage device comprising:
the reference image data acquisition module is used for acquiring reference image data corresponding to the reference video image; drawing of the figure
The image data acquisition module to be detected is used for acquiring image data to be detected corresponding to the next frame of video image;
the comparison result acquisition module is used for comparing the reference image data with the image data to be detected to acquire a comparison result;
the reservation module is used for reserving target image data which are different from the reference image data in the image data to be detected if the comparison result is smaller than a preset comparison threshold value;
and the loop execution module is used for taking the new image data to be detected as new reference image data and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
A video image compression storage device, further configured to:
and if the comparison result is greater than or equal to a preset comparison threshold value, retaining the image data to be detected.
In some embodiments, the comparison result obtaining module is further configured to:
acquiring reference RGB values of reference pixel points in reference image data;
obtaining a to-be-detected RDB value of a to-be-detected pixel point in the to-be-detected image data;
if the position of the reference pixel point in the video image is consistent with the position of the pixel point to be detected in the next frame of video image, comparing the reference RGB value of the reference pixel point with the RDB value to be detected of the pixel point to be detected, and obtaining an RGB value comparison result;
and counting the inconsistent duty ratio of all RGB value comparison results to obtain the final RGB value comparison result.
In some embodiments, the reservation module is further to: and if the RGB value final comparison result is smaller than a preset RGB value comparison threshold value, retaining target image data of the pixel to be detected, which is inconsistent with the reference pixel in the RGB value comparison result.
A video image compression storage device, further configured to:
obtaining a reference gray value of a reference pixel point;
acquiring a gray value to be detected of a pixel to be detected corresponding to the reference pixel;
comparing the reference gray value of the reference pixel point with the corresponding gray value to be measured of the pixel point to be measured, and obtaining a gray value comparison result;
and determining pixel points to be detected, of which RGB value comparison results are consistent and gray value comparison results are inconsistent, reserving gray value data of the pixel points to be detected, and discarding data to be discarded of the pixel points to be detected.
A video image decompression method, comprising:
acquiring reference target image data of a reference video image;
obtaining target image data to be solved corresponding to a next frame of video image;
comparing the target image data to be solved with the reference target image data, and determining target image data to be copied in the reference target image data and target image data to be replaced with differences in the reference target image data;
filtering target image data to be replaced, and copying the target image to be copied in the target image data;
generating new decompressed target image data corresponding to the next frame of video image based on the target image to be copied and the target image data to be decompressed;
and taking the decompressed target image data as new reference video image data, and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
A video image decompression apparatus comprising:
a reference target image data acquisition module for acquiring reference target image data of a reference video image;
the target image data obtaining module to obtain target image data corresponding to the next frame of video image;
the comparison module is used for comparing the target image data to be solved with the reference target image data and determining target image data to be copied in the reference target image data and target image data to be replaced with differences in the reference target image data;
the data processing module is used for filtering target image data to be replaced and copying target images to be copied in the target image data;
the generation module is used for generating new decompressed target image data corresponding to the next frame of video image based on the target image to be copied and the target image data to be decompressed;
and the repeated execution module is used for taking the decompressed target image data as new reference video image data and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
An apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the video image compression storage method or the video image decompression method when executing the computer program.
A computer readable medium storing a computer program which when executed by a processor implements the video image compression storage method or the video image decompression method described above.
The video image compression storage or decompression method, the device, the equipment and the medium are used for acquiring the reference image data corresponding to the reference video image; acquiring image data to be detected corresponding to a next frame of video image; comparing the reference image data with the image data to be detected to obtain a comparison result; if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected; and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired. Therefore, all the differential image data of the video can be reserved, 30-100 times of storage space can be compressed in the actual test, and meanwhile, the requirement for video transmission is greatly reduced, so that the transmission distance can be prompted under the condition of lossless image quality. This approach improves the problem of video images taking up more memory space.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram illustrating an application environment of a video image compression and storage method according to an embodiment of the application;
FIG. 2 is a first flowchart of a video image compression and storage method according to an embodiment of the application;
FIG. 3 is a second flowchart of a video image compression and storage method according to an embodiment of the application;
FIG. 4 is a third flowchart of a video decompression method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a video image compression memory device according to an embodiment of the application;
FIG. 6 is a schematic diagram of an apparatus for decompressing video images according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an apparatus according to an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The video image compression storage or decompression method provided by the embodiment of the application can be applied to an application environment as shown in fig. 1, and is applied to a video image compression storage or decompression system, wherein the video image compression storage or decompression system comprises a client and a server, and the client communicates with the server through a network. The client is also called a client, and refers to a program corresponding to a server and providing local services for the client. Further, the client is a computer-side program, an APP program of the intelligent device or a third party applet embedded with other APP. The client may be installed on, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and the like. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a video image compression storage method is provided, and the method is applied to the server in fig. 1 for illustration, and specifically includes the following steps:
s10, acquiring reference image data corresponding to the reference video image.
Wherein the reference video image may be a first frame video image. The reference image data may be pixel point data carried by the reference video image, including pixel values, pixel point positions, RGB values, gray values, and the like.
Specifically, the method acquires reference image data corresponding to a reference video image.
S20, obtaining image data to be detected corresponding to a next frame of video image.
Wherein the next frame video image is a next frame image adjacent to the reference video image. The image data to be measured can be data carried by the video image to be measured, and the data comprise pixel values, pixel point positions, RGB values, gray values and the like.
Specifically, the method acquires image data to be detected corresponding to a next frame of video image.
S30, comparing the reference image data with the image data to be detected to obtain a comparison result.
The reference image and the image to be measured have the same pixel value and pixel point position, and the pixel point of the reference image can correspond to the pixel point of the image to be measured. The reference pixel (pixel of the reference image) and the pixel to be measured (pixel of the image to be measured) have image data of the same pixel position information, but may have different RGB values and gray values.
Specifically, the method compares reference image data with image data to be measured, obtains target image data with difference relative to the reference image data, and counts the comparison of the target data with total reference image data (image data to be measured).
For example: the method compares a reference pixel point with a pixel point to be detected, acquires the pixel point to be detected with a difference relative to the reference pixel point, and counts the proportion value of the pixel point to be detected with the difference to the total reference pixel point (pixel point to be detected), wherein the proportion value is the comparison result.
S40, if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected.
The target image data includes, but is not limited to, pixel values, pixel point locations, RGB values, and gray values.
Specifically, if the comparison result is smaller than a preset comparison threshold, the method reserves target image data which is different from the reference image data in the image data to be detected, and discards the target image data which is not different from the reference image data.
For example: when the difference between the first frame and the second frame is not large, i.e. the comparison result is smaller than the preset comparison threshold (the comparison threshold may be fifty percent, etc.), the method reserves the data of the first frame, but the second frame only stores part of the data different from the first frame.
S50, taking the new image data to be detected as new reference image data, and repeatedly executing the step of obtaining the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is obtained.
Specifically, the method uses new image data to be detected as new reference image data, compares the new reference image data with the data of the next frame of video image, finds out partial data with difference between the frame of image data and the next frame of image data based on the corresponding pixel point positions, reserves the partial data, and discards repeated image data. And repeating the steps until the image data to be detected corresponding to the last frame of video image is obtained. Therefore, all the differential image data of the video can be reserved, 30-100 times of storage space can be compressed in the actual test, and meanwhile, the requirement for video transmission is greatly reduced, so that the transmission distance can be prompted under the condition of lossless image quality.
For example: when the difference between the first frame and the second frame is not large, the method only keeps the data of the first frame, the second frame only keeps the part different from the first frame, and the third frame only keeps the part different from the second frame.
According to the video image compression storage method, reference image data corresponding to a reference video image is obtained; acquiring image data to be detected corresponding to a next frame of video image; comparing the reference image data with the image data to be detected to obtain a comparison result; if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected; and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired. Therefore, all the differential image data of the video can be reserved, 30-100 times of storage space can be compressed in the actual test, and meanwhile, the requirement for video transmission is greatly reduced, so that the transmission distance can be prompted under the condition of lossless image quality. This approach improves the problem of video images taking up more memory space.
In one embodiment, as shown in fig. 3, after step S30, reference image data and image data to be measured are compared, and after the comparison result is obtained, the method specifically further includes the following steps:
s301, if the comparison result is larger than or equal to a preset comparison threshold value, retaining the image data to be detected.
Specifically, if the comparison result is greater than or equal to a preset comparison threshold (for example, the picture or pixel point where the next frame of video image has a difference is greater than 50%), the method retains all data of the next frame of video image (the next frame of video image), and uses the video image of the frame as a new reference image to compare with the next frame of video image for reference, thereby determining the difference data of the next frame of video image. Therefore, the storage space can be reduced as much as possible, and the data can be ensured to have higher accuracy.
In one embodiment, as shown in fig. 3, in step S30, reference image data and image data to be measured are compared to obtain a comparison result, which specifically includes the following steps:
s303, acquiring reference RGB values of reference pixel points in the reference image data.
S304, obtaining the RDB value to be measured of the pixel point to be measured in the image data to be measured.
S305, if the position of the reference pixel point in the video image is consistent with the position of the pixel point to be detected in the next frame of video image, comparing the reference RGB value of the reference pixel point with the RDB value to be detected of the pixel point to be detected, and obtaining an RGB value comparison result.
S306, counting the inconsistent duty ratio of all RGB value comparison results, and obtaining the final RGB value comparison result.
Among them, RGB color mode is a color standard in industry, and is to obtain various colors by changing three color channels of red (R), green (G) and blue (B) and overlapping them with each other. RDB values may refer to red (R), green (G), and blue (B) components in a certain color, each component being represented from 0, 1, 2.
Specifically, the method obtains a reference RGB value of a reference pixel point in the reference image data and a to-be-detected RDB value of a corresponding to the to-be-detected pixel point in the to-be-detected image data, compares the reference RGB value with the to-be-detected RDB value, and obtains an RGB value comparison result, wherein the RGB value comparison result can be consistent or inconsistent. The method comprises the steps of obtaining RGB value comparison results between all corresponding pixel points of a reference image and an image to be detected, carrying out duty ratio statistics on all RGB value comparison results as inconsistent, and obtaining RGB value final comparison results which are proportional values.
The steps S303 to S305 have the effect of analyzing the pixels of the video image by RGB values to determine the compression position and compression data of the specific pixel to be measured.
In one embodiment, as shown in fig. 3, in step S40, if the comparison result is smaller than the preset comparison threshold, target image data different from the reference image data in the image data to be tested is retained, which specifically includes the following steps:
s401, if the RGB value final comparison result is smaller than a preset RGB value comparison threshold value, retaining target image data of the pixel to be detected, which is inconsistent with the RGB value comparison result of the reference pixel.
Specifically, if the final comparison result of the RGB values is smaller than a preset RGB value comparison threshold, the method reserves all data of the pixel to be detected, which is inconsistent with the reference pixel in the RGB value comparison result.
In an embodiment, as shown in fig. 3, after step S401, that is, if the RGB value final comparison result is smaller than the preset RGB value comparison threshold, the method specifically further includes the following steps:
s402, acquiring a reference gray value of the reference pixel point.
S403, obtaining a gray value to be detected of the pixel to be detected corresponding to the reference pixel.
S404, comparing the reference gray value of the reference pixel point with the corresponding gray value to be detected of the pixel point to be detected, and obtaining a gray value comparison result.
S405, determining pixel points to be detected with consistent RGB value comparison results and inconsistent gray value comparison results, reserving gray value data of the pixel points to be detected, and discarding data to be discarded of the pixel points to be detected.
The gray values may be luminance values, and the gray values may be different in the case of the same RGB values.
Specifically, the method obtains a reference gray value of a reference pixel point with the same RGB value in the reference image data and a to-be-measured gray value of a to-be-measured pixel point with the same corresponding RGB value in the to-be-measured image data, compares the reference gray value with the to-be-measured gray value, and obtains a gray value comparison result, wherein the gray value comparison result can be consistent or inconsistent. The method reserves gray value data of the pixel to be detected, which is the same as the RGB value of the reference pixel, discards data to be discarded of the pixel to be detected, wherein the data to be discarded can be the RGB value data and the pixel position except the gray value data.
For example: when the pixel points of one frame of video image and the next frame of video image are identical in RGB value, but the gray values of the one frame of video image and the next frame of video image are different, the RGB value data of the next frame of video image can be discarded, the gray value data of the next frame of video image is reserved, and the storage space is further reduced.
The steps S402 to S405 function in that the gray values are analyzed under the basic analysis of the RGB values.
In one embodiment, as shown in fig. 4, a video image decompression method is provided, and the method is applied to the server in fig. 1 for illustration, and specifically includes the following steps:
s110, acquiring reference target image data of a reference video image.
S120, obtaining target image data to be solved corresponding to a next frame of video image.
S130, comparing the target image data to be solved with the reference target image data, and determining target image data to be copied in the reference target image data and target image data to be replaced with differences in the reference target image data.
S140, filtering target image data to be replaced, and copying the target image to be copied in the target image data.
S150, generating new decompressed target image data corresponding to the next frame of video image based on the target image to be copied and the target image data to be decompressed.
S160, taking the decompressed target image data as new reference video image data, and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
Wherein the reference video image and the next frame video image may have different data of pixel values, RGB values or gray values. The reference target image data includes, but is not limited to, pixel values, pixel point positions, RGB values, and gray values. The target image data to be solved includes, but is not limited to, pixel values, pixel point positions, RGB values, and gray values. The target image data to be replaced can be that the next frame of video image has corresponding target image data to be solved at the position of the pixel point corresponding to the reference video image; the target image data to be copied may be image data which does not exist in the next frame of video image compared with the next frame of video image, but which does not belong to the target image data to be replaced; the decompressed target image data may be all image data of the next frame of video image.
Specifically, the method comprises the steps of obtaining reference target image data of a reference video image and target image data to be solved corresponding to a next frame of video image, comparing the target image data to be solved with the reference target image data, and determining target image data to be copied in the reference target image data and target image data to be replaced with differences in the reference target image data; filtering target image data to be replaced, copying the target image to be copied in the target image data, and generating new decompressed target image data corresponding to the next frame of video image; and taking the decompressed target image data as new reference video image data, and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
When the compressed and stored video image is transmitted to a new computer, the transport protocol can carry the step information corresponding to the decompression method, and the computer decompresses the video image through the decompression method.
The steps S110 to S160 function to decompress the video image (or decompress the video image after compressing the stored video image for transmission) and restore all the image data.
According to the video image compression storage method, reference image data corresponding to a reference video image is obtained; acquiring image data to be detected corresponding to a next frame of video image; comparing the reference image data with the image data to be detected to obtain a comparison result; if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected; and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired. Therefore, all the differential image data of the video can be reserved, 30-100 times of storage space can be compressed in the actual test, and meanwhile, the requirement for video transmission is greatly reduced, so that the transmission distance can be prompted under the condition of lossless image quality. This approach improves the problem of video images taking up more memory space.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
In one embodiment, a video image compression storage device is provided, which corresponds to the video image compression storage method in the above embodiment one by one. As shown in fig. 5, the video image compression storage device includes a reference image data acquisition module 10, an image data to be measured acquisition module 20, a comparison result acquisition module 30, a retention module 40, and a loop execution module 50. The functional modules are described in detail as follows:
the reference image data acquisition module 10 is configured to acquire reference image data corresponding to a reference video image.
The image data to be measured acquisition module 20 is configured to acquire image data to be measured corresponding to a video image of a next frame.
The comparison result obtaining module 30 is configured to compare the reference image data with the image data to be tested, and obtain a comparison result.
And a retaining module 40, configured to retain target image data that is different from the reference image data in the image data to be detected if the comparison result is smaller than the preset comparison threshold.
The loop execution module 50 is configured to take the new image data to be tested as new reference image data, and repeatedly execute the steps of obtaining the image data to be tested corresponding to the next frame of video image until the image data to be tested corresponding to the last frame of video image is obtained.
The video image compression storage device acquires reference image data corresponding to a reference video image; acquiring image data to be detected corresponding to a next frame of video image; comparing the reference image data with the image data to be detected to obtain a comparison result; if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected; and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired. Therefore, all the differential image data of the video can be reserved, 30-100 times of storage space can be compressed in the actual test, and meanwhile, the requirement for video transmission is greatly reduced, so that the transmission distance can be prompted under the condition of lossless image quality. This approach improves the problem of video images taking up more memory space.
In an embodiment, a video image decompression apparatus is provided, where the video image decompression apparatus corresponds to the video image decompression method in the above embodiment one by one. As shown in fig. 6, the video image decompression apparatus includes a reference target image data acquisition module 110, a target image data to be decompressed acquisition module 120, a comparison module 130, a data processing module 140, a generation module 150, and a repetition execution module 160. The functional modules are described in detail as follows:
the reference target image data acquisition module 110 is configured to acquire reference target image data of a reference video image.
The target image data to be solved obtaining module 120 is configured to obtain target image data to be solved corresponding to a video image of a next frame.
The comparison module 130 is configured to compare the target image data to be solved with the reference target image data, and determine target image data to be copied in the reference target image data and target image data to be replaced having a difference in the reference target image data.
The data processing module 140 is configured to filter the target image data to be replaced, and copy the target image to be copied in the target image data.
The generating module 150 is configured to generate new decompressed target image data corresponding to the video image of the next frame based on the target image to be copied and the target image data to be decompressed.
The repeated execution module 160 is configured to take the decompressed target image data as new reference video image data, and repeatedly execute the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
For specific limitations on the video image compression storage device, reference may be made to the above limitation on the video image compression storage method, and no further description is given here. The various modules in the video image compression storage device described above may be implemented in whole or in part in software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the device, or may be stored in software in a memory in the device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, an apparatus is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the device is configured to provide computing and control capabilities. The memory of the device includes a non-volatile medium, internal memory. The non-volatile medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile media. The database of the device is used for compressing, storing or decompressing data related to the method of video images. The network interface of the device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a video image compression storage or decompression method.
In an embodiment, an apparatus is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the video image compression storage method of the above embodiment, for example, S10 to S50 shown in fig. 2, or the processor executes the computer program to implement the video image decompression method of the above embodiment, for example, S110 to S160 shown in fig. 4. Alternatively, the processor may implement the functions of the respective modules/units of the video image compression storage apparatus in the above embodiment, such as the functions of the modules 10 to 50 shown in fig. 5, when executing the computer program, or the processor may implement the functions of the respective modules/units of the video image decompression apparatus in the above embodiment, such as the functions of the modules 110 to 160 shown in fig. 6, when executing the computer program. To avoid repetition, no further description is provided here.
In an embodiment, a computer readable medium is provided, on which a computer program is stored, the computer program implementing the video image compression storage method of the above embodiment when executed by a processor, for example, S10 to S50 shown in fig. 2, or implementing the video image decompression method of the above embodiment when executed by a processor, for example, S110 to S160 shown in fig. 4. Alternatively, the computer program may be executed by a processor to implement the functions of each module/unit in the video image compression storage device in the above-described device embodiment, for example, the functions of the modules 10 to 50 shown in fig. 5, or may be executed by a processor to implement the functions of each module/unit in the video image decompression device in the above-described device embodiment, for example, the functions of the modules 110 to 160 shown in fig. 6. To avoid repetition, no further description is provided here.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable medium that when executed comprises the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments of the application may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A video image compression storage method, comprising:
acquiring reference image data corresponding to a reference video image;
acquiring image data to be detected corresponding to a next frame of video image;
comparing the reference image data with the image data to be detected to obtain a comparison result;
if the comparison result is smaller than a preset comparison threshold value, retaining target image data which is different from the reference image data in the image data to be detected;
and taking the new image data to be detected as new reference image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
2. The video image compression storage method according to claim 1, wherein the comparing the reference image data with the image data to be measured, after obtaining the comparison result, further comprises:
and if the comparison result is greater than or equal to a preset comparison threshold value, reserving the image data to be detected.
3. The method for compressing and storing video images according to claim 1, wherein said comparing said reference image data with said image data to be measured to obtain a comparison result comprises:
acquiring a reference RGB value of a reference pixel point in the reference image data;
obtaining a to-be-detected RDB value of a to-be-detected pixel point in the to-be-detected image data;
if the position of the reference pixel point in the video image is consistent with the position of the pixel point to be detected in the next frame of video image, comparing the reference RGB value of the reference pixel point with the RDB value to be detected of the pixel point to be detected, and obtaining an RGB value comparison result;
and counting the inconsistent duty ratio of all the RGB value comparison results to obtain a final RGB value comparison result.
4. The video image compression storage method according to claim 3, wherein if the comparison result is smaller than a preset comparison threshold, retaining target image data different from reference image data in the image data to be detected, comprising:
and if the RGB value final comparison result is smaller than a preset RGB value comparison threshold value, retaining target image data of the pixel to be detected, which is inconsistent with the reference pixel in the RGB value comparison result.
5. The method of claim 4, further comprising, after the final RGB value comparison result is less than a predetermined RGB value comparison threshold:
acquiring a reference gray value of the reference pixel point;
acquiring a gray value to be detected of a pixel to be detected corresponding to the reference pixel;
comparing the reference gray value of the reference pixel point with the corresponding gray value to be detected of the pixel point to be detected, and obtaining a gray value comparison result;
and determining pixel points to be detected, of which RGB value comparison results are consistent and gray value comparison results are inconsistent, reserving gray value data of the pixel points to be detected, and discarding data to be discarded of the pixel points to be detected.
6. A method of decompressing a video image, comprising:
acquiring reference target image data of a reference video image;
obtaining target image data to be solved corresponding to a next frame of video image;
comparing the target image data to be solved with the reference target image data, and determining target image data to be copied in the reference target image data and target image data to be replaced with differences in the reference target image data;
filtering the target image data to be replaced, and copying the target image to be copied in the target image data;
generating new decompressed target image data corresponding to the next frame of video image based on the target image to be copied and the target image data to be decompressed;
and taking the decompressed target image data as new reference video image data, and repeating the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
7. A video image compression storage device, comprising:
the reference image data acquisition module is used for acquiring reference image data corresponding to the reference video image;
the image data acquisition module to be detected is used for acquiring image data to be detected corresponding to the next frame of video image;
the comparison result acquisition module is used for comparing the reference image data with the image data to be detected to acquire a comparison result;
the reservation module is used for reserving target image data which are different from the reference image data in the image data to be detected if the comparison result is smaller than a preset comparison threshold value;
and the loop execution module is used for taking the new image data to be detected as new reference image data and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
8. A video image decompression apparatus, comprising:
a reference target image data acquisition module for acquiring reference target image data of a reference video image;
the target image data obtaining module to obtain target image data corresponding to the next frame of video image;
the comparison module is used for comparing the target image data to be solved with the reference target image data and determining target image data to be copied in the reference target image data and target image data to be replaced with differences in the reference target image data;
the data processing module is used for filtering the target image data to be replaced and copying the target image to be copied in the target image data;
the generation module is used for generating new decompressed target image data corresponding to the next frame of video image based on the target image to be copied and the target image data to be decompressed;
and the repeated execution module is used for taking the decompressed target image data as new reference video image data and repeatedly executing the step of acquiring the image data to be detected corresponding to the next frame of video image until the image data to be detected corresponding to the last frame of video image is acquired.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the video image compression storage method of any one of claims 1 to 5 or the video image decompression method of claim 6 when executing the computer program.
10. A computer readable medium storing a computer program, wherein the computer program when executed by a processor implements the video image compression storage method of any one of claims 1 to 5 or the video image decompression method of claim 6.
CN202310872436.9A 2023-07-17 2023-07-17 Video image compression storage or decompression method, device, equipment and medium Active CN116600137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310872436.9A CN116600137B (en) 2023-07-17 2023-07-17 Video image compression storage or decompression method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310872436.9A CN116600137B (en) 2023-07-17 2023-07-17 Video image compression storage or decompression method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN116600137A true CN116600137A (en) 2023-08-15
CN116600137B CN116600137B (en) 2023-11-17

Family

ID=87599484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310872436.9A Active CN116600137B (en) 2023-07-17 2023-07-17 Video image compression storage or decompression method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116600137B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348115A (en) * 2010-08-02 2012-02-08 南京壹进制信息技术有限公司 Method and device for removing redundant images from video
CN111866514A (en) * 2019-04-25 2020-10-30 中国移动通信集团贵州有限公司 Method and device for compressing video and decompressing video
CN114139015A (en) * 2021-11-30 2022-03-04 招商局金融科技有限公司 Video storage method, device, equipment and medium based on key event identification
CN114758268A (en) * 2022-03-17 2022-07-15 深圳市优必选科技股份有限公司 Gesture recognition method and device and intelligent equipment
CN114943663A (en) * 2022-04-15 2022-08-26 北京奕斯伟计算技术股份有限公司 Teaching system
CN115309331A (en) * 2022-07-28 2022-11-08 山东华芯半导体有限公司 SSD (solid State disk) implementation method for data compression applied to video monitoring field

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348115A (en) * 2010-08-02 2012-02-08 南京壹进制信息技术有限公司 Method and device for removing redundant images from video
CN111866514A (en) * 2019-04-25 2020-10-30 中国移动通信集团贵州有限公司 Method and device for compressing video and decompressing video
CN114139015A (en) * 2021-11-30 2022-03-04 招商局金融科技有限公司 Video storage method, device, equipment and medium based on key event identification
CN114758268A (en) * 2022-03-17 2022-07-15 深圳市优必选科技股份有限公司 Gesture recognition method and device and intelligent equipment
CN114943663A (en) * 2022-04-15 2022-08-26 北京奕斯伟计算技术股份有限公司 Teaching system
CN115309331A (en) * 2022-07-28 2022-11-08 山东华芯半导体有限公司 SSD (solid State disk) implementation method for data compression applied to video monitoring field

Also Published As

Publication number Publication date
CN116600137B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
US11373275B2 (en) Method for generating high-resolution picture, computer device, and storage medium
CN108399052B (en) Picture compression method and device, computer equipment and storage medium
CN110139104B (en) Video decoding method, video decoding device, computer equipment and storage medium
CN108933935A (en) Detection method, device, storage medium and the computer equipment of video communication system
US20210232550A1 (en) Data noise reduction method, device, computer apparatus and storage medium
CN113068040A (en) Image compression method and device, electronic equipment and readable storage medium
CN111918065A (en) Information compression/decompression method and device
CN111091146A (en) Image similarity obtaining method and device, computer equipment and storage medium
CN111932521A (en) Image quality testing method and device, server and computer readable storage medium
CN115687674A (en) Big data demand analysis method and system serving smart cloud service platform
CN111445487A (en) Image segmentation method and device, computer equipment and storage medium
CN116600137B (en) Video image compression storage or decompression method, device, equipment and medium
US20240098316A1 (en) Video encoding method and apparatus, real-time communication method and apparatus, device, and storage medium
CN112073718B (en) Television screen splash detection method and device, computer equipment and storage medium
US10079981B2 (en) Image dynamic range adjustment method, terminal, and storage medium
CN106971386B (en) Method and device for judging image integrity and page loading degree and client equipment
WO2020135097A1 (en) Method and apparatus for channel switch detection of display terminal
CN114765666A (en) Infrared image brightness evaluation and exposure control method, equipment and medium
Yang et al. Subjective quality evaluation of compressed digital compound images
WO2023151210A1 (en) Image processing method, electronic device and computer-readable storage medium
CN113381898B (en) Display module interference removing method and device, computer equipment and storage medium
CN113706639B (en) Image compression method and device based on rectangular NAM, storage medium and computing equipment
CN115278225A (en) Method and device for selecting chroma coding mode and computer equipment
CN111601108B (en) Monitoring video processing method and device and video monitoring terminal
CN113191210A (en) Image processing method, device and equipment

Legal Events

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