CN105631391B  A kind of image processing method and system for realizing eyes amplification  Google Patents
A kind of image processing method and system for realizing eyes amplification Download PDFInfo
 Publication number
 CN105631391B CN105631391B CN201410617414.9A CN201410617414A CN105631391B CN 105631391 B CN105631391 B CN 105631391B CN 201410617414 A CN201410617414 A CN 201410617414A CN 105631391 B CN105631391 B CN 105631391B
 Authority
 CN
 China
 Prior art keywords
 pixel value
 ratio
 curve
 image
 projection curve
 Prior art date
Links
Abstract
Description
Technical field
The present invention relates to image procossing and mode identification technology, in particular at a kind of image for realizing eyes amplification Manage method and system.
Background technique
In recent years, with the rapid development of smart phone, demand of the people to cellphone function is more and more diversified.Wherein, One important function of smart phone is selftimer.It can be applied to production head portrait, social networks using the photo that mobile phone is filmed The numerous areas such as sharing.The U.S. face processing that selftimer image is realized on smart phone, is more emphasis concerned by people, wherein weighing The U.S. face processing wanted just includes the processing of eyes, amplifies human eye by image procossing, so that everyone can possess a pair of fan The oxeye of people.
Eyes enhanced processing belongs to a kind of bird caging of image, and existing processing technique is all by carrying out eye manually The amplification of eyeball, generally require three parameters of manual setting: central point, paintbrush size and dynamics, this Series Manual are operated to use It makes troubles at family.
Summary of the invention
The purpose of the present invention is to provide a kind of image processing methods and system for realizing eyes amplification, to solve existing skill Art needs that the problem of making troubles to user is manually operated.
In order to solve the above technical problems, the present invention provides a kind of image processing method for realizing eyes amplification, feature exists In, comprising:
It is described according to the Gabor wavelet that the facial image of an input and Gabor wavelet establish face；
Floor projection carried out to the top half of the facial image and upright projection generates floor projection curve and vertical Drop shadow curve；
The floor projection curve and upright projection curve are normalized, floor projection curve and vertical is established Drop shadow curve's expression formula；
The peak value of floor projection and upright projection is obtained according to the floor projection curve and upright projection curve representation formula, Determine the coordinate of pupil in face；
It is handled according to the coordinate pair eye areas every bit pixel of a preset radius and pupil, realizes eyes amplification.
Further, in the image processing method for realizing eyes amplification, the face figure according to an input The step of describing as the Gabor wavelet of establishing face with Gabor wavelet include:
Facial image and Gabor wavelet to input carry out convolution algorithm, and improve convolution speed using Fourier transformation；
Image Gabor wavelet transformation in different center frequency and different directions is normalized.
Further, in the described image processing method for realizing eyes amplification, the facial image of described pair of input with Gabor wavelet carries out convolution algorithm and is completed by following formula:Wherein, G (x, y) is the facial image of input, and Θ indicates convolution algorithm,Corresponding to radial center frequency be X0, direction is The wavelet convolution result of H.
Further, in the described image processing method for realizing eyes amplification, it is described by different center frequency and not Image Gabor wavelet transformation on equidirectional is normalized to be completed by following formula:Wherein, n is the centre frequency number selected, and m is the side selected To number, C becomes the Gabor characteristic vector of image.
Further, in the described image processing method for realizing eyes amplification, the floor projection curve and vertical Drop shadow curve's expression formula are as follows:
Wherein, H (x) is floor projection curve, and V (y) is upright projection curve, and G (x, y) is the facial image of input.
Further, described according to a preset radius and pupil in the image processing method for realizing eyes amplification The step of coordinate pair eye areas every bit pixel in hole is handled include:
By pupil coordinate C1 (X1, Y1), C2 (X2, Y2) and preset radius R, every bit pixel A 1 in pair radius (x1, Y1 it) is handled with A2 (x2, y2)；
The ratio of the distance between A1 and C1 and R are calculated, reduced value size carries out judging laggard row pixel value replacement；
The ratio of the distance between A2 and C2 and R are calculated, reduced value size carries out judging laggard row pixel value replacement.
Further, in the described image processing method for realizing eyes amplification, it is described calculate between A1 and C1 away from From the ratio with R, reduced value size carries out judging that the step of laggard row pixel value is replaced includes:
If ratio is greater than 1, its pixel value is changed to the pixel value of point A ' (x1 ', y1 ') into, the position of A ' passes through following public affairs Formula obtains:
If its pixel value less than 1, is changed into the pixel value of point A ' (x1 ', y1 '), the position of A ' passes through following public affairs by ratio Formula obtains:
If ratio is equal to 1, its pixel value is constant.
Further, in the described image processing method for realizing eyes amplification, it is described calculate between A2 and C2 away from From the ratio with R, reduced value size carries out judging that the step of laggard row pixel value is replaced includes:
If ratio is greater than 1 into, its pixel value is changed to the pixel value of point A2 ' (x2 ', y2 '), the position of A2 ' passes through following Formula obtains:
If its pixel value less than 1, is changed into the pixel value of point A2 ' (x1 ', y1 ') by ratio, the position of A2 ' passes through following Formula obtains:
If ratio is equal to 1, its pixel value is constant.
Correspondingly, the present invention also provides a kind of image processing systems for realizing eyes amplification, comprising:
Gabor wavelet describing module establishes the Gabor of face for the facial image and Gabor wavelet according to an input Small echo description；
Projection module carries out floor projection for the top half to the facial image and upright projection generates horizontal throw Shadow curve and upright projection curve；
Curve representation formula generation module, for place to be normalized to the floor projection curve and upright projection curve Reason, establishes floor projection curve and upright projection curve representation formula；
Pupil coordinate generation module, for obtaining level according to the floor projection curve and upright projection curve representation formula The peak value of projection and upright projection, determines the coordinate of pupil in face；
Processes pixel module, at the coordinate pair eye areas every bit pixel according to a preset radius and pupil Reason realizes eyes amplification.
Further, in the image processing system for realizing eyes amplification, the Gabor wavelet describing module packet It includes:
Convolution algorithm module for the facial image and Gabor wavelet progress convolution algorithm to input, and uses Fourier Transformation improves convolution speed；
Normalized module is carried out for converting the image Gabor wavelet in different center frequency and different directions Normalized.
Further, right in the convolution algorithm module in the image processing system for realizing eyes amplification The facial image and Gabor wavelet of input carry out convolution algorithm and are completed by following formula:Wherein, G (x, y) is the facial image of input, and Θ indicates convolution algorithm,Corresponding to the wavelet convolution result that radial center frequency is X0, direction is H.
Further, in the image processing system for realizing eyes amplification, in the normalized module, Image Gabor wavelet transformation in different center frequency and different directions is normalized and is completed by following formula:Wherein, n is the centre frequency number selected, and m is the side selected To number, C becomes the Gabor characteristic vector of image.
Further, in the image processing system for realizing eyes amplification, mould is generated in the curve representation formula In block, floor projection curve and upright projection curve representation formula are as follows:
Wherein, H (x) is floor projection curve, and V (y) is upright projection curve, and G (x, y) is the facial image of input.
Further, in the image processing system for realizing eyes amplification, the processes pixel module includes:
Processing module, it is every in pair radius for passing through pupil coordinate C1 (X1, Y1), C2 (X2, Y2) and preset radius R Some pixel As 1 (x1, y1) and A2 (x2, y2) are handled；
First computing module, for calculating the ratio of the distance between A1 and C1 with R, reduced value size judge laggard Row pixel value replacement；
Second computing module, for calculating the ratio of the distance between A2 and C2 with R, reduced value size judge laggard Row pixel value replacement.
Further, in the image processing system for realizing eyes amplification, in first computing module:
If ratio is greater than 1, its pixel value is changed to the pixel value of point A ' (x1 ', y1 ') into, the position of A ' passes through following public affairs Formula obtains:
If its pixel value less than 1, is changed into the pixel value of point A ' (x1 ', y1 '), the position of A ' passes through following public affairs by ratio Formula obtains:
If ratio is equal to 1, its pixel value is constant.
Further, in the image processing system for realizing eyes amplification, in second computing module:
If ratio is greater than 1 into, its pixel value is changed to the pixel value of point A2 ' (x2 ', y2 '), the position of A2 ' passes through following Formula obtains:
If its pixel value less than 1, is changed into the pixel value of point A2 ' (x1 ', y1 ') by ratio, the position of A2 ' passes through following Formula obtains:
If ratio is equal to 1, its pixel value is constant.
The image processing method and system provided by the invention for realizing eyes amplification, has the advantages that and passes through Gabor wavelet models face characteristic, calculates the floor projection and upright projection of facial image top half, thus To the accurate coordinates of human eye, human eye area every bit pixel is handled, from eyeball get over into those of pixel variation it is smaller, And remoter transformation is bigger, to realize that human eye equal proportion is amplified, and guarantees that amplification effect is natural, true.
Detailed description of the invention
Fig. 1 is the flow chart of the image processing method for realizing eyes amplification of the embodiment of the present invention；
Fig. 2 is that the distance between pixel A 1 and pupil coordinate C1 of the embodiment of the present invention and the ratio of preset radius R are greater than 1 When schematic diagram；
Fig. 3 is the distance between pixel A 1 and pupil coordinate C1 of the embodiment of the present invention with the ratio of preset radius R less than 1 When schematic diagram；
Fig. 4 is that the distance between pixel A 1 and pupil coordinate C1 of the embodiment of the present invention and the ratio of preset radius R are equal to 1 When schematic diagram；
Fig. 5 is that the distance between pixel A 2 and pupil coordinate C2 of the embodiment of the present invention and the ratio of preset radius R are greater than 1 When schematic diagram；
Fig. 6 is the distance between pixel A 2 and pupil coordinate C2 of the embodiment of the present invention with the ratio of preset radius R less than 1 When schematic diagram；
Fig. 7 is that the distance between pixel A 2 and pupil coordinate C2 of the embodiment of the present invention and the ratio of preset radius R are equal to 1 When schematic diagram.
Specific embodiment
To the image processing method of realization eyes amplification proposed by the present invention and it is below in conjunction with the drawings and specific embodiments System is described in further detail.According to following explanation and claims, advantages and features of the invention will be become apparent from.It needs to illustrate , attached drawing is all made of very simplified form and using nonaccurate ratio, only conveniently, lucidly to aid in illustrating originally The purpose of inventive embodiments.
Referring to FIG. 1, it is the flow chart of the image processing method for realizing eyes amplification of the embodiment of the present invention.Such as Fig. 1 It is shown, the present invention provide it is a kind of realize eyes amplification image processing method include:
Step 1: it is described according to the Gabor wavelet that the facial image of an input and Gabor wavelet establish face；
Specifically, convolution algorithm first is carried out to the facial image of input and Gabor wavelet, it may be assumed thatWherein, G (x, y) is the facial image of input, and Θ indicates convolution algorithm,Corresponding to the wavelet convolution result that radial center frequency is X0, direction is H.Then it is mentioned using Fourier transformation Finally the image Gabor wavelet transformation in different center frequency and different directions is normalized for high convolution speed, That is:Wherein, n is the centre frequency number selected, and m is to select Direction number, C become the Gabor characteristic vector of image.It, can since Gabor wavelet has stronger response in image edge To utilize the characteristic, the Gabor wavelet description of face is established.
Step 2: floor projection is carried out to the top half of the facial image and upright projection generates floor projection curve With upright projection curve；
Step 3: being normalized the floor projection curve and upright projection curve, establishes floor projection song Line and upright projection curve representation formula, in the floor projection H (x) in the region image [y1, y2] and the upright projection in the region [x1, x2] V (y) is indicated are as follows:
Wherein, H (x) is floor projection curve, and V (y) is upright projection curve, and G (x, y) is the facial image of input.
Step 4: floor projection and upright projection are obtained according to the floor projection curve and upright projection curve representation formula Peak value, determine the X of pupil in face, Ycoordinate；
Step 5: being handled according to the coordinate pair eye areas every bit pixel of a preset radius R and pupil, realizes eye Eyeball amplification.
Pass through pupil coordinate C1 (X1, Y1), C2 (X2, Y2) and preset radius R, the every bit pixel A 1 in pair radius first (x1, y1) and A2 (x2, y2) are handled；
Then, the ratio of the distance between A1 and C1 and R are calculated, reduced value size carries out judging that laggard row pixel value is replaced It changes；
Specifically, as shown in Fig. 2,
If ratio is greater than 1 into, its pixel value is changed to the pixel value of point A1 ' (x1 ', y1 '), the position of A1 ' passes through following Formula obtains:
As shown in figure 3, if its pixel value less than 1, is changed into the pixel value of point A1 ' (x1 ', y1 '), the position of A1 ' by ratio It sets and is obtained by following formula:
As shown in figure 4, if ratio be equal to 1, its pixel value is constant.
Finally, calculating the ratio of the distance between A2 and C2 and R, reduced value size carries out judging that laggard row pixel value is replaced It changes.
Specifically, as shown in figure 5,
If ratio is greater than 1 into, its pixel value is changed to the pixel value of point A2 ' (x2 ', y2 '), the position of A2 ' passes through following Formula obtains:
As shown in fig. 6, if its pixel value less than 1, is changed into the pixel value of point A2 ' (x1 ', y1 '), the position of A2 ' by ratio It sets and is obtained by following formula:
As shown in fig. 7, if ratio be equal to 1, its pixel value is constant.
Correspondingly, the present invention also provides a kind of image processing systems for realizing eyes amplification, comprising: Gabor wavelet description Module, projection module, curve representation formula generation module, pupil coordinate generation module and processes pixel module；
The Gabor wavelet describing module, for establishing face according to the facial image and Gabor wavelet of an input Gabor wavelet description；
Further, the Gabor wavelet describing module further include:
Convolution algorithm module, for the facial image and Gabor wavelet progress convolution algorithm to input, it may be assumed thatWherein, G (x, y) is the facial image of input, and Θ indicates convolution algorithm,Corresponding to the wavelet convolution that radial center frequency is X0, direction is H as a result, and being improved using Fourier transformation Convolution speed；
Normalized module is carried out for converting the image Gabor wavelet in different center frequency and different directions Normalized, it may be assumed thatWherein, n is the centre frequency selected Number, m are the direction number selected, and C becomes the Gabor characteristic vector of image.
The projection module carries out floor projection for the top half to the facial image and upright projection generates water Flat drop shadow curve and upright projection curve；
The curve representation formula generation module, for the floor projection curve and upright projection curve to be normalized Processing, establishes floor projection curve and upright projection curve representation formula；The region image [y1, y2] floor projection H (x) and The upright projection V (y) in the region [x1, x2] is indicated are as follows:
Wherein, H (x) is floor projection curve, and V (y) is upright projection curve, and G (x, y) is the facial image of input.
The pupil coordinate generation module, for being obtained according to the floor projection curve and upright projection curve representation formula The peak value of floor projection and upright projection determines the coordinate of pupil in face；
The processes pixel module, for according to the coordinate pair eye areas every bit pixel of a preset radius and pupil into Eyes amplification is realized in row processing.
Further, the processes pixel module includes:
Processing module, it is every in pair radius for passing through pupil coordinate C1 (X1, Y1), C2 (X2, Y2) and preset radius R Some pixel As 1 (x1, y1) and A2 (x2, y2) are handled；
First computing module, for calculating the ratio of the distance between A1 and C1 with R, reduced value size judge laggard Row pixel value replacement；
Specifically, if ratio is greater than 1 into its pixel value to be changed to the pixel value of point A1 ' (x1 ', y1 '), the position of A1 ' is logical Cross following formula acquisition:
If its pixel value less than 1, is changed into the pixel value of point A1 ' (x1 ', y1 ') by ratio, the position of A1 ' passes through following Formula obtains:
If ratio is equal to 1, its pixel value is constant.
Second computing module, for calculating the ratio of the distance between A2 and C2 with R, reduced value size judge laggard Row pixel value replacement.
Specifically, if ratio is greater than 1 into its pixel value to be changed to the pixel value of point A2 ' (x2 ', y2 '), the position of A2 ' is logical Cross following formula acquisition:
If its pixel value less than 1, is changed into the pixel value of point A2 ' (x1 ', y1 ') by ratio, the position of A2 ' passes through following Formula obtains:
If ratio is equal to 1, its pixel value is constant.
In conclusion the present invention models face characteristic by Gabor wavelet, facial image top half is calculated Floor projection and upright projection human eye area every bit pixel is handled, to obtain the accurate coordinates of human eye from eye Pearl get over into those of pixel variation it is smaller, and remoter transformation is bigger, to realize that human eye equal proportion is amplified, and guarantees amplification Effect is natural, true.
Foregoing description is only the description to present preferred embodiments, not to any restriction of the scope of the invention, this hair Any change, the modification that the those of ordinary skill in bright field does according to the disclosure above content, belong to the protection of claims Range.
Claims (10)
Priority Applications (1)
Application Number  Priority Date  Filing Date  Title 

