CN105513100A - Method for automatically selecting image compression quality and compressing image - Google Patents

Method for automatically selecting image compression quality and compressing image Download PDF

Info

Publication number
CN105513100A
CN105513100A CN201510877037.7A CN201510877037A CN105513100A CN 105513100 A CN105513100 A CN 105513100A CN 201510877037 A CN201510877037 A CN 201510877037A CN 105513100 A CN105513100 A CN 105513100A
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.)
Granted
Application number
CN201510877037.7A
Other languages
Chinese (zh)
Other versions
CN105513100B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to the technical field of electronics and more particularly relates to a method for automatically selecting the image compression quality and compressing an image. The method is characterized by comprising the following steps of A, establishing an image feature database for storing image features, wherein each image feature corresponds to a corresponding compression quality; B, preparing a pre-compressed image: preparing one or more pre-compressed images, extracting and analyzing the image feature of each pre-compressed image; C, searching the compression quality: comparing the image feature of each pre-compressed image with image features stored in the database, and respectively searching an image feature that is closest to the image feature of each pre-compressed image in the database; D, compressing images: according to searched image features, compressing each pre-compressed image according to the corresponding compression quality, and storing the compressed image. According to the technical scheme of the invention, the method can automatically select the compression quality, so that the manual participation is reduced. Meanwhile, the requirement on the specialized knowledge and the experience of a user is reduced.

Description

