Method and device of coding text block

A coding method and technology of text blocks, which are applied in the field of text block coding methods and devices, can solve the problems of low compression performance of text blocks, and achieve the effects of low compression performance, time reduction, and improved compression performance

Active Publication Date: 2017-09-15
上海京达芯联信息技术有限公司
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a text block encoding method and device to at

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
  • Method and device of coding text block
  • Method and device of coding text block
  • Method and device of coding text block

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0028] Example 1

[0029] According to an embodiment of the present invention, an embodiment of a method for encoding text blocks 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 the logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.

[0030] figure 1 Is a flowchart of a method for encoding a text block according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0031] Step S102: Determine the gradient value corresponding to the multiple main colors of each text block in the image to be coded, where the gradient value is used to represent the importance of the main color.

[0032] Specifically, the image to be encoded may be a current frame image in a video image, and the text block may be ...

Example Embodiment

[0076] Example 2

[0077] According to an embodiment of the present invention, a text block encoding device is provided, Figure 4 Is a schematic diagram of a text block encoding device according to an embodiment of the present invention, combined with Figure 4 As shown, the encoding device of the text block includes:

[0078] The determining module 40 is used to determine the gradient value corresponding to the multiple main colors of each text block in the image to be encoded, where the gradient value is used to represent the importance of the main color.

[0079] The first encoding module 42 is configured to sequentially encode multiple primary colors in descending order of gradient values.

[0080] The second encoding module 44 is configured to encode the escape color of the text block after the main color is coded, where the escape color is a color other than the main color in the text block.

[0081] Optionally, according to the above-mentioned embodiment of the present applicati...

Example Embodiment

[0099] Example 3

[0100] According to an embodiment of the present invention, a method for decoding text blocks is provided, Figure 5 Is a flowchart of a method for decoding a text block according to an embodiment of the present invention, combined with Figure 5 As shown, the method includes:

[0101] Step S502: Receive a code stream of a text block of the image to be encoded, where the code stream of the text block includes a plurality of code streams of primary colors and code streams of escape colors.

[0102] Specifically, the code stream of the above-mentioned text block may be the code stream of the text block generated according to the encoding method in Embodiment 1 of the present application.

[0103] In step S504, the code streams of the multiple primary colors are decoded in descending order of gradient values ​​corresponding to the multiple primary colors.

[0104] In an optional embodiment, after the encoding end encodes the gradient values ​​of the multiple primary co...

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 a device of coding a text block. The method comprises the steps of determining gradient values corresponding to multiple main colors of each text block in a to-be-coded image, wherein the gradient values are used for representing the degrees of importance of the main colors; coding the multiple main colors sequentially according to the corresponding gradient values from big to small; and after the main colors are coded, coding the escaping colors of the text block, wherein the escaping colors are the colors except for the main colors in the text block. According to the method and the device of coding the text block, the technical problem of relatively low compression performance of the text block in the prior art is solved.

Description

technical field [0001] The present invention relates to the field of image processing, in particular, to a method and device for encoding text blocks. Background technique [0002] Image compression usually adopts a block-based compression method, that is, the image is divided into multiple blocks, each block is compressed separately, and the code stream obtained by compressing each block is transmitted to the decoder, and the code stream is decoded by the decoder. For a composite image, that is, an image that contains both picture information and text information, the loss of ordinary picture information is acceptable to the human eye, but because the text information contains less color, the loss of text information will directly cause the human eye to fail. Therefore, the loss of text information is usually difficult for human eyes to accept, so the compression of text blocks usually adopts lossless compression or near-lossless compression technology. [0003] However, l...

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
IPC IPC(8): H04N19/33H04N19/176H04N19/182H04N19/186
CPCH04N19/176H04N19/182H04N19/186H04N19/33
Inventor 张静苏睿
Owner 上海京达芯联信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products