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

Method and device for compressing image

A technology of image compression and compression algorithm, which is applied in the field of image processing, can solve the problems of wasting computer computing power and low image compression processing efficiency, and achieve the effects of saving computer computing power, fast image type, and improving processing efficiency

Active Publication Date: 2009-07-15
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] However, the disadvantage of this scheme is: in this technique, when compressing the image, the computer image needs to be compressed twice, the first time the DCT algorithm is used for compression to obtain the compression ratio multiple, and when it is judged as a computer image, the computer image needs to be compressed twice. Lossless compression algorithms such as Deflate need to be used for compression, so the image compression processing efficiency is low, and it will also greatly waste computer computing power

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 for compressing image
  • Method and device for compressing image
  • Method and device for compressing image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0032] The main idea of ​​the present invention is: before starting to compress the image, first determine the type of the image. For computer images with a small number of colors and the color values ​​have some characteristics of the same direction, the lossless compression algorithm is used to compress; for natural landscape images with a large number of colors and the frequency of color value changes quickly, a lossy compression algorithm is used to compress the image. The image is compressed.

[0033] image 3 It is a flowchart of an exemplary method for compressing images according to the present invention. Such as image 3 As shown, the method includes:

[0034] Step 301: Select at least two statistical points from the imag...

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 an image compression method, comprising: selecting at least two statistical points from the image, judging whether the sum of the color numbers of the selected statistical points is greater than a preset color number threshold, and if greater, adopting lossy compression The algorithm compresses the image; if it is not larger, the image is compressed using a lossless compression algorithm. The invention also discloses an image compression device, wherein: a statistical point selection module is used to select at least two statistical points from the image; an image type discrimination module is used to judge whether the sum of the colors of the selected statistical points is greater than Pre-set color number threshold; image compression module, used to compress the image using a lossy compression algorithm when the sum of the color numbers of the selected statistical points is greater than the color number threshold; otherwise, lossless compression is used Algorithms compress images. After the invention is applied, the image compression processing efficiency is improved, and the computing power can be saved at the same time.

Description

technical field [0001] The present invention relates to the technical field of image processing, and more specifically, the present invention relates to an image compression method and device. Background technique [0002] The process of performing artificial compression on image information (data) is called image compression. Image compression is a technique to represent an image or the information contained in an image with as few bits as possible. Compression schemes can preserve the original information, that is, the original image can be reconstructed from the compressed image without error. Compression schemes can also be non-information preserving, ie allow some reasonable degree of distortion from the original image. At present, commonly used compression methods include: image transformation, predictive compression technology, adaptive compression technology, color image compression, binary image compression, run-length coding, "high frequency component" and "low f...

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 Patents(China)
IPC IPC(8): G06T9/00
Inventor 伍海君
Owner TENCENT TECH (SHENZHEN) CO LTD
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