CN106169172A - A kind of method and system of image procossing - Google Patents
A kind of method and system of image procossing Download PDFInfo
- Publication number
- CN106169172A CN106169172A CN201610542691.7A CN201610542691A CN106169172A CN 106169172 A CN106169172 A CN 106169172A CN 201610542691 A CN201610542691 A CN 201610542691A CN 106169172 A CN106169172 A CN 106169172A
- Authority
- CN
- China
- Prior art keywords
- original
- portrait
- image
- body dimension
- ratio
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000005457 optimization Methods 0.000 claims abstract description 9
- 210000003128 head Anatomy 0.000 description 19
- 210000000554 iris Anatomy 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 210000003141 lower extremity Anatomy 0.000 description 1
Classifications
-
- G06T3/04—
Abstract
The invention discloses the method and system of a kind of image procossing, wherein, described method includes: obtain the original header size of original portrait in original image and original body dimension;Ratio between described original header size and original body dimension is optimized, obtains meeting the new head sizes of optimized proportion and/or body dimension, and then obtain new images.By the way, it is possible to the portrait shot out is carried out an optimization of body ratio, image quality is improved.
Description
Technical field
The present invention relates to technical field of data processing, particularly to the method and system of a kind of image procossing.
Background technology
Along with camera and with mobile terminal universal of camera function, people shoot the quantity of photo and get more and more,
More and more convenient.People are also accustomed to being put on various social networks the photo of oneself sharing with everybody, show that life is fine
One side.
Before uploading image, everybody likes first with various instruments, photo carrying out U.S. face.But, existing U.S. face software
And U.S.'s face camera, all just for women or for human body face U.S. face, ununiform not in view of stature, or height is not
Enough tall users.
Summary of the invention
The technical problem that present invention mainly solves is to provide the method and system of a kind of image procossing, it is possible to will shoot out
Portrait carry out an optimization of body ratio, improve image quality.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: a kind of method providing image procossing,
Described method includes: obtain the original header size of original portrait in original image and original body dimension;By described original head
Ratio between portion's size and original body dimension is optimized, and obtains meeting the new head sizes of optimized proportion and/or human body
Size, and then obtain new images.
Wherein, in described acquisition original image, the original header size of original portrait includes: the described original graph of artificial delineation
The original header size of original portrait in Xiang, or automatically identified original portrait in described original image by face identification system
Original header size.
Wherein, in described acquisition original image, the original body dimension of original portrait includes: the described original graph of artificial delineation
The original body dimension of original portrait in Xiang, or calculate the original body dimension of original portrait in described original image.
Wherein, the new head sizes and/or the body dimension that meet optimized proportion described in include: the ratio of face and height is 1:
8 or the ratio of face or height be 1:9.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide a kind of image procossing is
System, described system includes: acquisition module, for obtaining the original header size of original portrait in original image and original human body chi
Very little;Processing module, is optimized the ratio between described original header size and original body dimension, obtains meeting optimization ratio
The new head sizes of example and/or body dimension, and then obtain new images.
Wherein, described acquisition module, including: the original header size of original portrait in the described original image of artificial delineation,
Or the original header size of original portrait in described original image is automatically identified by face identification system.
Wherein, described acquisition module, also include: the original human body chi of original portrait in the described original image of artificial delineation
Very little, or calculate the original body dimension of original portrait in described original image.
Wherein, the new head sizes and/or the body dimension that meet optimized proportion described in include: the ratio of face and height is 1:
8 or the ratio of face or height be 1:9.
Above scheme is by identifying the original header size of original portrait in original image and original body dimension and right
Ratio between described original header size and original body dimension is optimized, and obtains meeting the new head sizes of optimized proportion
And/or body dimension, and then obtain new images, shooting portrait out is carried out an optimization of body ratio, improves image quality.
Accompanying drawing explanation
Fig. 1 is the flow chart of image processing method one embodiment of the present invention;
Fig. 2 is the structural representation of image processing system one embodiment of the present invention;
Fig. 3 is the portrait effect of optimization figure obtained by image processing method one specific embodiment of the present invention.
Detailed description of the invention
The present invention is described in detail with embodiment below in conjunction with the accompanying drawings.
Referring to Fig. 1, Fig. 1 is present invention flow chart based on image processing method one embodiment.If it is noted that having
The result being substantially the same, the method for the present invention is not limited with the flow process order shown in Fig. 1.As it is shown in figure 1, the method includes
Following steps:
S101: obtain the original header size of original portrait in original image and original body dimension.
Wherein, original image can be camera or the photo of mobile phone shooting, it is also possible to is any photo of selecting of user.
As it is shown on figure 3, user selects to need the original image 30 of amendment, user can manually iris out original image 30 Central Plains along head
The original header size 301 of beginning portrait, it is also possible to calculate the original of original portrait in original image 30 by specific algorithm
Head sizes 301.In like manner, user can manually iris out the original body dimension 302 of original portrait in original image 30, it is also possible to
The original body dimension 302 of original portrait in original image 30, wherein, original body dimension is calculated by specific algorithm
302 length including head, neck, health, lower limb, foot.
S102: optimize the ratio between original head sizes and original body dimension in original image, obtain meeting optimization
The new head sizes of ratio and/or body dimension.
Currently a popular body-height exponent, is the proportionate relationship judging human body on the basis of the head of human body, wherein, meets
The new head sizes of optimized proportion and/or body dimension can be the ratio of face and height be 1:8,8 bodies that i.e. it has often been said,
Or the ratio of face or height is 1:9,9 bodies that i.e. it has often been said.Above-mentioned 8 bodies or 9 bodies are divided by head by height
Result obtained by size, the length of head will stack up 8 or 9, just equal to height.As it is shown on figure 3, user can
To select the pattern of arbitrary Optimizing Mode or system default by original portrait in specific algorithm optimization original image 30
Original header size 301 and the original body dimension 302 of primitive man's picture, obtain new head sizes 401 and new human body chi
Very little 402, and then obtain new image 40.Wherein, this algorithm is to be stretched in the latter half of the person, especially leg,
The leg of the human body in new images 40 after process seems the most slender, and whole image does not seem the most inharmonious.
Being exemplified below, user selects the original image A needing to optimize, and manually irises out the face of human body in image
Portion, system is according to selection area, and original header size B measuring original portrait in original image is 22.5cm.User is further
Irising out the size of human body in image, system is according to selection area, and measuring the original body dimension C of original portrait in original image is
165.5cm.If user selects to be processed as meeting the photo of 8 bodies by original image A, i.e. B:C=1:8, according to above-mentioned formula
The body dimension C1 that must make new advances is 180cm.System by special algorithm by the human body lower part of the body size in original image A
Reason, is 157.5cm from original 143cm Uniform Tension, (the human body lower part of the body a size of C-B) and then obtain new image A1, i.e.
New head sizes B1 is 22.5cm, and new body dimension C1 is 180cm.Owing to algorithm is by the latter half of the person, especially
It is that leg carries out stretch processing, and the photo after process seems that the leg of human body is more slender, and then seems that whole image compares
Coordinate.
Refer to the structural representation that Fig. 2, Fig. 2 are image processing system one embodiments of the present invention.In the present embodiment, image
Processing system 20 includes acquisition module 201 and processing module 202.
Acquisition module 201, for obtaining the original header size of original portrait in original image and original body dimension.
Processing module 202, is optimized the ratio between described original header size and original body dimension, is accorded with
Close new head sizes and/or the body dimension of optimized proportion, and then obtain new images.
Alternatively, acquisition module 201 is by the original header size of original portrait in artificial delineation original image and original
The original body dimension of original portrait in image.
Alternatively, acquisition module 201 can also be by being identified in described original image original by face identification system automatically
The original header size of portrait and calculate the original body dimension of original portrait in described original image by algorithm.
Wherein, in processing module 202, described in meet the new head sizes of optimized proportion and/or body dimension includes: face and
The ratio of height is 1:8,8 bodies that i.e. it has often been said, or the ratio of face or height is 1:9,9 i.e. it has often been said
Body.
In embodiment provided by the present invention, it should be understood that disclosed system and method, can be passed through other
Mode realize.For example, it is possible to carry out image optimization, the most simply face and the ratio of height according to other ratio of human body.
The foregoing is only embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilization is originally
Equivalent structure or equivalence flow process that description of the invention and accompanying drawing content are made convert, or are directly or indirectly used in what other were correlated with
Technical field, is the most in like manner included in the scope of patent protection of the present invention.
Claims (8)
1. the method for an image procossing, it is characterised in that described method includes:
Obtain the original header size of original portrait in original image and original body dimension;
Ratio between described original header size and original body dimension is optimized, obtains meeting the new head of optimized proportion
Portion's size and/or body dimension, and then obtain new images.
Method the most according to claim 1, it is characterised in that the original header of original portrait in described acquisition original image
Size includes: the original header size of original portrait in the described original image of artificial delineation, or automatic by face identification system
Identify the original header size of original portrait in described original image.
Method the most according to claim 1, it is characterised in that the original human body of original portrait in described acquisition original image
Size includes: the original body dimension of original portrait in the described original image of artificial delineation, or calculates described original image
In the original body dimension of original portrait.
Method the most according to claim 1, it is characterised in that described in meet new head sizes and/or the people of optimized proportion
Body size includes: the ratio of face and height be the ratio of 1:8 or face or height be 1:9.
5. the system of an image procossing, it is characterised in that described system includes:
Acquisition module, for obtaining the original header size of original portrait in original image and original body dimension;
Processing module, is optimized the ratio between described original header size and original body dimension, obtains meeting optimization
The new head sizes of ratio and/or body dimension, and then obtain new images.
System the most according to claim 5, it is characterised in that described acquisition module, including: in the described original image of artificial delineation
The original header size of primitive man's picture, or automatically identified the original of original portrait in described original image by face identification system
Head sizes.
System the most according to claim 5, it is characterised in that described acquisition module, also includes: the described original image of artificial delineation
In the original body dimension of original portrait, or calculate the original body dimension of original portrait in described original image.
System the most according to claim 5, it is characterised in that described in meet new head sizes and/or the human body chi of optimized proportion
Very little include: the ratio of face and height be the ratio of 1:8 or face or height be 1:9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610542691.7A CN106169172A (en) | 2016-07-08 | 2016-07-08 | A kind of method and system of image procossing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610542691.7A CN106169172A (en) | 2016-07-08 | 2016-07-08 | A kind of method and system of image procossing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106169172A true CN106169172A (en) | 2016-11-30 |
Family
ID=58064795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610542691.7A Withdrawn CN106169172A (en) | 2016-07-08 | 2016-07-08 | A kind of method and system of image procossing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106169172A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977927A (en) * | 2017-12-14 | 2018-05-01 | 北京奇虎科技有限公司 | Stature method of adjustment and device, computing device based on view data |
CN109191396A (en) * | 2018-08-22 | 2019-01-11 | Oppo广东移动通信有限公司 | Facial image processing method and apparatus, electronic equipment, computer readable storage medium |
CN110097622A (en) * | 2019-04-23 | 2019-08-06 | 北京字节跳动网络技术有限公司 | Render method, apparatus, electronic equipment and the computer readable storage medium of image |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574006A (en) * | 2014-10-10 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Method and device for establishing photographing template database and providing photographing recommendation information |
CN105869116A (en) * | 2016-03-25 | 2016-08-17 | 捷开通讯(深圳)有限公司 | Mobile terminal and photo processing method |
-
2016
- 2016-07-08 CN CN201610542691.7A patent/CN106169172A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574006A (en) * | 2014-10-10 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Method and device for establishing photographing template database and providing photographing recommendation information |
CN105869116A (en) * | 2016-03-25 | 2016-08-17 | 捷开通讯(深圳)有限公司 | Mobile terminal and photo processing method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977927A (en) * | 2017-12-14 | 2018-05-01 | 北京奇虎科技有限公司 | Stature method of adjustment and device, computing device based on view data |
CN109191396A (en) * | 2018-08-22 | 2019-01-11 | Oppo广东移动通信有限公司 | Facial image processing method and apparatus, electronic equipment, computer readable storage medium |
CN109191396B (en) * | 2018-08-22 | 2021-01-08 | Oppo广东移动通信有限公司 | Portrait processing method and device, electronic equipment and computer readable storage medium |
CN110097622A (en) * | 2019-04-23 | 2019-08-06 | 北京字节跳动网络技术有限公司 | Render method, apparatus, electronic equipment and the computer readable storage medium of image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11265523B2 (en) | Illuminant estimation referencing facial color features | |
USRE47960E1 (en) | Methods and devices of illuminant estimation referencing facial color features for automatic white balance | |
US8514261B2 (en) | Information processing system | |
KR102455966B1 (en) | Mediating Apparatus, Method and Computer Readable Recording Medium Thereof | |
WO2021036853A1 (en) | Image processing method and electronic apparatus | |
CN104811684B (en) | A kind of three-dimensional U.S. face method and device of image | |
US10965924B2 (en) | Correlating illuminant estimation by a plurality of cameras | |
TWI532361B (en) | Automatic photographing method and system thereof | |
CN108234879B (en) | Method and device for acquiring sliding zoom video | |
WO2019001163A1 (en) | White balance adjustment method and apparatus, camera and medium | |
CN108307120B (en) | Image shooting method and device and electronic terminal | |
CN108062755B (en) | Intelligent picture clipping method and device | |
CN104967784B (en) | Mobile terminal calls the method and mobile terminal of the substrate features pattern of camera function | |
CN106169172A (en) | A kind of method and system of image procossing | |
CN112887582A (en) | Image color processing method and device and related equipment | |
CN106097261B (en) | Image processing method, device, storage medium and terminal device | |
CN108022227B (en) | Black and white background picture acquisition method and device and computer readable storage medium | |
CN106600524A (en) | Image processing method and terminal | |
EP4047923A1 (en) | Electronic device comprising camera and method of same | |
CN111316628A (en) | Image shooting method and image shooting system based on intelligent terminal | |
CN114187166A (en) | Image processing method, intelligent terminal and storage medium | |
CN109064431A (en) | A kind of picture luminance adjusting method, equipment and its storage medium | |
CN110310318B (en) | Special effect processing method and device, storage medium and terminal | |
CN107909551A (en) | Image processing method, device, computer installation and computer-readable recording medium | |
US10354125B2 (en) | Photograph processing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161130 |
|
WW01 | Invention patent application withdrawn after publication |