CN201410617414.9A CN105631391B (en)  20141105  20141105  A kind of image processing method and system for realizing eyes amplification 
Applications Claiming Priority (1)
Application Number  Priority Date  Filing Date  Title 

CN201410617414.9A CN105631391B (en)  20141105  20141105  A kind of image processing method and system for realizing eyes amplification 
Publications (2)
Publication Number  Publication Date 

CN105631391A CN105631391A (en)  20160601 
CN105631391B true CN105631391B (en)  20190322 
Family
ID=56046308
Family Applications (1)
Application Number  Title  Priority Date  Filing Date 

CN201410617414.9A CN105631391B (en)  20141105  20141105  A kind of image processing method and system for realizing eyes amplification 
Country Status (1)
Country  Link 

CN (1)  CN105631391B (en) 
Citations (4)
Publication number  Priority date  Publication date  Assignee  Title 

US7634109B2 (en) *  20030626  20091215  Fotonation Ireland Limited  Digital image processing using face detection information 
CN102360421A (en) *  20111019  20120222  苏州大学  Face identification method and system based on video streaming 
CN102426652A (en) *  20111010  20120425  北京工业大学  Traditional Chinese medicine face color identifying and retrieving method based on image analysis 
CN103488990A (en) *  20130929  20140101  武汉虹识技术有限公司  Method and device for extracting eyelash image and locating pupil through cross neighborhood method 

