CN108833771A - A kind of portrait patterned lines generation method, system and device - Google Patents

A kind of portrait patterned lines generation method, system and device Download PDF

Info

Publication number
CN108833771A
CN108833771A CN201810503753.2A CN201810503753A CN108833771A CN 108833771 A CN108833771 A CN 108833771A CN 201810503753 A CN201810503753 A CN 201810503753A CN 108833771 A CN108833771 A CN 108833771A
Authority
CN
China
Prior art keywords
portrait
characteristic
original image
patterned lines
feature data
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.)
Pending
Application number
CN201810503753.2A
Other languages
Chinese (zh)
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.)
Guangzhou Beauty Information Technology Co Ltd
Original Assignee
Guangzhou Beauty Information 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 Guangzhou Beauty Information Technology Co Ltd filed Critical Guangzhou Beauty Information Technology Co Ltd
Priority to CN201810503753.2A priority Critical patent/CN108833771A/en
Publication of CN108833771A publication Critical patent/CN108833771A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of portrait patterned lines generation method, system and device, methods to include:Obtain the original image of input;The detection of portrait feature is carried out to original image, obtains characteristic;According to characteristic, model data is calculated;According to model data, patterned lines are drawn out on the original image, obtain final image.The present invention passes through according to the characteristic for calculating various portraits, to realize the generation to different portrait image composition lines, it can effectively help cameraman to complete the portrait image shooting for meeting input picture portrait composition aesthetic feeling, greatly improve the applicability to portrait image.It the composite can be widely applied in photography applications.

Description

