CN107833178A - A kind of image processing method, device and mobile terminal - Google Patents

A kind of image processing method, device and mobile terminal Download PDF

Info

Publication number
CN107833178A
CN107833178A CN201711189114.5A CN201711189114A CN107833178A CN 107833178 A CN107833178 A CN 107833178A CN 201711189114 A CN201711189114 A CN 201711189114A CN 107833178 A CN107833178 A CN 107833178A
Authority
CN
China
Prior art keywords
image
face
adjustment template
adjustment
template
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
CN201711189114.5A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711189114.5A priority Critical patent/CN107833178A/en
Publication of CN107833178A publication Critical patent/CN107833178A/en
Pending legal-status Critical Current

Links

Classifications

    • G06T3/04
    • G06T5/73
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • 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

Abstract

The invention provides a kind of image processing method, device and mobile terminal, is related to mobile communication technology field, and methods described includes:Face-image and adjustment template set in advance are obtained, the adjustment template is the image after parameter preset adjusts;Determine on the face-image, the target area corresponding with the adjustment template;According to the adjustment template and the target area, the face-image is adjusted.The present invention according to adjustment template set in advance and and face-image on adjusting the corresponding target area of template, face-image is adjusted, the third dimension and definition of face-image can be strengthened.

Description

A kind of image processing method, device and mobile terminal
Technical field
The present embodiments relate to mobile communication technology field, more particularly to a kind of image processing method, device and movement Terminal.
Background technology
With the lifting of the resolution ratio and quality of taking pictures of the camera of mobile terminal, the photograph that user is shot by mobile terminal Explosive increase is presented in the quantity of piece, the also more and more higher of the requirement to U.S. face.And the relief adjustment of face, U.S. face effect is risen Vital effect.
In the prior art, during U.S. face, in order to attractive in appearance, the mill of the big intensity of large area is generally carried out to facial picture Skin or face homogenization practice, however, such a method of adjustment so that face third dimension incurs loss, and image is thickened, Definition reduces.
The content of the invention
The invention provides a kind of image processing method, device and mobile terminal, and its purpose is to solve existing face Portion's image processing method, make face third dimension incur loss and image definition reduce the problem of.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of image processing method, methods described bag Include:
Face-image and adjustment template set in advance are obtained, the adjustment template is after parameter preset adjusts Image;
Determine on the face-image, the target area corresponding with the adjustment template;
According to the adjustment template and the target area, the face-image is adjusted.
In a first aspect, embodiments of the invention additionally provide a kind of image processing apparatus, including:
Acquisition module, for obtaining face-image and adjustment template set in advance, the adjustment template is by pre- Image after setting parameter adjustment;
Determining module, for determining the face-image, the target area corresponding with the adjustment template;
Adjusting module, for according to the adjustment template and the target area, adjusting the face-image.
Second aspect, embodiments of the invention additionally provide a kind of mobile terminal, including:Above-mentioned image processing apparatus.
The third aspect, embodiments of the invention additionally provide a kind of mobile terminal, including:Memory, processor and storage On a memory and the computer program that can run on a processor, realized during computing device computer program at above-mentioned image Step in reason method.
Fourth aspect, embodiments of the invention additionally provide a kind of computer-readable recording medium, computer-readable storage Computer program is stored with medium, the step in above-mentioned image processing method is realized when computer program is executed by processor.
In an embodiment of the present invention, according to it is set in advance adjustment template and and face-image on adjustment template pair The target area answered, is adjusted to face-image, can strengthen the third dimension and definition of face-image.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 represents one of flow chart of image processing method provided in an embodiment of the present invention;
Fig. 2 represents the two of the flow chart of image processing method provided in an embodiment of the present invention;
Fig. 3 represents one of block diagram of image processing apparatus that embodiments of the invention provide;
Fig. 4 represents the two of the block diagram for the image processing apparatus that embodiments of the invention provide;
Fig. 5 represents the block diagram for the mobile terminal that embodiments of the invention provide.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is relevant with embodiment During special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure " in one embodiment " or " in one embodiment " identical embodiment is not necessarily referred to.In addition, these specific feature, knots Structure or characteristic can combine in one or more embodiments in any suitable manner.
In various embodiments of the present invention, it should be appreciated that the size of the sequence number of following each processes is not meant to perform suitable The priority of sequence, the execution sequence of each process should be determined with its function and internal logic, without the implementation of the reply embodiment of the present invention Process forms any restriction.
Referring to Fig. 1, the embodiments of the invention provide a kind of image processing method, including:
Step 101, face-image and adjustment template set in advance are obtained, the adjustment template is by parameter preset Image after adjustment.
Wherein, it is a pre-set image after parameter preset adjusts to adjust template, so that parameter preset is transparency as an example, It is a transparent image with default transparency to adjust template, and the transparency of different elementary areas is identical or different thereon.
Step 102, determine on the face-image, the target area corresponding with the adjustment template;
Wherein, the predeterminable area that template corresponds to face-image, such as the position such as face, cheek are adjusted.It is determined that face figure As upper, the target area corresponding with adjustment template, adjustment template is merged with target area.
Step 103, according to the adjustment template and the target area, the face-image is adjusted.
Wherein, will adjustment template after deformation, be allowed to identical with the shape of target area, then by the tune after deformation Mould preparation plate is covered on target area, target area is individually adjusted, without handling whole face-image.
Specifically, the adjustment template of " adding shade ", or the adjustment template of " highlighting " can be set, and correspond to each face respectively And cheek region, when adjustment template is covered in into corresponding region, the third dimension of face can be improved.
In embodiments of the invention, according to it is set in advance adjustment template and and face-image on adjust template it is corresponding Target area, face-image is adjusted, the third dimension and definition of face-image can be strengthened.
Referring to Fig. 2, the embodiments of the invention provide a kind of image processing method, including:
Step 201, according to the default value of the parameter preset of each elementary area in adjustment template, described image is adjusted The parameter preset of unit;Described image unit is original triangle, and the original triangle is by the original in the adjustment template Beginning characteristic point carries out what triangulation obtained as vertex of a triangle to the adjustment template.
Wherein, parameter preset adjustment can be that transparency or other specification are adjusted.Adjustment template corresponds to each five Official, multiple adjustment templates can be preset and carry out parameter preset adjustment.
The default value of parameter preset is the preferred value determined by actual adjustment operation, determines an adjustment template Afterwards, exchange mould preparation plate and carry out feature point extraction, obtain multiple primitive character points;Mould preparation plate is exchanged again with primitive character point to carry out Triangulation, multiple original triangles using primitive character point as summit are obtained, the original triangle is elementary area.
It is determined that each elementary area default value when, can be determined by multiple practical operation, to improve adjustment template Adjustment effect.So, adjustment template is applicable to face-image, and user is when adjusting face-image, if clicking on and adjustment mould The related instruction of plate, then adjustment template is covered in the correspondence position of face-image.
Preferably, the parameter preset is transparency, and transparency is easy to the brightness to face-image to be adjusted, to highlight The third dimension of face.
Step 202, face-image and adjustment template set in advance are obtained, the adjustment template is by parameter preset Image after adjustment.
Wherein, the predeterminable area that template corresponds to face-image, such as the position such as face, cheek are adjusted.It is determined that face figure As upper, the target area corresponding with adjustment template, adjustment template is merged with target area.
Step 203, determine on the face-image, the target area corresponding with the adjustment template.
Specifically, step 203 includes:
Obtain the primitive character point that the adjustment template includes;
Extraction and the primitive character point position identical target signature point from the face-image;
According to the target signature point, it is determined that the target area corresponding with the adjustment template.
Wherein, because adjustment template carried out feature point extraction and triangulation in advance, target area to be adjusted is determined After adjustment template corresponding to domain, the primitive character point of the adjustment template is extracted, and feature point extraction is carried out to face-image, point The target signature point corresponding with the primitive character point is indescribably taken, target signature point area defined is target area.
Further, it is described according to the target signature point, it is determined that the target area corresponding with the adjustment template Step, including:
Using the target signature point as vertex of a triangle, triangulation is carried out to the face-image, obtained described Target triangle where target signature point, the region where the target triangle are the mesh corresponding with the adjustment template Mark region.
Wherein it is determined that after target signature point, equally face-image (mainly target signature point region) is carried out Triangulation, the process of triangulation form target triangle, all targets three using target signature point as vertex of a triangle Angular area defined is target area.
Step 204, according to the adjustment template and the target area, the face-image is adjusted.
Specifically, step 204 includes:
It is determined that the target triangle corresponding with the original triangle;
According to the target triangle, triangular deformation, the original triangle after being deformed are carried out to the original triangle Shape;
According to the original triangle after each deformation, the adjustment template after being deformed;
According to the adjustment template after the deformation and the target area, the image after the face-image adjustment is obtained.
Wherein, because primitive character point is suitable with target signature point quantity, and template is adjusted with face-image by identical The quantity of triangulation, original triangle and target triangle should be consistent.According between primitive character point and target signature point Corresponding relation, it is determined that target triangle corresponding with original triangle;
Triangular deformation is carried out according to target triangle pair original triangle so that original triangle and target after deformation again Equivalent of triangle;After above-mentioned deformation being carried out to each original triangle, adjustment template and target area after being deformed Shape is identical.
Adjustment template after most deforming at last is covered on target area, equivalent to each target triangle to target area The parameter preset of shape is adjusted, and the position beyond target area on face-image is not adjusted, and enhances target The third dimension in region.Wherein, adjust the parameter preset of multiple original triangles in template default value can it is identical not yet Together.
Preferably, the adjustment template according to after the deformation and the target area, obtain the face-image and adjust The step of image after whole, including:
Adjustment template after deformation is covered on the target area, and carries out sheen processing, obtains the face figure As the image after adjustment.
Wherein, after the adjustment template after deformation is covered on the target area, sheen processing need to be carried out, so as to adjust Image after whole produce lines are smoother, light than milder effect, target area is combined together with other regions, and Target area will not be highlighted.
Preferably, the adjustment template by after deformation is covered in the step on the target area, including:
To be more according to the priority of the default adjustment template when the adjustment template after multiple deformations being present Adjustment template after the individual deformation is sequentially coated on the target area.
Wherein, each adjustment template adjusts different parameter preset, when for a target area, multiple adjustment being present During template, adjustment template after deformation need to be sequentially coated on face-image, avoided unordered according to priority set in advance Covering influences the effect finally merged.
In embodiments of the invention, parameter preset adjustment is carried out by exchanging mould preparation plate in advance, is obtained and adjustment template pair The target area answered, exchange mould preparation plate according to target area and carry out triangular deformation, make adjustment template consistent with target area shape, Most adjustment template is merged with target area at last, and target area is adjusted, and is realized individually on adjustment face-image Target area transparency or other specification, strengthen the relief effect of face, avoid entering to face-image for large area Row mill skin or other operations, solve existing facial image processing method, make that face third dimension incurs loss and image is clear The problem of clear degree reduces.
Referring to Fig. 3, the embodiment provides a kind of image processing apparatus 300, including:
Acquisition module 301, for obtaining face-image and adjustment template set in advance, the adjustment template is process Image after parameter preset adjustment.
Wherein, it is a pre-set image after parameter preset adjusts to adjust template, so that parameter preset is transparency as an example, It is a transparent image with default transparency to adjust template, and the transparency of different elementary areas is identical or different thereon.
Determining module 302, for determining the face-image, the target area corresponding with the adjustment template.
Wherein, the predeterminable area that template corresponds to face-image, such as the position such as face, cheek are adjusted.It is determined that face figure As upper, the target area corresponding with adjustment template, adjustment template is merged with target area.
Adjusting module 303, for according to the adjustment template and the target area, adjusting the face-image.
Wherein, will adjustment template after deformation, be allowed to identical with the shape of target area, then by the tune after deformation Mould preparation plate is covered on target area, target area is individually adjusted, without handling whole face-image.
Specifically, the adjustment template of " adding shade ", or the adjustment template of " highlighting " can be set, and correspond to each face respectively And cheek region, when adjustment template is covered in into corresponding region, the third dimension of face can be improved.
Alternatively, include referring to Fig. 4, image processing apparatus 300:
Template adjusting module 304, is used for:According to the present count of the parameter preset of each elementary area in adjustment template Value, adjust the parameter preset of described image unit;Described image unit is original triangle, and the original triangle is by described in The primitive character point in template is adjusted as vertex of a triangle, what triangulation obtained is carried out to the adjustment template.
Alternatively, include referring to Fig. 4, the determining module 302:
Acquisition submodule 3021, the primitive character point included for obtaining the adjustment template;
Extracting sub-module 3022, for the extraction from the face-image and the primitive character point position identical target Characteristic point;
Determination sub-module 3023, for according to the target signature point, it is determined that the target corresponding with the adjustment template Region.
Alternatively, the determination sub-module 3023 is used for:
Using the target signature point as vertex of a triangle, triangulation is carried out to the face-image, obtained described Target triangle where target signature point, the region where the target triangle are the mesh corresponding with the adjustment template Mark region.
Alternatively, include referring to Fig. 4, the adjusting module 303:
Submodule 3031 is adjusted, for determining the target triangle corresponding with the original triangle;
Deformation sub-module 3032, for according to the target triangle, carrying out triangular deformation to the original triangle, obtaining Original triangle after to deformation;
First processing submodule 3033, for the original triangle after each deformation of basis, the tune after being deformed Mould preparation plate;
Second processing submodule 3034, for according to the adjustment template after the deformation and the target area, obtaining institute State the image after face-image adjustment.
Alternatively, the second processing submodule 3034 is used for:
Adjustment template after deformation is covered on the target area, and carries out sheen processing, obtains the face figure As the image after adjustment.
Alternatively, the second processing submodule 3034 is used for:
To be more according to the priority of the default adjustment template when the adjustment template after multiple deformations being present Adjustment template after the individual deformation is sequentially coated on the target area.
Alternatively, the parameter preset is transparency.
Image processing apparatus 300 provided in an embodiment of the present invention can be realized each in Fig. 1 to Fig. 2 embodiment of the method Process, to avoid repeating, repeat no more here.
In embodiments of the invention, by determining target area corresponding with adjustment template set in advance, mould will be adjusted Plate is merged with target area, target area is adjusted, and realizes the target area individually on adjustment face-image Transparency or other specification, strengthen the relief effect of face, avoid large area to face-image carry out grind skin or other Operation, solve existing facial image processing method, make face third dimension incur loss and image definition reduce ask Topic.
Embodiments of the invention additionally provide a kind of mobile terminal, including above-mentioned image processing apparatus 300.
Fig. 5 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 500 includes but is not limited to:It is radio frequency unit 501, mixed-media network modules mixed-media 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The part such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or less parts, either combine some parts or Different part arrangements.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet personal computer, notebook computer, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, radio frequency unit 501, for obtaining face-image and adjustment template set in advance, the adjustment template For the image after parameter preset adjusts;
Processor 510, for determining the face-image, the target area corresponding with the adjustment template;
According to the adjustment template and the target area, the face-image is adjusted.
In embodiments of the invention, by determining target area corresponding with adjustment template set in advance, mould will be adjusted Plate is merged with target area, target area is adjusted, and realizes the target area individually on adjustment face-image Transparency or other specification, strengthen the relief effect of face, avoid large area to face-image carry out grind skin or other Operation, solve existing facial image processing method, make face third dimension incur loss and image definition reduce ask Topic.
It should be understood that in the embodiment of the present invention, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 510;In addition, will be up Data are sent to base station.Generally, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 502 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be receiving by radio frequency unit 501 or mixed-media network modules mixed-media 502 or in memory 509 It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 503 can also be provided and moved The audio output for the specific function correlation that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input block 504 is used to receive audio or video signal.Input block 504 can include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 506.Picture frame after the processing of graphics processor 5041 can be deposited Storage is transmitted in memory 509 (or other storage mediums) or via radio frequency unit 501 or mixed-media network modules mixed-media 502.Mike Wind 5042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 also includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity transducer can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 506 is used for the information for showing the information inputted by user or being supplied to user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 5061.
User input unit 507 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 507 include contact panel 5071 and Other input equipments 5072.Contact panel 5071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 5071 or in contact panel 5071 Neighbouring operation).Contact panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area Manage the order that device 510 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 5071.Except contact panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 5071 can be covered on display panel 5061, when contact panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, contact panel 5071 and display Panel 5061 is the part independent as two to realize the input of mobile terminal and output function, but in some embodiments In, can be integrated by contact panel 5071 and display panel 5061 and realize input and the output function of mobile terminal, it is specific this Place does not limit.
Interface unit 508 is the interface that external device (ED) is connected with mobile terminal 500.For example, external device (ED) can include Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 500 can be used in the He of mobile terminal 500 Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 509 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 509, and call and be stored in storage Data in device 509, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) to all parts power supply, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, memory 509, is stored in On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510 Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor Reach identical technique effect, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (11)

  1. A kind of 1. image processing method, it is characterised in that including:
    Face-image and adjustment template set in advance are obtained, the adjustment template is the figure after parameter preset adjusts Picture;
    Determine on the face-image, the target area corresponding with the adjustment template;
    According to the adjustment template and the target area, the face-image is adjusted.
  2. 2. according to the method described in the claim 1, it is characterised in that the acquisition face-image and tune set in advance Before whole template step, including:
    According to the default value of the parameter preset of each elementary area in adjustment template, the default ginseng of adjustment described image unit Number;Described image unit is original triangle, the original triangle be using the primitive character point in the adjustment template as Vertex of a triangle, what triangulation obtained is carried out to the adjustment template.
  3. 3. according to the method described in the claim 2, it is characterised in that it is described to determine on the face-image, with the tune The step of mould preparation plate corresponding target area, including:
    Obtain the primitive character point that the adjustment template includes;
    Extraction and the primitive character point position identical target signature point from the face-image;
    According to the target signature point, it is determined that the target area corresponding with the adjustment template.
  4. 4. according to the method described in the claim 3, it is characterised in that it is described according to the target signature point, it is determined that and institute The step of stating adjustment template corresponding target area, including:
    Using the target signature point as vertex of a triangle, triangulation is carried out to the face-image, obtains the target Target triangle where characteristic point, the region where the target triangle are the target area corresponding with the adjustment template Domain.
  5. A kind of 5. image processing apparatus, it is characterised in that including:
    Acquisition module, for obtaining face-image and adjustment template set in advance, the adjustment template is by default ginseng Image after number adjustment;
    Determining module, for determining the face-image, the target area corresponding with the adjustment template;
    Adjusting module, for according to the adjustment template and the target area, adjusting the face-image.
  6. 6. according to the device described in the claim 5, it is characterised in that including:
    Template adjusting module, for the default value of the parameter preset according to each elementary area in adjustment template, adjust institute State the parameter preset of elementary area;Described image unit is original triangle, and the original triangle is by the adjustment template On primitive character point as vertex of a triangle, what triangulation obtained is carried out to the adjustment template.
  7. 7. according to the device described in the claim 6, it is characterised in that the determining module includes:
    Acquisition submodule, the primitive character point included for obtaining the adjustment template;
    Extracting sub-module, for the extraction from the face-image and the primitive character point position identical target signature point;
    Determination sub-module, for according to the target signature point, it is determined that the target area corresponding with the adjustment template.
  8. 8. according to the device described in the claim 7, it is characterised in that the determination sub-module is used for:
    Using the target signature point as vertex of a triangle, triangulation is carried out to the face-image, obtains the target Target triangle where characteristic point, the region where the target triangle are the target area corresponding with the adjustment template Domain.
  9. A kind of 9. mobile terminal, it is characterised in that including:Image processing apparatus as any one of claim 5 to 8.
  10. A kind of 10. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as Claims 1-4 during the computing device Any one of image processing method in step.
  11. 11. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the image processing method as any one of Claims 1-4 is realized when the computer program is executed by processor In step.
