CN106060417A - Flashlight control method and terminal - Google Patents

Flashlight control method and terminal Download PDF

Info

Publication number
CN106060417A
CN106060417A CN201610488628.XA CN201610488628A CN106060417A CN 106060417 A CN106060417 A CN 106060417A CN 201610488628 A CN201610488628 A CN 201610488628A CN 106060417 A CN106060417 A CN 106060417A
Authority
CN
China
Prior art keywords
terminal
target
face
flash lamp
image
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.)
Granted
Application number
CN201610488628.XA
Other languages
Chinese (zh)
Other versions
CN106060417B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610488628.XA priority Critical patent/CN106060417B/en
Publication of CN106060417A publication Critical patent/CN106060417A/en
Application granted granted Critical
Publication of CN106060417B publication Critical patent/CN106060417B/en
Expired - Fee Related 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices

Abstract

Embodiments of the invention disclose a flashlight control method. The flashlight control method comprises the following steps of obtaining a target face proportion of a picture shot by a camera of a terminal; determining target current corresponding to the target face proportion according to a mapping relation between the preset face proportion and flashlight startup current; and opening a flashlight through the target current, wherein the flashlight is arranged on the terminal and/or a selfie stick connected to the terminal. The embodiments of the invention also provides the terminal. Through the embodiments of the invention, the current corresponding to the face proportion can be determined through the face proportion, and the flashlight is turned on through the current, so that the brightness of the flashlight is adjusted.

Description

