Movatterモバイル変換


[0]ホーム

URL:


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 PDF

Info

Publication number
CN105631391B
CN105631391BCN201410617414.9ACN201410617414ACN105631391BCN 105631391 BCN105631391 BCN 105631391BCN 201410617414 ACN201410617414 ACN 201410617414ACN 105631391 BCN105631391 BCN 105631391B
Authority
CN
China
Prior art keywords
pixel value
ratio
projection curve
image
curve
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
CN201410617414.9A
Other languages
Chinese (zh)
Other versions
CN105631391A (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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore Technology 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 Leadcore Technology Co LtdfiledCriticalLeadcore Technology Co Ltd
Priority to CN201410617414.9ApriorityCriticalpatent/CN105631391B/en
Publication of CN105631391ApublicationCriticalpatent/CN105631391A/en
Application grantedgrantedCritical
Publication of CN105631391BpublicationCriticalpatent/CN105631391B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The present invention provides a kind of image processing method for realizing eyes amplification, comprising: is described according to the Gabor wavelet that the facial image of an input and Gabor wavelet establish face;Floor projection is carried out to the top half of the facial image and upright projection generates floor projection curve and upright projection curve;The floor projection curve and upright projection curve are normalized, floor projection curve and upright projection curve representation formula are established;The peak value of floor projection and upright projection is obtained according to the floor projection curve and upright projection curve representation formula, determines the coordinate of pupil in face;It is handled according to the coordinate pair eye areas every bit pixel of a pre-set radius and pupil, realizes eyes amplification.

Description

A kind of image processing method and system for realizing eyes amplification
Technical field
The present invention relates to image procossing and mode identification technology, in particular at a kind of image for realizing eyes amplificationManage method and system.
Background technique
In recent years, with the rapid development of smart phone, demand of the people to cell-phone function is more and more diversified.Wherein,One important function of smart phone is self-timer.It can be applied to production head portrait, social networks using the photo that mobile phone is filmedThe numerous areas such as sharing.The U.S. face processing that self-timer image is realized on smart phone, is more emphasis concerned by people, wherein weighingThe 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 fanThe 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 manuallyThe amplification of eyeball, generally require three parameters of manual setting: central point, paintbrush size and dynamics, this Series Manual are operated to useIt 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 skillArt 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 existsIn, 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 verticalDrop shadow curve;
The floor projection curve and upright projection curve are normalized, floor projection curve and vertical is establishedDrop 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 pre-set radius and pupil, realizes eyes amplification.
Further, in the image processing method for realizing eyes amplification, the face figure according to an inputThe 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 withGabor 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 isThe wavelet convolution result of H.
Further, in the described image processing method for realizing eyes amplification, it is described by different center frequency and notImage 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 selectedTo 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 verticalDrop 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 pre-set radius and pupil in the image processing method for realizing eyes amplificationThe step of coordinate pair eye areas every bit pixel in hole is handled include:
By pupil coordinate C1 (X1, Y1), C2 (X2, Y2) and pre-set 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 fromFrom 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 affairsFormula 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 ratioFormula 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 fromFrom 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 followingFormula 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 followingFormula 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 inputSmall echo description;
Projection module carries out floor projection for the top half to the facial image and upright projection generates horizontal throwShadow curve and upright projection curve;
Curve representation formula generation module, for place to be normalized to the floor projection curve and upright projection curveReason, 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 formulaThe 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 pre-set radius and pupilReason realizes eyes amplification.
Further, in the image processing system for realizing eyes amplification, the Gabor wavelet describing module packetIt includes:
Convolution algorithm module for the facial image and Gabor wavelet progress convolution algorithm to input, and uses FourierTransformation improves convolution speed;
Normalized module is carried out for converting the image Gabor wavelet in different center frequency and different directionsNormalized.
Further, right in the convolution algorithm module in the image processing system for realizing eyes amplificationThe 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 selectedTo 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 formulaIn 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 pre-set radius RSome 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 laggardRow pixel value replacement;
Second computing module, for calculating the ratio of the distance between A2 and C2 with R, reduced value size judge laggardRow 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 affairsFormula 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 ratioFormula 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 followingFormula 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 followingFormula 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 throughGabor wavelet models face characteristic, calculates the floor projection and upright projection of facial image top half, thusTo 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 pre-set radius R are greater than 1When 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 pre-set radius R less than 1When 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 pre-set radius R are equal to 1When 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 pre-set radius R are greater than 1When 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 pre-set radius R less than 1When 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 pre-set radius R are equal to 1When 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 embodimentsSystem 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 non-accurate ratio, only conveniently, lucidly to aid in illustrating originallyThe 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. 1It 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 transformationFinally 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 selectDirection number, C become the Gabor characteristic vector of image.It, can since Gabor wavelet has stronger response in image edgeTo 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 curveWith upright projection curve;
Step 3: being normalized the floor projection curve and upright projection curve, establishes floor projection songLine 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 formulaPeak value, determine the X of pupil in face, Y-coordinate;
Step 5: being handled according to the coordinate pair eye areas every bit pixel of a pre-set radius R and pupil, realizes eyeEyeball amplification.
Pass through pupil coordinate C1 (X1, Y1), C2 (X2, Y2) and pre-set 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 replacedIt 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 followingFormula 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 ratioIt 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 replacedIt 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 followingFormula 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 ratioIt 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 descriptionModule, 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 inputGabor 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 transformationConvolution speed;
Normalized module is carried out for converting the image Gabor wavelet in different center frequency and different directionsNormalized, it may be assumed thatWherein, n is the centre frequency selectedNumber, 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 waterFlat drop shadow curve and upright projection curve;
The curve representation formula generation module, for the floor projection curve and upright projection curve to be normalizedProcessing, establishes floor projection curve and upright projection curve representation formula;The region image [y1, y2] floor projection H (x) andThe 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 formulaThe 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 pre-set radius and pupil intoEyes 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 pre-set radius RSome 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 laggardRow 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 logicalCross 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 followingFormula 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 laggardRow 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 logicalCross 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 followingFormula 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 calculatedFloor projection and upright projection human eye area every bit pixel is handled, to obtain the accurate coordinates of human eye from eyePearl 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 amplificationEffect is natural, true.
Foregoing description is only the description to present pre-ferred embodiments, not to any restriction of the scope of the invention, this hairAny change, the modification that the those of ordinary skill in bright field does according to the disclosure above content, belong to the protection of claimsRange.

Claims (10)

CN201410617414.9A2014-11-052014-11-05A kind of image processing method and system for realizing eyes amplificationActiveCN105631391B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410617414.9ACN105631391B (en)2014-11-052014-11-05A kind of image processing method and system for realizing eyes amplification

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410617414.9ACN105631391B (en)2014-11-052014-11-05A kind of image processing method and system for realizing eyes amplification

Publications (2)

Publication NumberPublication Date
CN105631391A CN105631391A (en)2016-06-01
CN105631391Btrue CN105631391B (en)2019-03-22

Family

ID=56046308

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410617414.9AActiveCN105631391B (en)2014-11-052014-11-05A kind of image processing method and system for realizing eyes amplification

Country Status (1)

CountryLink
CN (1)CN105631391B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109886107A (en)*2019-01-152019-06-14北京奇艺世纪科技有限公司Eyes image processing method, equipment, image processing equipment, medium
CN111784604B (en)*2020-06-292022-02-18北京字节跳动网络技术有限公司Image processing method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7634109B2 (en)*2003-06-262009-12-15Fotonation Ireland LimitedDigital image processing using face detection information
CN102360421A (en)*2011-10-192012-02-22苏州大学Face identification method and system based on video streaming
CN102426652A (en)*2011-10-102012-04-25北京工业大学Traditional Chinese medicine face color recognition and retrieval method based on image analysis
CN103488990A (en)*2013-09-292014-01-01武汉虹识技术有限公司Method and device for extracting eyelash image and locating pupil through cross neighborhood method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7634109B2 (en)*2003-06-262009-12-15Fotonation Ireland LimitedDigital image processing using face detection information
CN102426652A (en)*2011-10-102012-04-25北京工业大学Traditional Chinese medicine face color recognition and retrieval method based on image analysis
CN102360421A (en)*2011-10-192012-02-22苏州大学Face identification method and system based on video streaming
CN103488990A (en)*2013-09-292014-01-01武汉虹识技术有限公司Method and device for extracting eyelash image and locating pupil through cross neighborhood method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
图像美容之眼睛放大算法;laviewpbt;《http://www.cnblogs.com/Imageshop/p/3847357.html》;20140715;1-5
基于Gabor变换的人眼定位方法;李嵩 等;《测控技术》;20060531;第25卷(第5期);27-29,32

Also Published As

Publication numberPublication date
CN105631391A (en)2016-06-01

Similar Documents

PublicationPublication DateTitle
US11295474B2 (en)Gaze point determination method and apparatus, electronic device, and computer storage medium
EP3965003B1 (en)Image processing method and device
CN105374055B (en)Image processing method and device
WO2016023264A1 (en)Fingerprint identification method and fingerprint identification device
WO2020108291A1 (en)Face beautification method and apparatus, and computer device and storage medium
CN109087238A (en)Image processing method and device, electronic equipment and computer readable storage medium
CN109241835A (en)Image processing method and device, electronic equipment and storage medium
CN102147857A (en)Image processing method for detecting similar round by using improved hough transformation
CN106156730A (en)The synthetic method of a kind of facial image and device
CN104811684B (en)A kind of three-dimensional U.S. face method and device of image
CN105046246A (en)Identification photo camera capable of performing human image posture photography prompting and human image posture detection method
CN104732217B (en)A kind of adaptive template size Fingerprint diretion computational methods
CN108549853B (en)Image processing method, mobile terminal and computer readable storage medium
CN107403166A (en) A method and device for extracting pore features of human face images
CN102262536A (en)window interface processing method and device
CN104049760A (en)Obtaining method and system of man-machine interaction instruction
CN109981964A (en)Robot-based shooting method and shooting device and robot
CN114399813A (en)Face shielding detection method, model training method and device and electronic equipment
CN108090451A (en)A kind of face identification method and system
CN105631391B (en)A kind of image processing method and system for realizing eyes amplification
WO2020114119A1 (en)Cross-domain network training method and cross-domain image recognition method
CN112700568B (en)Identity authentication method, equipment and computer readable storage medium
CN109669537A (en) A Human-Computer Interaction System Based on Computer Virtual Interface
CN109784327A (en)Bounding box determines method, apparatus, electronic equipment and storage medium
CN107194310A (en)The rigid-object tracking matched based on scene change classifications and online local feature

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
EE01Entry into force of recordation of patent licensing contract

Application publication date:20160601

Assignee:Shanghai Li Ke Semiconductor Technology Co., Ltd.

Assignor:Leadcore Technology Co., Ltd.

Contract record no.:2018990000159

Denomination of invention:Image processing method and system for achieving eye magnification

License type:Common License

Record date:20180615

EE01Entry into force of recordation of patent licensing contract
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp