Character block compression method, device, image compression method and device
A compression method and text block technology, applied in the field of image processing, can solve problems such as poor compression effect, achieve good screen video image compression, and solve the effect of poor compression effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] According to an embodiment of the present invention, an embodiment of a method for compressing text blocks is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0021] figure 1 It is a flowchart of a method for compressing text blocks according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:
[0022] Step S102, acquiring text blocks in the image.
[0023] Specifically, the above-mentioned image can be a frame of image in the screen video. Taking the size of the image as W×H as an example, after acquiring the image in the screen video, it can be divided into m×n blocks, and the size of each block is...
Embodiment 2
[0083] According to an embodiment of the present invention, an embodiment of an image compression method is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although A logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0084] figure 2 is a flowchart of an image compression method according to an embodiment of the present invention, such as figure 2 As shown, in the compression method of any text block in the method embodiment 1, after encoding the main color and the non-main color of each text block respectively, the image compression method also includes the following steps:
[0085] In step S201, a picture block in an image is obtained, and a compressed code stream of the picture block is obtained by encoding the pictur...
Embodiment 3
[0107] According to an embodiment of the present invention, an embodiment of an image compression device is provided, Figure 4 is a schematic diagram of an image compression device according to an embodiment of the present invention, combined with Figure 4 As shown, the device includes:
[0108] The first acquisition module 40 is configured to acquire text blocks in the image.
[0109] A determination module 42, configured to determine the main color of each text block.
[0110] The encoding module 44 is configured to encode the main color and the non-main color of each text block, and output the compressed code stream of the text block.
[0111] Optionally, according to the foregoing embodiments of the present application, the determining module includes:
[0112] The first acquisition sub-module is used to acquire the color value in each text block and the number of occurrences of each color value in each text block.
[0113] The determination sub-module is used to use...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