A kind of flash lamp control method and terminal
Technical field
The present invention relates to technical field of electronic equipment, particularly relate to a kind of flash lamp control method and terminal.
Background technology
Along with information technology is fast-developing, terminal (such as mobile phone, panel computer etc.) uses more and more frequent, collects in terminal The application become also gets more and more, for by taking pictures, and one of indispensable application becoming terminal of taking pictures.In order to increase shooting away from Autodyne from, user's selection self-shooting bar or shoot some only armrest arm cannot the scenery of shooting at close range, at self-shooting bar one End fixed terminal.At present, the brightness of flash lamp cannot be adjusted due to terminal or by self-shooting bar, cause using and autodyne When bar is taken pictures, poor effect of taking pictures.
Summary of the invention
Embodiments provide a kind of flash lamp control method and terminal, to the brightness of flash lamp is adjusted Whole.
Embodiment of the present invention first aspect provides a kind of flash lamp control method, including:
Obtain the target face accounting of the shooting image of the photographic head of terminal;
According to the mapping relations between default face accounting and flash lamp firing current, determine described target face accounting Corresponding target current;
With described target current open flash lamp, wherein, described flash lamp be arranged in described terminal and/or with described end On the self-shooting bar that end connects.
Embodiment of the present invention second aspect provides a kind of terminal, including:
Acquiring unit, is used for the target face accounting of the shooting image of the face the obtaining user photographic head with terminal;
Determine unit, for according to the mapping relations between face accounting and the flash lamp firing current preset, determining institute State the target current that the described target face accounting of acquiring unit acquisition is corresponding;
Control unit, for opening flash lamp, wherein, described flash of light with the described described target current determining that unit determines Lamp is arranged in described terminal and/or on the self-shooting bar that is connected with described terminal.
The embodiment of the present invention third aspect provides a kind of terminal, including:
Processor and memorizer;
Wherein, described processor, for calling the described executable program code in described memorizer, performs first aspect Some or all of step.
Implement the embodiment of the present invention, have the advantages that
It can be seen that in the embodiment of the present invention, by obtaining the target face accounting of the shooting image of the photographic head of terminal, According to the mapping relations between default face accounting and flash lamp firing current, determine the target that this target face accounting is corresponding Electric current, opens flash lamp, wherein, the self-shooting bar that this flash lamp is arranged in terminal and/or is connected with terminal with this target current On.Therefore, the electric current corresponding with face accounting can be determined by face accounting, and with this current start flash lamp, and then, to sudden strain of a muscle The brightness of light modulation is adjusted.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is some embodiments of the present invention, general for this area From the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the first embodiment of a kind of flash lamp control method disclosed in the embodiment of the present invention;
Fig. 1 a is that a kind of self-shooting bar disclosed in the embodiment of the present invention is connected with terminal and arranges flash lamp on self-shooting bar Schematic diagram;
Fig. 2 is the schematic flow sheet of the second embodiment of a kind of flash lamp control method disclosed in the embodiment of the present invention;
Fig. 3 a is the structural representation of the first embodiment of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 3 b is the structural representation of the acquiring unit of the terminal described in Fig. 3 a disclosed in the embodiment of the present invention;
Fig. 3 c is the another structural representation of the first embodiment of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of the second embodiment of a kind of terminal disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " in description and claims of this specification and described accompanying drawing Four " it is etc. for distinguishing different object rather than for describing particular order.Additionally, term " includes " and " having " and it Any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or the process of unit, method, be System, product or equipment are not limited to step or the unit listed, but the most also include step or the list do not listed Unit, or the most also include other step intrinsic for these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments It is contained at least one embodiment of the present invention.It is identical that each position in the description occurs that this phrase might not each mean Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and Implicitly being understood by, embodiment described herein can combine with other embodiments.
It should be noted that in the embodiment of the present invention, the face accounting of shooting image can be regarded as shooting face in image Ratio between image and whole shooting image, this ratio may also be understood to be: the pixel number that facial image comprises is with whole Ratio between the pixel number that shooting image comprises, it is of course also possible to determine face accounting by area between the two. Alternatively, the face in shooting image can be one or more, then, a facial image that can be nearest with photographic head and Ratio between whole shooting image as shooting image face accounting, or, can be with two or more people Ratio between face image and whole shooting image is as the face accounting of shooting image.Certainly, the face accounting of image is shot Can also be estimated by certain means, specifically can refer to following principle: in user is in the coverage of photographic head When, the distance between user and photographic head is the nearest, then the face accounting in shooting image is the biggest, user and photographic head away from Away from more, then the face accounting in shooting image is the least.
Terminal described by the embodiment of the present invention can include smart mobile phone (as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), panel computer, palm PC, notebook computer, filming apparatus (independent external camera, Video camera etc.), mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned end End is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Refer to Fig. 1, for the first embodiment flow process signal of a kind of flash lamp control method that the embodiment of the present invention provides Figure.Flash lamp control method described in the present embodiment, comprises the following steps:
101, the target face accounting of the shooting image of the photographic head of terminal is obtained.
Alternatively, step 101 can comprise the steps of:
11) target range between the face of user and the photographic head of terminal, is determined;
12), according to the mapping relations between distance and the face accounting preset, the people that described target range is corresponding is determined Face accounting, and using face accounting corresponding for this target range as target face accounting.
Wherein, step 11 can use range sensor detection user face and photographic head between target range, wherein, Photographic head in step 11 can be front-facing camera or the post-positioned pick-up head of terminal of terminal, is preposition taking the photograph at above-mentioned photographic head During as head, a certain position on front that range sensor may be provided at terminal and/or the self-shooting bar that is connected with this terminal, taking the photograph When being post-positioned pick-up head as head, on the back side that range sensor may be provided at terminal and/or the self-shooting bar that is connected with this terminal A certain position.
Still optionally further, step 11 can use human face detection tech to determine face district in the shooting image of photographic head Territory, then, chooses the certain point in this region, utilize range sensor detect this range sensor corresponding with this certain point with The distance between a certain position on the face at family, and as target range or.Multiple face detected in a step 11 Time, it may be determined that the target range between arbitrary face and the photographic head of terminal in the plurality of face, alternatively, will pass with distance A face that sensor is nearest and and the photographic head of terminal between distance as target range.In step 12, the distance preset And the mapping relations between face accounting can be determined before step 101, specifically determine that process can be:
Such as, can be according to such as following table mode, the mapping relations between default distance and face accounting, specific as follows:
As can be seen from the above table, when the distance between the face and terminal of user is 1.6 meters, face accounting is 37%. The most such as, when the distance between the face and terminal of user is 0.25 meter, face accounting is between 80% and 86%, user's When distance between face and terminal is more than 2 meters, face accounting is less than or equal to 25%.Therefore.By tabling look-up, can be quickly through Distance between face and terminal determines face accounting.
Alternatively, step 101 can comprise the steps of:
13), the shooting image of the photographic head of terminal is carried out Face datection;
14), face and described shooting image according to described detection determine target face accounting.
Wherein, by step 13, the shooting image of photographic head can be carried out Face datection, in shooting image, have multiple face Time, it may be determined that the pixel number in shooting image of at least one face in the plurality of face, and by this pixel number And the target face accounting of the face that the ratio between the shooting pixel number that comprises of image is as user and shooting image.Can Selection of land, determines nearest with terminal face pixel number in shooting image, and by this pixel number and shooting Ratio between the pixel number that image comprises as user face with shooting image target face accounting.
Alternatively, before performing step 101, the annexation between terminal and self-shooting bar, terminal and auto heterodyne can be set up Can be established a connection by bluetooth between bar, or, self-shooting bar has earphone cord, this earphone cord is inserted the earphone of terminal Hole, or, self-shooting bar has data wire, this data wire is inserted into the USB interface of terminal.As shown in Figure 1a, shown in Fig. 1 a Being placed on self-shooting bar for terminal, it can be seen that self-shooting bar is provided above with flash lamp, certainly, Fig. 1 a is only merely an example, Flash lamp can also be provided in terminal.
Alternatively, step 101 can be performed in the case of terminal receives flashing light light open command or photographing instruction, Wherein, this flashing light light open command or photographing instruction can be triggered by self-shooting bar or terminal, and such as, user presses on self-shooting bar Certain button in face, generates photographing instruction, and this photographing instruction is sent to terminal, or, terminal generates photographing instruction.
102, according to the mapping relations between face accounting and the flash lamp firing current preset, described target face is determined The target current that accounting is corresponding.
Wherein, before step 101, it may be determined that the mapping between face accounting and the flash lamp firing current preset is closed System.
Such as, can be according to such as following table mode, the mapping relations between default face accounting and flash lamp firing current, tool Body is as follows:
Face accounting scope Flash lamp firing current
90%~75% 30mA
75%~60% 300mA
60%~48% 800mA
48%-37% 1A
37%~25% 1.2A
25%-0 1.5A
As can be seen from the above table, when face accounting is 80%, flash lamp firing current is 30mA.The most such as, at face When accounting is 45%, flash lamp firing current is 1A, and when face accounting is 36%, flash lamp firing current is 1.2A.Therefore, By tabling look-up, can quickly be determined the firing current of flash lamp by face accounting.
Further, it is generally the case that flash lamp firing current is the biggest, corresponding brightness of flash lamp is the biggest, thus, can lead to Cross and above-mentioned flash lamp firing current is controlled, to realize the brightness of flash lamp is adjusted, if being used for taking pictures, then can be right The brightness of the flash lamp during taking pictures is regulated, thus, effect of taking pictures is more preferable.
103, with described target current open flash lamp, wherein, described flash lamp be arranged in described terminal and/or with institute State on the self-shooting bar that terminal connects.
Wherein, when flash lamp is arranged in terminal, then open flash lamp with target current.It is arranged at flash lamp and is somebody's turn to do During the self-shooting bar that terminal connects, then control self-shooting bar and open flash lamp with this target current.
Alternatively, step 103 may also be understood to be when flash lamp is arranged on the self-shooting bar being connected with terminal, can be by this mesh Mark electric current is sent to self-shooting bar so that self-shooting bar opens flash lamp with this target current.
Certainly, above-mentioned flash lamp can more than one, such as, be respectively provided with above terminal and self-shooting bar at least one flash of light Lamp.
Alternatively, between step 102 and step 103, the flash lamp control instruction of user's input can be received or take pictures Instruction, this flash lamp control instruction or photographing instruction can be triggered by the button on self-shooting bar or be touched by the button in terminal Send out, or, other equipment (such as wearable device) with terminal binding trigger.Flash lamp control instruction is received in terminal Time, then open flash lamp with target current, determine the firing current of flash lamp the most in advance, until instructing, light flash lamp, Flash lamp can be improved and open efficiency.When terminal receives photographing instruction, then open flash lamp with target current, and clap According to.
It can be seen that in the embodiment of the present invention, by obtaining the target face accounting of the shooting image of the photographic head of terminal, According to the mapping relations between default face accounting and flash lamp firing current, determine the target that this target face accounting is corresponding Electric current, opens flash lamp, wherein, the self-shooting bar that this flash lamp is arranged in terminal and/or is connected with terminal with this target current On.Therefore, the electric current corresponding with this face accounting can be determined by face accounting, and with this current start flash lamp, and then, right The brightness of flash lamp is adjusted.If being used for taking pictures, then the brightness of the flash lamp during taking pictures can be regulated, thus, Effect of taking pictures is more preferable.
With above-described embodiment as one man, refer to Fig. 2, a kind of flash lamp control method provided for the embodiment of the present invention Second embodiment schematic flow sheet.Flash lamp control method described in the present embodiment, comprises the following steps:
201, the target face accounting of the shooting image of the photographic head of terminal is obtained.
202, according to the mapping relations between face accounting and the flash lamp firing current preset, described target face is determined The target current that accounting is corresponding.
203, current environment light intensity value is determined.
Alternatively, terminal may utilize ambient light sensor detection current environment light intensity value, and this ambient light sensor is arranged On the self-shooting bar being connected in terminal or with terminal.
Alternatively, step 203 may also include the steps of:
31) average brightness value of described shooting image, is obtained;
32), the average brightness value of each pre-set image obtained in pre-set image storehouse, each in described pre-set image storehouse Individual pre-set image carries ambient light intensity level;
33) average brightness value of described shooting image and the average brightness value of each pre-set image described, are calculated respectively The absolute value of difference;
34), each absolute value calculated is contrasted, obtain the described absolute value of minimum;
35) pre-set image corresponding to minimum described absolute value, is obtained as target pre-set image;
36), the described ambient light intensity level that described target pre-set image carries is set to current environment light intensity value.
In the embodiment of the present invention, step 31) the concrete mode of average brightness value that obtains shooting image can be:
Obtain the brightness value of the shooting all pixels of image, and the average brightness value calculating the shooting all pixels of image is made For shooting the average brightness value of image.
In the embodiment of the present invention, terminal will obtain brightness value and the shooting all pixels of image of the shooting all pixels of image The total quantity of point, then the brightness value of all pixels obtained is added up, then divided by the total quantity of all pixels to obtain Must shoot the average brightness value of all pixels of image, this average brightness value is just for the average brightness value of shooting image.Wherein, eventually End is obtained the brightness value of the shooting all pixels of image and can be obtained by gray scale algorithm.Illustrate, if shooting image Color mode is RGB color pattern, then terminal can utilize a brightness value calculating pixel in below equation:
GRAY=0.299*RED+0.587*GREEN+0.114*BLUE;Or,
GRAY=(RED*306+GREEN*601+BLUE*117+512)/1024;
Wherein, GRAY is the brightness that gray value i.e. represents image, and RED, GREEN, BULE are respectively RGB color mode image The color value of red, green, blue passage of pixel.
As the optional embodiment of one, the average brightness value of each pre-set image in pre-set image storehouse can be Obtain in advance and be tied to again on each pre-set image.In step 32) in, terminal obtains each in pre-set image storehouse and presets The average brightness value of image has only to obtain the most permissible with the average brightness value of pre-set image binding, such as, and pre-set image storehouse In each pre-set image have unique mark of correspondence, can be obtained by unique mark of pre-set image and preset figure Average brightness value as binding.
As the optional embodiment of one, step 32) obtain the average of each pre-set image in pre-set image storehouse The concrete mode of brightness value can be:
For each pre-set image in pre-set image storehouse, obtain the brightness value of all pixels of described pre-set image, And calculate the average brightness value average brightness value as described pre-set image of all pixels of described pre-set image.
In this embodiment, terminal, by for each pre-set image in pre-set image storehouse, obtains pre-set image institute There are brightness value and the total quantity of all pixels of pre-set image of pixel, then the brightness value of all pixels obtained is carried out Cumulative, then divided by the total quantity of all pixels to obtain the average brightness value of all pixels of pre-set image, this mean flow rate Value is just for the average brightness value of pre-set image.Wherein, the brightness value obtaining all pixels of pre-set image can also pass through gray scale Algorithm calculates.
Alternatively, step 203 may also include the steps of:
37) average brightness value of the shooting image of described photographic head shooting, is obtained;
38), according to the mapping relations between brightness value and the standard environment light intensity value preset, described mean flow rate is determined The etalon optical power angle value that value is corresponding;
39), using standard environment light intensity value corresponding for described average brightness value as current environment light intensity value.
Wherein, in step 38, can pre-build the mapping table between a brightness value and standard environment light intensity value, this reflects Firing table can represent the mapping relations between brightness value and standard environment light intensity value, and concrete principle of setting up can be as follows: brightness value Arranging between 0~255, comprising 0,1,2 ..., 255,256 brightness degrees altogether, it is utilized respectively ambient light sensor and measures Standard environment light intensity value corresponding under each brightness value environment, then, can find different brightness value corresponding by look-up table Standard environment light intensity value.For non-integral brightness value, before tabling look-up, this brightness value can be carried out the process that rounds up. Such as, average brightness value is 123.47, then the average brightness value after rounding up is 123.
204, judge that whether described current environment light intensity value is less than predetermined threshold value.
Wherein, predetermined threshold value can be arranged voluntarily by system default or user, and the concrete value for predetermined threshold value can depend on Depending on specifically used scene, in this no limit.
The most do not perform step 205.
205, if so, with described target current open flash lamp, wherein, described flash lamp be arranged in described terminal and/ Or on the self-shooting bar being connected with described terminal.
Wherein, the specific descriptions of other steps in embodiment 2 refer to the tool of each step in the embodiment described by Fig. 1 Body describes, and does not repeats them here.
Below for implementing the device of the flash lamp control method described by Fig. 1 or Fig. 2, specific as follows:
Refer to Fig. 3 a, for the first embodiment structural representation of a kind of terminal that the embodiment of the present invention provides.This enforcement Terminal described in example, including: acquiring unit 301, determines that unit 302 and control unit 303 are specific as follows:
Acquiring unit 301, is used for the target face accounting of the shooting image of the face the obtaining user photographic head with terminal;
Determine unit 302, for according to the mapping relations between face accounting and the flash lamp firing current preset, determining Target current corresponding to described target face accounting that described acquiring unit 301 obtains;
Control unit 303, for opening flash lamp, wherein, institute with the described described target current determining that unit 302 determines State flash lamp to be arranged in described terminal and/or on the self-shooting bar that is connected with described terminal.
Alternatively, described acquiring unit 301 is used for:
Determine the target range between the face of user and the photographic head of terminal, according to default distance and face accounting it Between mapping relations, determine the face accounting that described target range is corresponding, and face accounting corresponding for this target range made For target face accounting.
Alternatively, described acquiring unit 301 also particularly useful for:
Utilize range sensor detection user face and the photographic head of terminal between target range, wherein, described away from On the self-shooting bar being arranged in described terminal from sensor and/or be connected with described terminal.
Alternatively, the described acquiring unit 301 of the terminal as described in Fig. 3 b, Fig. 3 a includes:
Detection module 3011, for carrying out Face datection to the shooting image of the photographic head of terminal;
First determines module 3012, for determining that target face accounts for according to the face of described detection with described shooting image Ratio.
Alternatively, the terminal as described in Fig. 3 c, Fig. 3 a may also include that judging unit 304, specific as follows:
Described determine unit 302 also particularly useful for:
According to the mapping relations between face accounting and the flash lamp firing current preset, determine described acquiring unit After the target current that the 301 described target face accountings obtained are corresponding, determine current environment light intensity value;
Judging unit 304, for judging whether the described described current environment light intensity value determining that unit 302 determines is less than With described, predetermined threshold value, if the judged result of described judging unit 304 is yes, is then determined that unit is true by described control unit 303 Fixed described target current opens flash lamp.
Still optionally further, described determine unit 302 specifically for:
Utilizing ambient light sensor to detect current environment light intensity value, wherein, described ambient light sensor is arranged on described On the self-shooting bar being connected in terminal or with described terminal;
Alternatively, described determine that unit 302 includes:
Acquisition module (does not marks in figure), for obtaining the average brightness value of described shooting image;
Described acquisition module, is additionally operable to:
The average brightness value of each pre-set image in acquisition pre-set image storehouse, in described pre-set image storehouse, each is pre- If image carries ambient light intensity level;
Computing module (does not marks in figure), for calculate respectively the average brightness value of described shooting image with described each The absolute value of the difference of the average brightness value of pre-set image;
Contrast module (not marking in figure), for being contrasted by each absolute value calculated, obtains the institute of minimum State absolute value;
Described acquisition module, is additionally operable to:
Obtain pre-set image corresponding to minimum described absolute value as target pre-set image;
Second determines module (not marking in figure), for the described ambient light intensity carried by described target pre-set image Value is set to current environment light intensity value.
It can be seen that the terminal described in the embodiment of the present invention is by obtaining the mesh of the shooting image of the photographic head of terminal Mark face accounting, according to the mapping relations between default face accounting and flash lamp firing current, determines that this target face accounts for Than corresponding target current, opening flash lamp with this target current, wherein, this flash lamp is arranged in terminal and/or and terminal On the self-shooting bar connected.Therefore, the electric current corresponding with this face accounting can be determined by face accounting, and dodge with this current start Light modulation, and then, the brightness to flash lamp is adjusted.If being used for taking pictures, then the brightness of the flash lamp during taking pictures can be added With regulation, thus, effect of taking pictures is more preferable.
Refer to Fig. 4, for the second example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.The present embodiment Described in terminal, including at least one input equipment 1000;At least one outut device 2000;At least one processor 3000, such as CPU;With memorizer 4000, above-mentioned input equipment 1000, outut device 2000, processor 3000 and memorizer 4000 are connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely contact panel, physical button or mouse, fingerprint recognition module etc. Deng.
Above-mentioned outut device 2000 concretely display screen.
Above-mentioned memorizer 4000 can be high-speed RAM memorizer, it is possible to for non-labile memorizer (non-volatile Memory), such as disk memory.Above-mentioned memorizer 4000 is used for storing batch processing code, above-mentioned input equipment 1000, defeated Go out equipment 2000 and processor 3000 for calling in memorizer 4000 program code of storage, perform following operation:
Above-mentioned processor 3000, is used for:
Obtain the target face accounting of the shooting image of the photographic head of terminal;
According to the mapping relations between default face accounting and flash lamp firing current, determine described target face accounting Corresponding target current;
With described target current open flash lamp, wherein, described flash lamp be arranged in described terminal and/or with described end On the self-shooting bar that end connects.
Alternatively, above-mentioned processor 3000 obtains the target face accounting of the shooting image of the photographic head of terminal, including:
Determine the target range between the face of user and the photographic head of terminal;
According to the mapping relations between default distance and face accounting, determine that face corresponding to described target range accounts for Ratio, and using face accounting corresponding for this target range as target face accounting.
Still optionally further, above-mentioned processor 3000 determine target between the face of user and the photographic head of terminal away from From, including:
Utilize range sensor detection user face and the photographic head of terminal between target range, wherein, described away from On the self-shooting bar being arranged in described terminal from sensor and/or be connected with described terminal.
Alternatively, above-mentioned processor 3000 obtains the target face accounting of the shooting image of the photographic head of terminal, including:
The shooting image of the photographic head of terminal is carried out Face datection;
Facial image according to described detection and described shooting image determine target face accounting.
Alternatively, above-mentioned processor 3000 closes according to the mapping between default face accounting and flash lamp firing current System, after determining the target current that described target face accounting is corresponding, and described with described target current open flash lamp it Before, also particularly useful for:
Determine current environment light intensity value;
Judge that whether described current environment light intensity value is less than predetermined threshold value;
The most then perform described with described target current unlatching flash lamp.
Still optionally further, above-mentioned processor 3000 determines current environment light intensity value, including:
Utilizing ambient light sensor to detect current environment light intensity value, wherein, described ambient light sensor is arranged on described On the self-shooting bar being connected in terminal or with described terminal;
Or,
Obtain the average brightness value of described shooting image;
The average brightness value of each pre-set image in acquisition pre-set image storehouse, in described pre-set image storehouse, each is pre- If image carries ambient light intensity level;
Calculate the difference of the average brightness value of described shooting image and the average brightness value of each pre-set image described respectively Absolute value;
Each absolute value calculated is contrasted, obtains the described absolute value of minimum;
Obtain pre-set image corresponding to minimum described absolute value as target pre-set image;
The described ambient light intensity level carried by described target pre-set image is set to current environment light intensity value.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can store journey Sequence, this program includes the part or all of step of any flash lamp control method described in said method embodiment when performing Suddenly.
Although combine each embodiment invention has been described at this, but, implementing the present invention for required protection During, those skilled in the art are by checking described accompanying drawing, disclosure and appended claims, it will be appreciated that and real Other changes of existing described open embodiment.In the claims, " include " that (comprising) word is not excluded for other compositions Part or step, "a" or "an" is not excluded for multiple situations.Single processor or other unit can realize claim In some functions enumerating.Mutually different has been recited in mutually different dependent some measure, it is not intended that these are arranged Executing to combine produces good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer journey Sequence product.Therefore, in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware The form of embodiment.And, the present invention can use in one or more calculating wherein including computer usable program code The upper computer program implemented of machine usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, provides or as the one of hardware together with other hardware Part, it would however also be possible to employ other distribution forms, as by Internet or other wired or wireless telecommunication system.
The present invention be with reference to the method for the embodiment of the present invention, device (equipment) and computer program flow chart with/ Or block diagram describes.It should be understood that can by each flow process in computer program instructions flowchart and/or block diagram and/ Or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided To the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce one Individual machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, without departing from this In the case of bright spirit and scope, it can be carried out various amendment and combination.Correspondingly, the specification and drawings is only institute The exemplary illustration of the present invention that attached claim is defined, and be considered as covering arbitrarily repairing in the scope of the invention with all Change, change, combine or equivalent.Obviously, those skilled in the art the present invention can be carried out various change and modification and not Depart from the spirit and scope of the present invention.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (13)

