A video image compression method

By extracting and classifying the characteristic parts of video frame images, the problem of slow transmission caused by excessively large video file sizes is solved, enabling fast transmission and preview of video files.

CN115379234BActive Publication Date: 2026-02-24XIAN GANXIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211023429.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2026-02-24
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

Large video file sizes result in slow transmission speeds, making it difficult to transmit and store quickly.

Method used

By extracting feature parts and comparing the sharpness of frame images in the video, a linear mapping relationship is established, and the frame images are classified into optimized and secondary images, and then segmented and compressed for transmission.

Benefits of technology

It effectively reduces video file size, enabling fast transmission and preview, reducing storage space, and allowing the recipient to watch the video in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115379234B_ABST
    Figure CN115379234B_ABST
Patent Text Reader

Abstract

The application discloses a video image compression method, step one, marking: obtaining a plurality of frame images contained in a video, and marking each frame image according to original playing order in digital sequence; step two, optimization; step three, association; step four, frame extraction; step five, compression, and relates to the technical field of video images. The video image compression method can strip the same part in a plurality of static images in the association frame by extracting the feature part in the association frame, so that the single frame static volume is reduced, and the volume of a video file composed of a plurality of frame static images is also greatly reduced by reducing the volume of the frame static image, and the video file can be further reduced by compressing the file, so that the storage space can be reduced, and the video file can be quickly transmitted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video image technology, specifically a video image compression method. Background Technology

[0002] Video images are composed of a series of still images moving in sequence. As the image quality and resolution increase, the size of a single still image also increases. In addition, a video contains a large number of still images, resulting in a large video file size. An excessively large video file not only occupies too much hard drive space, but also makes it difficult to quickly transmit the entire video over the network, thus preventing the receiver from receiving and watching the video file quickly. To avoid the inconvenience of video file transmission due to its large size, a video image compression method is proposed to compress and reduce the size of the video file, thereby facilitating its fast transmission. Summary of the Invention

[0003] (a) Technical problems to be solved

[0004] To address the shortcomings of existing technologies, this invention provides a video image compression method that solves the problem of slow file transfer due to the large file size of video files.

[0005] (II) Technical Solution

[0006] To achieve the above objectives, the present invention provides the following technical solution: a video image compression method, specifically including the following steps: Step 1, Marking: acquiring several frames of images contained in the video, and marking each frame of images in numerical order according to the original playback order;

[0007] Step 2, Optimization: Set the number of associated frames, compare the images within the associated frame range, and then crop the feature parts as optimization candidate images. Compare the sharpness of several cropped optimization candidate images in the same associated frame, and select the one with the best sharpness as the optimization image of that associated frame.

[0008] Step 3, Association: Establish a linear mapping relationship between the optimized image and the associated frame image;

[0009] Step 4, Frame Extraction: Classify the frames with numerical sequence tags according to odd and even tags. Store the frames with odd tags that have undergone feature extraction in Step 2 in the priority compression end, and store the frames with even tags that have undergone feature extraction in Step 2 in the secondary compression end.

[0010] Step 5, Compression: Compress and transmit the files in the priority compression end from Step 4, and then compress and transmit the files in the secondary compression end.

[0011] Preferably, in step three, by establishing a linear mapping relationship between the optimized image and the associated frame image, it is convenient to restore the cropped portion of the associated frame image after the file is decompressed by using the linear mapping relationship between the optimized image and the associated frame image.

[0012] Preferably, step four involves classifying and storing frames according to different arrangement orders, which can divide the original video into two video files.

[0013] Preferably, step five involves compressing and transmitting the files in the preferred and secondary compression endpoints in two batches. This not only reduces the file size, facilitating video file transmission, but also enhances the video preview effect by adjusting the order of transmission.

[0014] (III) Beneficial Effects

[0015] This invention provides a video image compression method. It has the following beneficial effects:

[0016] (1) This video image compression method can extract the feature parts in the associated frames, and separate the same parts in many static images in the associated frames to reduce the static volume of a single frame. By reducing the volume of each static image, the size of the video file composed of several static images will also be greatly reduced. Furthermore, by compressing the file, the video file can be further reduced, thereby not only reducing its storage space, but also facilitating its fast transmission.

[0017] (2) This video image compression method can divide the video file into two parts of previewable video files by sorting and classifying several frames of images in the video. By dividing the video file, the original video file size can be continuously reduced, which can facilitate transmission. Moreover, the receiver can preview the video in advance. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the process of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] Please see Figure 1 This invention provides a technical solution: a video image compression method, specifically including the following steps:

[0021] Step 1, Tagging: Obtain several frames of images contained in the video, and tag each frame in numerical order according to its original playback order;

