CN102819857A - 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
CN102819857A
CN102819857A CN2012102613275A CN201210261327A CN102819857A CN 102819857 A CN102819857 A CN 102819857A CN 2012102613275 A CN2012102613275 A CN 2012102613275A CN 201210261327 A CN201210261327 A CN 201210261327A CN 102819857 A CN102819857 A CN 102819857A
Authority
CN
China
Prior art keywords
mobile phone
pixel
value
current pixel
abs
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
CN2012102613275A
Other languages
Chinese (zh)
Other versions
CN102819857B (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

Images

Landscapes

  • Image Processing (AREA)

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 based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin
Technical field
The present invention relates to a kind of based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin.
Background technology
For the yellow, often delicate with skin is U.S.A, does not find as yet based on the handset processes platform, to transform traditional digital photograph as report that this type of has the animation works that brighten tender skin effect through image processing techniques.
Summary of the invention
Technical matters to be solved by this invention provides a kind of based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin, should be fast, easy to implement based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method data processing that brightens tender skin.
The technical solution of invention is following:
A kind of based on the 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 that original image is operated:
Method 1:
Step 1: the user selects a typical application A, and the brightness value Y corresponding according to computes typical application A 1
Y 1=0.257*r 1+ 0.504*g 1+ 0.98*b 1, r wherein In, g In, b InBe respectively the RGB color component of typical application A;
Step 2: find the solution the output of each pixel through accomplish following step 3 ~ step 9 traversal line by line by row;
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, r wherein In, g In, b InBe the original RGB value of current pixel point;
Step 4: according to Y InThe interval M coefficient sets of calculating of the brightness step at place, the 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 D1Adjustment 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: during less than variation width variationWidth, change step (8), otherwise change step 9 like the aberration of this pixel and selected sample point;
Step 8:, start paleization and move the look process according to calculating the M coefficient sets that obtains:
The look that moves of current pixel point is operated back output component r Out, g Out, b OutProvide 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));
The abs function is the operation that takes absolute value in the formula;
Step 9: do not have operation;
Method 2:
Step a:, obtain the I of each pixel to the operation of full figure gray processing In
Step b: the data space zero clearing of reservation being deposited output image is white;
Step c: the color that calculates user's selection merges the gray-scale value I of typical application S1
Steps d: accomplish the output that following step e ~ step g is found the solution each pixel through traveling through each pixel line by line by row;
Step e: if, the gray-scale value I of current pixel InWith model color shade value I S1Difference during less than variation width variationWidth, need not any operation and since this pixel of step b take off automatically and turn to white; Otherwise, change step f;
Step f: calculate Y according to current pixel color value InAnd and then according to Y InThe interval M that calculates in the M coefficient sets of the brightness step at place 1, computing method are following:
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:
Of the present invention based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin; With the digital photograph is material; Based on the handset processes platform; With former photo be transformed into different styles, have an image that brightens tender skin effect, on animation server or cellphone subscriber individual's mobile phone, carry out the 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 the CPU operational efficiency; On cellphone subscriber individual's mobile phone, carry out the DIY operation; Create mobile phone cartoon works, make that be limited by can be with creation cost and operational effect fast on the mobile phone cartoon works of mobile phone screen size and mobile phone computing power with unique artistic style.
Description of drawings:
Fig. 1 is black race, the former figure of the Miss of the yellow race and (figure a, d and f are former figure to the look whitening effect comparison diagram that moves that is formed by this patent, and figure b and c are respectively and once move look and brighten and move the design sketch that look brightens twice scheming a; Figure e is respectively with figure g figure d and figure f is carried out moving for twice the design sketch that look brightens);
Fig. 2 for the former figure of the Miss of black race and with the high light whitening effect comparison diagram that forms by this patent (figure a is former figure, and figure b and c are respectively and once move look and brighten and move the design sketch that look brightens twice scheming a);
Fig. 3 draws simulate effect figure for carbon; (wherein scheme a and be the design sketch after Fig. 1 f is operated, scheming b is the design sketch to Fig. 1 d operation, and figure c is former figure, and figure d is to scheming the design sketch after c operates.)
Fig. 4 is the influence synoptic diagram of variation width to whitening effect.Wherein, (a) for the variation width is 10 o'clock design sketchs, be 90 o'clock design sketchs (b) for the variation width.
Embodiment
Below will combine specific embodiment that the present invention is explained further details:
Embodiment 1:
A kind ofly it is characterized in that, adopt one of following two kinds of methods that original image is operated based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin:
Method 1: realize brightening tender skin by Metzler matrix figure image drift look
Step 1: the user selects a typical application A, and the brightness value Y corresponding according to computes typical application A 1
Y 1=0.257*r 1+ 0.504*g 1+ 0.98*b 1, r wherein In, g In, b InBe respectively the RGB color component of typical application A;
Step 2: find the solution the output of each pixel through accomplish following step 3 ~ step 9 traversal line by line by row;
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, r wherein In, g In, b InBe the original RGB value of current pixel point;
Step 4: according to Y InThe interval M coefficient sets of calculating of the brightness step at place, the 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 D1Adjustment 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: less than variation width variationWidth, change step (8), otherwise change step 9 like the aberration of this pixel and selected sample point;
Step 8:, start paleization and move the look process according to calculating the M coefficient sets that obtains:
The look that moves of current pixel point is operated back output component r Out, g Out, b OutProvide 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));
The abs function is the operation that takes absolute value in the formula;
Step 9: do not have operation;
Method 2:
Realize the simulation of carbon picture.It is a kind of very personnalit picture kind that carbon (powder) is drawn, and it can be combined in thick lines gimmick and fine and smooth gimmick in the same picture.Concrete steps are following:
Step 1:, obtain the I of each pixel to the operation of full figure gray processing In
Step 2: the data space zero clearing of reservation being deposited output image is white;
Step 3: the color that calculates user's selection merges the gray-scale value I of typical application S1
Step 4: accomplish the output that following step e ~ step g is found the solution each pixel through traveling through each pixel line by line by row;
Step 5: if, the gray-scale value I of current pixel InWith model color shade value I S1Difference during less than variation width variationWidth, need not any operation and since this pixel of step b take off automatically and turn to white; Otherwise, change step 6;
Step 6: calculate Y according to current pixel color value InAnd and then according to Y InThe interval M that calculates in the M coefficient of the brightness step at place 1, computing method are following:
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)).
The practical implementation design sketch is with reference to Fig. 1-3; The variation width can be selected according to whitening effect by the user with souning out, and span is 1~100, and value is big more, and the zone that is influenced is big more, referring to Fig. 4.

