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, completeSite 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 hairEmbodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative effortsExample, 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 stepIt is rapid:
Step 101, when the mobile terminal is in shooting preview interface, detect and shown in the shooting preview interfaceThe 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 byBefore 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 figurePicture, facial image, then can further obtain the eyes visual angle in the facial image if it exists.Eyes visual angle can be understood as eyeThe direction of visual lines of eyeball and the vertical direction angulation of mobile terminal screen.Mobile terminal can be by obtaining in facial imageEyes 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 modesIt 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 placeIn in a certain range, and the eye gaze camera of user, rather than watch other objects attentively.Mobile terminal can be presetWhen 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 postpositionCamera.When eyes visual angle is in above-mentioned preset range, camera acquires the eyes image data in facial image, thusObtain the first image.
Specifically, camera can acquire the image in shooting preview interface, and identify the eyes image number in the imageAccording to for example, the image comprising eyes or including the image etc. around eyes and eyes.Mobile terminal can be to the figure of acquisitionAs being handled, so that eyes image data be extracted.For example, the profile of available eyes, and extract the figure of acquisitionImage as in the profile, i.e. the first image.For another example, the image in the predeterminable area including eyes is obtained, andExtract 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 userIt can continue preview or take pictures.The way of output of prompt information may include text output, voice output or otherThe 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 figureAs can be understood as preview image, camera can acquire the arbitrary frame image in previews.Second image is also possible toCamera after receiving photographing instruction, taken pictures and the image that obtains.It should be noted that the step can be in step 102It 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 actionFirst image is covered on the eyes image region in above-mentioned second image, to synthesize target image.Alternatively, it is also possible to by secondEyes image region in image extracts, the position for being then extracted the first image completion into the second image, thusSynthesize target image.
Above-mentioned second image can be the preview image during shooting preview, mobile terminal can by the first image with obtainThe 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 havingFace 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 effectPosture 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 appearanceMobile 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.CauseThis, only by the eyes image in the image can replace with the first image, to make the image obtained with facing effectShooting 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 (personalDigital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearableEquipment (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 interfaceThe 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 shootingHead acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained in shooting processSecond image of middle acquisition;By the first image and the second synthesis target image image.In this way, camera is being shotThe eyes image that the image acquired in the process obtains when facing camera with user synthesizes, and faces effect to obtain havingImage, 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 instructionThe 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 interfaceThe 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 byBefore 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 figurePicture, facial image, then can further obtain the eyes visual angle in the facial image if it exists.Eyes visual angle can be understood as eyeThe direction of visual lines of eyeball and the vertical direction angulation of mobile terminal screen.Mobile terminal can be by obtaining in facial imageEyes 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 modesIt 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 itBefore, 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 exportedBreath, to prompt user to face camera.The prompt information can be text, pictorial information or the voice prompting exported by screenInformation.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 informationHead makes camera acquisition have the image for facing effect, the collecting efficiency to the first image can be improved, and shooting effect can be improvedFruit.
The embodiment can be applied to scene when user carries out self-timer using front camera.Due to working as user's self-timerWhen, 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.ThisSample causes the eye sight line in the image obtained to deviate camera.User is replaced using the eyes image that user faces cameraThe 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 placeIn in a certain range, and the eye gaze camera of user, rather than watch other objects attentively.Mobile terminal can be presetWhen 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 postpositionCamera.When eyes visual angle is in above-mentioned preset range, camera acquires the eyes image data in facial image, thusObtain the first image.
Specifically, camera can acquire the image in shooting preview interface, and identify the eyes image number in the imageAccording to for example, the image comprising eyes or including the image etc. around eyes and eyes.Mobile terminal can be to the figure of acquisitionAs being handled, so that eyes image data be extracted.For example, the profile of available eyes, and extract the figure of acquisitionImage as in the profile, i.e. the first image.For another example, the image in the predeterminable area including eyes is obtained, andExtract 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 userIt can continue preview or take pictures.The way of output of prompt information may include text output, voice output or otherThe way of output.
Step 203 receives photographing instruction, controls the camera according to the photographing instruction and takes pictures, and obtains describedSecond image.
In this step, above-mentioned photographing instruction can be user touch mobile terminal screen on button and taking pictures for triggeringInstruction, is also possible to the photographing instruction triggered by other means.Mobile terminal is after receiving photographing instruction, to showing on screenImage 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 instituteState 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 withFirst image is covered on the eyes image region in above-mentioned second image, to synthesize target image.Alternatively, it is also possible to byEyes image region in two images extracts, the position for being then extracted the first image completion into the second image, fromAnd synthesize target image.In this way, using the first image replace the second image in eyes image, target image synthesis effect compared withIt is good.
It takes pictures since user often controls mobile terminal after adjusting posture again, in this way, the figure for acquisition of taking picturesThe overall effect of picture is that user is satisfied.Therefore, only the eyes image in the image can be replaced in the first imageEyes 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 inventionShooting 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 processThe 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 interfaceThe 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 byBefore 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 figurePicture, facial image, then can further obtain the eyes visual angle in the facial image if it exists.Eyes visual angle can be understood as eyeThe direction of visual lines of eyeball and the vertical direction angulation of mobile terminal screen.Mobile terminal can be by obtaining in facial imageEyes 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 modesIt 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 itBefore, 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 exportedBreath, to prompt user to face camera.The prompt information can be text, pictorial information or the voice prompting exported by screenInformation.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 informationHead makes camera acquisition have the image for facing effect, the collecting efficiency to the first image can be improved, and shooting effect can be improvedFruit.
The embodiment can be applied to scene when user carries out self-timer using front camera.Due to working as user's self-timerWhen, 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.ThisSample causes the eye sight line in the image obtained to deviate camera.User is replaced using the eyes image that user faces cameraThe 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 placeIn in a certain range, and the eye gaze camera of user, rather than watch other objects attentively.Mobile terminal can be presetWhen 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 postpositionCamera.When eyes visual angle is in above-mentioned preset range, camera acquires the eyes image data in facial image, thusObtain the first image.
Specifically, camera can acquire the image in shooting preview interface, and identify the eyes image number in the imageAccording to for example, the image comprising eyes or including the image etc. around eyes and eyes.Mobile terminal can be to the figure of acquisitionAs being handled, so that eyes image data be extracted.For example, the profile of available eyes, and extract the figure of acquisitionImage as in the profile, i.e. the first image.For another example, the image in the predeterminable area including eyes is obtained, andExtract 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 userIt can continue preview or take pictures.The way of output of prompt information may include text output, voice output or otherThe way of output.
Step 303, the second image for obtaining the camera acquisition, second image is in the shooting preview interfacePreview image.
In this step, the second image can be the image that mobile terminal is shown during shooting preview, and user can be withPreview image, to be adjusted to shooting posture or shooting angle etc..Above-mentioned second image can be in previewsArbitrary 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 instituteState 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 toEyes image region in second image is extracted, the portion for being then extracted the first image completion into the second imagePosition, to synthesize target image.In this way, the eyes image in the second image is replaced using the first image, target image synthesisEffect 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 moveEach 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 effectIt 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 400Including detection module 401, acquisition module 402, obtain module 403 and synthesis module 404.Wherein, detection module 401 and acquisition mouldBlock 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 interfaceThe 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, thenThe 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 402The 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 controlAs 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 movementTerminal 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 acquiresThe 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 awayExempt 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 interfaceTake 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 photographAs head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained to shootThe second image acquired in journey;By the first image and the second synthesis target image image.In this way, camera is being clappedThe eyes image that the image acquired during taking the photograph obtains when facing camera with user synthesizes, to obtain having positive visual effectThe 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 700It include: at least one processor 701, memory 702, at least one network interface 704 and user interface 703.Mobile terminal 700In various components be coupled by bus system 705.It is understood that bus system 705 is for realizing between these componentsConnection communication.Bus system 705 further includes that power bus, control bus and status signal are total in addition to including data/address busLine.But for the sake of clear explanation, various buses are all designated as bus system 705 in Fig. 7.Mobile terminal 700 further includesCamera 706, camera 706 may include front camera and rear camera, camera 706 by bus system 705 withThe 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 programmableDevice (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 outsideCache.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 RateSD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connectConnect 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 theseWith the memory of any other suitable type.
In some embodiments, memory 702 stores following element, executable modules or data structures, orTheir 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 forRealize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as mediaPlayer (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present inventionThe 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 701The photographing program of operation specifically can be the photographing program in application program 7022, and photographing program is executed by processor 701Shi Shixian following steps:
When the mobile terminal is in shooting preview interface, the facial image shown in the shooting preview interface is detectedEyes visual angle;When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and by instituteEyes image data are stated as the first image;Obtain the second image that the camera acquires in shooting process;By describedOne 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 eachStep can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processingDevice 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricityRoad (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (FieldProgrammable 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 generalProcessor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present inventionThe step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processorAnd software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-onlyIn the computer readable storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The meterCalculation 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 hardwareThe step of stating method.Specifically, photographing program is stored on the computer readable storage medium, photographing program is by processor 701It 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 itsCombination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (ApplicationSpecific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable LogicDevice, 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 hereinThe technology.Software code is storable in memory and is executed by processor.Memory can in the processor orIt 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 instituteIt 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 701It 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 imageEyes 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, hereIt 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 interfaceTake 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 photographAs head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained to shootThe second image acquired in journey;By the first image and the second synthesis target image image.In this way, camera is being clappedThe eyes image that the image acquired during taking the photograph obtains when facing camera with user synthesizes, to obtain having positive visual effectThe 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 800Including radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, display unit 840, processor850, 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 terminalThe related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which canTo 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 preparatoryThe formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controllerTwo parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signalSend 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 unit830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function keyOne 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 userThe various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hairThe 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 examinedAfter measuring touch operation on it or nearby, processor 850 is sent to determine the type of touch event, is followed by subsequent processing device850 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 areaAnd 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 aobviousShow the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be withThe interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing areaOr 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 softProperty 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 phoneVarious pieces, by running or executing the software program and/or module that are stored in first memory 821, and calling storageData in second memory 822 execute the various functions and processing data of mobile terminal 800, thus to mobile terminal 800Carry 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 detectedEyes visual angle;When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and by instituteEyes image data are stated as the first image;Obtain the second image that the camera acquires in shooting process;By describedOne 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 intoRow 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, hereIt 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 interfaceTake 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 photographAs head acquisition eyes image data, and using the eyes image data as the first image;The camera is obtained to shootThe second image acquired in journey;By the first image and the second synthesis target image image.In this way, camera is being clappedThe eyes image that the image acquired during taking the photograph obtains when facing camera with user synthesizes, to obtain having positive visual effectThe 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 toEnable), 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 detectedEyes visual angle;
When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and will be describedEyes 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 figureAfter 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 itBefore, 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 methodOr 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), movesState random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasableProgrammable 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 devicesOr any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculatesMachine 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 disclosureMember and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actuallyIt is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technicianEach specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceedThe 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 othersMode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, onlyA kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine orPerson is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutualBetween coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unitIt 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 unitThe component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multipleIn network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needsPurpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unitIt 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 productIt is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other wordsThe part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meterCalculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be aPeople'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 codeMedium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose 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 containLid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.