Picture compression method

A compression method and picture technology, applied in the field of visual inspection, can solve the problems of unstable image compression rate and sacrifice compression speed, and achieve the effect of reducing transmission and storage pressure, good compression effect, and meeting tempo requirements.

Pending Publication Date: 2022-04-12
易思维(杭州)科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, JPEG is lossy compression. Considering the need to avoid introducing noise in the application, lossless compression technology should be used, so JPEG is excluded; PNG is lossless compression, and it is a special compression algorithm for images, but because of its pursuit of higher compression rate. Compression speed is sacrificed; ZLIB and LZ4 are general-purpose binary compression algorithms, and the compression rate of images is not stable

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
  • Picture compression method
  • Picture compression method
  • Picture compression method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0041] A method for compressing pictures, comprising the steps of:

[0042] 1) Determine the background color of a single picture, and divide the primitives according to the width x and height y; in order to ensure that a single picture is completely divided into multiple primitives, it is necessary to ensure that the width and height of a single picture are the minimum of x and y respectively Integer multiples, the method to meet this requirement is: first expand a single image by using the background color, and then divide the graphic elements;

[0043] 2) screen the graphic elements whose internal pixels are the background color, filter, and record the remaining graphic elements as the graphic elements to be encoded;

[0044] 3) Use the background color of a single picture, the background color of the primitive ...

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 a picture compression method, which comprises the following steps of: 1) determining a background color of a single picture, and dividing primitives; 2) screening pixels of which the pixels are all background colors, filtering, and recording the remaining pixels as to-be-coded pixels; 3) determining a basic color; replacing all basic colors in the primitives with K; determining coding format types for all non-K pixels in the to-be-coded primitives according to coding levels selected by a user, acquiring a format with the minimum storage length in each format in the same coding level, and performing compression storage on the primitives by using the format; when the format with the minimum storage length in each format in the same coding level is obtained, the storage lengths of the formats 1-4 are obtained through calculation, and the storage length of the format 5 is obtained based on a coding result. According to the image compression method, the image can be compressed to a certain degree in a short time, the beat requirement is met, and the transmission and storage pressure is reduced to a certain degree.

Description

technical field [0001] The invention relates to the field of visual detection, in particular to a picture compression method. Background technique [0002] When using machine vision to measure and recognize high-speed objects, the collected images are usually grayscale. At this time, the frequency of image collection is high and the number is large, and BMP encoding is generally used. BMP encoding is fast and lossless, but does not compress image data, which puts a lot of pressure on transmission and storage. Currently commonly used compression algorithms include JPEG, PNG, ZLIB, LZ4, etc. Among them, JPEG is lossy compression. Considering the need to avoid introducing noise in the application, lossless compression technology should be used, so JPEG is excluded; PNG is lossless compression, and it is a special compression algorithm for images, but because of its pursuit of higher compression ratio. Compression speed is sacrificed; ZLIB and LZ4 are general-purpose binary co...

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): G06T9/00
Inventor 庄洵李强高圩王立
Owner 易思维(杭州)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products