A kind of portrait patterned lines generation method, system and device
Technical field
The present invention relates to technical field of image processing more particularly to a kind of portrait patterned lines generation methods, system and device.
Background technique
With the universal of intelligent mobile terminal such as mobile phone, plate etc. and rapidly develop, take pictures effect of the user to mobile terminal Fruit requirement is higher and higher, and the camera function of mobile terminal is also stronger and stronger, and hardware device imaging effect is greatly improving, and such as takes the photograph As head resolution ratio, size sensor, camera lens etc., but user is when holding the extraordinary mobile terminal of hardware, because without base The photographic knowledge of plinth, it is not ideal enough for taking the photo effect come.
In the prior art, the shooting technology of mobile terminal is in order to assist user's composition, usually used nine grids patterned lines, and nine Palace lattice figure line is only used for the Position Approximate guided user setting target image in view-finder and takes pictures, to obtain having certain Target image is such as retained in centre to obtain the image of frame-type patterning effect, target image is protected by the image of mode of composition It holds and is taken pictures in three grid of bottom to obtain the image of trichotomy patterning effect, but is this when being directed to portrait image Compare fixed patterned lines to be not necessarily applicable in, patterning effect is poor.
Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of portrait patterned lines generations for improving applicability Method, system and device.
The technical solution adopted by the present invention is that:
A kind of portrait patterned lines generation method, includes the following steps:
Obtain the original image of input;
The detection of portrait feature is carried out to original image, obtains characteristic;
According to characteristic, model data is calculated;
According to model data, patterned lines are drawn out on the original image, obtain final image.
As a kind of further improvement of portrait patterned lines generation method, the characteristic includes eyes spy Levy data, eyebrow characteristic, mouth feature data and portrait outer profile characteristic.
It is described according to characteristic as a kind of further improvement of portrait patterned lines generation method, it calculates Obtain model data, the step for specifically include:
According to eye feature data, canthus characteristic is calculated;
According to eyebrow characteristic, two eyebrow central feature data of portrait are calculated;
According to mouth feature data, the mouth central feature data of portrait are calculated;
According to portrait outer profile characteristic, outer profile ellipse framework is calculated, elliptic parameter is obtained.
As a kind of further improvement of portrait patterned lines generation method, the patterned lines include portrait eye water Horizontal line, portrait face central axes and portrait face mask line.
It is described according to model data as a kind of further improvement of portrait patterned lines generation method, in original Draw out patterned lines on beginning image, obtain final image, the step for specifically include:
According to canthus characteristic, portrait eye horizontal line is drawn on the original image;
According to two eyebrow central feature data and mouth central feature data, portrait face axis is drawn on the original image Line;
According to elliptic parameter, portrait face mask line is drawn on the original image;
According to original image, portrait eye horizontal line, portrait face central axes and portrait face mask line, finally schemed Picture.
Another technical solution of the present invention is:
A kind of portrait patterned lines generation system, including:
Image acquisition unit, for obtaining the original image of input;
Characteristic detection unit obtains characteristic for carrying out the detection of portrait feature to original image;
Data Computation Unit, for model data to be calculated according to characteristic;
Drawing unit, for drawing out patterned lines on the original image, obtaining final image according to model data.
The further improvement of system is generated as a kind of portrait patterned lines, the characteristic includes eyes spy Levy data, eyebrow characteristic, mouth feature data and portrait outer profile characteristic.
The further improvement of system is generated as a kind of portrait patterned lines, the Data Computation Unit specifically wraps It includes:
Canthus feature calculation unit, for canthus characteristic to be calculated according to eye feature data;
Place between the eyebrows feature calculation unit, for two eyebrow central feature data of portrait to be calculated according to eyebrow characteristic;
Mouth center calculation unit, for the mouth central feature data of portrait to be calculated according to mouth feature data;
Profile calculation unit, for calculating outer profile ellipse framework, obtaining oval ginseng according to portrait outer profile characteristic Number.
The further improvement of system is generated as a kind of portrait patterned lines, the patterned lines include portrait eye water Horizontal line, portrait face central axes and portrait face mask line;
The drawing unit specifically includes:
Eye horizontal line drawing unit, for it is horizontal to draw portrait eye on the original image according to canthus characteristic Line;
Face's central axes drawing unit is used for according to two eyebrow central feature data and mouth central feature data, original Portrait face central axes are drawn on image;
Contour line drawing unit, for drawing portrait face mask line on the original image according to elliptic parameter;
Final image unit, for according to original image, portrait eye horizontal line, portrait face central axes and portrait face Contour line obtains final image.
Another technical solution of the present invention is:
A kind of portrait patterned lines generating means, including:
Memory, for storing program;
Processor, for executing described program, it is raw that described program makes the processor execute the portrait patterned lines At method.
The beneficial effects of the invention are as follows:
A kind of portrait patterned lines generation method of the present invention, system and device according to the characteristic of various portraits by calculating Model data out can effectively help cameraman to complete to meet input to realize the generation to different portrait image composition lines The portrait image of image portrait composition aesthetic feeling is shot, and greatly improves the applicability to portrait image.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of portrait patterned lines generation method of the present invention;
Fig. 2 is the block diagram that a kind of portrait patterned lines of the present invention generate system.
Specific embodiment
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing:
With reference to Fig. 1, a kind of portrait patterned lines generation method includes the following steps:
Obtain the original image of input;
The detection of portrait feature is carried out to original image, obtains characteristic;
According to characteristic, model data is calculated;
According to model data, patterned lines are drawn out on the original image, obtain final image.
In the embodiment of the present invention, the portrait feature detection obtains determining for human face five-sense-organ using ERT algorithm using main Position is to obtain characteristic.
Be further used as preferred embodiment, the characteristic include eye feature data, eyebrow characteristic, Mouth feature data and portrait outer profile characteristic.
It is further used as preferred embodiment, it is described that model data is calculated according to characteristic, the step for It specifically includes:
According to eye feature data, canthus characteristic is calculated;
According to eyebrow characteristic, two eyebrow central feature data of portrait are calculated;
According to mouth feature data, the mouth central feature data of portrait are calculated;
According to portrait outer profile characteristic, outer profile ellipse framework is calculated, elliptic parameter is obtained.
It is further used as preferred embodiment, the patterned lines include portrait eye horizontal line, portrait face central axes With portrait face mask line.
It is further used as preferred embodiment, it is described that patterned lines are drawn out according to model data on the original image, Obtain final image, the step for specifically include:
According to canthus characteristic, portrait eye horizontal line is drawn on the original image;
According to two eyebrow central feature data and mouth central feature data, portrait face axis is drawn on the original image Line;
According to elliptic parameter, portrait face mask line is drawn on the original image;
According to original image, portrait eye horizontal line, portrait face central axes and portrait face mask line, finally schemed Picture.
With reference to Fig. 2, a kind of portrait patterned lines of the present invention generate system, including:
Image acquisition unit, for obtaining the original image of input;
Characteristic detection unit obtains characteristic for carrying out the detection of portrait feature to original image;
Data Computation Unit, for model data to be calculated according to characteristic;
Drawing unit, for drawing out patterned lines on the original image, obtaining final image according to model data.
Be further used as preferred embodiment, the characteristic include eye feature data, eyebrow characteristic, Mouth feature data and portrait outer profile characteristic.
It is further used as preferred embodiment, the Data Computation Unit specifically includes:
Canthus feature calculation unit, for canthus characteristic to be calculated according to eye feature data;
Place between the eyebrows feature calculation unit, for two eyebrow central feature data of portrait to be calculated according to eyebrow characteristic;
Mouth center calculation unit, for the mouth central feature data of portrait to be calculated according to mouth feature data;
Profile calculation unit, for calculating outer profile ellipse framework, obtaining oval ginseng according to portrait outer profile characteristic Number.
It is further used as preferred embodiment, the patterned lines include portrait eye horizontal line, portrait face central axes With portrait face mask line;
The drawing unit specifically includes:
Eye horizontal line drawing unit, for it is horizontal to draw portrait eye on the original image according to canthus characteristic Line;
Face's central axes drawing unit is used for according to two eyebrow central feature data and mouth central feature data, original Portrait face central axes are drawn on image;
Contour line drawing unit, for drawing portrait face mask line on the original image according to elliptic parameter;
Final image unit, for according to original image, portrait eye horizontal line, portrait face central axes and portrait face Contour line obtains final image.
A kind of portrait patterned lines generating means of the present invention, including:
Memory, for storing program;
Processor, for executing described program, it is raw that described program makes the processor execute the portrait patterned lines At method.
From the foregoing it can be that the present invention passes through according to the characteristic for calculating various portraits, to realize to difference The generation of portrait image patterned lines can effectively help cameraman to complete the portrait image for meeting input picture portrait composition aesthetic feeling Shooting, greatly improves the applicability to portrait image.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.

