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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap