CN106603934B - A kind of flash lamp control method and mobile terminal - Google Patents

A kind of flash lamp control method and mobile terminal Download PDF

Info

Publication number
CN106603934B
CN106603934B CN201710020930.7A CN201710020930A CN106603934B CN 106603934 B CN106603934 B CN 106603934B CN 201710020930 A CN201710020930 A CN 201710020930A CN 106603934 B CN106603934 B CN 106603934B
Authority
CN
China
Prior art keywords
flash lamp
distance
shelter
less
ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710020930.7A
Other languages
Chinese (zh)
Other versions
CN106603934A (en
Inventor
丁志涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710020930.7A priority Critical patent/CN106603934B/en
Publication of CN106603934A publication Critical patent/CN106603934A/en
Application granted granted Critical
Publication of CN106603934B publication Critical patent/CN106603934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Abstract

The present invention provides a kind of flash lamp control method and mobile terminal, which comprises judges whether the distance between shelter and described flash lamp in flash lamp irradiation area is less than pre-determined distance;If the distance between the shelter and the flash lamp are less than the pre-determined distance, the main lightning stream of the flash lamp is reduced to pre-set current value.In this way, flash lamp control method provided in an embodiment of the present invention can reduce the main lightning stream of the flash lamp when flash lamp range shelter object is closer, the shooting effect for causing to damage or influence the shelter to the shelter is avoided.

Description

A kind of flash lamp control method and mobile terminal
Technical field
The present invention relates to mobile terminal control field more particularly to a kind of flash lamp control methods and mobile terminal.
Background technique
Flash lamp is widely used on all kinds of mobile terminals, in order to promote the effect taken pictures, the drive of flash lamp when taking pictures Streaming current is gradually increasing.In addition, also adding flash lamp lamp on some mobile terminals for the effect of taking pictures when promoting flash of light Cover, the lampshade are similar to Fresnel Lenses (Fresnel lens), for converging light, increase in light and understand without being told Degree.
However, the lensing of the lampshade can converge the light that flash lamp dissipates, such as due to joined lampshade Fruit flash lamp is in the place flash of light close to human skin, and the light of sending is after lampshade optically focused, center luminous intensity highest, Direct impact is tightly attached to the skin at flash lamp by the energy beam of concentration of local, and the tingling sensation for causing human body to have needle to prick generates.It can See, flash lamp is easy to cause to damage to human skin in place flash of light closer from human skin in the prior art.
Summary of the invention
The embodiment of the present invention provides a kind of flash lamp control method and mobile terminal, is existed with solving flash lamp in the prior art The problem of damage is caused to human skin is easy when place flash of light closer from human skin.
In a first aspect, being applied to mobile terminal, the method the embodiment of the invention provides a kind of flash lamp control method Include:
Judge whether the distance between shelter and described flash lamp in flash lamp irradiation area is less than pre-determined distance;
If the distance between the shelter and the flash lamp are less than the pre-determined distance, by the main sudden strain of a muscle of the flash lamp Current reduction is to pre-set current value.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, and the mobile terminal includes flash lamp, the shifting Dynamic terminal includes:
Judgment module, for judging whether the distance between the shelter of flash lamp irradiation area and the flash lamp are less than Pre-determined distance;
Control module, if being less than the pre-determined distance for the distance between the shelter and the flash lamp, by institute The main lightning stream for stating flash lamp is reduced to pre-set current value.
In embodiments of the present invention, the flash lamp control method judge shelter in flash lamp irradiation area with it is described Whether the distance between flash lamp is less than pre-determined distance;If the distance between the shelter and the flash lamp are less than described pre- If distance, the main lightning stream of the flash lamp is reduced to pre-set current value.In this way, flash lamp control provided in an embodiment of the present invention Method processed can reduce the main lightning stream of the flash lamp when flash lamp range shelter object is closer, avoid to institute Shelter is stated to cause to damage or influence the shooting effect of the shelter.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the Flash Light principle schematic diagram of flash lamp provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart for flash lamp control method that first embodiment of the invention provides;
Fig. 3 is the flow chart for another flash lamp control method that second embodiment of the invention provides;
Fig. 4 is the flow chart for another flash lamp control method that third embodiment of the invention provides;
Fig. 5 is a kind of structure chart for mobile terminal that fourth embodiment of the invention provides;
Fig. 6 is the structure chart for another mobile terminal that fourth embodiment of the invention provides;
Fig. 7 is the structure chart for another mobile terminal that fourth embodiment of the invention provides;
Fig. 8 is the structure chart for another mobile terminal that fourth embodiment of the invention provides;
Fig. 9 is the structure chart for another mobile terminal that fourth embodiment of the invention provides;
Figure 10 is the structure chart for another mobile terminal that fourth embodiment of the invention provides;
Figure 11 is the structure chart for another mobile terminal that fifth embodiment of the invention provides;
Figure 12 is the structure chart for another mobile terminal that fifth embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is a kind of Flash Light principle schematic diagram of flash lamp provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, The flash lamp first can carry out preflashing with lesser electric current (such as 200MA as shown in Figure 1), described after for a period of time in preflashing Flash lamp can carry out main sudden strain of a muscle with biggish electric current (such as 1000mA as shown in Figure 1).It should be noted that of the invention is each Embodiment is realized based on the Flash Light principle of above-mentioned flash lamp.
First embodiment
Referring to fig. 2, Fig. 2 is a kind of flow chart of flash lamp control method provided in an embodiment of the present invention, and the method is answered For a mobile terminal, as shown in Figure 2, which comprises
Step 201, the distance between judge shelter and the flash lamp in flash lamp irradiation area and whether be less than it is pre- If distance.
In the step, if the distance between the shelter and the flash lamp are less than the pre-determined distance, described in explanation Shelter is closer apart from the flash lamp, executes step 202;On the contrary, if the shelter and the flash lamp it Between distance be not less than the pre-determined distance, illustrate distance of the shelter apart from the flash lamp farther out, process terminate or Person continues to execute step 201, until the distance between the shelter and the flash lamp are less than the pre-determined distance, executes step Rapid 202.It should be noted that flow chart shown in Fig. 2 is so that process terminates as an example, but it is not limited thereto.
The shelter can be human body, be also possible to other objects.The method can be sent receiving camera Flash lamp open signal when judge the shelter apart from the sudden strain of a muscle (when the flash lamp has not been entered into the preflashing stage) Whether the distance of light lamp is less than the pre-determined distance, can also judge the shelter and institute in the preflashing stage of the flash lamp State whether the distance between flash lamp is less than the pre-determined distance.
For example, the method can be examined in the camera that the preflashing stage of the flash lamp obtains the mobile terminal Then the parameter value of the image parameter of survey judges that the distance between the shelter and the flash lamp are according to the parameter value It is no to be less than the pre-determined distance.The parameter value of described image parameter can be the R/G ratio and B/G ratio of image, can also be with It is the flash lamp contribution degree (such as K ratio) of described image.
In addition, in some embodiment of the invention, on the mobile terminal position of the neighbouring flash lamp be provided with away from From sensor, the method can be according between the range sensor and the shelter that the range sensor detects Whether the distance between shelter described in Distance Judgment and the flash lamp are less than the pre-determined distance.
It is understood that the method can also be by judging the shelter and the sudden strain of a muscle in conjunction with above two mode Whether the distance between light lamp is less than the pre-determined distance, that is to say, that the method can be combined with described image parameter Parameter value and the range sensor detect apart from the distance between shelter described in comprehensive descision and the flash lamp Whether the pre-determined distance is less than, the embodiment of the present invention is not construed as limiting this.
The main lightning stream of the flash lamp is reduced to pre-set current value by step 202.
In the step, when the distance between the shelter and the flash lamp are less than the pre-determined distance, the side The main lightning stream of the flash lamp is reduced to pre-set current value by method, and the pre-set current value is less than the normal master of the flash lamp Lightning stream, and can guarantee that the flash lamp will not cause to damage with pre-set current value work to the shelter.It needs Illustrate, the pre-set current value can be different according to the difference of the flash of light modulation characteristic, and the embodiment of the present invention is to described Pre-set current value is not specifically limited.
For example, the method can when the distance between the shelter and the flash lamp are less than the pre-determined distance The main lightning stream of the flash lamp is reduced to 300MA.In this way, the method passes through drop when the shelter is human body The main lightning stream of the low flash lamp avoids the flash lamp from causing to damage to human skin when glistening near human body, simultaneously also The exposure intensity that the flash lamp can be effectively controlled in the case where closely taking pictures, avoids light from influencing very much shooting effect by force. Similarly, when the shelter is object, the method also can effectively control the exposure intensity of the flash lamp, avoid light Line influences by force very much shooting effect.
In the embodiment of the present invention, above-mentioned mobile terminal can be any mobile terminal for having flash lamp, such as: mobile phone, Tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) Or wearable device (Wearable Device) etc..
The flash lamp control method of first embodiment of the invention judges shelter and the sudden strain of a muscle in flash lamp irradiation area Whether the distance between light lamp is less than pre-determined distance;If the distance between the shelter and the flash lamp are less than described default The main lightning stream of the flash lamp is reduced to pre-set current value by distance.In this way, flash lamp control provided in an embodiment of the present invention Method can reduce the main lightning stream of the flash lamp when flash lamp range shelter object is closer, avoid to described Shelter causes to damage or influence the shooting effect of the shelter.
Second embodiment
It is the flow chart for another flash lamp control method that second embodiment of the invention provides, such as Fig. 3 referring to Fig. 3, Fig. 3 Shown, the flash lamp control method includes:
Step 301, the image parameter that the camera detection of the mobile terminal is obtained in the preflashing stage of the flash lamp Parameter value.
In an embodiment of the present invention, in the preflashing stage of the flash lamp, the camera of the mobile terminal can be detected The parameter value of the image currently obtained, such as R/G ratio and B/G ratio or the flash lamp of the described image contribution of image Degree.The flash lamp contribution degree of described image is relevant parameter (such as brightness, the image quality that the flash lamp opens front and back described image Deng) ratio.
Step 302 judges between shelter and the flash lamp in flash lamp irradiation area according to the parameter value Whether distance is less than pre-determined distance.
In the step, the method judges in the flash lamp irradiation area according to the parameter value that the step 301 obtains Shelter and the distance between the flash lamp whether be less than the pre-determined distance.If the shelter and the flash lamp it Between distance be less than the pre-determined distance, execute step 303;On the contrary, if between the shelter and the flash lamp away from From the pre-determined distance is not less than, process terminates or continues process return step 301, it should be noted that stream shown in Fig. 3 In journey figure by taking process terminates as an example, but it is not limited thereto.
For example, the method can by judge described image R/G ratio and B/G ratio whether be zero come Judge whether the distance between the shelter and the flash lamp are less than the pre-determined distance.Specifically, if described image R/G ratio and B/G ratio are zero, and it is described that the method determines that the distance between the shelter and the flash lamp are less than Pre-determined distance executes step 303;On the contrary, the method is true if the R/G ratio and B/G ratio of described image are not zero Fixed the distance between the shelter and the flash lamp are not less than the pre-determined distance.
In addition, the method whether can also be less than by judging the flash lamp contribution degree of described image default contribution degree come Judge whether the distance between the shelter and the flash lamp are less than the pre-determined distance.Specifically, if the flash lamp Contribution degree is less than the default contribution degree, and it is described that the method determines that the shelter is less than compared to the distance of the flash lamp Pre-determined distance executes step 303;On the contrary, the method is true if the flash lamp contribution degree is not less than the default contribution degree The fixed shelter is not less than the pre-determined distance compared to the distance of the flash lamp.
The main lightning stream of the flash lamp is reduced to pre-set current value by step 303.
The step 303 is identical as the step 102 in first embodiment of the invention, and details are not described herein.
Optionally, the parameter value of described image parameter includes the R/G ratio and B/G ratio of image, described according to Parameter value judges whether the distance between shelter and described flash lamp in the flash lamp irradiation area are less than pre-determined distance, Include:
Whether the R/G ratio and B/G ratio for judging described image are zero;
If the R/G ratio and B/G ratio of described image are zero, the shelter in the flash lamp irradiation area is determined The distance between described flash lamp is less than pre-determined distance.
In this embodiment, the parameter value of described image parameter includes the R/G ratio and B/G ratio of image, the side Method pass through the R/G ratio for judge described image and B/G ratio whether be the zero judgement shelter and the flash lamp it Between distance whether be less than the pre-determined distance.In this embodiment, if the R/G ratio and B/G ratio of described image are Zero, then illustrate that the flash lamp is blocked by shelter completion, the method determines the screening in the flash lamp irradiation area The distance between block material and the flash lamp are less than pre-determined distance.It is understood that the method can directly acquire it is described The R/G ratio and B/G ratio of image simultaneously judge the R/G ratio of described image and whether B/G ratio is zero, can also lead to It crosses the R value for obtaining described image and B value judges the R value of described image and whether B value is zero, if the R value of described image And B value is zero, then the R/G ratio and B/G ratio of described image are zero.
Optionally, the parameter value of described image parameter includes the flash lamp contribution degree of image, described according to the parameter value Judge whether the distance between shelter and described flash lamp in the flash lamp irradiation area is less than pre-determined distance, comprising:
Judge whether the flash lamp contribution degree is less than default contribution degree;
If the flash lamp contribution degree is less than the default contribution degree, the shelter in the flash lamp irradiation area is determined The distance between described flash lamp is less than pre-determined distance.
In the embodiment, the parameter value of described image parameter includes the flash lamp contribution degree of described image, described image Flash lamp contribution degree explains in detail in the step 302 in second embodiment of the invention, and details are not described herein.Work as figure When the flash lamp contribution degree of picture is higher, the contribution for illustrating that the light that the flash lamp provides is made to subject is larger, this When flash lamp be not blocked;On the contrary, illustrating the light that the flash lamp provides when the flash lamp contribution degree of image is lower The contribution made to subject is smaller, and flash lamp may be blocked at this time, i.e., is taken described in flash lamp distance pair As relatively close.For example, the flash lamp contribution degree of image is up to 500 or 500 or more when flash lamp is not blocked;Work as flash lamp When being blocked, the flash lamp contribution degree of image is 1.0 or so.
The method judges the screening by judging whether the flash lamp contribution degree of described image is less than default contribution degree Whether the distance between block material and the flash lamp are less than the pre-determined distance.Specifically, if the flash lamp contribution degree is less than The default contribution degree, the method determine that the shelter is less than the pre-determined distance compared to the distance of the flash lamp; On the contrary, the method determines the shelter compared to institute if the flash lamp contribution degree is not less than the default contribution degree The distance of flash lamp is stated not less than the pre-determined distance.In the present embodiment, the default contribution degree is 5, it should be noted that The default contribution degree can be different and different according to the characteristic of the flash lamp, and the embodiment of the present invention does not do specific limit to this It is fixed.
The flash lamp control method of second embodiment of the invention obtains described mobile whole in the preflashing stage of the flash lamp The parameter value of the image parameter of the camera detection at end;According to the parameter value judge shelter in flash lamp irradiation area with Whether the distance between described flash lamp is less than pre-determined distance;If the distance between the shelter and the flash lamp are less than institute Pre-determined distance is stated, the main lightning stream of the flash lamp is reduced to pre-set current value.In this way, flash of light provided in an embodiment of the present invention Lamp control method can reduce the main lightning stream of the flash lamp when flash lamp range shelter object is closer, avoid Cause to damage or influence the shooting effect of the shelter on the shelter.
3rd embodiment
Referring to fig. 4, Fig. 4 is the flow chart for another flash lamp control method that third embodiment of the invention provides, described Method is applied to mobile terminal, and in the 3rd embodiment, the position of the neighbouring flash lamp is provided on the mobile terminal Range sensor, the range sensor are used to detect shelter and the Distance-sensing in the irradiation area of the flash lamp The distance between device.As shown in Figure 4, which comprises
The distance between step 401, the range sensor for obtaining range sensor detection and shelter.
In the step, the method obtain range sensor detection the range sensor and the shelter it Between distance.In some embodiments of the present invention, whether the range sensor has object every preset time detection front It blocks, and detects the distance between the range sensor and shelter.The method is receiving taking the photograph for the mobile terminal The distance that the range sensor detects, or the preflashing in the flash lamp are obtained when the flash lamp open signal sent as hair Stage obtains the distance of the range sensor detection.
In other embodiments of the present invention, the range sensor will not detect whether front has object every preset time It blocks, the method can be in the flash lamp open signal for receiving the camera (or in the pre flashing of flash lamp stage) Control signal is sent to the range sensor, whether the range sensor detects front after receiving the control signal Object blocks, and detects the distance between the range sensor and the shelter.
The range sensor can be infrared distance sensor, ultrasonic distance sensor etc., the embodiment of the present invention pair The concrete type of the range sensor is without limitation.The range sensor detecting distance belongs to prior art scope, herein It repeats no more.
Step 402 judges whether the distance between the range sensor and the shelter are less than pre-determined distance.
In the step, since the range sensor is arranged adjacent to the flash lamp, the range sensor and the screening The distance between block material can be approximated to be the distance between the flash lamp and the shelter.The method passes through described in judgement Whether the distance between range sensor and the shelter are less than pre-determined distance to judge the shelter and the flash lamp The distance between whether be less than the pre-determined distance.If the distance between the range sensor and the shelter are less than described Pre-determined distance then illustrates that the distance between the shelter and the flash lamp are less than the pre-determined distance, executes step 403; On the contrary, illustrating the screening if the distance between the range sensor and the shelter are not less than the pre-determined distance The distance between block material and the flash lamp are not less than the pre-determined distance, and process terminates or return step 401, needs to illustrate , in flow chart shown in Fig. 4 only by taking process terminates as an example, but it is not limited thereto.
The pre-determined distance is the flash lamp will not cause damage to human skin when normal main sudden strain of a muscle current work Safe distance, the pre-determined distance can be different and different according to the characteristic of the flash lamp, and the present invention is to the pre-determined distance Specific value without limitation.
The main lightning stream of the flash lamp is reduced to pre-set current value by step 403.
The step 403 is identical as the step 102 in first embodiment of the invention, and details are not described herein.
It is optionally, described that the main lightning stream of the flash lamp is reduced to pre-set current value, comprising:
It is determined with described according to the distance between the range sensor and the shelter apart from corresponding predetermined current Value;
The main lightning stream of the flash lamp is reduced to described apart from corresponding pre-set current value.
Multiple distance values and multiple pre-set current values can be previously stored in the embodiment, in the mobile terminal, Wherein, a distance value or the corresponding pre-set current value of multiple distance values.The method can be according to the Distance-sensing The determination from pre-stored multiple pre-set current values of the distance between device and described shelter is described apart from corresponding pre- If current value, then the main lightning stream of the flash lamp is reduced to described apart from corresponding pre-set current value.
Multiple distance ranges and multiple pre-set current values can also be previously stored in the mobile terminal, wherein no Same distance range corresponds to different pre-set current values, and the method can be blocked according to the range sensor with described first The distance between object determines distance range, then determines corresponding pre-set current value according to the distance range of the determination, and will The main lightning stream of the flash lamp is reduced to pre-set current value corresponding with the distance range.
It is understood that can also be stored in advance in the mobile terminal independent variable be the range sensor with it is described The distance between shelter, dependent variable are the function of current value, and the method can calculate the distance according to the function Corresponding current value, and the main lightning stream of the flash lamp is reduced to described apart from corresponding current value.
The flash lamp control method of third embodiment of the invention, obtain range sensor detection the range sensor with The distance between shelter;Judge whether the distance between the range sensor and the shelter are less than pre-determined distance;If The distance between the range sensor and the shelter are less than the pre-determined distance, and the main lightning stream of the flash lamp is dropped Down to pre-set current value.In this way, flash lamp control method provided in an embodiment of the present invention can be in the flash lamp range shelter The main lightning stream that the flash lamp is reduced when object is closer avoids causing to damage or influence the screening to the shelter The shooting effect of block material.
Fourth embodiment
It is a kind of structure chart for mobile terminal that fourth embodiment of the invention provides referring to Fig. 5, the mobile terminal includes Flash lamp, as shown in figure 5, the mobile terminal 500 further include:
Judgment module 501, for judge flash lamp irradiation area shelter and the distance between the flash lamp whether Less than pre-determined distance;
Control module 502 will if being less than the pre-determined distance for the distance between the shelter and the flash lamp The main lightning stream of the flash lamp is reduced to pre-set current value.
Optionally, it is the structure chart for another mobile terminal that fourth embodiment of the invention provides referring to Fig. 6, Fig. 6, such as schemes Shown in 6, the judgment module 501 includes:
Detection unit 5011 obtains the camera detection of the mobile terminal for the preflashing stage in the flash lamp The parameter value of image parameter;
First judging unit 5012, for judged according to the parameter value shelter in the flash lamp irradiation area with Whether the distance between described flash lamp is less than pre-determined distance.
Optionally, it is the structure chart for another mobile terminal that fourth embodiment of the invention provides referring to Fig. 7, Fig. 7, such as schemes Shown in 7, the parameter value of described image parameter includes the R/G ratio and B/G ratio of image, and first judging unit 5012 wraps It includes:
First judgment sub-unit 50121, for judging whether R/G ratio and the B/G ratio of described image are zero;
First determination subelement 50122, if the R/G ratio and B/G ratio for described image are zero, described in determination The distance between shelter and the flash lamp in flash lamp irradiation area are less than pre-determined distance.
Optionally, it is the structure chart for another mobile terminal that fourth embodiment of the invention provides referring to Fig. 8, Fig. 8, such as schemes Shown in 8, the parameter value of described image parameter includes the flash lamp contribution degree of image, and first judging unit 5012 includes:
Second judgment sub-unit 50123, for judging whether the flash lamp contribution degree is less than default contribution degree;
Second determine subelement 50124, if for the flash lamp contribution degree be less than the default contribution degree, determine described in The distance between shelter and the flash lamp in flash lamp irradiation area are less than pre-determined distance.
Optionally, it is the structure chart for another mobile terminal that fourth embodiment of the invention provides referring to Fig. 9, Fig. 9, such as schemes Shown in 9, the mobile terminal further includes the range sensor of neighbouring flash lamp setting, and the judgment module 501 includes:
Acquiring unit 5013, for obtaining between the range sensor and shelter that the range sensor detects Distance;
Second judgment unit 5014, for judging whether the distance between the range sensor and the shelter are less than Pre-determined distance;
First determination unit 5015, if being less than for the distance between the range sensor and the shelter described pre- If distance, determine that the distance between shelter and described flash lamp in the flash lamp irradiation area is less than pre-determined distance.
It optionally, is the structure chart for another mobile terminal that fourth embodiment of the invention provides referring to Figure 10, Figure 10, such as Shown in Figure 10, the control module 502 includes:
Second determination unit 5021, for according to the determination of the distance between the range sensor and the shelter and institute It states apart from corresponding pre-set current value;
Control unit 5022, for being reduced to the main lightning stream of the flash lamp with described apart from corresponding predetermined current Value.
Mobile terminal 500 can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 2 to Fig. 4, to keep away Exempt to repeat, details are not described herein.
5th embodiment
It is the structural schematic diagram of another mobile terminal 1100 provided by the invention referring to Figure 11, Figure 11, as shown in figure 11, Mobile terminal 1100 includes: at least one processor 1101, memory 1102, at least one network interface 1103, user interface 1104, camera 1106 and flash lamp 1107.Various components in mobile terminal 1100 are coupled in by bus system 1105 Together, it is understood that bus system 1105 is for realizing the connection communication between these components.Bus system 1105 is except packet It includes except data line, further includes power bus, control bus and status signal bus in addition.But for the sake of clear explanation, scheming Various buses are all designated as bus system 1105 in 11.The camera 1106 is used for shooting photo, the flash lamp 1107 In flash of light, to improve the shooting quality of the camera 1106.
Wherein, user interface 1104 may include display, keyboard or pointing device, such as mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 1102 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, 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), erasable programmable are only Read memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connect dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 1102 of system and method described herein is intended to include but is not limited to this A little and any other suitable type memory.
In some embodiments, memory 1102 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 11021 and application program 11022.
Wherein, operating system 11021 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 11022 includes various application programs, such as matchmaker Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented The program of example method may be embodied in application program 11022.
In embodiments of the present invention, by the program or instruction of calling memory 1102 to store, specifically, can be application The program or instruction stored in program 11022, processor 1101 are used for:
Judge whether the distance between shelter and described flash lamp in flash lamp irradiation area is less than pre-determined distance;
If the distance between the shelter and the flash lamp are less than the pre-determined distance, by the main sudden strain of a muscle of the flash lamp Current reduction is to pre-set current value.
The method that the embodiments of the present invention disclose can be applied in processor 1101, or real by processor 1101 It is existing.Processor 1101 may be a kind of IC chip, the processing capacity with signal.During realization, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1101 or software form.Above-mentioned Processor 1101 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the 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 1102, processor 1101 reads the information in memory 1102, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, the processor 1101 judge between shelter and the flash lamp in flash lamp irradiation area away from From whether less than pre-determined distance, comprising:
The parameter value of the image parameter of the camera detection of the mobile terminal is obtained in the preflashing stage of the flash lamp;
The distance between shelter and the flash lamp in the flash lamp irradiation area are judged according to the parameter value Whether pre-determined distance is less than.
Optionally, the parameter value of described image parameter includes the R/G ratio and B/G ratio of image, the processor Whether 1101 judge the distance between shelter and described flash lamp in the flash lamp irradiation area according to the parameter value Less than pre-determined distance, comprising:
Whether the R/G ratio and B/G ratio for judging described image are zero;
If the R/G ratio and B/G ratio of described image are zero, the shelter in the flash lamp irradiation area is determined The distance between described flash lamp is less than pre-determined distance.
Optionally, the processor 1101 according to the parameter value judge shelter in the flash lamp irradiation area with Whether the distance between described flash lamp is less than pre-determined distance, comprising:
Whether the R/G ratio and B/G ratio for judging described image are zero;
If the R/G ratio and B/G ratio of described image are zero, the shelter in the flash lamp irradiation area is determined The distance between described flash lamp is less than pre-determined distance.
Optionally, referring to Figure 12, as shown in figure 12, the mobile terminal 1100 further includes range sensor 1108, described Range sensor 1108 is arranged adjacent to the flash lamp 1107, and the processor 1101 judges in the flash lamp irradiation area Whether the distance between shelter and the flash lamp are less than pre-determined distance, comprising:
Obtain the distance between the range sensor and the shelter of the range sensor detection;
Judge whether the distance between the range sensor and the shelter are less than pre-determined distance;
If the distance between the range sensor and the shelter are less than the pre-determined distance, the flash lamp is determined The distance between shelter and the flash lamp in irradiation area are less than pre-determined distance.
Optionally, the main lightning stream of the flash lamp is reduced to pre-set current value by the processor 1101, comprising:
It is determined with described according to the distance between the range sensor and the shelter apart from corresponding predetermined current Value;
The main lightning stream of the flash lamp is reduced to described apart from corresponding pre-set current value.
Mobile terminal 1100 can be realized each process that mobile terminal 1100 is realized in previous embodiment, to avoid weight Multiple, which is not described herein again.
The mobile terminal 1100 of the embodiment of the present invention, judge shelter in flash lamp irradiation area and the flash lamp it Between distance whether be less than pre-determined distance;If the distance between the shelter and the flash lamp are less than the pre-determined distance, The main lightning stream of the flash lamp is reduced to pre-set current value.In this way, flash lamp control method provided in an embodiment of the present invention The main lightning stream that the flash lamp can be reduced when the flash lamp range shelter object is closer, avoids blocking to described Object causes to damage or influence the shooting effect of the shelter.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of flash lamp control method is applied to mobile terminal, which is characterized in that the described method includes:
Judge whether the distance between shelter and described flash lamp in flash lamp irradiation area is less than pre-determined distance;
If the distance between the shelter and the flash lamp are less than the pre-determined distance, by the main lightning stream of the flash lamp It is reduced to pre-set current value;
Whether the distance between the shelter judged in flash lamp irradiation area and the flash lamp are less than pre-determined distance, packet It includes:
The parameter value of the image parameter of the camera detection of the mobile terminal is obtained in the preflashing stage of the flash lamp, In, the parameter value of described image parameter includes the R/G ratio and B/G ratio of image, or including flash lamp contribution degree;
The distance between shelter and described flash lamp in the flash lamp irradiation area is judged according to the parameter value whether Less than pre-determined distance;
Wherein, described that institute is judged according to the parameter value when the parameter value includes the R/G ratio and B/G ratio of image State whether the distance between shelter and described flash lamp in flash lamp irradiation area is less than pre-determined distance, comprising:
Whether it is zero according to the R/G ratio of described image and B/G ratio, judges blocking in the flash lamp irradiation area Whether the distance between object and the flash lamp are less than pre-determined distance;
It is described to be judged in the flash lamp irradiation area according to the parameter value when the parameter value includes flash lamp contribution degree Shelter and the distance between the flash lamp whether be less than pre-determined distance, comprising:
Whether be less than default contribution degree according to the flash lamp contribution degree, judge shelter in the flash lamp irradiation area with Whether the distance between described flash lamp is less than pre-determined distance;
Wherein, the flash lamp contribution degree is the ratio for the brightness that the flash lamp opens front and back image or the ratio of image quality.
2. the method as described in claim 1, which is characterized in that the parameter value of described image parameter includes the R/G ratio of image And B/G ratio, it is described according to the parameter value judge shelter in the flash lamp irradiation area and the flash lamp it Between distance whether be less than pre-determined distance, comprising:
Whether the R/G ratio and B/G ratio for judging described image are zero;
If the R/G ratio and B/G ratio of described image are zero, the shelter in the flash lamp irradiation area and institute are determined The distance between flash lamp is stated less than pre-determined distance.
3. the method as described in claim 1, which is characterized in that the parameter value of described image parameter includes the flash lamp tribute of image Degree of offering, the distance between shelter and the flash lamp judged in the flash lamp irradiation area according to the parameter value Whether pre-determined distance is less than, comprising:
Judge whether the flash lamp contribution degree is less than default contribution degree;
If the flash lamp contribution degree is less than the default contribution degree, the shelter in the flash lamp irradiation area and institute are determined The distance between flash lamp is stated less than pre-determined distance.
4. the method as described in claim 1, which is characterized in that the mobile terminal further includes range sensor, the method Further include:
Obtain the distance between the range sensor and the shelter of the range sensor detection;
It is described that the main lightning stream of the flash lamp is reduced to pre-set current value, comprising:
It is determined with described according to the distance between the range sensor and the shelter apart from corresponding pre-set current value;
The main lightning stream of the flash lamp is reduced to described apart from corresponding pre-set current value.
5. a kind of mobile terminal, the mobile terminal includes flash lamp, which is characterized in that the mobile terminal includes:
Judgment module, it is default whether shelter and the distance between the flash lamp for judging flash lamp irradiation area are less than Distance;
Control module, if being less than the pre-determined distance for the distance between the shelter and the flash lamp, by the sudden strain of a muscle The main lightning stream of light lamp is reduced to pre-set current value;
The judgment module includes:
Detection unit obtains the image parameter of the camera detection of the mobile terminal for the preflashing stage in the flash lamp Parameter value, wherein the parameter value of described image parameter includes the R/G ratio and B/G ratio of image, or including flash lamp Contribution degree;
First judging unit, for judging the shelter in the flash lamp irradiation area and the flash of light according to the parameter value Whether the distance between lamp is less than pre-determined distance;
Wherein, when the parameter value includes the R/G ratio and B/G ratio of image, first judging unit is specific to use In:
Whether it is zero according to the R/G ratio of described image and B/G ratio, judges blocking in the flash lamp irradiation area Whether the distance between object and the flash lamp are less than pre-determined distance;
When the parameter value includes flash lamp contribution degree, first judging unit is specifically used for:
Whether be less than default contribution degree according to the flash lamp contribution degree, judge shelter in the flash lamp irradiation area with Whether the distance between described flash lamp is less than pre-determined distance;
Wherein, the flash lamp contribution degree is the ratio for the brightness that the flash lamp opens front and back image or the ratio of image quality.
6. mobile terminal as claimed in claim 5, which is characterized in that the parameter value of described image parameter includes the R/G of image Ratio and B/G ratio, first judging unit include:
First judgment sub-unit, for judging whether R/G ratio and the B/G ratio of described image are zero;
First determines subelement, if the R/G ratio and B/G ratio for described image are zero, determines that the flash lamp shines The distance between shelter and described flash lamp in region is penetrated less than pre-determined distance.
7. mobile terminal as claimed in claim 5, which is characterized in that the parameter value of described image parameter includes the flash of light of image Lamp contribution degree, first judging unit include:
Second judgment sub-unit, for judging whether the flash lamp contribution degree is less than default contribution degree;
Second determines subelement, if being less than the default contribution degree for the flash lamp contribution degree, determines that the flash lamp shines The distance between shelter and described flash lamp in region is penetrated less than pre-determined distance.
8. mobile terminal as claimed in claim 5, which is characterized in that the mobile terminal further include:
Acquiring unit, the distance between the range sensor and shelter for obtaining the range sensor detection;
The control module includes:
Second determination unit, for being determined with described according to the distance between the range sensor and the shelter apart from right The pre-set current value answered;
Control unit, for being reduced to the main lightning stream of the flash lamp with described apart from corresponding pre-set current value.
CN201710020930.7A 2017-01-12 2017-01-12 A kind of flash lamp control method and mobile terminal Active CN106603934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710020930.7A CN106603934B (en) 2017-01-12 2017-01-12 A kind of flash lamp control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710020930.7A CN106603934B (en) 2017-01-12 2017-01-12 A kind of flash lamp control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106603934A CN106603934A (en) 2017-04-26
CN106603934B true CN106603934B (en) 2019-11-26

