CN102819857B - Method for creating cartoon character face in mobile phone based on whitening and skin tendering - Google Patents

Method for creating cartoon character face in mobile phone based on whitening and skin tendering Download PDF

Info

Publication number
CN102819857B
CN102819857B CN201210261327.5A CN201210261327A CN102819857B CN 102819857 B CN102819857 B CN 102819857B CN 201210261327 A CN201210261327 A CN 201210261327A CN 102819857 B CN102819857 B CN 102819857B
Authority
CN
China
Prior art keywords
mobile phone
abs
current pixel
value
typical application
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.)
Active
Application number
CN201210261327.5A
Other languages
Chinese (zh)
Other versions
CN102819857A (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.)
Talkweb Information System Co Ltd
Original Assignee
Talkweb Information System 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 Talkweb Information System Co Ltd filed Critical Talkweb Information System Co Ltd
Priority to CN201210261327.5A priority Critical patent/CN102819857B/en
Publication of CN102819857A publication Critical patent/CN102819857A/en
Application granted granted Critical
Publication of CN102819857B publication Critical patent/CN102819857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for creating a cartoon character face in a mobile phone based on whitening and skin tendering. The method comprises the steps of extracting sample points and carrying out whitening processing or charcoal simulation processing on an original drawing. According to the method disclosed by the invention, a simple and practical digital image processing algorithm is used and more attention is paid to reducing the data volume and increasing the operation efficiency of a CPU (Central Processing Unit); the DIY (Do It Yourself) operation is carried out on a personal mobile phone of a mobile phone subscriber to create a mobile phone cartoon works with a unique artistic style; and in addition, the method is low in creation cost and quick in operation effect.

Description

