CN104715450A - Method and system for extracting icons from picture - Google Patents

Method and system for extracting icons from picture Download PDF

Info

Publication number
CN104715450A
CN104715450A CN201310690420.2A CN201310690420A CN104715450A CN 104715450 A CN104715450 A CN 104715450A CN 201310690420 A CN201310690420 A CN 201310690420A CN 104715450 A CN104715450 A CN 104715450A
Authority
CN
China
Prior art keywords
picture
icon
marquee
resolution
extracts
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.)
Pending
Application number
CN201310690420.2A
Other languages
Chinese (zh)
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.)
Founder International Co Ltd
Founder International Beijing Co Ltd
Original Assignee
Founder International Co Ltd
Founder International Beijing 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 Founder International Co Ltd, Founder International Beijing Co Ltd filed Critical Founder International Co Ltd
Priority to CN201310690420.2A priority Critical patent/CN104715450A/en
Publication of CN104715450A publication Critical patent/CN104715450A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a method and system for extracting icons from a picture and belongs to the field of picture processing. The method for extracting the icons from the picture comprises the following steps of uploading the picture with icons needing to be extracted, and dragging an icon marquee to choose a picture scope in the icons; processing the picture, wherein the resolution of the picture is increased and then an auto-correction of the color of the picture and the cropping of the picture in the icons are performed; generating a group of the icons according to preset sizes. According to the method and system for extracting the icons from the picture, a set of the corrected icons with the high resolution and different sizes can be generated very conveniently, therefore, the efficiency of icon making is greatly improved, and the display effect is strengthened.

Description

