Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It is the flow chart of image pickup method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, including following step
It is rapid:
Step 101, when the mobile terminal is in shooting preview interface, detect and shown in the shooting preview interface
The eyes visual angle of facial image.
In this step, it after shooting preview interface can be mobile terminal starting camera function, and is clapped being not received by
Before instruction, interface that mobile terminal is shown on the screen.
Mobile terminal can detecte the image in shooting preview interface, judge in shooting preview interface with the presence or absence of face figure
Picture, facial image, then can further obtain the eyes visual angle in the facial image if it exists.Eyes visual angle can be understood as eye
The direction of visual lines of eyeball and the vertical direction angulation of mobile terminal screen.Mobile terminal can be by obtaining in facial image
Eyes center and the mode of offset of bridge of the nose line detect eyes visual angle.It is of course also possible to pass through other detection modes
It is detected.The concrete mode at detection human eye visual angle is referred to the prior art, and details are not described herein again.
Step 102, when eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data,
And using the eyes image data as the first image.
Wherein, the visual angle for facing camera can be understood as the direction of visual lines of user perpendicular to mobile terminal screen or place
In in a certain range, and the eye gaze camera of user, rather than watch other objects attentively.Mobile terminal can be preset
When eyes visual angle is in preset range, for the visual angle for facing camera.
Above-mentioned camera can be the camera installed on mobile terminal, which can be front camera or postposition
Camera.When eyes visual angle is in above-mentioned preset range, camera acquires the eyes image data in facial image, thus
Obtain the first image.
Specifically, camera can acquire the image in shooting preview interface, and identify the eyes image number in the image
According to for example, the image comprising eyes or including the image etc. around eyes and eyes.Mobile terminal can be to the figure of acquisition
As being handled, so that eyes image data be extracted.For example, the profile of available eyes, and extract the figure of acquisition
Image as in the profile, i.e. the first image.For another example, the image in the predeterminable area including eyes is obtained, and
Extract the image in the predeterminable area, i.e. the first image.
Eyes image data are being extracted, after obtaining the first image, mobile terminal can export prompt information, to prompt user
It can continue preview or take pictures.The way of output of prompt information may include text output, voice output or other
The way of output.
Step 103 obtains the second image that the camera acquires in shooting process.
In this step, the second image can be the image that mobile terminal is shown during shooting preview, i.e. the second figure
As can be understood as preview image, camera can acquire the arbitrary frame image in previews.Second image is also possible to
Camera after receiving photographing instruction, taken pictures and the image that obtains.It should be noted that the step can be in step 102
It executes later.
Step 104, by the first image and the second synthesis target image image.
In this step, the first image and the second image can be synthesized into a frame image.In the specific implementation, it can incite somebody to action
First image is covered on the eyes image region in above-mentioned second image, to synthesize target image.Alternatively, it is also possible to by second
Eyes image region in image extracts, the position for being then extracted the first image completion into the second image, thus
Synthesize target image.
Above-mentioned second image can be the preview image during shooting preview, mobile terminal can by the first image with obtain
The each frame preview image taken is synthesized, and each frame preview image of the shooting preview interface of mobile terminal is made to be shown as having
Face the target image of effect.In this way, the effect for the image that user can need to take pictures with preview, so as to according to preview effect
Posture or angle etc. are adjusted, style of shooting flexibility is preferable.
Above-mentioned second image is also possible to receive the image obtained after photographing instruction.Since user is often adjusting appearance
Mobile terminal is controlled after gesture again to take pictures, in this way, the overall effect of the image for acquisition of taking pictures is that user is satisfied.Cause
This, only by the eyes image in the image can replace with the first image, to make the image obtained with facing effect
Shooting effect can be improved in image.
In the embodiment of the present invention, above-mentioned image pickup method can be applied to mobile terminal, such as: mobile phone, tablet computer
(Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal
Digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable
Equipment (Wearable Device) etc..
The image pickup method of the embodiment of the present invention detects the shooting when the mobile terminal is in shooting preview interface
The eyes visual angle of the facial image shown in preview interface;When eyes visual angle is the visual angle for facing camera, then the camera shooting
Head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained in shooting process
Second image of middle acquisition;By the first image and the second synthesis target image image.In this way, camera is being shot
The eyes image that the image acquired in the process obtains when facing camera with user synthesizes, and faces effect to obtain having
Image, shooting effect can be improved.
Referring to fig. 2, the main distinction of the present embodiment and above-described embodiment is the second image to obtain after reception photographing instruction
The image obtained.Fig. 2 is the flow chart of image pickup method provided in an embodiment of the present invention, as shown in Figure 2, comprising the following steps:
Step 201, when the mobile terminal is in shooting preview interface, detect and shown in the shooting preview interface
The eyes visual angle of facial image.
In this step, it after shooting preview interface can be mobile terminal starting camera function, and is clapped being not received by
Before instruction, interface that mobile terminal is shown on the screen.
Mobile terminal can detecte the image in shooting preview interface, judge in shooting preview interface with the presence or absence of face figure
Picture, facial image, then can further obtain the eyes visual angle in the facial image if it exists.Eyes visual angle can be understood as eye
The direction of visual lines of eyeball and the vertical direction angulation of mobile terminal screen.Mobile terminal can be by obtaining in facial image
Eyes center and the mode of offset of bridge of the nose line detect eyes visual angle.It is of course also possible to pass through other detection modes
It is detected.The concrete mode at detection human eye visual angle is referred to the prior art, and details are not described herein again.
Optionally, the step of eyes visual angle of the facial image shown in the detection shooting preview interface it
Before, the method also includes:
Preset prompt information is exported, to prompt user to face the camera.
In this embodiment, after mobile terminal enters shooting preview interface, pre-set prompt letter can be exported
Breath, to prompt user to face camera.The prompt information can be text, pictorial information or the voice prompting exported by screen
Information.For example, exporting " camera please be look at straight three seconds " on the screen.It is imaged in this way, user can look at straight according to prompt information
Head makes camera acquisition have the image for facing effect, the collecting efficiency to the first image can be improved, and shooting effect can be improved
Fruit.
The embodiment can be applied to scene when user carries out self-timer using front camera.Due to working as user's self-timer
When, the face off screen curtain of user is close, and preview image of the eyes of user on preview screen, without looking at camera straight.This
Sample causes the eye sight line in the image obtained to deviate camera.User is replaced using the eyes image that user faces camera
The eyes image in image obtained when self-timer, can be improved shooting effect, meet the needs of user's self-timer.
Step 202, when eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data,
And using the eyes image data as the first image.
Wherein, the visual angle for facing camera can be understood as the direction of visual lines of user perpendicular to mobile terminal screen or place
In in a certain range, and the eye gaze camera of user, rather than watch other objects attentively.Mobile terminal can be preset
When eyes visual angle is in preset range, for the visual angle for facing camera.
Above-mentioned camera can be the camera installed on mobile terminal, which can be front camera or postposition
Camera.When eyes visual angle is in above-mentioned preset range, camera acquires the eyes image data in facial image, thus
Obtain the first image.
Specifically, camera can acquire the image in shooting preview interface, and identify the eyes image number in the image
According to for example, the image comprising eyes or including the image etc. around eyes and eyes.Mobile terminal can be to the figure of acquisition
As being handled, so that eyes image data be extracted.For example, the profile of available eyes, and extract the figure of acquisition
Image as in the profile, i.e. the first image.For another example, the image in the predeterminable area including eyes is obtained, and
Extract the image in the predeterminable area, i.e. the first image.
Eyes image data are being extracted, after obtaining the first image, mobile terminal can export prompt information, to prompt user
It can continue preview or take pictures.The way of output of prompt information may include text output, voice output or other
The way of output.
Step 203 receives photographing instruction, controls the camera according to the photographing instruction and takes pictures, and obtains described
Second image.
In this step, above-mentioned photographing instruction can be user touch mobile terminal screen on button and taking pictures for triggering
Instruction, is also possible to the photographing instruction triggered by other means.Mobile terminal is after receiving photographing instruction, to showing on screen
Image take pictures, obtain the second image.It should be noted that the step can execute after step 202.
Step 204, by the first image and the second synthesis target image image.
Optionally, in this step, the eyes image in second image is replaced using the first image, obtains institute
State target image.
This step can be understood as the first image and the second image synthesizing a frame image.It in the specific implementation, can be with
First image is covered on the eyes image region in above-mentioned second image, to synthesize target image.Alternatively, it is also possible to by
Eyes image region in two images extracts, the position for being then extracted the first image completion into the second image, from
And synthesize target image.In this way, using the first image replace the second image in eyes image, target image synthesis effect compared with
It is good.
It takes pictures since user often controls mobile terminal after adjusting posture again, in this way, the figure for acquisition of taking pictures
The overall effect of picture is that user is satisfied.Therefore, only the eyes image in the image can be replaced in the first image
Eyes image data, thus make obtain image with the image for facing effect, shooting effect can be improved.
Eyes image in the image for acquisition of taking pictures is replaced with user and faces camera shooting by the image pickup method of the embodiment of the present invention
Shooting effect can be improved so that obtaining has the image for facing effect in the eyes image data of head.
Referring to Fig. 3, the main distinction of the present embodiment and above-described embodiment is that the second image is that shooting preview is aobvious in the process
The preview image shown.Fig. 3 is the flow chart of image pickup method provided in an embodiment of the present invention, as shown in Figure 3, comprising the following steps:
Step 301, when the mobile terminal is in shooting preview interface, detect and shown in the shooting preview interface
The eyes visual angle of facial image.
In this step, it after shooting preview interface can be mobile terminal starting camera function, and is clapped being not received by
Before instruction, interface that mobile terminal is shown on the screen.
Mobile terminal can detecte the image in shooting preview interface, judge in shooting preview interface with the presence or absence of face figure
Picture, facial image, then can further obtain the eyes visual angle in the facial image if it exists.Eyes visual angle can be understood as eye
The direction of visual lines of eyeball and the vertical direction angulation of mobile terminal screen.Mobile terminal can be by obtaining in facial image
Eyes center and the mode of offset of bridge of the nose line detect eyes visual angle.It is of course also possible to pass through other detection modes
It is detected.The concrete mode at detection human eye visual angle is referred to the prior art, and details are not described herein again.
Optionally, the step of eyes visual angle of the facial image shown in the detection shooting preview interface it
Before, the method also includes:
Preset prompt information is exported, to prompt user to face the camera.
In this embodiment, after mobile terminal enters shooting preview interface, pre-set prompt letter can be exported
Breath, to prompt user to face camera.The prompt information can be text, pictorial information or the voice prompting exported by screen
Information.For example, exporting " camera please be look at straight three seconds " on the screen.It is imaged in this way, user can look at straight according to prompt information
Head makes camera acquisition have the image for facing effect, the collecting efficiency to the first image can be improved, and shooting effect can be improved
Fruit.
The embodiment can be applied to scene when user carries out self-timer using front camera.Due to working as user's self-timer
When, the face off screen curtain of user is close, and preview image of the eyes of user on preview screen, without looking at camera straight.This
Sample causes the eye sight line in the image obtained to deviate camera.User is replaced using the eyes image that user faces camera
The eyes image in image obtained when self-timer, can be improved shooting effect, meet the needs of user's self-timer.
Step 302, when eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data,
And using the eyes image data as the first image.
Wherein, the visual angle for facing camera can be understood as the direction of visual lines of user perpendicular to mobile terminal screen or place
In in a certain range, and the eye gaze camera of user, rather than watch other objects attentively.Mobile terminal can be preset
When eyes visual angle is in preset range, for the visual angle for facing camera.
Above-mentioned camera can be the camera installed on mobile terminal, which can be front camera or postposition
Camera.When eyes visual angle is in above-mentioned preset range, camera acquires the eyes image data in facial image, thus
Obtain the first image.
Specifically, camera can acquire the image in shooting preview interface, and identify the eyes image number in the image
According to for example, the image comprising eyes or including the image etc. around eyes and eyes.Mobile terminal can be to the figure of acquisition
As being handled, so that eyes image data be extracted.For example, the profile of available eyes, and extract the figure of acquisition
Image as in the profile, i.e. the first image.For another example, the image in the predeterminable area including eyes is obtained, and
Extract the image in the predeterminable area, i.e. the first image.
Eyes image data are being extracted, after obtaining the first image, mobile terminal can export prompt information, to prompt user
It can continue preview or take pictures.The way of output of prompt information may include text output, voice output or other
The way of output.
Step 303, the second image for obtaining the camera acquisition, second image is in the shooting preview interface
Preview image.
In this step, the second image can be the image that mobile terminal is shown during shooting preview, and user can be with
Preview image, to be adjusted to shooting posture or shooting angle etc..Above-mentioned second image can be in previews
Arbitrary frame image.It should be noted that the step can execute after step 302.
Step 304, by the first image and the second synthesis target image image.
Optionally, in this step, the eyes image in second image is replaced using the first image, obtains institute
State target image.
This step can be understood as that the first image and the second image a frame image can be synthesized.In the specific implementation,
First image can be covered on to the eyes image region in above-mentioned second image, to synthesize target image.Alternatively, it is also possible to
Eyes image region in second image is extracted, the portion for being then extracted the first image completion into the second image
Position, to synthesize target image.In this way, the eyes image in the second image is replaced using the first image, target image synthesis
Effect is preferable.
Step 305 exports the target image in the shooting preview interface.
In this step, mobile terminal can synthesize the first image and the second image of each frame of acquisition, make to move
Each frame image of the shooting preview interface of dynamic terminal is shown as with the target image for facing effect.In this way, user can be pre-
Look at the effect of image for needing to shoot, it, can also be with so as to adjust shooting posture or shooting angle etc. according to preview effect
It is taken pictures according to preview effect selection frame image therein, shooting effect can be improved.
Referring to fig. 4, Fig. 4 is the structure chart of mobile terminal provided in an embodiment of the present invention, as shown in figure 4, mobile terminal 400
Including detection module 401, acquisition module 402, obtain module 403 and synthesis module 404.Wherein, detection module 401 and acquisition mould
Block 402 connects, and acquisition module 402 and acquisition module 403 connect, and obtains module 403 and synthesis module 404 connects.
Detection module 401, for detecting the shooting preview interface when the mobile terminal is in shooting preview interface
The eyes visual angle of the facial image of middle display;
Acquisition module 402, for when the detection module 401 detection eyes visual angle be the visual angle for facing camera when, then
The camera acquires eyes image data, and using the eyes image data as the first image;
Obtain module 403, the second image acquired in shooting process for obtaining the camera;
Synthesis module 404, the first image and the acquisition module 403 for acquiring the acquisition module 402
The the second synthesis target image image obtained.
Optionally, the acquisition module 403 is specifically used for receiving photographing instruction, takes the photograph according to photographing instruction control
As head is taken pictures, second image is obtained.
Optionally, as shown in figure 5, second image is the preview image in the shooting preview interface, the movement
Terminal 400 further include:
Output module 405, for exporting the target image in the shooting preview interface.
Optionally, the synthesis module 404 is specifically used for replacing using the first image that the acquisition module 402 acquires
The eyes image in second image that the acquisition module 403 obtains is changed, the target image is obtained.
Optionally, as shown in fig. 6, the mobile terminal 400 further include:
Cue module 406, for exporting preset prompt information, to prompt user to face the camera.
Mobile terminal 400 can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 3, to keep away
Exempt to repeat, which is not described herein again.
The mobile terminal 400 of the embodiment of the present invention detects the bat when the mobile terminal is in shooting preview interface
Take the photograph the eyes visual angle of the facial image shown in preview interface;It is when eyes visual angle is the visual angle for facing camera, then described to take the photograph
As head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained to shoot
The second image acquired in journey;By the first image and the second synthesis target image image.In this way, camera is being clapped
The eyes image that the image acquired during taking the photograph obtains when facing camera with user synthesizes, to obtain having positive visual effect
The image of fruit, can be improved shooting effect.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 7, Fig. 7, as shown in fig. 7, mobile terminal 700
It include: at least one processor 701, memory 702, at least one network interface 704 and user interface 703.Mobile terminal 700
In various components be coupled by bus system 705.It is understood that bus system 705 is for realizing between these components
Connection communication.Bus system 705 further includes that power bus, control bus and status signal are total in addition to including data/address bus
Line.But for the sake of clear explanation, various buses are all designated as bus system 705 in Fig. 7.Mobile terminal 700 further includes
Camera 706, camera 706 may include front camera and rear camera, camera 706 by bus system 705 with
The various components of mobile terminal connect.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball
(track ball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable P ROM, EPROM), electrically erasable programmable read-only memory (Electrically EP ROM, EEPROM)
Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as outside
Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous D RAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connect
Connect dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus random access memory
(Direct Rambus RAM, DRRAM).The memory 702 of system and method described herein is intended to include but is not limited to these
With the memory of any other suitable type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 7022.
In embodiments of the present invention, mobile terminal 700 further include: be stored on memory 702 and can be on processor 701
The photographing program of operation specifically can be the photographing program in application program 7022, and photographing program is executed by processor 701
Shi Shixian following steps:
When the mobile terminal is in shooting preview interface, the facial image shown in the shooting preview interface is detected
Eyes visual angle;When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and by institute
Eyes image data are stated as the first image;Obtain the second image that the camera acquires in shooting process;By described
One image and the second synthesis target image image.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701.
Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing
Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the computer readable storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The meter
Calculation machine readable storage medium storing program for executing is located at memory 702, and processor 701 reads the information in memory 702, completes in conjunction with its hardware
The step of stating method.Specifically, photographing program is stored on the computer readable storage medium, photographing program is by processor 701
It realizes when execution such as the step of above-mentioned image pickup method embodiment.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, following steps be can also be achieved when photographing program is executed by processor 701: photographing instruction is received, according to institute
It states the photographing instruction control camera to take pictures, obtains second image.
Optionally, second image is the preview image in the shooting preview interface, and photographing program is by processor 701
It can also be achieved following steps when execution: exporting the target image in the shooting preview interface.
Optionally, following steps be can also be achieved when photographing program is executed by processor 701: being replaced using the first image
Eyes image in second image, obtains the target image.
Optionally, following steps be can also be achieved when photographing program is executed by processor 701: exporting preset prompt information,
To prompt user to face the camera.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 700 of the embodiment of the present invention detects the bat when the mobile terminal is in shooting preview interface
Take the photograph the eyes visual angle of the facial image shown in preview interface;It is when eyes visual angle is the visual angle for facing camera, then described to take the photograph
As head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained to shoot
The second image acquired in journey;By the first image and the second synthesis target image image.In this way, camera is being clapped
The eyes image that the image acquired during taking the photograph obtains when facing camera with user synthesizes, to obtain having positive visual effect
The image of fruit, can be improved shooting effect.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, as shown in figure 8, mobile terminal 800
Including radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, display unit 840, processor
850, voicefrequency circuit 860, communication module 870, power supply 880 and camera 890.
Wherein, input unit 830 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 831.Touch panel 831, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 831 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 850 is given again, and can be received order that processor 850 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit
830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 840 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 841.
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 850 is sent to determine the type of touch event, is followed by subsequent processing device
850 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.The touch screen of the embodiment of the present invention is soft
Property screen, organic transparent conductive film of carbon nanotube is posted in two faces of flexible screen.
Wherein processor 850 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 821, and calling storage
Data in second memory 822 execute the various functions and processing data of mobile terminal 800, thus to mobile terminal 800
Carry out integral monitoring.Optionally, processor 850 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/
Or the data in the second memory 822, processor 850 are used for:
When the mobile terminal is in shooting preview interface, the facial image shown in the shooting preview interface is detected
Eyes visual angle;When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and by institute
Eyes image data are stated as the first image;Obtain the second image that the camera acquires in shooting process;By described
One image and the second synthesis target image image.
Optionally, processor 850 is also used to: receive photographing instruction, according to the photographing instruction control the camera into
Row is taken pictures, and second image is obtained.
Optionally, second image is the preview image in the shooting preview interface, and processor 850 is also used to:
The shooting preview interface exports the target image.
Optionally, processor 850 is also used to: the eyes image in second image is replaced using the first image,
Obtain the target image.
Optionally, processor 850 is also used to: preset prompt information is exported, to prompt user to face the camera.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 800 of the embodiment of the present invention detects the bat when the mobile terminal is in shooting preview interface
Take the photograph the eyes visual angle of the facial image shown in preview interface;It is when eyes visual angle is the visual angle for facing camera, then described to take the photograph
As head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained to shoot
The second image acquired in journey;By the first image and the second synthesis target image image.In this way, camera is being clapped
The eyes image that the image acquired during taking the photograph obtains when facing camera with user synthesizes, to obtain having positive visual effect
The image of fruit, can be improved shooting effect.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program and (refer to
Enable), which performs the steps of when being executed by processor
When the mobile terminal is in shooting preview interface, the facial image shown in the shooting preview interface is detected
Eyes visual angle;
When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and will be described
Eyes image data are as the first image;
Obtain the second image that the camera acquires in shooting process;
By the first image and the second synthesis target image image.
Optionally, described the step of obtaining the second image that the camera acquires in shooting process, comprising:
Photographing instruction is received, the camera is controlled according to the photographing instruction and is taken pictures, second image is obtained.
Optionally, second image is the preview image in the shooting preview interface, described by first figure
After the step of picture and the second synthesis target image image, the method also includes:
The target image is exported in the shooting preview interface.
Optionally, it is described by the eyes image data and the second synthesis target image image the step of, comprising:
The eyes image in second image is replaced using the first image, obtains the target image.
Optionally, the step of eyes visual angle of the facial image shown in the detection shooting preview interface it
Before, the method also includes:
Preset prompt information is exported, to prompt user to face the camera.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.