Family

ID=58583287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710020930.7A Active CN106603934B (en) 2017-01-12 2017-01-12 A kind of flash lamp control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106603934B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883509A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Method of shooting through flash lamp, and terminal
CN105721762A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 Flash lamp control method and device
CN105842956A (en) * 2016-05-26 2016-08-10 广东欧珀移动通信有限公司 Flashlight control method, device and terminal equipment
CN105867047A (en) * 2016-05-18 2016-08-17 深圳天珑无线科技有限公司 Flashlight adjusting method and shooting device
CN106060417A (en) * 2016-06-24 2016-10-26 广东欧珀移动通信有限公司 Flashlight control method and terminal
CN106131428A (en) * 2016-07-29 2016-11-16 维沃移动通信有限公司 The control method of a kind of flash lamp and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721762A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 Flash lamp control method and device
CN104883509A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Method of shooting through flash lamp, and terminal
CN105867047A (en) * 2016-05-18 2016-08-17 深圳天珑无线科技有限公司 Flashlight adjusting method and shooting device
CN105842956A (en) * 2016-05-26 2016-08-10 广东欧珀移动通信有限公司 Flashlight control method, device and terminal equipment
CN106060417A (en) * 2016-06-24 2016-10-26 广东欧珀移动通信有限公司 Flashlight control method and terminal
CN106131428A (en) * 2016-07-29 2016-11-16 维沃移动通信有限公司 The control method of a kind of flash lamp and mobile terminal