A kind of method and system extracting icon from picture
Technical field
The invention belongs to picture processing field, be specifically related to a kind of method and system by extracting icon to picture processing, be mainly used in and system diagram target is extracted, reach the object of quick Fabrication icon.
Background technology
Along with popularizing of internet, people use the daily routines such as internet shopping, social activity, office, amusement, and the requirement of people to internet is also more and more higher, wishes that its operation is as far as possible simple, intelligent.People start to be not content with present situation, increasing people participates in personalized application and development, and wish to help people to complete the hope of application and development by the intellectuality of computing machine, utilize picture extractive technique that certain part of picture is just needed computing to realize as icon.
The icon that one represents this application characteristic is all needed for common developer's terminal applies, user is helped to distinguish it, but make and a set ofly there is profound connotation and simple, the icon understood not is easy thing, one pictures can be any shape, any size, any color, but the requirement of icon is wanted strict many, picture background, size, resolution etc. all need to fix, how a part required in picture is made into icon, both the cost of design had been saved, enrich again the content of icon, for the structure of application provides better support.
Although extract icon from picture there is higher practical value, but there is a lot of problem in implementation procedure, as extruding when larger picture reduces and stretching, distortion after the picture that resolution is low or size is less than icon amplifies, bright or excessively dark automatic calibration crossed by picture itself, meanwhile, then must require higher as the mark of an application as the result extracted, as high in resolution, generate the singularity requirements such as many sizes icon.
The shear treatment of picture is mainly comprised to the cutting, geometry correction, character recognition, area size's selection etc. of picture in the patent of having applied for, but the main points such as do not relate to high fidelity (Hi-Fi), many sizes generate, the method and system that this method is cut to icon for picture is illustrated simultaneously.
Summary of the invention
For the defect existed in above-mentioned prior art, the object of the invention is by picture recognition, picture processing, a kind of method and system extracting icon from picture is provided.The method and system can generate a set of different size, icon through overcorrect, improve the efficiency that icon makes, and strengthen display effect.
For reaching above object, the technical solution used in the present invention is:
One extracts figure calibration method from picture, comprises the following steps:
(1) upload the picture that need extract icon, drag icon marquee to choose the picture scope in icon;
(2) process picture, comprise the resolution increasing picture, then carry out the color automatic correction of picture and cutting is carried out to the picture in icon marquee;
(3) group icon is generated according to pre-set dimension.
Further, in step (1), described icon marquee is one or one group.
Further, in step (2), by the picture scope needed for the way selection icon that drags icon marquee or its border, thus determine the image content in icon.
Further, four angles of described icon marquee be initially set to quadrant angle, rounded edges is added and is arranged bar, zooms in or out the radian of icon marquee four fillets according to the needs of icon design by arranging bar.
Further, in step (2), arrange the critical value of icon resolution according to icon marquee size respectively, automatic decision generates the resolution of icon, when resolution arrives critical value, triggers and proposes high-resolution operation.
Further, adopt linear interpolation method or close on the resolution that pel method of interpolation increases picture, preferential linear interpolation method.
Further, in step (3), generate the icon of 3 to 5 different sizes according to pre-set dimension.
From picture, extract a system for icon, comprise with lower device:
Picture uploading and icon selecting device, for uploading the picture that need extract icon, drag icon marquee to choose the picture scope in icon;
Picture processing device, for the treatment of picture, comprises the resolution increasing picture, then carries out the color automatic correction of picture and carry out cutting to the picture in icon marquee;
Icon extraction element, for generating a group icon according to pre-set dimension.
Further, described picture processing device comprises following modules:
Picture resolution increases module, for increasing the resolution of picture;
Picture color automatic calibration module, for automatically adjusting the color of picture and brightness;
Icon cutting module, for carrying out cutting to the picture in icon marquee.
Effect of the present invention is: adopt method and system of the present invention, can generate a set of high resolution, different size, icon through overcorrect easily, thus greatly improves the efficiency that icon makes, and strengthens display effect.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for the invention embodiment;
Fig. 2 is the intention of picture and the icon marquee uploaded in the method for the invention embodiment;
Fig. 3 is the schematic diagram of the icon of the final one group of different size extracted in the method for the invention embodiment;
Fig. 4 be the method for the invention embodiment neutral line method of interpolation realize schematic diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
From picture, extract a system for icon, comprise with lower device:
Picture uploading and icon selecting device, for uploading the picture that need extract icon, drag icon marquee to choose the picture scope in icon;
Picture processing device, for the treatment of picture, comprises the resolution increasing picture, then carries out the color automatic correction of picture and carry out cutting to the picture in icon marquee;
Described picture processing device comprises following modules:
1) picture resolution increases module, for increasing the resolution of picture;
2) picture color automatic calibration module, for automatically adjusting the color of picture and brightness;
3) icon cutting module, for carrying out cutting to the picture in icon marquee.
Icon extraction element, for generating a group icon according to pre-set dimension.
As shown in Figure 1, in the present embodiment, one extracts figure calibration method from picture, comprises the following steps:
Step S11-S12, uploads the picture that need be extracted icon, as shown in Figure 2, drags icon marquee to choose the picture scope in icon;
Described icon marquee can be one or one group, and four angles of icon marquee can be right angles, also can be fillets, and described icon marquee can also inching fillet size according to the actual needs.
Step S21-S23, process picture, comprises and increases the resolution of picture, then carries out the cutting of picture in the color automatic correction of picture and icon;
Picture in fig. 2 drags icon marquee, as the picture scope needed for icon marquee or its border selection icon can be dragged arbitrarily, thus determine the image content in icon, be quadrant at initial fillet, rounded edges interpolation arranges bar, and that can design according to icon needs the radian zooming in or out icon marquee four fillets.
Step S21, selected picture is presented in bounding box after treatment, this processing procedure system arranges the critical value of icon resolution respectively according to icon marquee size, automatic decision generates the resolution of icon, when resolution arrives critical value, high-resolution operation is proposed in triggering, adopt linear interpolation method of the prior art or close on the resolution that pel method of interpolation improves picture, make the icon of generation more clear, the situations such as the resolution of increase picture is low mainly for photo resolution, size is less, successful; Contiguous pel interpolation calculation is comparatively simple, and the processing time is short, but when comprising the vicissitudinous fine structure of gray level between pixel in image, can produce sawtooth, not smoothly.Bilinear interpolation algorithm calculated amount is comparatively large, but after convergent-divergent, picture quality is high, and pixel value is continuous, and in the present embodiment, preferential linear interpolation method increases the resolution of picture;
As shown in Figure 4, the implementation method of linear interpolation method is as follows:
Known (0,0), (0,1), (1,0), (1,1) 4 gray scale, can by the gray-scale value f of neighbor (0,0) and f (1,0) linear interpolation obtains (x in the X direction, 0) gray scale f (x, 0), by two other neighbor f (0,1) and f (1,1) linear interpolation can obtain the gray scale f (x, 1) of (x, 1) in the X direction, last by f (x, 0), f (x, 1) carries out linear interpolation in the Y direction and just can obtain (x, y) gray scale f (x, y).
The implementation method of closing on pel method of interpolation is as follows:
Get the gray-scale value of the nearest consecutive point gray-scale value of 4 adjoint point middle distances of interpolation point as this point.If interpolation point (i, j) is to periphery 4 adjoint point f kthe distance of (i, j) (k=1,2,3,4) is d k(k=1,2,3,4), then: g(i, j)=f k(i, j), dl=min{d1, d2, d3, d4}, l=1,2,3,4.
Step S22, after execution step S21, obtains the picture of high resolution, automatically adjusts color and the brightness of picture, to strengthen the display effect generating icon;
Step S23, after the resolution of the increase picture of step S21 and step S22 carry out adjustment process automatically to the color of picture and brightness, icon is presented in default icon marquee, then carries out cutting to picture, by the icon cutting in icon marquee out.
S3, generates a group icon according to pre-set dimension, preserves the icon in cutting icon marquee out, completes the process that picture extracts high precision icon, and the icon of extraction as shown in Figure 3, is 3 different sizes.
After icon has extracted, the icon of acquisition can be passed to application or the module of needs.
Method and system of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws and other embodiment belongs to technological innovation scope of the present invention equally.