1. a flash lamp control method, it is characterised in that including:
Obtain the target face accounting of the shooting image of the photographic head of terminal;
According to the mapping relations between default face accounting and flash lamp firing current, determine that described target face accounting is corresponding Target current;
Opening flash lamp with described target current, wherein, described flash lamp is arranged in described terminal and/or connects with described terminal On the self-shooting bar connect.
Method the most according to claim 1, it is characterised in that the target of the shooting image of the photographic head of described acquisition terminal Face accounting, including:
Determine the target range between the face of user and the photographic head of terminal;
According to the mapping relations between default distance and face accounting, determine the face accounting that described target range is corresponding, And using face accounting corresponding for this target range as target face accounting.
Method the most according to claim 2, it is characterised in that described determine between the face of user and the photographic head of terminal Target range, including:
Utilizing the target range between face and the photographic head of terminal of range sensor detection user, wherein, described distance passes Sensor is arranged in described terminal and/or on the self-shooting bar that is connected with described terminal.
Method the most according to claim 1, it is characterised in that the target of the shooting image of the photographic head of described acquisition terminal Face accounting, including:
The shooting image of the photographic head of terminal is carried out Face datection;
Facial image according to described detection and described shooting image determine target face accounting.
5. according to the method described in any one of Claims 1-4, it is characterised in that described basis preset face accounting and sudden strain of a muscle Mapping relations between light modulation firing current, after determining the target current that described target face accounting is corresponding, and described with Before described target current opens flash lamp, described method also includes:
Determine current environment light intensity value;
Judge that whether described current environment light intensity value is less than predetermined threshold value;
The most then perform described with described target current unlatching flash lamp.
Method the most according to claim 5, it is characterised in that described determine current environment light intensity value, including:
Utilizing ambient light sensor to detect current environment light intensity value, wherein, described ambient light sensor is arranged on described terminal On the self-shooting bar above or being connected with described terminal;
Or,
Obtain the average brightness value of described shooting image;
The average brightness value of each pre-set image in acquisition pre-set image storehouse, in described pre-set image storehouse, each presets figure As carrying ambient light intensity level;
Calculate the average brightness value of described shooting image and the exhausted of the difference of the average brightness value of each pre-set image described respectively To value;
Each absolute value calculated is contrasted, obtains the described absolute value of minimum;
Obtain pre-set image corresponding to minimum described absolute value as target pre-set image;
The described ambient light intensity level carried by described target pre-set image is set to current environment light intensity value.
7. a terminal, it is characterised in that including:
Acquiring unit, is used for the target face accounting of the shooting image of the face the obtaining user photographic head with terminal;
Determine unit, for according to preset face accounting and flash lamp firing current between mapping relations, determine described in obtain Take the target current that the described target face accounting of unit acquisition is corresponding;
Control unit, for opening flash lamp with the described described target current determining that unit determines, wherein, described flash lamp sets Put on the self-shooting bar being connected in described terminal and/or with described terminal.
Terminal the most according to claim 7, it is characterised in that described acquiring unit is used for:
Determine the target range between the face of user and the photographic head of terminal, according between default distance and face accounting Mapping relations, determine the face accounting that described target range is corresponding, and using face accounting corresponding for this target range as mesh Mark face accounting.
Terminal the most according to claim 8, it is characterised in that described acquiring unit also particularly useful for:
Utilizing the target range between face and the photographic head of terminal of range sensor detection user, wherein, described distance passes Sensor is arranged in described terminal and/or on the self-shooting bar that is connected with described terminal.
Terminal the most according to claim 7, it is characterised in that described acquiring unit includes:
Detection module, for carrying out Face datection to the shooting image of the photographic head of terminal;
First determines module, determines target face accounting for the face according to described detection and described shooting image.
11. according to the terminal described in any one of claim 7 to 10, it is characterised in that
Described determine unit also particularly useful for:
According to the mapping relations between face accounting and the flash lamp firing current preset, determine what described acquiring unit obtained After the target current that described target face accounting is corresponding, determine current environment light intensity value;
Described terminal also includes:
Judging unit, for judging whether the described described current environment light intensity value determining that unit determines is less than predetermined threshold value, If the judged result of described judging unit is yes, then by described control unit with the described described target current determining that unit determines Open flash lamp.
12. terminals according to claim 11, it is characterised in that described determine unit specifically for:
Utilizing ambient light sensor to detect current environment light intensity value, wherein, described ambient light sensor is arranged on described terminal On the self-shooting bar above or being connected with described terminal;
Or,
Described determine that unit includes:
Acquisition module, for obtaining the average brightness value of described shooting image;
Described acquisition module, is additionally operable to:
The average brightness value of each pre-set image in acquisition pre-set image storehouse, in described pre-set image storehouse, each presets figure As carrying ambient light intensity level;
Computing module, for calculating the average brightness value of described shooting image and the brightest of each pre-set image described respectively The absolute value of the difference of angle value;
Contrast module, for being contrasted by each absolute value calculated, obtains the described absolute value of minimum;
Described acquisition module, is additionally operable to:
Obtain pre-set image corresponding to minimum described absolute value as target pre-set image;
Second determines module, is set to current environment for the described ambient light intensity level carried by described target pre-set image Light intensity value.
13. 1 kinds of terminals, it is characterised in that including:
Processor and memorizer;Wherein, described processor is by calling the code in described memorizer or instruction to perform such as power Profit requires the method described in 1 to 6 any one.
CN201610488628.XA 2016-06-24 2016-06-24 A kind of flash lamp control method and terminal Expired - Fee Related CN106060417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610488628.XA CN106060417B (en) 2016-06-24 2016-06-24 A kind of flash lamp control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610488628.XA CN106060417B (en) 2016-06-24 2016-06-24 A kind of flash lamp control method and terminal