Claims (10)

1. a kind of portrait patterned lines generation method, which is characterized in that include the following steps:
Obtain the original image of input;
The detection of portrait feature is carried out to original image, obtains characteristic;
According to characteristic, model data is calculated;
According to model data, patterned lines are drawn out on the original image, obtain final image.
2. a kind of portrait patterned lines generation method according to claim 1, it is characterised in that:The characteristic includes Eye feature data, eyebrow characteristic, mouth feature data and portrait outer profile characteristic.
3. a kind of portrait patterned lines generation method according to claim 2, it is characterised in that:It is described according to characteristic According to, be calculated model data, the step for specifically include:
According to eye feature data, canthus characteristic is calculated;
According to eyebrow characteristic, two eyebrow central feature data of portrait are calculated;
According to mouth feature data, the mouth central feature data of portrait are calculated;
According to portrait outer profile characteristic, outer profile ellipse framework is calculated, elliptic parameter is obtained.
4. a kind of portrait patterned lines generation method according to claim 2 or 3, it is characterised in that:The patterned lines include Portrait eye horizontal line, portrait face central axes and portrait face mask line.
5. a kind of portrait patterned lines generation method according to claim 4, it is characterised in that:It is described according to pattern number According to, draw out patterned lines on the original image, obtain final image, the step for specifically include:According to canthus characteristic, Portrait eye horizontal line is drawn on original image;
According to two eyebrow central feature data and mouth central feature data, portrait face central axes are drawn on the original image;
According to elliptic parameter, portrait face mask line is drawn on the original image;
According to original image, portrait eye horizontal line, portrait face central axes and portrait face mask line, final image is obtained.
6. a kind of portrait patterned lines generate system, which is characterized in that including:
Image acquisition unit, for obtaining the original image of input;
Characteristic detection unit obtains characteristic for carrying out the detection of portrait feature to original image;
Data Computation Unit, for model data to be calculated according to characteristic;
Drawing unit, for drawing out patterned lines on the original image, obtaining final image according to model data.
7. a kind of portrait patterned lines according to claim 6 generate system, it is characterised in that:The characteristic includes Eye feature data, eyebrow characteristic, mouth feature data and portrait outer profile characteristic.
8. a kind of portrait patterned lines according to claim 7 generate system, it is characterised in that:The Data Computation Unit tool Body includes:
Canthus feature calculation unit, for canthus characteristic to be calculated according to eye feature data;
Place between the eyebrows feature calculation unit, for two eyebrow central feature data of portrait to be calculated according to eyebrow characteristic;
Mouth center calculation unit, for the mouth central feature data of portrait to be calculated according to mouth feature data;
Profile calculation unit, for calculating outer profile ellipse framework, obtaining elliptic parameter according to portrait outer profile characteristic.
9. a kind of portrait patterned lines according to claim 7 or 8 generate system, it is characterised in that:The patterned lines include Portrait eye horizontal line, portrait face central axes and portrait face mask line;
The drawing unit specifically includes:
Eye horizontal line drawing unit, for drawing portrait eye horizontal line on the original image according to canthus characteristic;
Face's central axes drawing unit is used for according to two eyebrow central feature data and mouth central feature data, in original image Upper drafting portrait face central axes;
Contour line drawing unit, for drawing portrait face mask line on the original image according to elliptic parameter;Final image list Member, for finally being schemed according to original image, portrait eye horizontal line, portrait face central axes and portrait face mask line Picture.
10. a kind of portrait patterned lines generating means, which is characterized in that including:
Memory, for storing program;
Processor, for executing described program, described program executes the processor such as any one of Claims 1 to 5 institute The portrait patterned lines generation method stated.
CN201810503753.2A 2018-05-23 2018-05-23 A kind of portrait patterned lines generation method, system and device Pending CN108833771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810503753.2A CN108833771A (en) 2018-05-23 2018-05-23 A kind of portrait patterned lines generation method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810503753.2A CN108833771A (en) 2018-05-23 2018-05-23 A kind of portrait patterned lines generation method, system and device