A kind of automatic selection picture compression quality the method for compressed picture
Technical field
The present invention relates to electronic technology field, relate to a kind of automatic selection picture compression quality more specifically and the method for compressed picture.
Background technology
Here the compression said does not change the size of picture and the quantity of pixel, just changed the size of picture file by adjustment compression quality.Ratio of compression=(file size of the rear picture of file size/compression of former figure), compression quality is from 0---100.Here compression is often referred to the compression of jpeg picture, also can be applied to the extended formatting picture with jpeg same principle.Compression quality for the former figure of general picture (source mobile phone camera, digital camera) is 99, and compression quality 97 is former map file sizes 1/2, and compression quality 94 can be 1/3 of former map file size, and compression quality 91 is 1/4 of former map file size.The feature of different picture is different, and in the unresolvable situation of the vision of people, ratio of compression can have difference.A common background is the portrait photo of landscape, and compression quality can be 94, be compressed into that camera takes file size 1/3, and the vision of people to distinguish the photo (even developing and printing out) before and after compression.And the photo of a texture complexity is as the feature of face, compression quality is with regard to 97, and the file after compression can be 1/2 of original file.And the portrait photo of a distant view, compression quality can be selected to be 91, file after compression can be that 1/4. of original file arranges the method for compression quality now all by artificially setting (as PhotoShop can arrange the compression quality of jpeg picture), people is needed to judge the compressible quality of photo for going, for the picture of batch, personalized setting can not be realized.
Summary of the invention
The present invention, for overcoming at least one defect (deficiency) described in above-mentioned prior art, provides a kind of automatic selection picture compression quality and the method for compressed picture.
For solving the problems of the technologies described above, technical scheme of the present invention is as follows:
Automatic selection picture compression quality a method for compressed picture, is characterized in that, comprise following steps:
A. set up picture feature database: preserve picture feature in described database, wherein each picture feature all has the compression quality corresponding with it;
B. prepare precompressed picture: prepare individual or multiple precompression pictures, extract and analyze the picture feature of often opening precompression picture;
C. compression quality search: the picture feature of often opening precompression picture and the picture feature in described database are contrasted, and the immediate picture feature of picture feature of search and precompression picture respectively in a database;
D. picture compression: according to the picture feature searched, compressing often opening precompression picture according to the compression quality corresponding with it, then preserving.
Further, as optimal technical scheme, aforementioned picture feature refers to the color histogram of picture, color moment, color distribution figure 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 setting up picture feature database in abovementioned steps A comprises the following steps:
A. picture under different scene is collected;
B. extract and analyze the color histogram of every pictures, color moment, color distribution figure and/or picture texture complexity degree grade;
C. between compression quality 80-98, generate compressed picture, the picture after compression is contrasted by artificial and former picture, obtains and the unresolvable compression quality of former picture naked eyes;
D. the picture feature of former figure, extraction and the corresponding compression quality that obtains are preserved to form database.
Further, as optimal technical scheme, the method setting up picture feature database in abovementioned steps A also comprises step e. and feeds back according to the situation of process picture, constantly increases and optimization data storehouse.
Further, as optimal technical scheme, also comprise step e. artificial treatment: if be unsatisfied with the quality of picture, manual amendment's compression quality, to be met the picture of vision requirement.
Further, as optimal technical scheme, also comprise step F. data base optimization: the former figure of picture through manually adjusting compression quality, the picture feature of extraction and corresponding compression quality are added in database, with abundant and optimization data storehouse.
Compared with prior art, the beneficial effect of technical solution of the present invention is:
1. of the present inventionly selecting corresponding compression quality by extracting picture feature (the texture complexity degree grade as color histogram, color moment, color distribution figure, picture) meeting under vision requirement in the database automatically in picture feature, reducing picture file size.
2. the present invention can realize picture batch processing, reduces artificial participation, reduces the threshold needing professional standing and experience when arranging user, by reducing the file size of picture, reduces the space stored and the time reducing transmission.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described further.
Embodiment 1
Automatic selection picture compression quality a method for compressed picture, is characterized in that, comprise following steps:
A. set up picture feature database: preserve picture feature in described database, wherein each picture feature all has the compression quality corresponding with it, and wherein said compression quality is between 80-98; Concrete method for building up comprises following steps:
A. picture under different scene is collected;
B. extract and analyze the color histogram of every pictures, color moment, color distribution figure and/or picture texture complexity degree grade;
C. between compression quality 80-98, generate compressed picture, the picture after compression is contrasted by artificial and former picture, obtains and the unresolvable compression quality of former picture naked eyes;
D. the picture feature of former figure, extraction and the corresponding compression quality that obtains are preserved to form database.
B. prepare precompressed picture: prepare individual or multiple precompression pictures, extract and analyze and often open the picture feature of precompression picture, described picture feature refers to the color histogram of picture, color moment, color distribution figure and/or picture texture complexity degree grade;
C. compression quality search: the picture feature of often opening precompression picture and the picture feature in described database are contrasted, and the immediate picture feature of picture feature of search and precompression picture respectively in a database;
D. picture compression: according to the picture feature searched, compressing often opening precompression picture according to the compression quality corresponding with it, then preserving.
Embodiment 2
The present embodiment is similar to embodiment 1, and further, the method setting up picture feature database in described steps A also comprises step e. and feeds back according to the situation of process picture, constantly increases and optimization data storehouse.
Embodiment 3
The present embodiment is similar to embodiment 1 or embodiment 2, further, also comprises step e and step F, and wherein step e is artificial treatment: if be unsatisfied with the quality of picture, manual amendment's compression quality, to be met the picture of vision requirement; Wherein step F is data base optimization: add in database, with abundant and optimization data storehouse by the former figure of picture through manually adjusting compression quality, the picture feature of extraction and corresponding compression quality.
Obviously, the above embodiment of the present invention is only for example of the present invention is clearly described, and is not the restriction to embodiments of the present invention.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all embodiments.All any amendments done within the spirit and principles in the present invention, equivalent to replace and improvement etc., within the protection domain that all should be included in the claims in the present invention.

Claims (7)