Publications (2)

Publication Number Publication Date
CN106060417A true CN106060417A (en) 2016-10-26
CN106060417B CN106060417B (en) 2019-05-17

Family

ID=57166981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610488628.XA Expired - Fee Related CN106060417B (en) 2016-06-24 2016-06-24 A kind of flash lamp control method and terminal

Country Status (1)

Country Link
CN (1) CN106060417B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603934A (en) * 2017-01-12 2017-04-26 维沃移动通信有限公司 Flash lamp control method and mobile terminal
CN106773463A (en) * 2016-12-26 2017-05-31 上海艺时网络科技有限公司 Self-shooting bar and electronic equipment
CN106791426A (en) * 2017-01-09 2017-05-31 深圳市金立通信设备有限公司 Method and terminal that a kind of use light compensating lamp is taken pictures
CN108322649A (en) * 2018-02-07 2018-07-24 深圳市沃特沃德股份有限公司 The control method and device of panorama camera shooting
CN108495056A (en) * 2018-06-12 2018-09-04 努比亚技术有限公司 Photographic method, mobile terminal and computer readable storage medium
CN108965733A (en) * 2018-08-27 2018-12-07 奇酷互联网络科技(深圳)有限公司 Light supplement control method, intelligent wearable device, Intelligent supplemental lighting system and device
CN109639991A (en) * 2018-12-26 2019-04-16 上海与德通讯技术有限公司 A kind of photographic method, device, terminal and storage medium
CN109995984A (en) * 2017-12-29 2019-07-09 杭州萤石软件有限公司 A kind of means of illumination, device, electronic equipment and storage medium
CN111275907A (en) * 2020-01-20 2020-06-12 江苏恒宝智能系统技术有限公司 Multi-channel identification authentication method and multi-channel identification authentication terminal
CN112384822A (en) * 2018-07-09 2021-02-19 Lg伊诺特有限公司 Method and device for outputting light
CN112969029A (en) * 2021-02-02 2021-06-15 展讯通信(上海)有限公司 Light source brightness control method and device, storage medium and 3D (three-dimensional) structured light module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036017A (en) * 2009-09-30 2011-04-27 华晶科技股份有限公司 Method for controlling flashing module
CN102170730A (en) * 2011-04-12 2011-08-31 惠州Tcl移动通信有限公司 Mobile terminal and flash lamp control method thereof
CN103810463A (en) * 2012-11-14 2014-05-21 汉王科技股份有限公司 Face recognition device and face image detection method
EP2806373A2 (en) * 2013-05-22 2014-11-26 ASUSTeK Computer Inc. Image processing system and method of improving human face recognition
CN104243842A (en) * 2014-09-29 2014-12-24 广东欧珀移动通信有限公司 Flashlight intensity control method and image pickup device
US20150086119A1 (en) * 2013-09-20 2015-03-26 Casio Computer Co., Ltd. Image processing apparatus, image processing method and recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036017A (en) * 2009-09-30 2011-04-27 华晶科技股份有限公司 Method for controlling flashing module
CN102170730A (en) * 2011-04-12 2011-08-31 惠州Tcl移动通信有限公司 Mobile terminal and flash lamp control method thereof
CN103810463A (en) * 2012-11-14 2014-05-21 汉王科技股份有限公司 Face recognition device and face image detection method
EP2806373A2 (en) * 2013-05-22 2014-11-26 ASUSTeK Computer Inc. Image processing system and method of improving human face recognition
US20150086119A1 (en) * 2013-09-20 2015-03-26 Casio Computer Co., Ltd. Image processing apparatus, image processing method and recording medium
CN104243842A (en) * 2014-09-29 2014-12-24 广东欧珀移动通信有限公司 Flashlight intensity control method and image pickup device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106773463A (en) * 2016-12-26 2017-05-31 上海艺时网络科技有限公司 Self-shooting bar and electronic equipment
CN106791426A (en) * 2017-01-09 2017-05-31 深圳市金立通信设备有限公司 Method and terminal that a kind of use light compensating lamp is taken pictures
CN106603934A (en) * 2017-01-12 2017-04-26 维沃移动通信有限公司 Flash lamp control method and mobile terminal
CN106603934B (en) * 2017-01-12 2019-11-26 维沃移动通信有限公司 A kind of flash lamp control method and mobile terminal
CN109995984A (en) * 2017-12-29 2019-07-09 杭州萤石软件有限公司 A kind of means of illumination, device, electronic equipment and storage medium
CN108322649A (en) * 2018-02-07 2018-07-24 深圳市沃特沃德股份有限公司 The control method and device of panorama camera shooting
CN108495056A (en) * 2018-06-12 2018-09-04 努比亚技术有限公司 Photographic method, mobile terminal and computer readable storage medium
CN112384822A (en) * 2018-07-09 2021-02-19 Lg伊诺特有限公司 Method and device for outputting light
CN108965733A (en) * 2018-08-27 2018-12-07 奇酷互联网络科技(深圳)有限公司 Light supplement control method, intelligent wearable device, Intelligent supplemental lighting system and device
CN109639991A (en) * 2018-12-26 2019-04-16 上海与德通讯技术有限公司 A kind of photographic method, device, terminal and storage medium
CN111275907A (en) * 2020-01-20 2020-06-12 江苏恒宝智能系统技术有限公司 Multi-channel identification authentication method and multi-channel identification authentication terminal
CN112969029A (en) * 2021-02-02 2021-06-15 展讯通信(上海)有限公司 Light source brightness control method and device, storage medium and 3D (three-dimensional) structured light module

