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.
First embodiment
The embodiment provides a kind of weakening methods of taking pictures of mobile terminal, as shown in Figure 1, this method comprises:
Step 101: target face is identified in the preview interface of taking pictures of mobile terminal.
The embodiment of the present invention is the movement by human eye, in target person present in preview interface and/or the mesh of taking pictures
Switch focusing area between mark object, thus change virtualization region, therefore, mobile terminal applied by the embodiment of the present invention,
It, could be according to target face when having the function of Automatic face recognition, and only recognizing target face in preview interface of taking pictures
Eyes movement, carry out the switching of focusing area.Wherein, the target face is the people present in preview interface that takes pictures
One of face in face.
Step 102: when recognizing the target face, according to the deliberate action of the eyes of the target person on the face, control
Focusing area processed is switched to second area from first area.
Wherein, the first area is the region where the first object object in the preview interface of taking pictures, described the
Two regions are the region where the second target object in the preview interface of taking pictures.The first object object and described second
Target object includes target person and target object, i.e., in the embodiment of the present invention, when being taken pictures, can pass through human eye
Movement controls focusing area from a target person present in preview interface or the region where target object of taking pictures, cuts
Change to the region where another target person or target object.
In addition, the deliberate action of eyes is the closure of eyes and opens movement, and eyes are from being closed between time for opening
Accidentally cutting to focusing area is caused to effectively prevent human eye in normal blink every being greater than the eyes blink time used
It changes, the mistuning so as to cause virtualization region is whole.
Step 103: the region except focusing area described in preview interface of taking pictures is subjected to virtualization display processing.
In the embodiment of the present invention, when taking pictures, the region except focusing area is blurred in the preview interface that needs to take pictures
Processing, to highlight the reference object in focusing area.Therefore, where determining focusing area by step 102
Behind position, it is determined that gone out the virtualization region for carrying out virtualization processing, that is, except focusing area described in preview interface of taking pictures
Region, so as to the virtualization region carry out virtualization display processing.
Wherein, it specifically needs to blur processing to which kind of degree for virtualization region, the background of system default can be used empty
Changing depth or user can also modify to background blurring depth according to the actual demand of oneself, so as in step 103
In, further according to user select background blurring depth, to the region except focusing area described in preview interface of taking pictures into
Row virtualization processing, thus the demand of taking pictures of further satisfaction user.
In addition, a virtualization region automatic transfer switch can be arranged, on mobile terminals also so as in mobile terminal
It after camera starting, detects whether the virtualization region automatic transfer switch is opened, and just enters step 101 when opening.
Wherein, the setting of region automatic transfer switch is blurred, more function selections are provided for user, when user needs
When taking pictures, when blurring region by the movement adjustment of human eye, the virtualization region automatic transfer switch can be opened;When taking pictures
In the process, when not needing the movement adjustment virtualization region by human eye, the virtualization region automatic transfer switch can be closed, thus
Meet the demand of taking pictures of various different users.
In conclusion the embodiment of the present invention, by identifying target face in the preview interface of taking pictures of mobile terminal, and
When recognizing target face, according to the deliberate action of the eyes of the target person recognized on the face, controls focusing area and taking pictures
It is switched between region where target object present in preview interface, to the region except focusing area be carried out empty
Change display processing.Therefore, the embodiment of the present invention, according to the movement of human eye, automatically controls focusing area during taking pictures
Switching, until focusing area is switched to the requirement for meeting user, without user when photographed scene changes, again
Virtualization region is manually adjusted, the photo that user's shooting has virtualization effect is greatly facilitated.
Second embodiment
The embodiment provides a kind of weakening methods of taking pictures of mobile terminal, as shown in Fig. 2, this method comprises:
Step 201: carrying out recognition of face in the preview interface of taking pictures of mobile terminal.
The embodiment of the present invention is the movement by human eye, switching focusing area (i.e. adjustment virtualization region), therefore, this hair
Mobile terminal applied by bright embodiment has the function of Automatic face recognition, and only recognizes in preview interface of taking pictures
When face, adjustment could be blurred into region according to the movement of the eyes of face.
It further, can also be by the area where the face recognized when recognizing face in the preview interface of taking pictures
The frame (such as rectangular shaped rim) of domain preset shape is identified, and is marked on focusing area with default mark, from
And user is allowed to clearly see which face can be identified and focusing area has in preview interface of taking pictures
Position where body.
Wherein, particularly, in preview interface of taking pictures, when two face spacing distances being identified are close, and this two
A face requires to clearly show that, then can be a face by the two recognitions of face in such cases.Specifically, when with
It, can be by the when overlapping area between the frame and frame for identify the second face for identifying the first face is more than preset value
One face and the second recognition of face are a face, consequently facilitating focusing area is switched to belonging to the first face and the second face
In target person where region on, and then target belonging to the first face and the second face can be clearly indicated simultaneously
Personage.
Step 202: by the face recognized in the preview interface of taking pictures the shared maximum face in region, or away from
The face nearest from mobile terminal is determined as target face.
Wherein, the target face is one of face in the face present in preview interface of taking pictures, described
Target face is used to control the switching of focusing area.
In addition, the face then recognized is target face when recognizing a face in step 201;When in step
When recognizing at least two faces in rapid 202, then need to select the switching for controlling focusing area from the face of identification
Target face.
Wherein, for the concrete mode of the selection target face from the face recognized, however it is not limited to clapped according to face
Size or face according to region shared in preview interface, can also mesh according to the pre-stored data to the distance of mobile terminal
Character image is marked, target face is selected from the face of identification.The face and pre-stored target face that will be recognized
Image compares, and obtains image similarity;By in the face recognized, greater than the image similarity pair of the first preset threshold
The face answered is determined as target face.
Wherein, the target facial image can be before this is taken pictures, using mobile terminal to a certain target
The photo of personage's shooting.Target person is taken pictures and stored first with mobile terminal, is then had in shooting
When the photo of background blurring effect, mobile terminal automatically according to the target person shot in advance photo, from preview of taking pictures
Face similar with the target person is found in the face recognized in interface, thus as target face.
Step 203: when recognizing the target face, according to the deliberate action of the eyes of the target person on the face, control
Focusing area processed is switched to second area from first area.
Wherein, the first area is the region where the first object object in the preview interface of taking pictures, described the
Two regions are the region where the second target object in the preview interface of taking pictures.The first object object and described second
Target object includes target person and target object, i.e., in the embodiment of the present invention, when being taken pictures, can pass through human eye
Movement controls focusing area from a target person present in preview interface or the region where target object of taking pictures, cuts
Change to the region where another target person or target object.
Preferably, when in the preview interface of taking pictures exist recognize at least two faces when, step 203 include: according to
Preset order is ranked up the face in the preview interface of taking pictures;When detecting wherein one of the target person on the face
When the closing time of eyes is more than the first preset threshold, according to putting in order for face, focusing area is controlled successively in the bat
Moved according between the region where target person belonging to the face in preview interface, and detect the eyes open or
When the time for detecting that two eyes of the target person on the face are closed is more than the second preset threshold, stop the focusing area
Movement.
Wherein, the preset order can be that the size in the face shared region in preview interface of taking pictures recognized is suitable
The far and near sequence of sequence or face apart from mobile terminal.
That is the embodiment of the present invention, when focusing area switches between the region where target person and target person
When, it is necessary first to the face recognized is ranked up, then, by the eye motion of target face, is put in order according to this
It is moved between region where control focusing area target person belonging to the face recognized, until meeting wanting for user
Until asking.
Further, when focusing area is moved to target person institute belonging to the last face of the ranking in preset order
Region on when, opened if the eyes that switch over of control focusing area are still not detected, or target person is still not detected
The time that two eyes on the face are closed is more than the second preset threshold, then continues for focusing area to be moved in preset order to arrange
On region where the belonging target person of the face of position first.I.e. focusing area can be belonging to the face recognized
Cyclic switching between region where target person, until meeting the requirement of user.
Preferably, when, there are when a face, step 203 includes: in the preview interface of taking pictures
It whether there is pre-stored target object in preview interface of taking pictures described in detection;
If there are a pre-stored target objects in the preview interface of taking pictures, the target face is being detected
On the closing time of wherein one eye eyeball when being more than the first preset threshold, focusing area is switched to where the target object
Region;
If there are at least two pre-stored target objects in the preview interface of taking pictures, the target is being detected
It is suitable according to being stored in advance for the target object when closing time of wherein one eye eyeball on face is more than the first preset threshold
Sequence, control focusing area successively moved between the region where the target object, and detect the eyes open or
When the time for detecting that two eyes of the target person on the face are closed is more than the second preset threshold, stop the focusing area
Movement.
Wherein, pre-stored target object can be what user was manually entered, and have certain storage order, such as
Building, trees, flowers and plants etc..
I.e. in the embodiment of the present invention, when only recognizing a face in preview interface of taking pictures, then the face is
For target face, then can be moved on target object by the action control focusing area of the eyes of target face at this time.For example,
It when certain user shoots a building using self-timer mode, needs to protrude the building, and does not need to project oneself, then can adopt
With the weakening method of taking pictures of the mobile terminal of the embodiment of the present invention, focusing area is switched to the building being taken from oneself,
And then the region except the building region is subjected to virtualization processing, to meet the demand of taking pictures of user.
Furthermore, it is generally the case that there is also other to shoot object when shooting a certain target object, in the photographed scene,
Region where focusing area from first target object can be also switched to by the control of human eye by then the embodiment of the present invention
Region where two target objects.Wherein, it when control focusing area moves between the region where multiple target objects, needs
It according to the target object being identified in the pre-stored sequence of mobile terminal, successively moves, until focusing area is switched to use
Until region where the target object of the family embodiment of being protruded.
Similarly, when focusing area is moved on the region where ranking last target object, if control is still not detected
The eyes that focusing area processed switches over are opened, or that time that two eyes of target person on the face are closed still is not detected is super
The second preset threshold is crossed, then continues for focusing area to be moved on the region where the target object of ranking first.That is focusing area
Domain can between the target object recognized cyclic switching, until meeting the requirement of user.
Wherein, it should be noted that the first preset threshold and the second preset threshold are all larger than the eyes blink time used,
So as to effectively avoid human eye in normal blink, cause the mistuning to virtualization region whole.
In addition, the deliberate action of eyes involved in step 203, it is not limited to the wherein one eye eyeball of target face
After closure, control focusing area is persistently switched over, and is surpassed until the eyes are opened or until the time that eyes are closed
Cross the second preset threshold.May be used also are as follows: the wherein one eye eyeball closing time of target face is more than then the first preset threshold is opened
When, the switching of a focusing area is carried out, closing time is more than that then the first preset threshold is opened, then carry out one to the eyes again
The switching of secondary focusing area.
Step 204: the region except focusing area described in preview interface of taking pictures is subjected to virtualization display processing.
In the embodiment of the present invention, when taking pictures, the region except focusing area is blurred in the preview interface that needs to take pictures
Processing, to highlight the reference object in focusing area.Therefore, where after determining focusing area by step 203
Position after, it is determined that gone out carry out virtualization processing virtualization region, that is, take pictures focusing area described in preview interface it
Outer region, so as to carry out virtualization display processing to the virtualization region.
Wherein, it specifically needs to blur processing to which kind of degree for virtualization region, the background of system default can be used empty
Changing depth or user can also modify to background blurring depth according to the actual demand of oneself, so as in step 204
In, further according to user select background blurring depth, to the region except focusing area described in preview interface of taking pictures into
Row virtualization processing, thus the demand of taking pictures of further satisfaction user.
In addition, a virtualization region automatic transfer switch can be arranged, on mobile terminals also so as in mobile terminal
It after camera starting, detects whether the virtualization region automatic transfer switch is opened, and just executes step 201 when opening.
Wherein, the setting of region automatic transfer switch is blurred, more function selections are provided for user, when user needs
When taking pictures, when blurring region by the movement adjustment of human eye, the virtualization region automatic transfer switch can be opened;When taking pictures
In the process, when not needing the movement adjustment virtualization region by human eye, the virtualization region automatic transfer switch can be closed, thus
Meet the demand of taking pictures of various different users.
In conclusion the embodiment of the present invention, by identifying target face in the preview interface of taking pictures of mobile terminal, and
When recognizing target face, according to the deliberate action of the eyes of the target person recognized on the face, controls focusing area and taking pictures
It is switched between region where target object present in preview interface, to the region except focusing area be carried out empty
Change display processing.Therefore, the embodiment of the present invention, according to the movement of human eye, automatically controls focusing area during taking pictures
Switching, until focusing area is switched to the requirement for meeting user, without user when photographed scene changes, again
Virtualization region is manually adjusted, the photo that user's shooting has virtualization effect is greatly facilitated.
3rd embodiment
The embodiment provides a kind of mobile terminals, as shown in figure 3, the mobile terminal 300 includes:
Target face detection module 301, for identifying target face in the preview interface of taking pictures of mobile terminal;
Focusing area switching module 302, for when recognizing the target face, according to the eye of the target person on the face
The deliberate action of eyeball controls focusing area from first area and is switched to second area, wherein the first area is described takes pictures
The region where first object object in preview interface, the second area are the second target in the preview interface of taking pictures
Region where object;
Processing module 303 is blurred, it is aobvious for the region except focusing area described in preview interface of taking pictures to be carried out virtualization
Show processing.
Preferably, when in the preview interface of taking pictures there are when at least two faces, as shown in figure 4, the target face
Detection module 301 includes:
Face identification unit 3011, for carrying out recognition of face in the preview interface of taking pictures of mobile terminal;
Target face determination unit 3012, for by the face recognized in the preview interface of taking pictures shared region
Maximum face, or the face nearest apart from mobile terminal are determined as target face.
Preferably, when in the preview interface of taking pictures there are when at least two faces, as shown in figure 4, the focusing area
Switching module 302 includes:
Sequencing unit 3021, for being ranked up to the face in the preview interface of taking pictures according to preset order;
First switch unit 3022, for surpassing when the closing time for detecting the wherein one eye eyeball of the target person on the face
When crossing the first preset threshold, according to putting in order for face, the focusing area successively people in the preview interface of taking pictures is controlled
It is moved between region where target person belonging to face, and is detecting that the eyes open or detect the target person
When the time that two eyes on the face are closed is more than the second preset threshold, stop the movement of the focusing area.
Preferably, the sequencing unit 3021 is specifically used for: according to the face in the preview interface of taking pictures in the bat
Size according to region shared in preview interface or the distance of face to the mobile terminal in the preview interface of taking pictures are remote
Closely, the face in the preview interface of taking pictures is ranked up.
Preferably, when in the preview interface of taking pictures there are when a face, as shown in figure 4, the focusing area switches
Module 302 includes:
Detection unit 3023, for detecting in the preview interface of taking pictures with the presence or absence of pre-stored target object;
Second switch unit 3024, if in the preview interface of taking pictures there are a pre-stored target object,
Then when the closing time for detecting the wherein one eye eyeball of the target person on the face is more than the first preset threshold, by focusing area
It is switched to the region where the target object;
Third switch unit 3025, if for there are at least two pre-stored objects in the preview interface of taking pictures
Body, then when the closing time for detecting the wherein one eye eyeball of the target person on the face is more than the first preset threshold, according to institute
The sequence that is stored in advance of target object is stated, control focusing area successively moves between the region where the target object, and
Detecting that the time that the eyes opened or detected that two eyes of the target person on the face are closed is more than second default
When threshold value, stop the movement of the focusing area.
It can be seen from the above, the mobile terminal of the embodiment of the present invention, by target face detection module 301 in mobile terminal
Target face is identified in preview interface of taking pictures, and when recognizing target face, trigger focusing area switching module 302 according to knowledge
The deliberate action of the eyes of the target person being clipped on the face controls focusing area in the institute of target object present in preview interface of taking pictures
Region between switch over so that the region except focusing area is carried out virtualization and shows by virtualization processing module 303
Processing.Therefore, the embodiment of the present invention can automatically control cutting for focusing area according to the movement of human eye during taking pictures
It changes, until focusing area is switched to the requirement for meeting user, without user when photographed scene changes, hand again
Dynamic adjustment virtualization region greatly facilitates the photo that user's shooting has virtualization effect.
Fourth embodiment
Fig. 5 is the structural block diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal 500 in Fig. 5
It can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer
Deng.
Mobile terminal 500 in Fig. 5 includes radio frequency (Radio Frequency, RF) circuit 510, memory 520, input
Unit 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (Wireless Fidelity) module 580 and electricity
Source 590.
Wherein, input unit 530 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 531.Touch panel 531, 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 531 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.
Optionally, touch panel 531 may include both touch detecting apparatus and touch controller.Wherein, inspection is touched
The touch orientation of device detection user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;It touches
Controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives the processor 560, and
The order that processor 560 is sent can be received and executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The multiple types such as sound wave realize touch panel 531.In addition to touch panel 531, input unit 530 can also include that other inputs are set
Standby 532, other input equipments 532 can include but is not limited to physical keyboard, function key (for example press by volume control button, switch
Key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 540 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 500.Optionally, LCD or Organic Light Emitting Diode (Organic Light- can be used
Emitting Diode, OLED) etc. forms configure display panel 541.
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 560 is sent to determine the type of touch event, is followed by subsequent processing device
560 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.
Wherein processor 560 is the control centre of mobile terminal 500, 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 521, and calling storage
Data in second memory 522 execute the various functions and processing data of mobile terminal 500, thus to mobile terminal 500
Carry out integral monitoring.Optionally, processor 560 may include one or more processing units.
In embodiments of the present invention, processor 560 identifies target face in the preview interface of taking pictures of mobile terminal, and
When recognizing the target face, according to the deliberate action of the eyes of the target person on the face, focusing area is controlled from the firstth area
Domain is switched to second area, so that the region except focusing area described in preview interface of taking pictures is subjected to virtualization display processing,
Wherein, the first area is the region where the first object object in the preview interface of taking pictures, and the second area is
The region where the second target object in the preview interface of taking pictures.
Preferably, when existing in the preview interface of taking pictures, when recognizing at least two faces, processor 560 is in movement
When identifying target face in the preview interface of taking pictures of terminal, it is specifically used for: carries out people in the preview interface of taking pictures of mobile terminal
Face identification;By in the face recognized in the preview interface of taking pictures the shared maximum face in region, or apart from it is mobile eventually
Nearest face is held to be determined as target face.
Preferably, when, there are when at least two faces, processor 560 is according to the target in the preview interface of taking pictures
The deliberate action of eyes on face is specifically used for: when control focusing area is switched to second area from first area according to pre-
If sequence, is ranked up the face in the preview interface of taking pictures;When detecting the wherein one eye of the target person on the face
When the closing time of eyeball is more than the first preset threshold, according to putting in order for face, controls focusing area and successively take pictures described
It is moved between region where target person belonging to face in preview interface, and is detecting that the eyes open or examine
When measuring time that two eyes of the target person on the face are closed and being more than the second preset threshold, stop the focusing area
It is mobile.
Preferably, processor 560 is according to preset order, when being ranked up to the face in the preview interface of taking pictures,
It is specifically used for: according to the size in the shared region in the preview interface of taking pictures of the face in the preview interface of taking pictures, or
Face in the preview interface of taking pictures to the mobile terminal distance, to the face in the preview interface of taking pictures into
Row sequence.
Preferably, when, there are when a face, processor 560 is according to the target face in the preview interface of taking pictures
On eyes deliberate action, control focusing area is specifically used for when being switched to second area from first area:
It whether there is pre-stored target object in preview interface of taking pictures described in detection;
If there are a pre-stored target objects in the preview interface of taking pictures, the target face is being detected
On the closing time of wherein one eye eyeball when being more than the first preset threshold, focusing area is switched to where the target object
Region;
If there are at least two pre-stored target objects in the preview interface of taking pictures, the target is being detected
It is suitable according to being stored in advance for the target object when closing time of wherein one eye eyeball on face is more than the first preset threshold
Sequence, control focusing area successively moved between the region where the target object, and detect the eyes open or
When the time for detecting that two eyes of the target person on the face are closed is more than the second preset threshold, stop the focusing area
Movement.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 500 of the embodiment of the present invention, by identifying target face in the preview interface of taking pictures of mobile terminal,
And when recognizing target face, according to the deliberate action of the eyes of the target person recognized on the face, controls focusing area and clapping
It is switched over according between the region where target object present in preview interface, so that the region except focusing area be carried out
Blur display processing.Therefore, the embodiment of the present invention, according to the movement of human eye, automatically controls focusing area during taking pictures
Switching, until focusing area is switched to the requirement for meeting user, without user when photographed scene changes, weight
Virtualization region is newly manually adjusted, the photo that user's shooting has virtualization effect is greatly facilitated.
5th embodiment
Fig. 6 is the structural block diagram of the mobile terminal of another embodiment of the present invention.Specifically, mobile terminal shown in fig. 6
600 include: at least one processor 601, memory 602, at least one network interface 604, other users interface 603.It is mobile
Various components in terminal 600 are coupled by bus system 605.It is understood that bus system 605 is for realizing these groups
Connection communication between part.Bus system 605 further includes power bus, control bus and state in addition to including data/address bus
Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 605 in Fig. 6.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 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 PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.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 DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these
With the memory of any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 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 6022 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 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application
The program or instruction stored in program 6022.
In embodiments of the present invention, processor 601 identifies target face in the preview interface of taking pictures of mobile terminal, and
When recognizing the target face, according to the deliberate action of the eyes of the target person on the face, focusing area is controlled from the firstth area
Domain is switched to second area, so that the region except focusing area described in preview interface of taking pictures is subjected to virtualization display processing,
Wherein, the first area is the region where the first object object in the preview interface of taking pictures, and the second area is
The region where the second target object in the preview interface of taking pictures.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601.
Processor 601 is a kind of IC chip, the processing capacity with signal.During realization, each step of the above method
It can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processor 601
It can be general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field 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 storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal
Processor, 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 place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing the application function or combinations thereof.
For software implementations, module (such as process, function etc.) Lai Shixian of execution function of the embodiment of the present invention can be passed through
The technology of the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can handled
Portion realizes in device or outside the processor.
Preferably, when existing in the preview interface of taking pictures, when recognizing at least two faces, processor 601 is in movement
When identifying target face in the preview interface of taking pictures of terminal, it is specifically used for: carries out people in the preview interface of taking pictures of mobile terminal
Face identification;By in the face recognized in the preview interface of taking pictures the shared maximum face in region, or apart from it is mobile eventually
Nearest face is held to be determined as target face.
Preferably, when, there are when at least two faces, processor 601 is according to the target in the preview interface of taking pictures
The deliberate action of eyes on face is specifically used for: when control focusing area is switched to second area from first area according to pre-
If sequence, is ranked up the face in the preview interface of taking pictures;When detecting the wherein one eye of the target person on the face
When the closing time of eyeball is more than the first preset threshold, according to putting in order for face, controls focusing area and successively take pictures described
It is moved between region where target person belonging to face in preview interface, and is detecting that the eyes open or examine
When measuring time that two eyes of the target person on the face are closed and being more than the second preset threshold, stop the focusing area
It is mobile.
Preferably, processor 601 is according to preset order, when being ranked up to the face in the preview interface of taking pictures,
It is specifically used for: according to the size in the shared region in the preview interface of taking pictures of the face in the preview interface of taking pictures, or
Face in the preview interface of taking pictures to the mobile terminal distance, to the face in the preview interface of taking pictures into
Row sequence.
Preferably, when, there are when a face, processor 601 is according to the target face in the preview interface of taking pictures
On eyes deliberate action, control focusing area is specifically used for when being switched to second area from first area:
It whether there is pre-stored target object in preview interface of taking pictures described in detection;
If there are a pre-stored target objects in the preview interface of taking pictures, the target face is being detected
On the closing time of wherein one eye eyeball when being more than the first preset threshold, focusing area is switched to where the target object
Region;
If there are at least two pre-stored target objects in the preview interface of taking pictures, the target is being detected
It is suitable according to being stored in advance for the target object when closing time of wherein one eye eyeball on face is more than the first preset threshold
Sequence, control focusing area successively moved between the region where the target object, and detect the eyes open or
When the time for detecting that two eyes of the target person on the face are closed is more than the second preset threshold, stop the focusing area
Movement.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 600 of the embodiment of the present invention, by identifying target face in the preview interface of taking pictures of mobile terminal,
And when recognizing target face, according to the deliberate action of the eyes of the target person recognized on the face, controls focusing area and clapping
It is switched over according between the region where target object present in preview interface, so that the region except focusing area be carried out
Blur display processing.Therefore, the embodiment of the present invention, according to the movement of human eye, automatically controls focusing area during taking pictures
Switching, until focusing area is switched to the requirement for meeting user, without user when photographed scene changes, weight
Virtualization region is newly manually adjusted, the photo that user's shooting has virtualization effect is greatly facilitated.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this 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.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
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.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, can also make several improvements and retouch under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.