CN106973237B - A kind of image pickup method and mobile terminal - Google Patents

A kind of image pickup method and mobile terminal Download PDF

Info

Publication number
CN106973237B
CN106973237B CN201710377718.6A CN201710377718A CN106973237B CN 106973237 B CN106973237 B CN 106973237B CN 201710377718 A CN201710377718 A CN 201710377718A CN 106973237 B CN106973237 B CN 106973237B
Authority
CN
China
Prior art keywords
image
eyes
mobile terminal
camera
visual angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710377718.6A
Other languages
Chinese (zh)
Other versions
CN106973237A (en
Inventor
王东生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Vivo Mobile Communication Co Ltd Beijing Branch
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, Vivo Mobile Communication Co Ltd Beijing Branch filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710377718.6A priority Critical patent/CN106973237B/en
Publication of CN106973237A publication Critical patent/CN106973237A/en
Application granted granted Critical
Publication of CN106973237B publication Critical patent/CN106973237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/684Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
    • H04N23/6845Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time by combination of a plurality of images sequentially taken

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of image pickup method and mobile terminal, this method comprises: detecting the eyes visual angle of the facial image shown in the shooting preview interface when the mobile terminal is in shooting preview interface;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;Obtain the second image that the camera acquires in shooting process;By the first image and the second synthesis target image image.The eyes image obtained when in this way, the image that camera acquires in shooting process being faced camera with user synthesizes, to obtain that shooting effect can be improved with the image for facing effect.

Description

A kind of image pickup method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of image pickup methods and mobile terminal.
Background technique
With the rapid development of mobile terminal, the camera function of mobile terminal is more and more perfect.Currently, mobile terminal is universal Dual camera is installed, user not only can be used mobile terminal shooting beautiful scenery, can also carry out self-timer.But in some fields Jing Zhong, the shooting effect of mobile terminal are not able to satisfy the requirement of user.For example, when user carries out self-timer using mobile terminal When, since the camera of mobile terminal is mounted in and substantially at the top of screen, what the eyes of user needed to show in preview screen Image effect causes shooting effect undesirable in this way, there are certain angles at the visual angle of the image of shooting.
As it can be seen that the shooting effect of current mobile terminal is poor.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, is asked with solving the shooting effect difference of mobile terminal Topic.
In a first aspect, the embodiment of the invention provides a kind of image pickup methods, comprising:
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.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, comprising:
Detection module, for detecting in the shooting preview interface when the mobile terminal is in shooting preview interface The eyes visual angle of the facial image of display;
Acquisition module, it is for when detection module detection 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;
Obtain module, the second image acquired in shooting process for obtaining the camera;
Described in synthesis module, the first image for acquiring the acquisition module and the acquisition module obtain Second synthesis target image image.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, memory and are stored in described On memory and the photographing program that can run on the processor, realized when the photographing program is executed by the processor The step of stating image pickup method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage Photographing program is stored on medium, the step of photographing program realizes above-mentioned image pickup method when being executed by processor.
In this way, when the mobile terminal is in shooting preview interface, detecting the shooting preview in the embodiment of the present invention The eyes visual angle of the facial image shown in interface;When eyes visual angle is the visual angle for facing camera, then the camera is adopted Collect eyes image data, and using the eyes image data as the first image;The camera is obtained to adopt in shooting process Second image of collection;By the first image and the second synthesis target image image.In this way, by camera in shooting process The eyes image that the image of middle acquisition obtains when facing camera with user synthesizes, to obtain with the figure for facing effect Shooting effect can be improved in picture.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow chart of image pickup method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another image pickup method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another image pickup method provided in an embodiment of the present invention;
Fig. 4 is the first schematic diagram of structure of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the second schematic diagram of structure of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the structure third schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the 4th schematic diagram of structure of mobile terminal provided in an embodiment of the present invention;
Fig. 8 is the 5th schematic diagram of structure of mobile terminal provided in an embodiment of the present invention.
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.

Claims (8)

1. a kind of image pickup method is applied to mobile terminal characterized by comprising
When the mobile terminal is in shooting preview interface, the eye of the facial image shown in the shooting preview interface is detected Eyeball visual angle;
When eyes visual angle is the visual angle for facing camera, then the camera acquires eyes image data, and by the eye Image data is 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;
The target image is exported in the shooting preview interface;
Wherein, second image is the camera during shooting preview, is acquired after acquiring the first image Each frame preview image, the target image are the image for synthesizing the first image with each frame preview image.
2. the method according to claim 1, wherein described synthesize the first image with second image The step of target image, comprising:
The eyes image in second image is replaced using the first image, obtains the target image.
3. according to the method described in claim 2, it is characterized in that, the people shown in the detection shooting preview interface Before the step of eyes visual angle of face image, the method also includes:
Preset prompt information is exported, to prompt user to face the camera.
4. a kind of mobile terminal characterized by comprising
Detection module, for detecting and being shown in the shooting preview interface when the mobile terminal is in shooting preview interface Facial image eyes visual angle;
Acquisition module, for when detection module detection eyes visual angle is the visual angle for facing camera, then the camera Eyes image data are acquired, and using the eyes image data as the first image;
Obtain module, the second image acquired in shooting process for obtaining the camera;
Synthesis module, the first image and described second for obtaining module and obtaining for acquiring the acquisition module Synthesis target image image;
Output module, for exporting the target image in the shooting preview interface;
Wherein, second image is the camera during shooting preview, is acquired after acquiring the first image Each frame preview image, the target image are the image for synthesizing the first image with each frame preview image.
5. mobile terminal according to claim 4, which is characterized in that the synthesis module is specifically used for using the acquisition The first image of module acquisition replaces the eyes image in second image that the acquisition module obtains, and obtains described Target image.
6. mobile terminal according to claim 5, which is characterized in that the mobile terminal further include:
Cue module, for exporting preset prompt information, to prompt user to face the camera.
7. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described The photographing program run on processor is realized when the photographing program is executed by the processor as any in claims 1 to 3 The step of image pickup method described in item.
8. a kind of computer readable storage medium, which is characterized in that be stored with shooting journey on the computer readable storage medium The step of sequence, the photographing program realizes image pickup method as claimed any one in claims 1 to 3 when being executed by processor.
CN201710377718.6A 2017-05-25 2017-05-25 A kind of image pickup method and mobile terminal Active CN106973237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710377718.6A CN106973237B (en) 2017-05-25 2017-05-25 A kind of image pickup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710377718.6A CN106973237B (en) 2017-05-25 2017-05-25 A kind of image pickup method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106973237A CN106973237A (en) 2017-07-21
CN106973237B true CN106973237B (en) 2019-03-01

Family

ID=59326404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710377718.6A Active CN106973237B (en) 2017-05-25 2017-05-25 A kind of image pickup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106973237B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107633235B (en) * 2017-09-27 2020-12-25 Oppo广东移动通信有限公司 Unlocking control method and related product
CN110493523B (en) * 2019-08-27 2021-03-16 Oppo广东移动通信有限公司 Image display method, device, terminal and storage medium
CN113747057B (en) * 2021-07-26 2022-09-30 荣耀终端有限公司 Image processing method, electronic equipment, chip system and storage medium
CN113824871A (en) * 2021-08-02 2021-12-21 惠州Tcl云创科技有限公司 Method and device for processing superposed photographing of front camera and rear camera of mobile terminal and mobile terminal
WO2023240489A1 (en) * 2022-06-15 2023-12-21 北京小米移动软件有限公司 Photographic method and apparatus, and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8482626B2 (en) * 2009-04-07 2013-07-09 Mediatek Inc. Digital camera and image capturing method
KR101889932B1 (en) * 2012-07-25 2018-09-28 삼성전자주식회사 Apparatus and Method for photographing image
CN107395975A (en) * 2013-01-07 2017-11-24 华为技术有限公司 A kind of image processing method and device
US9639968B2 (en) * 2014-02-18 2017-05-02 Harman International Industries, Inc. Generating an augmented view of a location of interest
CN103905730B (en) * 2014-03-24 2015-11-25 努比亚技术有限公司 The image pickup method of mobile terminal and mobile terminal
CN105989577B (en) * 2015-02-17 2020-12-29 中兴通讯股份有限公司 Image correction method and device
CN106358005B (en) * 2015-07-17 2020-01-31 联想(北京)有限公司 Image processing method and electronic device
CN105303161A (en) * 2015-09-21 2016-02-03 广东欧珀移动通信有限公司 Method and device for shooting multiple people
CN105357513B (en) * 2015-09-29 2016-08-03 清华大学 Single camera expression in the eyes correcting method in conversational video
CN106357961A (en) * 2016-08-25 2017-01-25 维沃移动通信有限公司 Photographing method and mobile terminal
CN106162150B (en) * 2016-09-30 2018-08-17 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN106454086B (en) * 2016-09-30 2021-01-08 维沃移动通信有限公司 Image processing method and mobile terminal
CN106713764A (en) * 2017-01-24 2017-05-24 维沃移动通信有限公司 Photographic method and mobile terminal

Also Published As

Publication number Publication date
CN106973237A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106973237B (en) A kind of image pickup method and mobile terminal
CN107257439B (en) A kind of image pickup method and mobile terminal
CN106331510B (en) A kind of backlight photographic method and mobile terminal
US10021319B2 (en) Electronic device and method for controlling image display
CN107317993B (en) A kind of video call method and mobile terminal
CN107395969B (en) A kind of image pickup method and mobile terminal
CN105827952B (en) A kind of photographic method and mobile terminal removing specified object
CN107181913B (en) A kind of photographic method and mobile terminal
CN106231178B (en) A kind of self-timer method and mobile terminal
CN106791450B (en) A kind of photographic method and mobile terminal
CN106603928B (en) A kind of image pickup method and mobile terminal
CN107395997A (en) A kind of image pickup method and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
WO2019001152A1 (en) Photographing method and mobile terminal
CN106210526A (en) A kind of image pickup method and mobile terminal
CN105959564B (en) A kind of photographic method and mobile terminal
CN106780685B (en) A kind of generation method and terminal of dynamic picture
CN106227488B (en) A kind of display methods and mobile terminal of reminder message
CN107155064B (en) A kind of image pickup method and mobile terminal
CN106713659B (en) A kind of panorama shooting method and mobile terminal
CN107194907B (en) A kind of screenshot synthetic method and mobile terminal
CN107024990B (en) A kind of method and mobile terminal attracting children's self-timer
CN106096043B (en) A kind of photographic method and mobile terminal
CN108495032A (en) Image processing method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171107

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200522

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.