2014
 20141105 CN CN201410617414.9A patent/CN105631391B/en active IP Right Grant
Patent Citations (4)
Publication number  Priority date  Publication date  Assignee  Title 

US7634109B2 (en) *  20030626  20091215  Fotonation Ireland Limited  Digital image processing using face detection information 
CN102426652A (en) *  20111010  20120425  北京工业大学  Traditional Chinese medicine face color identifying and retrieving method based on image analysis 
CN102360421A (en) *  20111019  20120222  苏州大学  Face identification method and system based on video streaming 
CN103488990A (en) *  20130929  20140101  武汉虹识技术有限公司  Method and device for extracting eyelash image and locating pupil through cross neighborhood method 
NonPatent Citations (2)
Title 

图像美容之眼睛放大算法;laviewpbt;《http://www.cnblogs.com/Imageshop/p/3847357.html》;20140715;15 
基于Gabor变换的人眼定位方法;李嵩 等;《测控技术》;20060531;第25卷(第5期);2729，32 
Also Published As
Publication number  Publication date 

CN105631391A (en)  20160601 
Similar Documents
Publication  Publication Date  Title 

US9280206B2 (en)  System and method for perceiving images with multimodal feedback  
US20150310259A1 (en)  Using facial data for device authentication or subject identification  
JP3924262B2 (en)  Generating apparatus and method for threedimensional caricature  
EP3137938B1 (en)  Facial expression tracking  
US9607421B2 (en)  Displaying particle effect on screen of electronic device  
US20050078854A1 (en)  Multisensing devices cooperative recognition system  
CN103413270A (en)  Method and device for image processing and terminal device  
US8692830B2 (en)  Automatic avatar creation  
CN104063150A (en)  Mobile terminal capable of entering corresponding scene modes by means of face recognition and implementation method thereof  
CN103353935B (en)  3d dynamic gesture recognition method for an intelligent home system  
CN102799277A (en)  Wink actionbased manmachine interaction method and system  
De Silva et al.  Detection and tracking of facial features  
CN104185981A (en)  Method and terminal selecting image from continuous captured image  
JP2013522754A (en)  Iris recognition apparatus and method using a plurality of iris templates  
JP2016537912A (en)  Image capture feedback  
CN103942796A (en)  Highprecision projector and camera calibration system and method  
CN103116763B (en)  Alive human face detection method based on statistical characteristics of the color space hsv  
CN101763507A (en)  Face recognition method and face recognition system  
CN102831404B (en)  Method and system for detecting a gesture  
CN102772211A (en)  Human movement state detection system and detection method  
US20140341442A1 (en)  Image masks for facerelated selection and processing in images  
CN104167025A (en)  Mobile attendance system based on dynamic face recognition and WIFI positioning and method of attendance system  
CN103793719A (en)  Monocular distancemeasuring method and system based on human eye positioning  
EP3091479A1 (en)  Fingerprint identification method and fingerprint identification device  
CN103440476A (en)  Locating method for pupil in face video 
Legal Events
Date  Code  Title  Description 

C06  Publication  
C10  Entry into substantive examination  
EE01  Entry into force of recordation of patent licensing contract  
GR01  Patent grant 