Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 least solve the technical problem of low compression performance of text blocks in the prior art

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

Embodiment 1

[0029] According to an embodiment of the present invention, an embodiment of a method for encoding a text block is provided. It should be noted that the steps shown in the flow chart 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.

[0030] figure 1 is a flow chart of a method for encoding text blocks according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0031] Step S102, determining the gradient values ​​corresponding to multiple main colors of each text block in the image to be encoded, wherein the gradient values ​​are used to represent the importance of the main colors.

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

Embodiment 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 this text block comprises:

[0078] The determining module 40 is configured to determine gradient values ​​corresponding to multiple main colors of each text block in the image to be encoded, wherein the gradient values ​​are used to represent the importance of the main colors.

[0079] The first coding module 42 is configured to sequentially code a plurality of main colors according to the order of gradient values ​​from large to small.

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

[0081] Optionally, according to the above-mentioned embodi...

Embodiment 3

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

[0101] Step S502, receiving the code stream of the text block of the image to be coded, wherein the code stream of the text block includes a plurality of code streams of main colors and code streams of escape colors.

[0102] Specifically, the code stream of the foregoing 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] Step S504, decoding the code streams of the multiple main colors in descending order of the gradient values ​​corresponding to the multiple main colors.

[0104] In an optional embodiment, after encoding the gradient values ​​of multiple main colors from large to small, the encoding...

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 上海京达芯联信息技术有限公司
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More