CN104954690A - Image processing method and system for skin color adjustment and shooting terminal - Google Patents
Image processing method and system for skin color adjustment and shooting terminal Download PDFInfo
- Publication number
- CN104954690A CN104954690A CN201510373516.5A CN201510373516A CN104954690A CN 104954690 A CN104954690 A CN 104954690A CN 201510373516 A CN201510373516 A CN 201510373516A CN 104954690 A CN104954690 A CN 104954690A
- Authority
- CN
- China
- Prior art keywords
- colour
- color
- skin
- ratio
- gray
- 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
Links
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The invention discloses an image processing method and system for skin color adjustment and a shooting terminal. According to the method, an original image is subjected to discoloration processing according to a color value of a target skin color, and a gray-scale image is obtained; color mixing processing is performed on the gray-scale image and the original image, and a result image is obtained. Therefore, rapid and effective skin color adjustment is realized, the steps are simple, and the effect is good.
Description
Technical field
The present invention relates to the technical field of image processing of colour of skin adjustment, particularly a kind of image processing method of colour of skin adjustment and system, the camera terminal of application the method thereof.
Background technology
Along with the development of image processing tool, increasing image carries out editing the image beautifying and obtain expecting by image processing tool.Image based on personage beautifies in process the editor of image processing tool usually to be needed to process the colour of skin, reaches the cosmetic result of skin color transition.Such as, the process of the colour of skin can be whitening process, namely utilizes image processing tool to carry out whitening to the human face region in image.
But, the current process colour of skin, generally need first to identify area of skin color and extract, user manually can only select area of skin color, is constantly enclosed the area of skin color selected in image by mouse, and beautifies the area of skin color of circle choosing, but, repeatedly enclose choosing to human face region in image, and there is operational difficulty for comparatively narrow regions such as hair mesothelium skins, circle choosing is very inconvenient.
In the process processed portrait, the colour of skin is the link of most critical, if adjust bad, the effect of whole image is also just bad.Therefore the colour of skin how adjusting portrait better then becomes the emphasis that graphical design teacher are concerned about.
Summary of the invention
The present invention, for solving the problem, provides the image processing method of a kind of colour of skin adjustment, system and camera terminal, fast and effeciently can carry out colour of skin adjustment.
For achieving the above object, the technical solution used in the present invention is:
First, the invention provides the image processing method of a kind of colour of skin adjustment, it is characterized in that, comprise the following steps:
10. according to the color value of the target colour of skin, original image is discolored process, obtain gray-scale map;
Gray-scale map described in 20. pairs and original image carry out the color treatments of blend of colors, obtain result figure.
Preferably, according to the color value of the target colour of skin, original image is discolored process in described step 10, mainly carry out according to the target colour of skin the monochromatic ratio and the secondary color ratio that adjust R, G, B Color Channel, the monochromatic ratio relevant to the target colour of skin or the parameter value of secondary color ratio are set to higher.
Preferably, the computational methods of described process of discoloring are as follows:
gray=(max-mid)*ratio_max+(mid-min)*ratio_max_mid+min;
Wherein, gray is the color value of the corresponding pixel points on gray-scale map after discoloring; Max, mid and min are respectively the maximum color value of R, G, B Color Channel of the corresponding pixel points on original image, mean color values and minimum color value; The color ratio of R, G, B monochrome of ratio_max representated by max; The secondary color ratio that ratio_max_mid is formed for max and mid two kinds of monochromatic colors.
Preferably, in described step 20, described gray-scale map and original image are carried out to the color treatments of blend of colors, mainly using the color value of gray-scale map as primary colours, using the color value of original image as secondary colour, and carry out establishment result look according to the brightness of the form and aspect of secondary colour, saturation and primary colours, obtain result figure.
Secondly, the invention provides the image processing system of a kind of colour of skin adjustment, it is characterized in that, comprising:
Discolor processing module, it to discolor process to original image according to the color value of the target colour of skin, obtains gray-scale map;
Blend of colors processing module, it carries out the color treatments of blend of colors to described gray-scale map and original image, obtains result figure.
Preferably, described processing module of discoloring to be discolored process to original image according to the color value of the target colour of skin, mainly carry out according to the target colour of skin the monochromatic ratio and the secondary color ratio that adjust R, G, B Color Channel, the monochromatic ratio relevant to the target colour of skin or the parameter value of secondary color ratio are set to higher.
Preferably, described blend of colors processing module carries out the color treatments of blend of colors to described gray-scale map and original image, mainly using the color value of gray-scale map as primary colours, using the color value of original image as secondary colour, and carry out establishment result look according to the brightness of the form and aspect of secondary colour, saturation and primary colours, obtain result figure.
In addition, the present invention also provides a kind of camera terminal, it is characterized in that, this camera terminal comprises the image processing system of the colour of skin as above adjustment.
Preferably, described camera terminal comprises: mobile phone, digital camera or panel computer.
The invention has the beneficial effects as follows:
The image processing method of a kind of colour of skin adjustment of the present invention, system and camera terminal, it, by discoloring process to original image according to the color value of the target colour of skin, obtains gray-scale map; And described gray-scale map and original image are carried out to the color treatments of blend of colors, obtain result figure, thus realize colour of skin adjustment fast and effectively, not only step is simple but also effective.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the general flow chart of the image processing method of the colour of skin of the present invention adjustment;
Fig. 2 is the structural representation of the image processing system of the colour of skin of the present invention adjustment;
Fig. 3 is the structural representation of camera terminal of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the image processing method of a kind of colour of skin adjustment of the present invention, it comprises the following steps:
10. according to the color value of the target colour of skin, original image is discolored process, obtain gray-scale map;
Gray-scale map described in 20. pairs and original image carry out the color treatments of blend of colors, obtain result figure.
According to the color value of the target colour of skin, original image is discolored process in described step 10, mainly carry out according to the target colour of skin the monochromatic ratio and the secondary color ratio that adjust R, G, B Color Channel, the monochromatic ratio relevant to the target colour of skin or the parameter value of secondary color ratio are set to higher.Such as, for yellow, red, yellow parameter value is greater than the parameter value of other colors; And for black race, parameter value that is blue, cyan is just larger.The large I of design parameter value is arranged according to the hobby of different people, such as, be yellow equally, and liking of having is treated to fair and tender chromatic effect, and liking of having is treated to bronze-colored effect.In the present embodiment, the circular of described process of discoloring is as follows:
gray=(max-mid)*ratio_max+(mid-min)*ratio_max_mid+min;
Wherein, gray is the color value of the corresponding pixel points on gray-scale map after discoloring; Max, mid and min are respectively the maximum color value of R, G, B Color Channel of the corresponding pixel points on original image, mean color values and minimum color value; The color ratio of R, G, B monochrome of ratio_max representated by max; The secondary color ratio that ratio_max_mid is formed for max and mid two kinds of monochromatic colors.In the present embodiment, monochrome refers to red, blue, green, and secondary color refers to green grass or young crops, Huang, fuchsin.
In described step 20, described gray-scale map and original image are carried out to the color treatments of blend of colors, mainly using the color value of gray-scale map as primary colours, using the color value of original image as secondary colour, and carry out establishment result look according to the brightness of the form and aspect of secondary colour, saturation and primary colours, obtain result figure.It is painted that blend of colors can use the intensity value of secondary colour and form and aspect to carry out simultaneously, and the brightness value of primary colours is remained unchanged.This mixed mode can make the shade of gray image or profile show through painted color, produces the effect that certain is coloration.The GTG in image can be retained like this, and for monochrome image colouring and give Computation For Color Image Rendering all can be very useful.Thus make in the immovable situation of the original colour of skin, owing to enhancing the brightness of skin area, thus the brightness of final result look is strengthened, make better effects if.
As shown in Figure 2, the invention provides the image processing system 100 of a kind of colour of skin adjustment, it is characterized in that, comprising:
Discolor processing module 101, it to discolor process to original image according to the color value of the target colour of skin, obtains gray-scale map;
Blend of colors processing module 102, it carries out the color treatments of blend of colors to described gray-scale map and original image, obtains result figure.
Described processing module 101 of discoloring to be discolored process to original image according to the color value of the target colour of skin, mainly carry out according to the target colour of skin the monochromatic ratio and the secondary color ratio that adjust R, G, B Color Channel, the monochromatic ratio relevant to the target colour of skin or the parameter value of secondary color ratio are set to higher.
Described blend of colors processing module 102 carries out the color treatments of blend of colors to described gray-scale map and original image, mainly using the color value of gray-scale map as primary colours, using the color value of original image as secondary colour, and carry out establishment result look according to the brightness of the form and aspect of secondary colour, saturation and primary colours, obtain result figure.
As shown in Figure 3, the present invention also provides a kind of camera terminal, this camera terminal 200 comprises the image processing system 100 of the colour of skin as above adjustment, wherein, image processing system 100 can adopt the structure of Fig. 2 embodiment, and it accordingly, the technical scheme of embodiment of the method shown in Fig. 1 can be performed, it realizes principle and technique effect is similar, see the relevant record in above-described embodiment, can repeat no more in detail herein.
Described camera terminal comprises: mobile phone, digital camera or panel computer etc. are configured with the equipment of camera.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system embodiment and terminal embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.And, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.In addition, one of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.
Claims (9)
1. an image processing method for colour of skin adjustment, is characterized in that, comprise the following steps:
10. according to the color value of the target colour of skin, original image is discolored process, obtain gray-scale map;
Gray-scale map described in 20. pairs and original image carry out the color treatments of blend of colors, obtain result figure.
2. the image processing method of a kind of colour of skin adjustment according to claim 1, it is characterized in that: according to the color value of the target colour of skin, original image is discolored process in described step 10, mainly carry out according to the target colour of skin the monochromatic ratio and the secondary color ratio that adjust R, G, B Color Channel, the monochromatic ratio relevant to the target colour of skin or the parameter value of secondary color ratio are set to higher.
3. the image processing method of a kind of colour of skin adjustment according to claim 1 and 2, is characterized in that: the computational methods of described process of discoloring are as follows:
gray=(max-mid)*ratio_max+(mid-min)*ratio_max_mid+min;
Wherein, gray is the color value of the corresponding pixel points on gray-scale map after discoloring; Max, mid and min are respectively the maximum color value of R, G, B Color Channel of the corresponding pixel points on original image, mean color values and minimum color value; The color ratio of R, G, B monochrome of ratio_max representated by max; The secondary color ratio that ratio_max_mid is formed for max and mid two kinds of monochromatic colors.
4. the image processing method of a kind of colour of skin adjustment according to claim 1, it is characterized in that: the color treatments of in described step 20, described gray-scale map and original image being carried out to blend of colors, mainly using the color value of gray-scale map as primary colours, using the color value of original image as secondary colour, and carry out establishment result look according to the brightness of the form and aspect of secondary colour, saturation and primary colours, obtain result figure.
5. an image processing system for colour of skin adjustment, is characterized in that, comprising:
Discolor processing module, it to discolor process to original image according to the color value of the target colour of skin, obtains gray-scale map;
Blend of colors processing module, it carries out the color treatments of blend of colors to described gray-scale map and original image, obtains result figure.
6. the image processing system of a kind of colour of skin adjustment according to claim 5, it is characterized in that: described processing module of discoloring to be discolored process to original image according to the color value of the target colour of skin, mainly carry out according to the target colour of skin the monochromatic ratio and the secondary color ratio that adjust R, G, B Color Channel, the monochromatic ratio relevant to the target colour of skin or the parameter value of secondary color ratio are set to higher.
7. the image processing system of a kind of colour of skin adjustment according to claim 5, it is characterized in that: described blend of colors processing module carries out the color treatments of blend of colors to described gray-scale map and original image, mainly using the color value of gray-scale map as primary colours, using the color value of original image as secondary colour, and carry out establishment result look according to the brightness of the form and aspect of secondary colour, saturation and primary colours, obtain result figure.
8. a camera terminal, is characterized in that, comprising: the image processing system of the colour of skin adjustment as described in any one of claim 5 to 7.
9. camera terminal according to claim 8, is characterized in that, described camera terminal comprises: mobile phone, digital camera or panel computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510373516.5A CN104954690B (en) | 2015-06-30 | 2015-06-30 | Image processing method, system and the camera terminal of colour of skin adjustment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510373516.5A CN104954690B (en) | 2015-06-30 | 2015-06-30 | Image processing method, system and the camera terminal of colour of skin adjustment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104954690A true CN104954690A (en) | 2015-09-30 |
CN104954690B CN104954690B (en) | 2018-09-21 |
Family
ID=54168995
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510373516.5A Active CN104954690B (en) | 2015-06-30 | 2015-06-30 | Image processing method, system and the camera terminal of colour of skin adjustment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954690B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105869111A (en) * | 2016-04-05 | 2016-08-17 | 广东欧珀移动通信有限公司 | Skin color adjusting method and apparatus when group picture of multiple persons is taken |
CN107438162A (en) * | 2017-07-31 | 2017-12-05 | 努比亚技术有限公司 | The method of adjustment and device of a kind of acquisition parameters |
CN107862657A (en) * | 2017-10-31 | 2018-03-30 | 广东欧珀移动通信有限公司 | Image processing method, device, computer equipment and computer-readable recording medium |
CN110288663A (en) * | 2019-06-28 | 2019-09-27 | 北京金山安全软件有限公司 | Image processing method, image processing device, mobile terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193229A (en) * | 2006-11-21 | 2008-06-04 | 深圳Tcl新技术有限公司 | A method and system for skin change of TV function interface |
US20110249863A1 (en) * | 2010-04-09 | 2011-10-13 | Sony Corporation | Information processing device, method, and program |
CN103618886A (en) * | 2013-12-13 | 2014-03-05 | 厦门美图网科技有限公司 | Shooting method for intelligently decoloring according to main color tone |
CN103679658A (en) * | 2013-12-13 | 2014-03-26 | 厦门美图网科技有限公司 | Image processing method for achieving intelligent decoloring according to dominant hue |
-
2015
- 2015-06-30 CN CN201510373516.5A patent/CN104954690B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193229A (en) * | 2006-11-21 | 2008-06-04 | 深圳Tcl新技术有限公司 | A method and system for skin change of TV function interface |
US20110249863A1 (en) * | 2010-04-09 | 2011-10-13 | Sony Corporation | Information processing device, method, and program |
CN103618886A (en) * | 2013-12-13 | 2014-03-05 | 厦门美图网科技有限公司 | Shooting method for intelligently decoloring according to main color tone |
CN103679658A (en) * | 2013-12-13 | 2014-03-26 | 厦门美图网科技有限公司 | Image processing method for achieving intelligent decoloring according to dominant hue |
Non-Patent Citations (1)
Title |
---|
王吉哲: "一种改进的彩色图像快速去色算法", 《计算机时代》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105869111A (en) * | 2016-04-05 | 2016-08-17 | 广东欧珀移动通信有限公司 | Skin color adjusting method and apparatus when group picture of multiple persons is taken |
CN105869111B (en) * | 2016-04-05 | 2019-03-22 | Oppo广东移动通信有限公司 | Colour of skin adjusting method and device when more people take a group photo |
CN107438162A (en) * | 2017-07-31 | 2017-12-05 | 努比亚技术有限公司 | The method of adjustment and device of a kind of acquisition parameters |
CN107862657A (en) * | 2017-10-31 | 2018-03-30 | 广东欧珀移动通信有限公司 | Image processing method, device, computer equipment and computer-readable recording medium |
CN110288663A (en) * | 2019-06-28 | 2019-09-27 | 北京金山安全软件有限公司 | Image processing method, image processing device, mobile terminal and storage medium |
CN110288663B (en) * | 2019-06-28 | 2022-03-15 | 北京乐蜜科技有限责任公司 | Image processing method, image processing device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104954690B (en) | 2018-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ancuti et al. | Color channel compensation (3C): A fundamental pre-processing step for image enhancement | |
Hitam et al. | Mixture contrast limited adaptive histogram equalization for underwater image enhancement | |
KR101502598B1 (en) | Image processing apparatus and method for enhancing of depth perception | |
Yussof et al. | Performing contrast limited adaptive histogram equalization technique on combined color models for underwater image enhancement | |
CN105574918B (en) | A kind of material adding method, device and the terminal of 3D models | |
KR100202566B1 (en) | The clearness improving apparatus of a color image | |
CN104954690A (en) | Image processing method and system for skin color adjustment and shooting terminal | |
CN102223547B (en) | Image color enhancement device and method | |
US7649653B2 (en) | Processing apparatus and method for enhancing image color | |
CN108090876A (en) | A kind of image processing method and device | |
CN105023252A (en) | Method and system for enhancement processing of beautified image and shooting terminal | |
CN104767983A (en) | Picture processing method and device | |
CN103248793A (en) | Skin tone optimization method and device for color gamut transformation system | |
CN104392420B (en) | A kind of method of the rapid Optimum colour of skin | |
CN102630021A (en) | Signal processing device, signal processing method, imaging apparatus, and imaging processing method | |
US5828819A (en) | Apparatus and method for automatically creating a picture in a style having painting-like coloring using an image processing | |
CN101383912B (en) | Color intelligent automatic regulating method for television video taking | |
CN105451094B (en) | Subtitle color adjustment method and device | |
CN105913376A (en) | Method and device for quick photo beautifying | |
CN101352028A (en) | Color coordinate system and image edition | |
Meng et al. | Proposal of minimization problem based lightness modification method considering visual characteristics of protanopia and deuteranopia | |
CN104077792A (en) | Image processing method with cartoon effect | |
CN104796682A (en) | Image signal color enhancement method and image signal color enhancement device | |
CN104732495A (en) | Automatic-toning image processing method and system based on fuzzing | |
CN103679658B (en) | A kind of image processing method according to the decolouring of dominant hue intelligence |
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 |