CN201711189114.5A 2017-11-24 2017-11-24 A kind of image processing method, device and mobile terminal Pending CN107833178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711189114.5A CN107833178A (en) 2017-11-24 2017-11-24 A kind of image processing method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711189114.5A CN107833178A (en) 2017-11-24 2017-11-24 A kind of image processing method, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN107833178A true CN107833178A (en) 2018-03-23

Family

ID=61652459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711189114.5A Pending CN107833178A (en) 2017-11-24 2017-11-24 A kind of image processing method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107833178A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536371A (en) * 2018-03-30 2018-09-14 维沃移动通信有限公司 A kind of method for displaying image and terminal
CN108810502A (en) * 2018-06-04 2018-11-13 深圳汇通九州科技有限公司 A kind of projected picture correcting method, projector and computer readable storage medium
CN108833881A (en) * 2018-06-13 2018-11-16 北京微播视界科技有限公司 Construct the method and device of image depth information
CN108830200A (en) * 2018-05-31 2018-11-16 北京市商汤科技开发有限公司 A kind of image processing method, device and computer storage medium
CN108846807A (en) * 2018-05-23 2018-11-20 Oppo广东移动通信有限公司 Light efficiency processing method, device, terminal and computer readable storage medium
CN109064388A (en) * 2018-07-27 2018-12-21 北京微播视界科技有限公司 Facial image effect generation method, device and electronic equipment
CN109618097A (en) * 2018-12-29 2019-04-12 维沃移动通信有限公司 Auxiliary photo-taking method and terminal device
CN109858364A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 A kind of processing method and mobile terminal of facial image
CN109859115A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN111031234A (en) * 2019-11-20 2020-04-17 维沃移动通信有限公司 Image processing method and electronic equipment
CN111784568A (en) * 2020-07-06 2020-10-16 北京字节跳动网络技术有限公司 Face image processing method and device, electronic equipment and computer readable medium
CN112150387A (en) * 2020-09-30 2020-12-29 广州光锥元信息科技有限公司 Method and device for enhancing stereoscopic impression of five sense organs for portrait in photo
CN114095656A (en) * 2021-11-17 2022-02-25 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN112150387B (en) * 2020-09-30 2024-04-26 广州光锥元信息科技有限公司 Method and device for enhancing stereoscopic impression of five sense organs on human images in photo

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436668A (en) * 2011-09-05 2012-05-02 上海大学 Automatic Beijing Opera facial mask making-up method
CN103632165A (en) * 2013-11-28 2014-03-12 小米科技有限责任公司 Picture processing method, device and terminal equipment
US20140369554A1 (en) * 2013-06-18 2014-12-18 Nvidia Corporation Face beautification system and method of use thereof
CN104637078A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436668A (en) * 2011-09-05 2012-05-02 上海大学 Automatic Beijing Opera facial mask making-up method
US20140369554A1 (en) * 2013-06-18 2014-12-18 Nvidia Corporation Face beautification system and method of use thereof
CN104637078A (en) * 2013-11-14 2015-05-20 腾讯科技(深圳)有限公司 Image processing method and device
CN103632165A (en) * 2013-11-28 2014-03-12 小米科技有限责任公司 Picture processing method, device and terminal equipment

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536371A (en) * 2018-03-30 2018-09-14 维沃移动通信有限公司 A kind of method for displaying image and terminal
CN108846807A (en) * 2018-05-23 2018-11-20 Oppo广东移动通信有限公司 Light efficiency processing method, device, terminal and computer readable storage medium
CN108830200A (en) * 2018-05-31 2018-11-16 北京市商汤科技开发有限公司 A kind of image processing method, device and computer storage medium
CN108810502A (en) * 2018-06-04 2018-11-13 深圳汇通九州科技有限公司 A kind of projected picture correcting method, projector and computer readable storage medium
CN108833881A (en) * 2018-06-13 2018-11-16 北京微播视界科技有限公司 Construct the method and device of image depth information
WO2019237744A1 (en) * 2018-06-13 2019-12-19 北京微播视界科技有限公司 Method and apparatus for constructing image depth information
CN109064388A (en) * 2018-07-27 2018-12-21 北京微播视界科技有限公司 Facial image effect generation method, device and electronic equipment
CN109859115A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN109858364A (en) * 2018-12-28 2019-06-07 维沃移动通信有限公司 A kind of processing method and mobile terminal of facial image
CN109618097A (en) * 2018-12-29 2019-04-12 维沃移动通信有限公司 Auxiliary photo-taking method and terminal device
CN111031234A (en) * 2019-11-20 2020-04-17 维沃移动通信有限公司 Image processing method and electronic equipment
CN111031234B (en) * 2019-11-20 2021-09-03 维沃移动通信有限公司 Image processing method and electronic equipment
CN111784568A (en) * 2020-07-06 2020-10-16 北京字节跳动网络技术有限公司 Face image processing method and device, electronic equipment and computer readable medium
CN112150387A (en) * 2020-09-30 2020-12-29 广州光锥元信息科技有限公司 Method and device for enhancing stereoscopic impression of five sense organs for portrait in photo
CN112150387B (en) * 2020-09-30 2024-04-26 广州光锥元信息科技有限公司 Method and device for enhancing stereoscopic impression of five sense organs on human images in photo
CN114095656A (en) * 2021-11-17 2022-02-25 维沃移动通信有限公司 Image processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107833178A (en) A kind of image processing method, device and mobile terminal
CN107835367A (en) A kind of image processing method, device and mobile terminal
CN107833177A (en) A kind of image processing method and mobile terminal
CN107872639A (en) Transmission method, device and the mobile terminal of communication video
CN107817939A (en) A kind of image processing method and mobile terminal
CN107948499A (en) A kind of image capturing method and mobile terminal
CN107592466A (en) A kind of photographic method and mobile terminal
CN107734260A (en) A kind of image processing method and mobile terminal
CN107845057A (en) One kind is taken pictures method for previewing and mobile terminal
CN107895352A (en) A kind of image processing method and mobile terminal
CN108989678A (en) A kind of image processing method, mobile terminal
CN107742072A (en) Face identification method and mobile terminal
CN107808084A (en) A kind of touch operation method and mobile terminal
CN107608606A (en) A kind of image display method, mobile terminal and computer-readable recording medium
US20230014409A1 (en) Detection result output method, electronic device and medium
CN108038825A (en) A kind of image processing method and mobile terminal
CN109685915A (en) A kind of image processing method, device and mobile terminal
CN107958161A (en) A kind of multitask display methods and mobile terminal
CN107749046A (en) A kind of image processing method and mobile terminal
CN107864336A (en) A kind of image processing method, mobile terminal
CN107679514A (en) A kind of face identification method and electronic equipment
CN108093306A (en) A kind of barrage display methods and mobile terminal
CN107682637A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107786811A (en) A kind of photographic method and mobile terminal
CN107734172A (en) A kind of method for information display and mobile terminal

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: 20180323