Specific implementation mode
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Unless otherwise defined, the technical term or scientific term used herein should be in fields of the present invention and has
The ordinary meaning that the personage of general technical ability is understood.Used in present patent application specification and claims " the
One ", " second " and similar word are not offered as any sequence, quantity or importance, and are used only to distinguish different
Component part.Equally, the similar word such as "one" or " one " does not indicate that quantity limits yet, but indicates that there are at least one.
" connection " either the similar word such as " connected " is not limited to physics or mechanical connection, but may include electrical
Connection, it is either directly or indirect."upper", "lower", "left", "right" etc. are only used for indicating relative position relation, work as quilt
After the absolute position of description object changes, then the relative position relation also correspondingly changes.
An embodiment of the present invention provides a kind of photographic methods, are applied to mobile terminal, specifically may include in the mobile terminal
It is set to the first camera of mobile terminal first side and the first flash lamp, is set to the second of mobile terminal second side and takes the photograph
As head, wherein first side and second side are two opposite sides of mobile terminal.
In one embodiment, the first camera can be the postposition camera shooting of shell-side after being set to the mobile terminal back side i.e.
Head, the postposition flash lamp that the first flash lamp is concretely arranged with the first camera homonymy;Second camera concretely with shifting
The front camera of dynamic terminal display homonymy setting.In addition, the mobile terminal involved by the embodiment of the present invention may also include
Second flash lamp, the preposition flash lamp which is specifically arranged with second camera homonymy.
Different corresponding to the camera used when taking pictures, above-mentioned signified first camera can be interchangeable with second camera,
First flash lamp can be exchanged with the second flash lamp.
As shown in Figure 1, the photographic method that the embodiment of the present invention is provided can specifically include:
Step 101, it is found a view using second camera.
When user needs to take pictures using mobile terminal, movement can be opened for the operation of mobile terminal based on user
Terminal camera function, and corresponding camera such as second camera can be selected to find a view based on the operation of user.
Step 102, whether the environment that the first flash lamp of detection faces meets reflection light filling condition.
In the case where being all equipped with flash lamp before and after mobile terminal, usual postposition flash lamp is the larger flash lamp of power,
Preposition flash lamp is usually soft light.So when being taken pictures using mobile terminal front camera, if mobile terminal is carried on the back
The environment that face, that is, mobile terminal rear camera is faced has preferable conditioned reflex, such as shown in Fig. 2, then being dodged from postposition
The light of light lamp output can pass through the diffusing reflection of multiple metopes, and the light that finally arrival is photographed object can become very soft.
Therefore, the technical solution that the embodiment of the present invention is provided second camera in user selects mobile terminal is clapped
According to when, control with the second camera direction the first opposite flash lamp output light, the environment faced using the first flash lamp
Reflection light carries out light filling to being photographed object, so that light filling light is very soft, it is ensured that effect of taking pictures promotes user for movement
The usage experience of terminal.
Specifically, when selective enhancement sheen camera function in relevant options of the user in mobile terminal camera function,
The environment that available first the first flash lamp of camera pair with the setting of the first flash lamp homonymy faces is taken pictures, and the ring is obtained
The image data in border.Utilize hardware and/or software set in mobile terminal, such as CPU and image recognition soft and hardware
Deng confirmation is identified to the image data of acquisition, is compared according to the characteristic point to image, such as:Local edge, color are special
Property, to identify that (existing image recognition technology can identify common object and estimation to the object scene in the environment very well
Object parameters for specific identification technology the application and are not particularly limited), to obtain the reflection parameters of the environment.
Involved reflection parameters, can specifically include object reflective surface area size, body surface in the embodiment of the present invention
At least one of distance parameter between color, the first flash lamp and object.
Numerical relation between above-mentioned involved reflection parameters be not it is fixed, can be as needed in specific implementation
Various reflection parameters are combined to determine, such as:If reflective surface area is very big, surface color is very shallow, then distance values can be slightly
It is micro- remote.How much specific numerical value needs to adjust determination according to practical debugging effect.
After obtaining above-mentioned object items reflection parameters, can by judge the relationship between reflection parameters and threshold value with
Determine whether environment meets reflection light filling condition.
Step 103, if the environment meets reflection light filling condition, the first flash lamp for determining the use of the Ambient is defeated
Go out light and carries out light filling operation.
In one embodiment, if object reflective surface area is enough big (being more than threshold value), color of object surface is shallower, and (RGB is big
In threshold value, RGB numerical value is bigger, and color is more shallow), the distance between flash lamp and object are relatively close (being less than threshold value), then can be determined that
The environment meets reflection light filling condition, so as to determine the use of the first flash lamp output for the Ambient that the first flash lamp faces
Light carries out light filling operation, enhances sheen camera function to realize.
In another specific embodiment, the flash lamp involved by the embodiment of the present invention is additionally provided with can be with the knot of adjustment direction
Structure is arranged, and can automatically control camera direction, in this way, the object items reflection parameters or in determination in obtaining environment
Environment is discontented with after foot reflex light filling condition, according to the light of the first flash lamp of reflector situation adjust automatically of scene output
Angle, to select optimal flash lamp light outbound course or environment is made to meet reflection light filling condition.In addition, artificial adjust manually
The direction of whole mobile terminal can also realize above-mentioned function so as to adjust the angle of the first flash lamp output light.
Step 104, the output power of taking pictures of the first flash lamp is determined based on light intensity testing result.
After determining the environment satisfaction reflection light filling condition that the first flash lamp is faced, light intensity detection knot can be based on
Fruit determines the output power of taking pictures of the first flash lamp.
The light intensity referred to herein light that concretely the first flash lamp exports is moved after Ambient
The light intensity detected by photometry element set by terminal.The photometry element can be specifically arranged with second camera homonymy,
Whether the light to detect the output of the first flash lamp meets the demand of taking pictures by light intensity when reflecting up to second camera.
In initial light intensity detection, it can control the first flash lamp according to default output power i.e. the first output power
Output light, which can be empirical value.
The light intensity that mobile terminal second side is received by the photometry element that is arranged with second camera homonymy into
Row detection, to determine that light of the light of the first flash lamp output when reaching mobile terminal second side by Ambient is strong
Degree.Specifically, the light intensity i.e. acquired in detection second camera.
If testing result shows the light intensity (can be the first light intensity at this time) that mobile terminal second side receives
More than or equal to the first preset value, (first preset value specifically can be based on required light intensity determination, first preset value when taking pictures
A concretely value range), then the output power of the first flash lamp is taken pictures defeated when can be determined as taking pictures by the first output power
Go out power, and first output power is recorded into photometric parameter, to be used when taking pictures.If testing result shows to move
When the light intensity that terminal second side receives is less than the first preset value, it can be based between the light intensity and the first preset value
Magnitude relationship, the first output power is adjusted, when the first output power after adjusting being determined as the first flash lamp surveying light again
Output power.Such as when light intensity is less than the first preset value, it is possible to increase (adjustment numerical value can for the numerical value of the first output power
It is default), and the first flash lamp is controlled according to the output light again of the first output power after adjustment, until mobile terminal the second side
The light intensity satisfaction that face receives takes pictures requirement for example equal to the first preset value.
Since the shooting environmental of user is not fixed, scene changes are extremely complex, if the after surveying light and adjusting
One output power have reached or more than the first flash lamp peak power output, but mobile terminal second side receive light
Detected intensities still reach to less than i.e. still less than the first preset value, then can be opened needed for normal exposure the second flash lamp carry out
Light compensates.Photoreduction process is surveyed with same as before, unlike the first flash lamp every time with maximum power output light, second
Flash lamp carries out the adjusting (the first, second flash lamp while output light) of output power again, until mobile terminal second side
The light intensity (can be the second light intensity at this time) received reaches needed for normal exposure.
Since the first flash lamp has improved ambient light, the second flash lamp with peak power output output light
The light of smaller power, which can be exported, can reach needed for normal exposure.It is opposite that the second flash lamp is used only is (such as preposition soft
Light lamp) carry out the better of light filling.
In the embodiment of the present invention, the process of above-mentioned survey light can not go out flash lamp in millisecond ms ranks, user's fundamental sensation
Repeatedly light.Do not influence user experience.
Step 105, the first flash lamp is controlled when taking pictures using second camera according to output power output light of taking pictures.
It is being determined that flash lamp takes pictures after output power, can prompt user that can be imaged using second in display interface
Head is taken pictures, such as shooting button change color etc..When user, which touches button of taking pictures, to take pictures, according to above-mentioned determination
It takes pictures output power the first flash lamp output light, to realize sheen light filling when taking pictures.
And in another specific embodiment, the first flash lamp and second can also be controlled when taking pictures using second camera
Flash lamp is according to corresponding output power output light simultaneously of taking pictures.
The photographic method that the embodiment of the present invention is provided, finds a view by using second camera;Detect the first flash lamp face
To environment whether meet reflection light filling condition;If the environment meets reflection light filling condition, the Ambient is determined the use of
The first flash lamp output light carry out light filling operation;The output of taking pictures of the first flash lamp is determined based on light intensity testing result
Power;The first flash lamp is controlled when taking pictures using second camera according to output power output light of taking pictures.To control with
Used camera take pictures towards opposite flash lamp output light, and using the flash lamp output light of Ambient to being clapped
Light filling is carried out according to object, so that light filling light is more soft, it is ensured that effect of taking pictures promotes user and uses body for mobile terminal
It tests.
A specific implementation process for being provided for the embodiments of the invention photographic method below is described in detail.
As shown in figure 3, the embodiment can specifically include:
Step 301, it is found a view using second camera.
When user needs to take pictures using mobile terminal, user's operation can be based on and open mobile terminal camera function,
And second camera can be selected to find a view based on the operation of user.
Step 302, the image data of environment is obtained.
The environment that specific available first the first flash lamp of camera pair with the setting of the first flash lamp homonymy faces carries out
Shooting, obtains the image data of the environment.
Step 303, the reflection parameters for obtaining environment are identified by image data.
Using hardware and/or software set in mobile terminal, such as CPU and image recognition soft and hardware etc., to obtaining
Confirmation is identified in the image data taken, is compared according to the characteristic point to image, such as:Local edge, color characteristics, to know
Object scene not in the environment, to obtain every reflection parameters of included object and object in the environment, for
Judge whether the environment meets reflection light filling condition.
Involved reflection parameters, can specifically include object reflective surface area size, body surface in the embodiment of the present invention
One kind between color, the first flash lamp and object in distance.
Step 304, determine whether environment meets reflection light filling condition.
In one embodiment, if object reflective surface area is more than threshold value, color of object surface RGB is more than threshold value, flash of light
The distance between lamp and object are less than threshold value, then can determine that the environment meets reflection light filling condition, subsequent execution step 305.
In another specific embodiment, if environment is discontented with foot reflex light filling condition, adjustment the first flash lamp output can be attempted
Light angle, and carry out obtaining whether ambient image data and environment meet reflection light filling condition really after the adjustment again
It is fixed, this is repeated no more.
The case where for discontented foot reflex light filling condition, then it can trigger and open existing light filling technical solution, such as open
It opens the second flash lamp being arranged with second camera homonymy and carries out light filling.Since the technology contents belong to the prior art, the application
Excessive explanation is not done.
Step 305, the first flash lamp of control is according to the first output power output light.
After determining that environment meets reflection light filling condition, the first flash lamp of control is defeated according to default output power i.e. first
Go out power output light, which can be empirical value, which is less than the first flash lamp maximum output
Power.
Step 306, the first light intensity that detection mobile terminal second side receives.
Due to taking pictures, second camera used is located at mobile terminal second side, then substantially this step is to detect
When first flash lamp is according to the first output power output light, the light intensity acquired in second camera.
Step 307, judge big between the first light intensity and the first preset value that mobile terminal second side receives
Small relationship.
If the first light intensity is equal to the first preset value, 308 are thened follow the steps.
If the first light intensity is more than the first preset value, 309 are thened follow the steps.
If the first light intensity is less than the first preset value, 310 are thened follow the steps.
Step 308, output power of taking pictures is determined.
First output power is determined as to the shooting output power of the first flash lamp, and the numerical value note of first output power
It is loaded into photometric parameter, to be used when taking pictures.
Can also include that the peak power output of the first flash lamp is determined as taking pictures for the first flash lamp is defeated in this step
Go out power, the second output power of the second flash lamp is determined as to the output power of taking pictures of the second flash lamp, and by above-mentioned two
Output power numerical values are into photometric parameter, to be used when taking pictures.
Determine take pictures output power after can perform step 316.
Step 309, according to preset adjustment numerical value, reduce the numerical value of the first output power.
After the numerical value for reducing by the first output power, 305 are returned to step.
The purpose of step 309 is to avoid overexposure to ensure shooting effect, and can reduce the electric energy wave of mobile terminal
Take.
Step 310, according to preset adjustment numerical value, increase the numerical value of the first output power.
After the numerical value for increasing the first output power, step 311 is executed.
Step 311, judge whether the first output power after increasing is more than the maximum data power of the first flash lamp.
If the determination result is YES 312 are thened follow the steps, otherwise (including being less than or equal to) execution step 305.
Step 312, the first flash lamp and the second flash lamp output light simultaneously are controlled.
Wherein, the first flash lamp is exported with maximum power output light, the second flash lamp with preset second output power
Light.
Step 313, the second light intensity for receiving of detection mobile terminal the second side, and judge the second light intensity and the
Magnitude relationship between one preset value.
If the second light intensity is equal to the first preset value, 308 are thened follow the steps.
If the second light intensity is more than the first preset value, 314 are thened follow the steps.
If the second light intensity is less than the first preset value, 315 are thened follow the steps.
Step 314, according to preset adjustment numerical value, reduce the numerical value of the second output power.
After the numerical value for reducing by the second output power, 312 are returned to step.
The effect of step 314 is identical as step 309.
Step 315, according to preset adjustment numerical value, increase the numerical value of the second output power.
After the numerical value for increasing the second output power, 312 are returned to step.
Step 316, flash lamp is controlled when taking pictures using second camera according to output power output light of taking pictures.
The first flash lamp of control be can specifically include in this step according to output power output light of taking pictures, can also include
The first flash lamp and the second flash lamp are controlled according to corresponding output power output light simultaneously of taking pictures.
The realization of the embodiment of the present invention utilizes the flash lamp of Ambient by improving the light outbound course of flash lamp
Light reaches soft light effect to being photographed object progress light filling, due to being to utilize existing hardware, glistens when only need to improve shooting
Lamp control method can reach enhancing soft light effect, therefore have the characteristics that simple and practical.And principle is easily understood, user
It is readily appreciated that and uses, user specific aim can carry out scene and select (for example to lean on as possible according to their needs in actual use
Near-white wall side is taken pictures), allow light filling effect of taking pictures to reach best, it is ensured that effect of taking pictures, promoted user for it is mobile eventually
The usage experience at end.
The embodiment of the present invention additionally provides a kind of mobile terminal 400, which specifically may include being set to movement
First camera 401 of 400 first side of terminal and the first flash lamp 402 (as shown in Figure 4) are set to mobile terminal 400
The second camera 403 of two side faces and the second flash lamp 404 (as shown in Figure 5), wherein first side and second side are movement
Two opposite sides of terminal 400, for example, the back side (i.e. after shell-side) of first side concretely mobile terminal 400, the second side
Mask body can be before mobile terminal 400 (i.e. screen side).
As shown in fig. 6, can specifically include in mobile terminal 400:
Module of finding a view 410, for being found a view using second camera 403;
Detection module 420 detects the first flash lamp after finding a view using second camera 403 in module 410 of finding a view
Whether 402 environment faced meet reflection light filling condition;
First determining module 430, for being that the environment meets reflection light filling condition in the testing result of detection module 420
Later, 402 output light of the first flash lamp for determining the use of the Ambient carries out light filling operation;
Second determining module 440, the first flash lamp for determining the use of the Ambient in the first determining module 430
After output light carries out light filling operation, the output power of taking pictures of the first flash lamp 402 is determined based on light intensity testing result;
Control module 450, it is true according to second for controlling the first flash lamp 402 when taking pictures using second camera 403
The output power output light of taking pictures that cover half block 440 determines.
In one embodiment, as shown in fig. 7, detection module 420 can specifically include:
Acquiring unit 421 obtains image for shooting the environment that the first flash lamp 402 faces using the first camera 401
Data;
Recognition unit 422 is identified confirmation for the image data by being obtained to acquiring unit 421, obtains reflection
Parameter, reflection parameters can specifically include object reflective surface area size, color of object surface, the first flash lamp 402 and object it
Between one kind in distance;
First determination unit 423, the relationship between reflection parameters and threshold value for judging the acquisition of recognition unit 422 is with true
Whether the fixed environment meets reflection light filling condition.
In one embodiment, as shown in figure 8, detection module 420 can also include specifically:
Adjustment unit 424, the angle of the light for adjusting the output of the first flash lamp 402.
In one embodiment, as shown in figure 9, the second determining module 440 can specifically include:
Control unit 441, for controlling the first flash lamp 402 according to the first output power output light;
Detection unit 442, for controlling the first flash lamp 402 according to the first output power output light in control unit 441
The first light intensity that 400 second side of mobile terminal receives is detected after line;
Second determination unit 443, it is default that the first light intensity for being detected when detection unit 442 is more than or equal to first
When value, the first output power is determined as output power of taking pictures;When the first light intensity that detection unit 442 detects is less than the
When one preset value, based on the magnitude relationship between the first light intensity and the first preset value, the first output power is adjusted, will be adjusted
The first output power afterwards is determined as the first output power.
In one embodiment, the first flash lamp 402 is Millisecond according to the time of the first output power output light.
In one embodiment, as shown in Figure 10, the second determining module 440 can also include specifically:
Judging unit 444 is dodged for judging whether the first output power after the second determination unit 443 is adjusted is more than first
The peak power output of light lamp.
Control unit 441 is additionally operable to, the first output work after judging unit 444 judges that the second determination unit 443 is adjusted
Rate is more than after the peak power output of the first flash lamp, controls the first flash lamp 402 and the second flash lamp 404 output light simultaneously
Line, wherein for the first flash lamp 402 according to peak power output output light, the second flash lamp 404 is defeated according to the second output power
Go out light;
Detection unit 442 is additionally operable to, and detection control unit 441 is controlling the first flash lamp 402 and the second flash lamp 404 together
When output light after the second light intensity for receiving of 400 second side of mobile terminal;
Second determination unit 443 is additionally operable to, when the second light intensity that detection unit 442 detects is more than or equal to first in advance
If when value, the peak power output of the first flash lamp 402 is determined as to the output power of taking pictures of the first flash lamp 402, by second
Output power is determined as the output power of taking pictures of the second flash lamp 404;When the second light intensity that detection unit 442 detects is small
The second output power is adjusted, will be adjusted based on the magnitude relationship between the second light intensity and the first preset value in the first preset value
The second output power after section is determined as the second output power.
In the embodiment of the present invention, control module 450 is additionally operable to the first flash of light of control when taking pictures using second camera 403
Lamp 402 and the second flash lamp 404 are according to corresponding output power output light simultaneously of taking pictures.
The mobile terminal 400 that the embodiment of the present invention is provided can be realized involved in embodiment of the method shown in Fig. 1-3
Each process, to avoid repeating, which is not described herein again.
The realization for the mobile terminal 400 that the embodiment of the present invention is provided, so as to utilize and used camera shooting when taking pictures
Head carries out light filling towards opposite flash lamp output light, and using the flash lamp output light of Ambient to being photographed object,
So that light filling light is more soft, it is ensured that effect of taking pictures promotes usage experience of the user for mobile terminal.
Figure 11 is the block diagram of the mobile terminal 500 of another embodiment of the present invention.Mobile terminal 500 shown in Figure 11 wraps
It includes:At least one processor 510, memory 520, at least one network interface 540 and user interface 530.In mobile terminal 500
Various components be coupled by bus system 550.It is understood that bus system 550 is for realizing between these components
Connection communication.Bus system 550 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.
But for the sake of clear explanation, various buses are all designated as bus system 550 in fig. 11.
Wherein, user interface 530 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 520 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Both or may include volatile and non-volatile memory.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 RAM
(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 (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 520 of system and method described herein be intended to including but not limited to these and it is arbitrary its
It is suitble to the memory of type.
In some embodiments, memory 520 stores following element, executable modules or data structures, or
Their subset of person or their superset:Operating system 521 and application program 522.
Wherein, operating system 521, including various system programs, such as ccf layer, core library layer, driving layer etc., for real
Existing various basic businesses and the hardware based task of processing.Application program 522, including various application programs, such as media are broadcast
Device (Media Player), browser (Browser) etc. are put, for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 522.
In embodiments of the present invention, by the program for calling memory 520 to store or instruction, specifically, can be application
The program stored in program 522 or instruction, processor 510 are used for:It is found a view using second camera;The first flash lamp is detected to face
Environment whether meet reflection light filling condition;If the environment meets reflection light filling condition, the Ambient is determined the use of
First flash lamp output light carries out light filling operation;The output work of taking pictures of the first flash lamp is determined based on light intensity testing result
Rate;The first flash lamp is controlled when taking pictures using second camera according to output power output light of taking pictures.
The method that the embodiments of the present invention disclose can be applied in processor 510, or be realized by processor 510.
Processor 510 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 510 or the instruction of software form.Above-mentioned processing
Device 510 can be general processor, digital signal processor (Digital Signal Processor, DSP), special 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 can also be 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 520, processor 510 reads the information in memory 520, the above method is completed in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
It combines to realize.For hardware realization, processing unit may be implemented in one or more application-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 the application 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, processor 510 is additionally operable to:The environment, which is shot, using the first camera obtains image data;By right
Image data is identified confirmation, obtains reflection parameters, wherein the reflection parameters include the object reflective surface area size,
One kind between the color of object surface, the first flash lamp and the object in distance;Judge the reflection parameters and threshold value
Between relationship with the determination environment whether meet reflection light filling condition.
Optionally, processor 510 is additionally operable to:Adjust the angle of the light of the first flash lamp output.
Optionally, processor 510 is additionally operable to:The first flash lamp is controlled according to the first output power output light;Detection moves
The first light intensity that dynamic terminal second side receives;When the first light intensity is more than or equal to the first preset value, by first
Output power is determined as output power of taking pictures;When the first light intensity be less than the first preset value when, based on the first light intensity with
Magnitude relationship between first preset value adjusts the first output power, it is defeated that the first output power after adjusting is determined as first
Go out power.
Optionally, processor 510 is additionally operable to:Judge whether the first output power after adjusting is more than the first flash lamp most
Big output power;If the first output power after adjusting is more than the peak power output of the first flash lamp, the first flash lamp is controlled
With the second flash lamp while output light, wherein the first flash lamp is pressed according to peak power output output light, the second flash lamp
According to the second output power output light;The second light intensity that detection mobile terminal second side receives;When the second light is strong
Degree is more than or equal to the first preset value, and peak power output is determined as to the output power of taking pictures of the first flash lamp, by the second output
Power is determined as the output power of taking pictures of the second flash lamp;When the second light intensity be less than the first preset value, be based on the second light
Magnitude relationship between intensity and the first preset value adjusts the second output power, the second output power after adjusting is determined as
Second output power.
Optionally, processor 510 is additionally operable to:The first flash lamp and the second flash of light are controlled when taking pictures using second camera
Lamp is according to corresponding output power output light simultaneously of taking pictures.
Mobile terminal 500 can realize each process that mobile terminal 400 is realized in previous embodiment, to avoid repeating,
Which is not described herein again.
The mobile terminal 500 that the embodiment of the present invention is provided is available opposite with used camera direction when taking pictures
Flash lamp output light, and light filling is carried out to being photographed object using the flash lamp output light of Ambient, so that light filling light
It is more soft, it is ensured that effect of taking pictures promotes usage experience of the user for mobile terminal.
Figure 12 is the structural schematic diagram of the mobile terminal 600 of another embodiment of the present invention.Specifically, the movement in Figure 12
Terminal 600 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle
Carry computer etc..
Mobile terminal 600 in Figure 12 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input
Unit 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) modules 680 and electricity
Source 690.
Wherein, input unit 630 can be used for receiving number input by user or character information, and generation and mobile terminal
The 600 related signal input of user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 631.Touch panel 631, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses the operations of any suitable object or attachment on touch panel 631 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment device.Optionally, touch panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought 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 660 is given again, and can be received order that processor 660 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 631.In addition to touch panel 631, input unit
630 can also include other input equipments 632, other input equipments 632 can include but is not limited to physical keyboard, function key
It is one or more in (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Wherein, display unit 640 can be used for showing information input by user or be supplied to information and the movement of user
The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, LCD or organic hairs may be used
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined
It measures and sends processor 660 on it or after neighbouring touch operation to determine the type of touch event, be followed by subsequent processing device
660 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
Including the interface elements such as icon and/or widget desktop controls of at least one application program.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 660 is the control centre of mobile terminal 600, 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 621, and calling storage
Data in second memory 622 execute the various functions and processing data of mobile terminal 600, to mobile terminal 600
Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by calling store the first memory 621 in software program and/or module and/
Or the data in the second memory 622, processor 660 are used for:It is found a view using second camera;The first flash lamp is detected to face
Environment whether meet reflection light filling condition;If the environment meets reflection light filling condition, the Ambient is determined the use of
First flash lamp output light carries out light filling operation;The output work of taking pictures of the first flash lamp is determined based on light intensity testing result
Rate;The first flash lamp is controlled when taking pictures using second camera according to output power output light of taking pictures.
Optionally, processor 660 is additionally operable to:The environment, which is shot, using the first camera obtains image data;By right
Image data is identified confirmation, obtains reflection parameters, wherein the reflection parameters include the object reflective surface area size,
One kind between the color of object surface, the first flash lamp and the object in distance;Judge the reflection parameters and threshold value
Between relationship with the determination environment whether meet reflection light filling condition.
Optionally, processor 660 is additionally operable to:Adjust the angle of the light of the first flash lamp output.
Optionally, processor 660 is additionally operable to:The first flash lamp is controlled according to the first output power output light;Detection moves
The first light intensity that dynamic terminal second side receives;When the first light intensity is more than or equal to the first preset value, by first
Output power is determined as output power of taking pictures;When the first light intensity be less than the first preset value when, based on the first light intensity with
Magnitude relationship between first preset value adjusts the first output power, it is defeated that the first output power after adjusting is determined as first
Go out power.
Optionally, processor 660 is additionally operable to:Judge whether the first output power after adjusting is more than the first flash lamp most
Big output power;If the first output power after adjusting is more than the peak power output of the first flash lamp, the first flash lamp is controlled
With the second flash lamp while output light, wherein the first flash lamp is pressed according to peak power output output light, the second flash lamp
According to the second output power output light;The second light intensity that detection mobile terminal second side receives;When the second light is strong
Degree is more than or equal to the first preset value, and peak power output is determined as to the output power of taking pictures of the first flash lamp, by the second output
Power is determined as the output power of taking pictures of the second flash lamp;When the second light intensity be less than the first preset value, be based on the second light
Magnitude relationship between intensity and the first preset value adjusts the second output power, the second output power after adjusting is determined as
Second output power.
Optionally, processor 660 is additionally operable to:The first flash lamp and the second flash of light are controlled when taking pictures using second camera
Lamp is according to corresponding output power output light simultaneously of taking pictures.
Mobile terminal 600 can realize each process that mobile terminal 400 is realized in previous embodiment, to avoid repeating,
Which is not described herein again.
As it can be seen that the mobile terminal 600 that is provided of the embodiment of the present invention is available with used camera direction when taking pictures
Opposite flash lamp output light, and light filling is carried out to being photographed object using the flash lamp output light of Ambient, so as to mend
Light light is more soft, it is ensured that effect of taking pictures promotes usage experience of the user for mobile terminal.
Those of ordinary skill in the art may realize that lists 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, depends on the specific application and design constraint of 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 division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component 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 INDIRECT COUPLING or communication link by some interfaces, device or unit
It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, and be shown as unit
Component may or may not be physical unit, you can be located at a place, or may be distributed over multiple networks
On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
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 read/write memory medium.Based on this understanding, technical scheme 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 expressed 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
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:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to 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.