CN105513100B - A method of automatically selecting picture compression quality and compressed picture - Google Patents

A method of automatically selecting picture compression quality and compressed picture Download PDF

Info

Publication number
CN105513100B
CN105513100B CN201510877037.7A CN201510877037A CN105513100B CN 105513100 B CN105513100 B CN 105513100B CN 201510877037 A CN201510877037 A CN 201510877037A CN 105513100 B CN105513100 B CN 105513100B
Authority
CN
China
Prior art keywords
picture
compression quality
feature
database
compressed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510877037.7A
Other languages
Chinese (zh)
Other versions
CN105513100A (en
Inventor
李赛健
陈振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ike Image Technology Co Ltd
Original Assignee
Guangzhou Ike Image Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Ike Image Technology Co Ltd filed Critical Guangzhou Ike Image Technology Co Ltd
Priority to CN201510877037.7A priority Critical patent/CN105513100B/en
Publication of CN105513100A publication Critical patent/CN105513100A/en
Application granted granted Critical
Publication of CN105513100B publication Critical patent/CN105513100B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Abstract

The present invention relates to electronic technology fields, more particularly relate to a kind of method automatically selecting picture compression quality and compressed picture, which is characterized in that comprise the steps of:A. picture feature database is established:Picture feature is preserved in the database, wherein each picture feature has corresponding compression quality;B. prepare precompressed picture:Prepare individual or multiple precommpression pictures, extracts and analyze the picture feature of every precommpression picture;C. compression quality is searched for:The picture feature of every precommpression picture and the picture feature in the database are compared, and search for the immediate picture feature of picture feature with precommpression picture respectively in the database;D. picture compression:According to the picture feature searched, every precommpression picture is compressed according to corresponding compression quality, is then preserved.The present invention can automatically select compression quality, reduce artificial participation, reduce the threshold to needing professional standing and experience when user setting.

Description

A method of automatically selecting picture compression quality and compressed picture
Technical field
The present invention relates to electronic technology fields, more particularly relate to one kind and automatically selecting picture compression quality and compressed picture Method.
Background technology
Compression said herein is the quantity of the size and pixel that do not change picture, changes figure simply by adjustment compression quality The size of piece file.Compression ratio=(The file size of picture after file size/compression of artwork), compression quality is from 0---100. Here compression is often referred to the compression of jpeg pictures, can also be applied to the extended formatting picture with jpeg same principles.For General picture artwork(Source mobile phone camera, digital camera) compression quality be 99, compression quality 97 is artwork file size 1/2, compression quality 94 can be the 1/3 of artwork file size, and compression quality 91 is the 1/4 of artwork file size.Difference figure The characteristics of piece, is different, and the vision in people is unresolvable, and compression ratio can be different.One common background is landscape Portrait photo, compression quality can be 94, be compressed into camera and take and come the 1/3 of file size, the vision of people is to be unable to area Photo before and after partial compression(Come even being punched out).As soon as and the feature of the photo such as face of texture complexity, compression quality 97, compressed file can be the 1/2 of original file.And the portrait photo of a distant view, it is 91 that can select compression quality, Compressed file can be that the method for 1/4. present setting compression quality of original file is all by artificial settings(Such as The compression quality of jpeg pictures can be arranged in PhotoShop), need artificially to go to judge the compressible quality of photo, for batch Picture for, can not achieve personalized setting.
Invention content
The present invention is at least one defect overcome described in the above-mentioned prior art(It is insufficient), one kind is provided and automatically selects picture The method of compression quality and compressed picture.
In order to solve the above technical problems, technical scheme is as follows:
A method of automatically selecting picture compression quality and compressed picture, which is characterized in that comprise the steps of:
A. picture feature database is established:Picture feature is preserved in the database, wherein each picture feature has Corresponding compression quality;
B. prepare precompressed picture:Prepare individual or multiple precommpression pictures, extracts and analyze every precommpression picture Picture feature;
C. compression quality is searched for:Picture feature in the picture feature of every precommpression picture and the database is carried out Comparison, and search for the immediate picture feature of picture feature with precommpression picture respectively in the database;
D. picture compression:According to the picture feature searched, according to corresponding compression quality to every precompressed contract drawing Piece is compressed, and is then preserved.
Further, as optimal technical scheme, aforementioned picture is characterized in referring to the color histogram, color moment, face of picture Color distribution map and/or picture texture complexity degree grade.
Further, as optimal technical scheme, aforementioned compression quality is between 80-98.
Further, as optimal technical scheme, the method for establishing picture feature database in abovementioned steps A include with Lower step:
A. picture under different scenes is collected;
B. extract and analyze color histogram, color moment, distribution of color figure and/or the picture texture complexity per pictures Intensity grade;
C. compressed picture is generated between compression quality 80-98, compressed picture is carried out by artificial and original picture Comparison obtains and the unresolvable compression quality of original picture naked eyes;
D. artwork, the picture feature of extraction and obtained corresponding compression quality are preserved to form database.
Further, as optimal technical scheme, the method for establishing picture feature database in abovementioned steps A further includes Step e. is fed back according to the case where processing picture, is constantly increasing and optimizes database.
Further, further include step E. artificial treatments as optimal technical scheme:If the quality to picture is dissatisfied, Manual amendment's compression quality, to obtain the picture for meeting vision requirement.
Further, further include step F. data base optimizations as optimal technical scheme:It will be through manually adjusting compression quality The artwork of picture, the picture feature of extraction and corresponding compression quality be added in database, with abundant and optimization database.
Compared with prior art, the advantageous effect of technical solution of the present invention is:
1. the present invention's passes through extraction picture feature(Such as color histogram, the texture of color moment, distribution of color figure, picture Complexity grade)It selects corresponding compression quality in the database of picture feature automatically in the case where meeting vision requirement, reduces Picture file size.
2. the present invention can realize picture batch processing, artificial participation is reduced, is reduced to needing profession when user setting The threshold of knowledge and experience, by reducing the file size of picture, reducing the space of storage and reducing the time of transmission.
Specific implementation mode
The following further describes the technical solution of the present invention with reference to the accompanying drawings and examples.
Embodiment 1
A method of automatically selecting picture compression quality and compressed picture, which is characterized in that comprise the steps of:
A. picture feature database is established:Picture feature is preserved in the database, wherein each picture feature has Corresponding compression quality, wherein the compression quality is between 80-98;Specific method for building up comprises the steps of:
A. picture under different scenes is collected;
B. extract and analyze color histogram, color moment, distribution of color figure and/or the picture texture complexity per pictures Intensity grade;
C. compressed picture is generated between compression quality 80-98, compressed picture is carried out by artificial and original picture Comparison obtains and the unresolvable compression quality of original picture naked eyes;
D. artwork, the picture feature of extraction and obtained corresponding compression quality are preserved to form database.
B. prepare precompressed picture:Prepare individual or multiple precommpression pictures, extracts and analyze every precommpression picture Picture feature, the picture feature refers to that color histogram, color moment, distribution of color figure and/or the picture texture of picture are multiple Miscellaneous intensity grade;
C. compression quality is searched for:Picture feature in the picture feature of every precommpression picture and the database is carried out Comparison, and search for the immediate picture feature of picture feature with precommpression picture respectively in the database;
D. picture compression:According to the picture feature searched, according to corresponding compression quality to every precompressed contract drawing Piece is compressed, and is then preserved.
Embodiment 2
The present embodiment is similar to embodiment 1, further, the method for establishing picture feature database in the step A Further include that step e. is fed back according to the case where processing picture, is constantly increasing and optimizes database.
Embodiment 3
The present embodiment further includes further step E and step F, wherein step E similar to embodiment 1 or embodiment 2 For artificial treatment:If the quality to picture is dissatisfied, manual amendment's compression quality, to obtain the picture for meeting vision requirement;Its Middle step F is data base optimization:By the artwork of the picture through manually adjusting compression quality, the picture feature of extraction and corresponding pressure Contracting quality is added in database, with abundant and optimization database.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention.For those of ordinary skill in the art, may be used also on the basis of the above description To make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.It is all this All any modification, equivalent and improvement etc., should be included in the claims in the present invention made by within the spirit and principle of invention Protection domain within.

Claims (7)

1. a kind of method automatically selecting picture compression quality and compressed picture, which is characterized in that comprise the steps of:
A. picture feature database is established:Picture feature is preserved in the database, wherein each picture feature has and it Corresponding compression quality;
B. prepare precompressed picture:Prepare individual or multiple precommpression pictures, extracts and analyze the figure of every precommpression picture Piece feature;
C. compression quality is searched for:Picture feature in the picture feature of every precommpression picture and the database is carried out pair Than, and search for the immediate picture feature of picture feature with precommpression picture respectively in the database;
D. picture compression:According to the picture feature searched, according to corresponding compression quality to every precommpression picture into Row compression, then preserves.
2. the method according to claim 1 for automatically selecting picture compression quality and compressed picture, which is characterized in that described Picture feature refers to color histogram, color moment, distribution of color figure and/or the picture texture complexity degree grade of picture.
3. the method according to claim 1 for automatically selecting picture compression quality and compressed picture, which is characterized in that described Compression quality is between 80-98.
4. automatically selecting picture compression quality and the method for compressed picture, feature according to claim 1-3 any one of them It is, the method for establishing picture feature database in the step A includes the following steps:
A. picture under different scenes is collected;
B. extract and analyze color histogram, color moment, distribution of color figure and/or the picture texture complexity degree per pictures Grade;
C. compressed picture is generated between compression quality 80-98, compressed picture is carried out pair by artificial and original picture Than obtaining and the unresolvable compression quality of original picture naked eyes;
D. artwork, the picture feature of extraction and obtained corresponding compression quality are preserved to form database.
5. the method according to claim 4 for automatically selecting picture compression quality and compressed picture, which is characterized in that institute It further includes that step e. is fed back according to the case where processing picture to state the method for establishing picture feature database in step A, no Increase and optimize disconnectedly database.
6. the method according to claim 4 for automatically selecting picture compression quality and compressed picture, which is characterized in that also wrap Include step E. artificial treatments:If the quality to picture is dissatisfied, manual amendment's compression quality, to obtain the figure for meeting vision requirement Piece.
7. the method according to claim 6 for automatically selecting picture compression quality and compressed picture, which is characterized in that also wrap Include step F. data base optimizations:By the artwork of the picture through manually adjusting compression quality, the picture feature of extraction and corresponding pressure Contracting quality is added in database, with abundant and optimization database.
CN201510877037.7A 2015-12-03 2015-12-03 A method of automatically selecting picture compression quality and compressed picture Expired - Fee Related CN105513100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510877037.7A CN105513100B (en) 2015-12-03 2015-12-03 A method of automatically selecting picture compression quality and compressed picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510877037.7A CN105513100B (en) 2015-12-03 2015-12-03 A method of automatically selecting picture compression quality and compressed picture

Publications (2)

Publication Number Publication Date
CN105513100A CN105513100A (en) 2016-04-20
CN105513100B true CN105513100B (en) 2018-07-17

Family

ID=55721057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510877037.7A Expired - Fee Related CN105513100B (en) 2015-12-03 2015-12-03 A method of automatically selecting picture compression quality and compressed picture

Country Status (1)

Country Link
CN (1) CN105513100B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106683050A (en) * 2016-12-29 2017-05-17 深圳市金立通信设备有限公司 Picture compression method and terminal
CN107766492B (en) * 2017-10-18 2020-07-31 北京京东尚科信息技术有限公司 Image searching method and device
CN107888707B (en) * 2017-12-08 2021-04-20 北京奇艺世纪科技有限公司 Picture transmission method and device and electronic equipment
EP3942467A1 (en) * 2020-06-13 2022-01-26 Google LLC Machine learning-based image compression setting reflecting user preferences

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075348A (en) * 2006-11-30 2007-11-21 腾讯科技(深圳)有限公司 Method and device for compressing image
CN102611823A (en) * 2012-01-13 2012-07-25 百度在线网络技术(北京)有限公司 Method and equipment capable of selecting compression algorithm based on picture content
CN102868847A (en) * 2012-10-19 2013-01-09 北京奇虎科技有限公司 Image type based processing method and device
CN102957906A (en) * 2011-08-29 2013-03-06 广州九游信息技术有限公司 Method and system for image classifying compression
CN103475876A (en) * 2013-08-27 2013-12-25 北京工业大学 Learning-based low-bit-rate compression image super-resolution reconstruction method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075348A (en) * 2006-11-30 2007-11-21 腾讯科技(深圳)有限公司 Method and device for compressing image
CN102957906A (en) * 2011-08-29 2013-03-06 广州九游信息技术有限公司 Method and system for image classifying compression
CN102611823A (en) * 2012-01-13 2012-07-25 百度在线网络技术(北京)有限公司 Method and equipment capable of selecting compression algorithm based on picture content
CN102868847A (en) * 2012-10-19 2013-01-09 北京奇虎科技有限公司 Image type based processing method and device
CN103475876A (en) * 2013-08-27 2013-12-25 北京工业大学 Learning-based low-bit-rate compression image super-resolution reconstruction method

Also Published As

Publication number Publication date
CN105513100A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105513100B (en) A method of automatically selecting picture compression quality and compressed picture
CN109068056B (en) Electronic equipment, filter processing method of image shot by electronic equipment and storage medium
US11455516B2 (en) Image lighting methods and apparatuses, electronic devices, and storage media
US9406148B2 (en) Image processing method and apparatus, and shooting terminal
CN108062755B (en) Intelligent picture clipping method and device
CN106358029B (en) A kind of method of video image processing and device
CN105046658B (en) A kind of low-light (level) image processing method and device
CN108062739B (en) Intelligent picture clipping method and device based on main body position
CN108122238A (en) Image processing method, device, equipment and computer readable storage medium
US20130215234A1 (en) Method and apparatus for stereo matching
WO2019061766A1 (en) Image processing method and device
CN104811684A (en) Three-dimensional beautification method and device of image
CN104581199B (en) Processing system for video and its processing method
CN102546945A (en) Method for automatically optimizing mobile phone photography
CN104349070A (en) High dynamic range image exposure time control method
CN106303354A (en) A kind of face specially good effect recommends method and electronic equipment
CN107256528A (en) A kind of method and device for handling picture
CN104994362A (en) Method and device for processing white balance
CN106815803A (en) The processing method and processing device of picture
CN104091357B (en) Method for generating mosaic images on line through subject-related images
CN106097261A (en) Image processing method and device
CN106169172A (en) A kind of method and system of image procossing
CN109646950B (en) Image processing method and device applied to game scene and terminal
CN106023117B (en) Backlight image recovery method based on non-linear brightness lift scheme
CN107680050A (en) A kind of color rendition method for AMOLED drivings

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 510000 Room 301, Third Floor, Seven Buildings, No. 2 Tiantai Road, Science City, Guangzhou High-tech Industrial Development Zone, Guangzhou, Guangdong Province

Patentee after: GUANGZHOU IKE IMAGE TECHNOLOGY Co.,Ltd.

Address before: 510000 Unit 402, 4th Floor, B2 Creative Building, 162 Science Avenue, Science City, Guangzhou High-tech Industrial Development Zone, Guangzhou, Guangdong Province

Patentee before: GUANGZHOU IKE IMAGE TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180717

Termination date: 20211203

CF01 Termination of patent right due to non-payment of annual fee