Also Published As

Publication number Publication date
CN106060417B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN106060417A (en) Flashlight control method and terminal
CN108337433B (en) Photographing method, mobile terminal and computer readable storage medium
CN106210330A (en) A kind of image processing method and terminal
CN105791708B (en) A kind of filming control method, device and intelligent terminal
CN106331492A (en) Image processing method and terminal
CN104754219B (en) A kind of terminal
CN108288044B (en) Electronic device, face recognition method and related product
CN105872399B (en) Backlighting detecting and backlight detection system
CN105227855B (en) A kind of image processing method and terminal
CN103795931A (en) Information processing method and electronic equipment
CN106941588B (en) Data processing method and electronic equipment
CN104883509A (en) Method of shooting through flash lamp, and terminal
CN108765380A (en) Image processing method, device, storage medium and mobile terminal
CN104754220A (en) Shooting method
CN108718388B (en) Photographing method and mobile terminal
CN112672069A (en) Exposure method and apparatus
CN104394329B (en) A kind of photographic method, device and mobile terminal
CN106650583B (en) Method for detecting human face, device and terminal device
TWI505233B (en) Image processing method and image processing device
CN108564537B (en) Image processing method, image processing device, electronic equipment and medium
CN113177886B (en) Image processing method, device, computer equipment and readable storage medium
CN108600628B (en) Image capturing method and device, terminal and readable medium
CN109040579A (en) A kind of filming control method, terminal and computer-readable medium
CN107507601A (en) A kind of method and system of the camera supervised interface display effect of adjust automatically
CN111182199B (en) Electronic device and photographing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190517