A kind of cartoon character on mobile phone types of facial makeup in Beijing operas creative method based on brightening tender skin
Technical field
The present invention relates to a kind of cartoon character on mobile phone types of facial makeup in Beijing operas creative method based on brightening tender skin.
Background technology
For yellow, often delicate as beautiful taking skin, not yet find by image processing techniques, based on handset processes platform, traditional digital photograph is transform as to this type of and has the report of the cartoon that brightens tender skin effect.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of cartoon character on mobile phone types of facial makeup in Beijing operas creative method based on brightening tender skin, and this cartoon character on mobile phone types of facial makeup in Beijing operas creative method data processing based on brightening tender skin is fast, easy to implement.
The technical solution of invention is as follows:
Based on a cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin, adopt one of following two kinds of methods to operate original image:
Method 1:
Step 1: user selects a typical application A, and calculate brightness value Y corresponding to typical application A according to following formula 1;
Y 1=0.257*r 1+ 0.504*g 1+ 0.98*b 1, wherein r in, g in, b inbe respectively the RGB color component of typical application A;
Step 2: solve the output of each pixel by completing line by line by column following step 3 ~ step 9 traversal;
Step 3: according to current pixel color value r in, g in, b incalculate the brightness value Y of current pixel in;
Computing formula is Y=0.257*r in+ 0.504*g in+ 0.98*b in, wherein r in, g in, b infor the original RGB value of current pixel point;
Step 4: according to Y inthe interval M coefficient sets of calculating of brightness step at place, M coefficient sets comprises three part M 1, M 2, M 3: computing method are:
Y in<100,M 1=0.4,M 2=0.2,M 3=0.1;
100≤Y in≤200,M 1=0.2,M 2=0.1,M 3=0.05;
Y in<200,M 1=0.1,M 2=0.05,M 3=0.025;
Step 5: according to Y inand Y 1difference calculate brightness decay coefficient L d1;
L d1=(Y in-Y 1)/Y in;
Step 6: according to brightness decay coefficient L d1adjust M coefficient sets:
M 1=M 1(1-L d1);
M 2=M 2(1-L d1);
M 3=M 3(1-L d1);
Step 7: while being less than variation width variationWidth as this pixel and the aberration of selected sample point, going to step (8), otherwise go to step 9;
Step 8: according to calculating the M coefficient sets obtaining, start paleization and move look process:
The look that moves of current pixel point operates rear output component r out, g out, b outprovided by following formula;
r out=abs(r in+(M 1*r in));
g out=abs(g in+(M 2*g in));
b out=abs(b in+(M 3*b in));
In formula, abs function is the operation that takes absolute value;
Step 9: without operation;
Method 2:
Step a: to the operation of full figure gray processing, obtain the I of each pixel in;
Step b: be white to reserved data space zero clearing of depositing output image;
Step c: the gray-scale value I that calculates the color blend typical application of user's selection s1;
Steps d: complete following step e ~ step g and solve the output of each pixel by traveling through line by line by column each pixel;
Step e: if, the gray-scale value I of current pixel inwith model color shade value I s1difference while being less than variation width variationWidth, turn to white without any operation because this pixel of step b takes off automatically; Otherwise, go to step f;
Step f: go out Y according to current pixel color exploitation inand and then according to Y inthe interval M calculating in M coefficient sets of brightness step at place 1, computing method are as follows:
Y in<100,M 1=0.4;
100≤Y in≤200,M 1=0.2;
Y in<200,M 1=0.1;
Step 7: the output I that obtains current pixel point out=abs (I in-(M 1* I in)).
Variation width variationWidth span is 1~100.
Beneficial effect:
Cartoon character on mobile phone types of facial makeup in Beijing operas creative method based on brightening tender skin of the present invention, taking digital photograph as material, based on handset processes platform, by former photo be transformed into different styles, there is the image that brightens tender skin effect, on animation server or cellphone subscriber individual's mobile phone, carry out DIY operation, create the cartoon character that effect is peculiar, be different from traditional digital photograph.
The present invention uses simple and practical Digital Image Processing algorithm, note reducing data volume and improve CPU operational efficiency, on cellphone subscriber individual's mobile phone, carry out DIY operation, create the mobile phone cartoon works with unique artistic style, make the restricted mobile phone cartoon works on mobile phone screen size and mobile phone computing power can be with cheap creation cost and operational effect fast.
Brief description of the drawings:
Fig. 1 is that (figure a, d and f are former figure, and figure b and c are respectively and figure a is once moved to look brighten with twice and move the design sketch that look brightens for black race, the former figure of the Miss of the yellow race and the look whitening effect comparison diagram that moves that formed by this patent; Figure e and figure g are respectively figure d and figure f are carried out moving for twice the design sketch that look brightens);
Fig. 2 be the former figure of the Miss of black race and with the high light whitening effect comparison diagram being formed by this patent (figure a is former figure, figure b and c be respectively to figure a once move look brighten with twice move the design sketch that look brightens);
Fig. 3 is that carbon is drawn simulate effect figure; (wherein scheming a is to the design sketch after Fig. 1 f operation, and figure b is the design sketch to Fig. 1 d operation, and figure c is former figure, and figure d is to the design sketch after figure c operation.)
Fig. 4 is the affect schematic diagram of variation width on whitening effect.Wherein, (a) for variation width is 10 o'clock design sketchs, (b) for variation width is 90 o'clock design sketchs.
Embodiment
Below with reference to specific embodiment, the present invention is described in further details:
Embodiment 1:
Based on a cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin, it is characterized in that, adopt one of following two kinds of methods to operate original image:
Method 1: realization moves look by Metzler matrix image and brightens tender skin
Step 1: user selects a typical application A, and calculate brightness value Y corresponding to typical application A according to following formula 1;
Y 1=0.257*r 1+ 0.504*g 1+ 0.98*b 1, wherein r in, g in, b inbe respectively the RGB color component of typical application A;
Step 2: solve the output of each pixel by completing line by line by column following step 3 ~ step 9 traversal;
Step 3: according to current pixel color value r in, g in, b incalculate the brightness value Y of current pixel in;
Computing formula is Y=0.257*r in+ 0.504*g in+ 0.98*b in, wherein r in, g in, b infor the original RGB value of current pixel point;
Step 4: according to Y inthe interval M coefficient sets of calculating of brightness step at place, M coefficient value comprises three component M 1, M 2, M 3: computing method are:
Y in<100,M 1=0.4,M 2=0.2,M 3=0.1;
100≤Y in≤200,M 1=0.2,M 2=0.1,M 3=0.05;
Y in<200,M 1=0.1,M 2=0.05,M 3=0.025;
Step 5: according to Y inand Y 1difference calculate brightness decay coefficient L d1;
L d1=(Y in-Y 1)/Y in;
Step 6: according to brightness decay coefficient L d1adjust M coefficient sets:
M 1=M 1(1-L d1);
M 2=M 2(1-L d1);
M 3=M 3(1-L d1);
Step 7: as this pixel and the aberration of selected sample point are less than variation width variationWidth, go to step (8), otherwise go to step 9;
Step 8: according to calculating the M coefficient sets obtaining, start paleization and move look process:
The look that moves of current pixel point operates rear output component r out, g out, b outprovided by following formula;
r out=abs(r in+(M 1*r in));
g out=abs(g in+(M 2*g in));
b out=abs(b in+(M 3*b in));
In formula, abs function is the operation that takes absolute value;
Step 9: without operation;
Method 2:
Realize carbon and draw simulation.It is the very personnalité picture kind of one that carbon (powder) is drawn, and it can be combined in thick lines gimmick and fine and smooth gimmick in same picture.Concrete steps are as follows:
Step 1: to the operation of full figure gray processing, obtain the I of each pixel in;
Step 2: be white to reserved data space zero clearing of depositing output image;
Step 3: the gray-scale value I that calculates the color blend typical application of user's selection s1;
Step 4: complete following step e ~ step g and solve the output of each pixel by traveling through line by line by column each pixel;
Step 5: if, the gray-scale value I of current pixel inwith model color shade value I s1difference while being less than variation width variationWidth, turn to white without any operation because this pixel of step b takes off automatically; Otherwise, go to step 6;
Step 6: go out Y according to current pixel color exploitation inand and then according to Y inthe interval M calculating in M coefficient of brightness step at place 1, computing method are as follows:
Y in<100,M 1=0.4;
100≤Y in≤200,M 1=0.2;
Y in<200,M 1=0.1;
Step 7: the output I that obtains current pixel point out=abs (I in-(M 1* I in)).
Concrete implementation result figure is with reference to Fig. 1-3; Variation width can be soundd out and select according to whitening effect by user, and span is 1~100, and value is larger, and the region affecting is larger, referring to Fig. 4.