Claims (10)

1. from picture, extract a figure calibration method, comprise the following steps:
(1) upload the picture that need extract icon, drag icon marquee to choose the picture scope in icon;
(2) process picture, comprise the resolution increasing picture, then carry out the color automatic correction of picture and cutting is carried out to the picture in icon marquee;
(3) group icon is generated according to pre-set dimension.
2. one as claimed in claim 1 extracts figure calibration method from picture, and it is characterized in that: in step (1), described icon marquee is one.
3. one as claimed in claim 1 extracts figure calibration method from picture, and it is characterized in that: in step (1), described icon marquee is one group.
4. the one as described in as arbitrary in claims 1 to 3 extracts figure calibration method from picture, it is characterized in that: in step (2), by the picture scope needed for the way selection icon that drags icon marquee or its border, thus determine the image content in icon.
5. one as claimed in claim 4 extracts figure calibration method from picture, it is characterized in that: four angles of described icon marquee be initially set to quadrant angle, rounded edges is added and is arranged bar, to zoom in or out the radian of icon marquee four fillets according to the needs of icon design by arranging bar.
6. one as claimed in claim 4 extracts figure calibration method from picture, it is characterized in that: in step (2), the critical value of icon resolution is set respectively according to icon marquee size, automatic decision generates the resolution of icon, when resolution arrives critical value, trigger and propose high-resolution operation.
7. one as claimed in claim 6 extracts figure calibration method from picture, it is characterized in that: adopt linear interpolation method or close on the resolution that pel method of interpolation increases picture.
8. one as claimed in claim 7 extracts figure calibration method from picture, it is characterized in that: in step (3), generates the icon of 3 to 5 different sizes according to pre-set dimension.
9. from picture, extract a system for icon, comprise with lower device:
Picture uploading and icon selecting device, for uploading the picture that need extract icon, drag icon marquee to choose the picture scope in icon;
Picture processing device, for the treatment of picture, comprises the resolution increasing picture, then carries out the color automatic correction of picture and carry out cutting to the picture in icon marquee;
Icon extraction element, for generating a group icon according to pre-set dimension.
10. a kind of system extracting icon from picture as claimed in claim 9, is characterized in that,
Described picture processing device comprises following modules:
Picture resolution increases module, for increasing the resolution of picture;
Picture color automatic calibration module, for automatically adjusting the color of picture and brightness;
Icon cutting module, for carrying out cutting to the picture in icon marquee.
CN201310690420.2A 2013-12-16 2013-12-16 Method and system for extracting icons from picture Pending CN104715450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310690420.2A CN104715450A (en) 2013-12-16 2013-12-16 Method and system for extracting icons from picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310690420.2A CN104715450A (en) 2013-12-16 2013-12-16 Method and system for extracting icons from picture