Also Published As

Publication number Publication date
CN106603934A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN107734225B (en) A kind of image pickup method and device
TWI701605B (en) Living body detection method, device and computer readable storage medium
CN107358111B (en) A kind of method for secret protection and mobile terminal
CN106254682B (en) A kind of photographic method and mobile terminal
CN105827820B (en) A kind of glance prevention method and mobile terminal of mobile terminal
CN107147852B (en) Image photographing method, mobile terminal and computer-readable storage medium
CN107592453B (en) A kind of image pickup method and mobile terminal
TWI701601B (en) Method, device and equipment for living body detection
CN105759959A (en) Method for controlling user terminal and user terminal
CN106331517A (en) Soft light lamp brightness control method and electronic device
CN107357540A (en) The method of adjustment and mobile terminal of a kind of display direction
CN106210532B (en) One kind is taken pictures processing method and terminal device
AU2013401820B2 (en) Non-contact palmprint authentication method and device and portable terminal
CN106713715A (en) Photographing method and mobile terminal
CN104243842A (en) Flashlight intensity control method and image pickup device
CN106095278A (en) A kind of photographic method and mobile terminal
CN108280431A (en) Face recognition processing method, recognition of face processing unit and intelligent terminal
US20140286544A1 (en) Method and apparatus for optical fingerprint recognition using multiple exposure
CN107491775A (en) Human face in-vivo detection method, device, storage medium and equipment
CN104883509A (en) Method of shooting through flash lamp, and terminal
CN107763808A (en) Equipment adjusting method and related product
CN106303234A (en) Take pictures processing method and processing device
CN104754220A (en) Shooting method
CN105049710B (en) A kind of big visual angle camera control method and user terminal
CN105827987B (en) A kind of picture shooting method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant