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

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com