Publications (1)

Publication Number Publication Date
CN108833771A true CN108833771A (en) 2018-11-16

Family

ID=64148537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810503753.2A Pending CN108833771A (en) 2018-05-23 2018-05-23 A kind of portrait patterned lines generation method, system and device

Country Status (1)

Country Link
CN (1) CN108833771A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110436281A (en) * 2019-07-29 2019-11-12 恒大智慧科技有限公司 A kind of method, system and computer storage medium that more elevators call

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068408A1 (en) * 2003-01-31 2004-08-12 Sony Corporation Image processing device and image processing method, and imaging device
CN101188677A (en) * 2006-11-21 2008-05-28 索尼株式会社 Imaging apparatus, image processing apparatus, image processing method and computer program for execute the method
CN101339606A (en) * 2008-08-14 2009-01-07 北京中星微电子有限公司 Human face critical organ contour characteristic points positioning and tracking method and device
CN101847268A (en) * 2010-04-29 2010-09-29 北京中星微电子有限公司 Cartoon human face image generation method and device based on human face images
CN101902577A (en) * 2008-11-28 2010-12-01 卡西欧计算机株式会社 Image processing apparatus and image processing method for correcting face image
CN105046246A (en) * 2015-08-31 2015-11-11 广州市幸福网络技术有限公司 Identification photo camera capable of performing human image posture photography prompting and human image posture detection method
CN105447823A (en) * 2014-08-07 2016-03-30 联想(北京)有限公司 Image processing method and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068408A1 (en) * 2003-01-31 2004-08-12 Sony Corporation Image processing device and image processing method, and imaging device
CN101188677A (en) * 2006-11-21 2008-05-28 索尼株式会社 Imaging apparatus, image processing apparatus, image processing method and computer program for execute the method
CN101339606A (en) * 2008-08-14 2009-01-07 北京中星微电子有限公司 Human face critical organ contour characteristic points positioning and tracking method and device
CN101902577A (en) * 2008-11-28 2010-12-01 卡西欧计算机株式会社 Image processing apparatus and image processing method for correcting face image
CN101847268A (en) * 2010-04-29 2010-09-29 北京中星微电子有限公司 Cartoon human face image generation method and device based on human face images
CN105447823A (en) * 2014-08-07 2016-03-30 联想(北京)有限公司 Image processing method and electronic device
CN105046246A (en) * 2015-08-31 2015-11-11 广州市幸福网络技术有限公司 Identification photo camera capable of performing human image posture photography prompting and human image posture detection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110436281A (en) * 2019-07-29 2019-11-12 恒大智慧科技有限公司 A kind of method, system and computer storage medium that more elevators call

Similar Documents

Publication Publication Date Title
CN105100615B (en) A kind of method for previewing of image, device and terminal
WO2016110199A1 (en) Expression migration method, electronic device and system
JP2018023158A (en) Preview image display method and device, and terminal
JP6330036B2 (en) Image processing apparatus and image display apparatus
CN114219878B (en) Animation generation method and device for virtual character, storage medium and terminal
WO2016180126A1 (en) Image processing method and apparatus
WO2018137455A1 (en) Image interaction method and interaction apparatus
WO2024007478A1 (en) Three-dimensional human body modeling data collection and reconstruction method and system based on single mobile phone
CN108810406B (en) Portrait light effect processing method, device, terminal and computer readable storage medium
WO2022001806A1 (en) Image transformation method and apparatus
WO2016165614A1 (en) Method for expression recognition in instant video and electronic equipment
CN109376671A (en) Image processing method, electronic equipment and computer-readable medium
CN107087104B (en) The image treatment method of facial area and the electronic device for using the method
WO2022121963A1 (en) Image occlusion detection method and apparatus, photographing device and medium
TWI615808B (en) Image processing method for immediately producing panoramic images
WO2020125132A1 (en) Panoramic video anti-shake method and portable terminal
WO2018166170A1 (en) Image processing method and device, and intelligent conferencing terminal
WO2021147650A1 (en) Photographing method and apparatus, storage medium, and electronic device
WO2021136035A1 (en) Photographing method and apparatus, storage medium, and electronic device
CN108833771A (en) A kind of portrait patterned lines generation method, system and device
CN116152121B (en) Curved surface screen generating method and correcting method based on distortion parameters
WO2015198478A1 (en) Image distortion correction apparatus, information processing apparatus and image distortion correction method
JP2007102478A (en) Image processor, image processing method, and semiconductor integrated circuit
JP2014102713A (en) Face component extraction device, face component extraction method, and program
KR101012758B1 (en) Three-dimensional body measurement system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116