Claims (2)

1. one kind based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin, it is characterized in that, adopts one of following two kinds of methods that original image is operated:
Method 1:
Step 1: the user selects a typical application A, and the brightness value Y corresponding according to computes typical application A 1
Y 1=0.257*r 1+ 0.504*g 1+ 0.98*b 1, r wherein In, g In, b InBe respectively the RGB color component of typical application A;
Step 2: find the solution the output of each pixel through accomplish following step 3 ~ step 9 traversal line by line by row;
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, r wherein In, g In, b InBe the original RGB value of current pixel point;
Step 4: according to Y InThe interval M coefficient sets of calculating of the brightness step at place, the 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 D1Adjustment 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: during less than variation width variationWidth, change step (8), otherwise change step 9 like the aberration of this pixel and selected sample point;
Step 8:, start paleization and move the look process according to calculating the M coefficient sets that obtains:
The look that moves of current pixel point is operated back output component r Out, g Out, b OutProvide 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));
The abs function is the operation that takes absolute value in the formula;
Step 9: do not have operation;
Method 2:
Step a:, obtain the I of each pixel to the operation of full figure gray processing In
Step b: the data space zero clearing of reservation being deposited output image is white;
Step c: the color that calculates user's selection merges the gray-scale value I of typical application S1
Steps d: accomplish the output that following step e ~ step g is found the solution each pixel through traveling through each pixel line by line by row;
Step e: if, the gray-scale value I of current pixel InWith model color shade value I S1Difference during less than variation width variationWidth, need not any operation and since this pixel of step b take off automatically and turn to white; Otherwise, change step f;
Step f: calculate Y according to current pixel color value InAnd and then according to Y InThe interval M that calculates in the M coefficient sets of the brightness step at place 1, computing method are following:
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)).
2. according to claim 1ly it is characterized in that variation width variationWidth span is 1~100 based on the cartoon character on mobile phone types of facial makeup in Beijing operas creative method that brightens tender skin.
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 true CN102819857A (en) 2012-12-12
CN102819857B 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 (5)

* 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
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
WO2011105391A1 (en) * 2010-02-26 2011-09-01 日本電気株式会社 Image processing method, image processing device and program
CN102521867A (en) * 2011-12-16 2012-06-27 拓维信息系统股份有限公司 Mobile phone anime character and background creation method

Patent Citations (5)

* 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
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
WO2011105391A1 (en) * 2010-02-26 2011-09-01 日本電気株式会社 Image processing method, image processing device and program
CN102521867A (en) * 2011-12-16 2012-06-27 拓维信息系统股份有限公司 Mobile phone anime character and background creation method

Also Published As

Publication number Publication date
CN102819857B (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN104574495B (en) A kind of image rendering method and device
EP2706507B1 (en) Method and apparatus for generating morphing animation
CN102270093B (en) Video-image-resolution-based vision adaptive method
CN102496180B (en) Method for automatically generating wash landscape painting image
CN103544685B (en) A kind of image composition beautification method adjusted based on main body and system
CN103440674B (en) A kind of rapid generation of digital picture wax crayon specially good effect
CN107767380A (en) A kind of compound visual field skin lens image dividing method of high-resolution based on global empty convolution
CN104391691A (en) Icon and text processing method
CN109993820A (en) A kind of animated video automatic generation method and its device
CN105447125A (en) Electronic equipment and makeup assisting method
CN102497513A (en) Video virtual hand language system facing digital television
EP1677548A3 (en) Color interpolation algorithm
CN107622520A (en) The method for accelerating to render
CN110706151B (en) Video-oriented non-uniform style migration method
CN103745430A (en) Rapid beautifying method of digital image
CN104200505A (en) Cartoon-type animation generation method for human face video image
CN111402373A (en) Image processing method and device, electronic equipment and storage medium
CN105096358A (en) Line enhanced simulation method for pyrography artistic effect
CN102595055A (en) Method for superposing characters on YUV image
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
CN103455974B (en) Image sketching style processing method
WO2015014131A1 (en) Method for converting picture into cartoon
JP2012104099A5 (en)
CN102999660B (en) Method for converting design data into variable parquet data

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