Claims (2)

1. the cartoon character on mobile phone types of facial makeup in Beijing operas creative method based on brightening tender skin, is characterized in that, adopts following methods to operate original image:
Step 1: user selects a typical application A, and calculate brightness value Y corresponding to typical application A according to following formula 1;
Y 1=0.257*r 1+ 0.504*g 1+ 0.98*b 1, wherein r 1, g 1, b 1be respectively the RGB color component of typical application A;
Step 2: solve the output of each pixel by completing line by line by column following step 3~step 9 traversal;
Step 3: according to current pixel color value r in, g in, b incalculate the brightness value Y of current pixel in;
Computing formula is Y in=0.257*r in+ 0.504*g in+ 0.98*b in, wherein r in, g in, b infor the original RGB value of current pixel point;
Step 4: according to Y inthe interval M coefficient sets of calculating of brightness step at place, M coefficient sets comprises three part M 1, M 2, M 3: computing method are:
Y in<100,M 1=0.4,M 2=0.2,M 3=0.1;
100≤Y in≤200,M 1=0.2,M 2=0.1,M 3=0.05;
Y in>200,M 1=0.1,M 2=0.05,M 3=0.025;
Step 5: according to Y inand Y 1difference calculate brightness decay coefficient L d1;
L d1=(Y in-Y 1)/Y in
Step 6: according to brightness decay coefficient L d1adjust M coefficient sets:
M 1=M 1(1-L d1);
M 2=M 2(1-L d1);
M 3=M 3(1-L d1);
Step 7: while being less than variation width variationWidth as this pixel and the aberration of selected typical application, going to step (8), otherwise go to step 9;
Step 8: according to calculating the M coefficient sets obtaining, start paleization and move look process:
The look that moves of current pixel point operates rear output component r out, g out, b outprovided by following formula;
r out=abs(r in+(M 1*r in));
g out=abs(g in+(M 2*g in));
b out=abs(b in+(M 3*b in));
In formula, abs function is the operation that takes absolute value;
Step 9: without operation.
2. the cartoon character on mobile phone types of facial makeup in Beijing operas creative method based on brightening tender skin according to claim 1, is characterized in that, variation width variationWidth span is 1~100.
CN201210261327.5A 2012-07-26 2012-07-26 Method for creating cartoon character face in mobile phone based on whitening and skin tendering Active CN102819857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210261327.5A CN102819857B (en) 2012-07-26 2012-07-26 Method for creating cartoon character face in mobile phone based on whitening and skin tendering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210261327.5A CN102819857B (en) 2012-07-26 2012-07-26 Method for creating cartoon character face in mobile phone based on whitening and skin tendering