[0022] Step 2, Optimization: Set the number of associated frames, compare the images within the associated frame range, and then crop the feature parts as optimization candidate images. Compare the sharpness of several cropped optimization candidate images in the same associated frame, and select the one with the best sharpness as the optimization image of that associated frame.

[0023] Step 3, Association: Establish a linear mapping relationship between the optimized image and the associated frame image;

[0024] Step 4, Frame Extraction: Classify the frames with numerical sequence tags according to odd and even tags. Store the frames with odd tags that have undergone feature extraction in Step 2 in the priority compression end, and store the frames with even tags that have undergone feature extraction in Step 2 in the secondary compression end.

[0025] Step 5, Compression: The files in the priority compression end from Step 4 are compressed and transmitted in a preferred manner. Then, the files in the secondary compression end are compressed and transmitted. By sorting and classifying several frames of images in the video, the video file can be divided into two previewable video files. By dividing the video file, the original video file size can be continuously reduced, achieving the effect of convenient transmission. Moreover, the preview allows the recipient to watch the video in advance.

[0026] In step one, the labeling of several frames can be done in the original frame numbering order, as shown below: the numerical order is labeled as 1, 2, 3...N. Then, based on the similarity of static image features between frames, the number of associated frames is determined. When cropping areas with similar features from adjacent static images, it is important to ensure consistent cropping shapes. Then, one image is selected as the optimized image for this associated frame. This optimized image needs to be mapped to the cropped area in the associated frame to facilitate subsequent restoration of the decompressed video file. Finally, the static images with different frame orders are classified and stored according to odd and even numbers, and then... Two categorized compression ends are embedded with a scanning and replication module, and the extracted feature portions are used as the source code for the scanning and replication module. Then, the files stored in the odd and even categories can be compressed and transmitted. After transmission, the files in the compression end can be decompressed first. After decompression, the scanning and replication module can scan and replicate the decompressed files in the priority compression end. Through replication, the optimized image is replicated to the feature portion extraction area that matches it, and the restoration of the static image of the associated frame is completed. After the files in the secondary compression end are decompressed and restored in the same way, the files in the priority compression end and the files in the secondary compression end can be merged to restore the original video image.

[0027] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, the phrase "comprising an element defined as..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0028] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A video image compression method, characterized in that: Specifically, the following steps are included: Step 1, Tagging: Obtain several frames of images contained in the video, and tag each frame in numerical order according to its original playback order; Step 2, Optimization: Set the number of associated frames, compare the images within the associated frame range, and then crop the feature parts as optimization candidate images. Compare the sharpness of several cropped optimization candidate images in the same associated frame, and select the one with the best sharpness as the optimization image of that associated frame. Step 3, Association: Establish a linear mapping relationship between the optimized image and the associated frame image; Step 4, Frame Extraction: Classify the frames with numerical sequence tags according to odd and even tags. Store the frames with odd tags that have undergone feature extraction in Step 2 in the priority compression end, and store the frames with even tags that have undergone feature extraction in Step 2 in the secondary compression end. Step 5, Compression: Compress and transmit the files from the priority compression end in Step 4, and then compress and transmit the files from the secondary compression end. In step five, the files in the priority compression end and the files in the secondary compression end are compressed in the order of priority and secondary compression, and then transmitted in two batches. In step five, after the file in the priority compression end is compressed and transmitted, it is decompressed and previewed in advance. After decompression, the decompressed file in the priority compression end is scanned and copied by the scanning and copying module. The optimized image is copied to the feature part cropping area that matches it through copying, and the restoration of the associated frame static image is completed. After the files in the secondary compression end are decompressed, the associated frame static images are restored first, and then the files in the primary compression end and the files in the secondary compression end are merged to restore the original video images.

2. The video image compression method according to claim 1, characterized in that: In step one, the numbers are sequentially labeled as 1, 2, 3...N.

3. The video image compression method according to claim 1, characterized in that: The associated frames in step two are adjacent frames.

4. The video image compression method according to claim 1, characterized in that: The specific methods for extracting the feature portion in step two include: Perform static image scanning on the associated frames to obtain feature portions of the same size in the images, and then cut and crop the same feature portions from the associated frames.

5. The video image compression method according to claim 1, characterized in that: The establishment of the linear mapping relationship in step three specifically includes: uniformly identifying the regions that have been clipped through the feature parts in the same associated frame, and setting linear markers corresponding to the identifiers for the matched optimized images.

6. The video image compression method according to claim 1, characterized in that: In step four, the priority compression end and the secondary compression end are implanted into the scanning and replication module, and the extracted feature parts are used as the source code of the scanning and replication module.

Citation Information

Patent Citations

  • Target tracking method and system based on video coding, storage medium and terminal

    CN112954393A

  • Video compression and decompression method and device, equipment and storage medium

    CN113596453A