Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2018-08-14
XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and device for compressing images and a method and device for compressing text blocks, so as to at least solve the problem of compression caused by too many colors in the palette table when compressing text blocks in the prior art. Low-efficiency technical issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image compression method and device and text block compression method and device thereof
  • Image compression method and device and text block compression method and device thereof
  • Image compression method and device and text block compression method and device thereof

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for compressing an image as well as a method and device for compressing text blocks thereof. The method comprises the following steps: obtaining the basic color of each text block in the image; synthesizing a plurality of main color tables according to the basic color of each text block; forming a color palette table of the image according to the plurality of main color tables; and coding each text block according to the color palette table and the basic color of each text block to obtain the compressed code stream of the text blocks in the image. By adopting the method and device disclosed by the invention, the technical problem that low compression effect is caused due to the excessive number of colors in the color palette table when the text blocks are compressed in the prior art can be solved.

Description

technical field [0001] The present invention relates to the field of image processing, in particular to an image compression method and device and a text block compression method and device thereof. Background technique [0002] Recently, in the field of video transmission, we usually adopt block technology to compress the image, so that its compression performance is better. In general, text chunks draw high attention to human visual performance, which leads us to devote ourselves to researching innovations in text chunk compression techniques. In the existing technology, the text block is first divided into main colors and non-main colors, and then the main colors are put into the palette in turn, and the palette table is compressed for the entire text block. This method can improve Image compression performance. However, the number of colors in the palette table generated by this technology is large, and too many colors will reduce the coding efficiency. [0003] Aimin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N19/186H04N19/85H04N19/176
CPCH04N19/176H04N19/186H04N19/85
Inventor 苏睿周娇
Owner XIAN WANXIANG ELECTRONICS TECH CO LTD