1. automatically select picture compression quality and a method for compressed picture, it is characterized in that, comprise following steps:
A. set up picture feature database: preserve picture feature in described database, wherein each picture feature all has the compression quality corresponding with it;
B. prepare precompressed picture: prepare individual or multiple precompression pictures, extract and analyze the picture feature of often opening precompression picture;
C. compression quality search: the picture feature of often opening precompression picture and the picture feature in described database are contrasted, and the immediate picture feature of picture feature of search and precompression picture respectively in a database;
D. picture compression: according to the picture feature searched, compressing often opening precompression picture according to the compression quality corresponding with it, then preserving.
2. automatic selection picture compression quality according to claim 1 the method for compressed picture, is characterized in that, described picture feature refers to the color histogram of picture, color moment, color distribution figure and/or picture texture complexity degree grade.
3. automatic selection picture compression quality according to claim 1 the method for compressed picture, it is characterized in that, described compression quality is between 80-98.
4. the automatic selection picture compression quality according to any one of claim 1-3 the method for compressed picture, it is characterized in that, the method setting up picture feature database in described steps A comprises the following steps:
A. picture under different scene is collected;
B. extract and analyze the color histogram of every pictures, color moment, color distribution figure and/or picture texture complexity degree grade;
C. between compression quality 80-98, generate compressed picture, the picture after compression is contrasted by artificial and former picture, obtains and the unresolvable compression quality of former picture naked eyes;
D. the picture feature of former figure, extraction and the corresponding compression quality that obtains are preserved to form database.
5. automatic selection picture compression quality according to claim 4 the method for compressed picture, it is characterized in that, the method setting up picture feature database in described steps A also comprises step e. and feeds back according to the situation of process picture, constantly increases and optimization data storehouse.
6. automatic selection picture compression quality according to claim 4 the method for compressed picture, is characterized in that, also comprise step e. artificial treatment: if be unsatisfied with the quality of picture, manual amendment's compression quality, to be met the picture of vision requirement.
7. automatic selection picture compression quality according to claim 6 the method for compressed picture, it is characterized in that, also comprise step F. data base optimization: the former figure of picture through manually adjusting compression quality, the picture feature of extraction and corresponding compression quality are added in database, with abundant and optimization data storehouse.
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 true CN105513100A (en) 2016-04-20
CN105513100B 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)

Cited By (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
CN107766492A (en) * 2017-10-18 2018-03-06 北京京东尚科信息技术有限公司 A kind of method and apparatus of picture search
CN107888707A (en) * 2017-12-08 2018-04-06 北京奇艺世纪科技有限公司 A kind of picture transmission method, device and electronic equipment
US20220053195A1 (en) * 2020-06-13 2022-02-17 Google Llc Learning-based image compression setting

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

Cited By (5)

* 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
CN107766492A (en) * 2017-10-18 2018-03-06 北京京东尚科信息技术有限公司 A kind of method and apparatus of picture search
CN107766492B (en) * 2017-10-18 2020-07-31 北京京东尚科信息技术有限公司 Image searching method and device
CN107888707A (en) * 2017-12-08 2018-04-06 北京奇艺世纪科技有限公司 A kind of picture transmission method, device and electronic equipment
US20220053195A1 (en) * 2020-06-13 2022-02-17 Google Llc Learning-based image compression setting

Also Published As

Publication number Publication date
CN105513100B (en) 2018-07-17

Similar Documents

Publication Publication Date Title
CN109068056B (en) Electronic equipment, filter processing method of image shot by electronic equipment and storage medium
CN105513100A (en) Method for automatically selecting image compression quality and compressing image
US11263723B2 (en) Image warping method and device
US9247106B2 (en) Color correction based on multiple images
CN108206917B (en) Image processing method and device, storage medium and electronic device
CN108062755B (en) Intelligent picture clipping method and device
CN104216976A (en) Method and system for viewing pictures of mobile terminal by groups
CN108122238A (en) Image processing method, device, equipment and computer readable storage medium
CN102546945A (en) Method for automatically optimizing mobile phone photography
CN104615400B (en) Show the method and apparatus of visual information
WO2015184896A1 (en) Image classification method, device, and smart terminal
CN110266955B (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN105447846B (en) Image processing method and electronic equipment
CN107609561A (en) A kind of big data image processing method
EP2890109A1 (en) Method for sorting a group of images of a database and method for color correcting an image, corresponding devices, computer program and non-transitory computer-readable medium
CN114257730A (en) Image data processing method and device, storage medium and computer equipment
CN112712564A (en) Camera shooting method and device, storage medium and electronic device
WO2016202073A1 (en) Image processing method and apparatus
CN106251316B (en) The restorative procedure and device of photo
CN103491355A (en) Method and system for eliminating luminance and chromaticity differences of panoramic image
US20160360079A1 (en) Generation apparatus and method for evaluation information, electronic device and server
US8384801B2 (en) Scene-dependent auto exposure control
CN101489044B (en) Video scenery identification method
CN106169172A (en) A kind of method and system of image procossing
Zhang et al. A real-time auto white balance algorithm for mobile phone cameras

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