Image compression method and device and text block compression method and device thereof
A compression method and text block technology, applied in the field of image processing, can solve problems such as low compression effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] According to an embodiment of the present invention, an embodiment of a method for compressing text blocks in an image is provided. It should be noted that the steps shown in the flowchart 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.
[0022] figure 1 It is a flowchart of a method for compressing text blocks in an image according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:
[0023] Step S102, acquiring the basic color of each character block in the image.
[0024] In the above steps, a frame of image W×H in the screen video can be divided into m×n blocks, and the blocks are divided into text blocks and non-text blocks by using the characteristics of text, a...
Embodiment 2
[0084] 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.
[0085] figure 2 It is a flowchart of an image compression method according to an embodiment of the present invention, including a method for compressing text blocks in an image in any one of Embodiment 1, such as figure 2 As shown, after encoding each text block according to the palette table and the basic color index table of each text block, the method further includes:
[0086] Step S201, acquiring the non-text blocks in the image, and obtaining the compressed code stream of the non-text blocks by encodi...
Embodiment 3
[0106] According to an embodiment of the present invention, an embodiment of a device for compressing text blocks in an image is provided, Figure 4 It is a schematic diagram of a device for compressing text blocks in an image according to an embodiment of the present invention, and the device includes:
[0107] An acquisition module 40, configured to acquire the basic color of each text block in the image.
[0108] Synthesizing module 42, configured to synthesize multiple main color tables according to the basic color of each text block.
[0109] A constructing module 44, configured to construct a palette table of the image according to a plurality of main color tables.
[0110] The encoding module 46 is configured to encode each text block according to the palette table and the basic color of each text block, so as to obtain the compressed code stream of the text blocks in the image.
[0111] Optionally, according to the foregoing embodiments of the present application, th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


