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

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

Active Publication Date: 2019-05-21
北京数科网维技术有限责任公司
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current image compression algorithm is not optimized for official document images. A generative image compression method described in this invention is suitable for image files generated by text documents, and can effectively compress image files while maintaining the original display effect. Small size, which is conducive to the sharing and utilization of files

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
  • Generative image compression method and device suitable for text document
  • Generative image compression method and device suitable for text document
  • Generative image compression method and device suitable for text document

Examples

Experimental program
Comparison scheme
Effect test

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

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 relates to the field of information processing, in particular to a generation type image compression method and device suitable for text documents. The method comprises the following steps: (1) converting a text document into an RGB bitmap; (2) pre-constructing a color table according to the characteristics of the text document; (3) mapping and indexing the RGB bitmap, mapping the RGB value of each pixel with a color table, finding the closest color value in the color table, determining a corresponding index color, and recording an index number to form an index color image; and (4) compressing the image data area according to an LZW or other data compression algorithm to form a final image file. By means of the image compression method, reasonable filtering and denoising areadaptively conducted on the document official document, original character and color information is reserved as much as possible in the image scanning and compressing process, denoising is simple andhigh in speed, a document conversion algorithm is easy to program, and the image compression method is suitable for document storage work with the document official document type pixel low in color complexity.

Description

technical field [0001] The invention relates to the field of information processing, in particular to a generative image compression method and device suitable for text documents. Background technique [0002] With the development of information technology, a large number of paper official documents left over from history need to be digitized, and the common way is to save them in the form of scanned images; at the same time, as a serious content carrier, electronic official documents have their own fixed format. Using image format as the carrier of official documents for information disclosure and sharing can achieve a better balance in terms of convenience and accuracy. [0003] The current image compression algorithm is not optimized for official document images. A generative image compression method described in this invention is suitable for image files generated from text documents, and can effectively compress image files while maintaining the original display effect....

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/21G06T9/00G06F17/16
CPCY02D10/00
Inventor 刘丹陈亚军王少康
Owner 北京数科网维技术有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products