Publications (2)

Publication Number Publication Date
CN102819857A CN102819857A (en) 2012-12-12
CN102819857B true CN102819857B (en) 2014-09-24

Family

ID=47303960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210261327.5A Active CN102819857B (en) 2012-07-26 2012-07-26 Method for creating cartoon character face in mobile phone based on whitening and skin tendering

Country Status (1)

Country Link
CN (1) CN102819857B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777913A (en) * 2003-03-20 2006-05-24 欧姆龙株式会社 Image processing device
CN102027505A (en) * 2008-07-30 2011-04-20 泰塞拉技术爱尔兰公司 Automatic face and skin beautification using face detection
CN102521867A (en) * 2011-12-16 2012-06-27 拓维信息系统股份有限公司 Mobile phone anime character and background creation method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004147288A (en) * 2002-10-25 2004-05-20 Reallusion Inc Facial image correction method
US8849029B2 (en) * 2010-02-26 2014-09-30 Nec Corporation Image processing method, image processing device and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777913A (en) * 2003-03-20 2006-05-24 欧姆龙株式会社 Image processing device
CN102027505A (en) * 2008-07-30 2011-04-20 泰塞拉技术爱尔兰公司 Automatic face and skin beautification using face detection
CN102521867A (en) * 2011-12-16 2012-06-27 拓维信息系统股份有限公司 Mobile phone anime character and background creation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2004-147288A 2004.05.20

Also Published As

Publication number Publication date
CN102819857A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN104574495B (en) A kind of image rendering method and device
US10325175B2 (en) Generation of salient contours using live video
CN102496180B (en) Method for automatically generating wash landscape painting image
CN101908216B (en) Method and device for realizing vector fonts
CN103914124A (en) Energy-saving color mapping method aiming at three-dimensional scenes
CN109741408A (en) A kind of image and video caricature effect real-time rendering method
Yeh et al. Visual-attention-based pixel dimming technique for OLED displays of mobile devices
WO2015014131A1 (en) Method for converting picture into cartoon
CN102999660B (en) Method for converting design data into variable parquet data
CN102768763A (en) Method and device for outlining characters
JP2012104099A5 (en)
CN104463847A (en) Ink and wash painting characteristic rendering method
CN102819857B (en) Method for creating cartoon character face in mobile phone based on whitening and skin tendering
CN109102471A (en) A kind of low power image display driving method based on histogram modification
CN103744942A (en) Web browsing method, web browsing device and web browsing terminal device
CN103455974A (en) Image sketching style processing method
CN102572305A (en) Method and system for processing video image
CN108288296A (en) The picture batch coloring method of digital picture painting methods and digital publication
Hsu et al. Depicting time evolving flow with illustrative visualization techniques
CN103164210B (en) Method and device of changing surface of application program interface
CN107085859B (en) A kind of color lead painting style lattice method for drafting based on image
CN114512094B (en) Screen color adjusting method, device, terminal and computer readable storage medium
CN103729866B (en) Water color style non-photorealistic rendering method and device
CN107045714A (en) A kind of beautifying faces algorithm for live video communication
Dan-Dan et al. Transformation and innovation of traditional fashion design based on the digital technology platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant