Generative image compression method and device suitable for text document
A text document and image compression technology, applied in the field of information processing, can solve problems such as document image optimization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0113] A generative image compression method suitable for text documents, comprising the following steps:
[0114] (1) Convert the text document to an RGB bitmap;
[0115] (2) Pre-construct the color table according to the characteristics of the text document;
[0116] (3) Mapping the RGB bitmap to an index, using the RGB value of each pixel to map with the color table, searching for the closest color value in the color table, determining the corresponding index color, and recording the index number to form an index color image;
[0117] (4) Compress the image data area according to LZW or other data compression algorithms to form the final image file.
[0118] Said conversion of a text document into an RGB bitmap includes:
[0119]Construct an RGB bitmap according to the YUV parameters of the scanned image of the text document;
[0120]
[0121]
[0122]
[0123] R, G, and B represent the color values of the three channels of red, green, and blue; Y represents t...
Embodiment 2
[0195] A generative image compression apparatus suitable for text documents, comprising:
[0196] RGB Bitmap Converter: Convert text documents to RGB bitmaps;
[0197] Color table building block: pre-build color table according to text document features;
[0198] Color indexer: Map and index the RGB bitmap, use the RGB value of each pixel to map with the color table, find the closest color value in the color table, determine the corresponding index color, and record the index number to form an index color image ;
[0199] Image compressor: Compress the image data area according to LZW or other data compression algorithms to form the final image file.
[0200] In practical applications, under the condition that the final restoration effect is permitted, the length of the data area selected in step (2) of the above-mentioned compression method can be changed, for example, 1 bit, 4 bit or 8 bit is selected, so that the color description ability in the original picture represent...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com