Publications (1)

Publication Number Publication Date
CN104715450A true CN104715450A (en) 2015-06-17

Family

ID=53414745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310690420.2A Pending CN104715450A (en) 2013-12-16 2013-12-16 Method and system for extracting icons from picture

Country Status (1)

Country Link
CN (1) CN104715450A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912322A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Icon customizing method, device and terminal
CN107315578A (en) * 2016-04-27 2017-11-03 中兴通讯股份有限公司 A kind of method and device for adjusting terminal desktop application icon

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747529A (en) * 2004-09-10 2006-03-15 佳能株式会社 Data processing apparatus and control method thereof
US20110007975A1 (en) * 2009-07-10 2011-01-13 Kabushiki Kaisha Toshiba Image Display Apparatus and Image Display Method
CN102479380A (en) * 2010-11-25 2012-05-30 北京大学 Image interpolation method capable of improving image resolution and device utilizing image interpolation method
CN102622163A (en) * 2011-03-14 2012-08-01 北京小米科技有限责任公司 Icon generation method
CN103220457A (en) * 2012-01-23 2013-07-24 奥林巴斯映像株式会社 Image photographing device and display method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747529A (en) * 2004-09-10 2006-03-15 佳能株式会社 Data processing apparatus and control method thereof
US20110007975A1 (en) * 2009-07-10 2011-01-13 Kabushiki Kaisha Toshiba Image Display Apparatus and Image Display Method
CN102479380A (en) * 2010-11-25 2012-05-30 北京大学 Image interpolation method capable of improving image resolution and device utilizing image interpolation method
CN102622163A (en) * 2011-03-14 2012-08-01 北京小米科技有限责任公司 Icon generation method
CN103220457A (en) * 2012-01-23 2013-07-24 奥林巴斯映像株式会社 Image photographing device and display method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912322A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Icon customizing method, device and terminal
CN107315578A (en) * 2016-04-27 2017-11-03 中兴通讯股份有限公司 A kind of method and device for adjusting terminal desktop application icon

Similar Documents

Publication Publication Date Title
US11722770B2 (en) Image processing device, method of processing image, image processing program, and imaging device
US10222960B2 (en) Animation of user interface elements
CN105488758B (en) A kind of image-scaling method based on perception of content
TWI517711B (en) Processing method of display setup and embedded system
CN105210018A (en) User interface for selecting a parameter during image refocusing
CN105120172A (en) Photographing method for front and rear cameras of mobile terminal and mobile terminal
CN105511712A (en) Method and device for showing picture
US9105094B2 (en) Image layers navigation
EP3332546B1 (en) Methods and apparatuses for capturing multiple digital image frames
CN103399695B (en) Quadrangle frame identification method and device for intelligent wireless communication terminal
CN103745429B (en) Method for rapidly realizing eye image processing
CN103543922B (en) A kind of focus mobility method, system and smart machine
CN104007947A (en) Thumbnail display method and device
CN102073986A (en) Method for amplifying frame of display device
CN106971374B (en) Picture pixelization method and picture pixelization system
CN103116631B (en) A kind of system and method fast checking batch picture on a handheld electronic device
CN105045587A (en) Picture display method and apparatus
CN104715450A (en) Method and system for extracting icons from picture
CN104462044A (en) Recognizing and editing method and device of tabular images
CN105306734A (en) Picture display method based on mobile phone APP interface
CN111210434A (en) Image replacement method and system based on sky identification
DE102015105886B4 (en) Image processing method and electronic device using the same
WO2014034137A1 (en) Image processing device, image processing method, and image processing program
CN104063132B (en) Display method and display device for album thumbnails
KR20120035360A (en) Apparatus for recognizing character and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150617

RJ01 Rejection of invention patent application after publication