CN106713780A - Control method for flash lamp and mobile terminal - Google Patents

Control method for flash lamp and mobile terminal Download PDF

Info

Publication number
CN106713780A
CN106713780A CN201710029456.4A CN201710029456A CN106713780A CN 106713780 A CN106713780 A CN 106713780A CN 201710029456 A CN201710029456 A CN 201710029456A CN 106713780 A CN106713780 A CN 106713780A
Authority
CN
China
Prior art keywords
mobile terminal
human face
data
contrast
brightness
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.)
Pending
Application number
CN201710029456.4A
Other languages
Chinese (zh)
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 CN201710029456.4A priority Critical patent/CN106713780A/en
Publication of CN106713780A publication Critical patent/CN106713780A/en
Pending legal-status Critical Current

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/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a control method for a flash lamp and a mobile terminal. The method comprises the steps of obtaining environment light brightness; if the environment light brightness is greater than a preset environment light brightness threshold value, obtaining image data collected by a camera of the mobile terminal; obtaining face data in the image data; calculating average brightness and contrast of the face data; and controlling the flash lamp of the mobile terminal to be started if the average brightness is smaller than a preset brightness threshold value and the contrast is smaller than a preset contrast threshold value. According to the method and the mobile terminal, when it is judged that the environment light brightness is greater than the preset brightness threshold value, the face data in an image collected by the camera is obtained; the average brightness and contrast of the face data are calculated; and when it is judged that the brightness of a face area is insufficient, the flash lamp is controlled to be started for light supplement. The problem that the brightness of the face in the photographed image is insufficient due to the flash lamp cannot be automatically started under a backlight environment is effectively solved, so the face area in the image photographed under the backlight environment is clear.

Description

The control method and mobile terminal of a kind of flash lamp
Technical field
The present invention relates to communication technical field, more particularly to a kind of flash lamp control method and mobile terminal.
Background technology
At present, when being taken pictures using mobile terminal (such as camera, mobile phone etc.), in order to make subject clear Clear prior art can automatically turn on the flash lamp of mobile terminal carries out light filling to subject.
Wherein, it is to the opening ways that control that sudden strain of a muscle is turned off the light in the prior art:Flash lamp is surveyed according to built-in light sensor The light returned from subject is measured, needed for being calculated in conjunction with camera parameter setting (such as aperture, ISO etc.) in itself The light exposure wanted is come to subject light filling, but if this light exposure still cannot make the clear of subject, i.e., When the light exposure that is calculated is not enough, mobile terminal can be controlled to open flash lamp and carry out light filling with to subject;And Flash lamp can be just closed when the light exposure for being calculated reaches institute's light requirement.
But, current this flash of light lights control scheme is in reference object backlight (i.e. body of the ambient light from subject Inject afterwards) scene when, then light sensor measurement ambient light light-inletting quantity it is very big, then need not be exposed, cause Flash lamp can not be automatically turned on, so as to cause the photo shot under backlight to be easy to occur subject (particularly face Position) unintelligible problem.
As can be seen here, flash of light lights control scheme of the prior art is when the scene of subject backlight is faced, it is impossible to The automatic opening of flash lamp is realized, the unsharp problem of subject in captured photo is easily caused.
The content of the invention
The embodiment of the present invention provides the control method and mobile terminal of a kind of flash lamp, to solve flash of light of the prior art Lights control scheme is when the scene of subject backlight is faced, it is impossible to realizes the automatic opening of flash lamp, easily causes and clapped The unsharp problem of subject in the photo taken the photograph.
In a first aspect, the embodiment of the invention provides a kind of control method of flash lamp, mobile terminal, the side are applied to Method includes:
Obtain environmental light brightness;
If the environmental light brightness is more than default environmental light brightness threshold value, the camera collection of the mobile terminal is obtained View data;
Obtain the human face data in described image data;
Calculate the mean flow rate and contrast of the human face data;
If the mean flow rate is less than predetermined luminance threshold value and the contrast is less than default contrast threshold, control Open the flash lamp of the mobile terminal.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal includes:
Environmental light brightness acquisition module, for obtaining environmental light brightness;
Image data acquisition module, if being more than default environmental light brightness threshold value for the environmental light brightness, obtains institute State the view data of the camera collection of mobile terminal;
Human face data acquisition module, for obtaining the human face data in described image data;
Computing module, mean flow rate and contrast for calculating the human face data;
Opening module, if for the mean flow rate to be less than predetermined luminance threshold value and the contrast is less than default contrast The flash lamp of the mobile terminal is opened in degree threshold value, then control.
So, the embodiment of the present invention is by that when judging that environmental light brightness is more than default environmental light brightness threshold value, can obtain The human face data in the image of camera collection is taken, and calculates the mean flow rate and contrast of human face data, so that according to bright Degree and contrast and corresponding threshold value come the human face region in the image for judging collection whether luminance shortage, it is determined that brightness not When sufficient, then control open flash lamp carry out light filling so that effectively solve backlight environment glitter down lamp cannot automatically turn on and Cause the problem of the face insufficient light in captured image so that the human face region in the image shot under backlight environment is still Old is clearly.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by institute in the description to the embodiment of the present invention The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the control method of the flash lamp of first embodiment of the invention;
Fig. 2 is the flow chart of the control method of the flash lamp of second embodiment of the invention;
Fig. 3 is the block diagram of the mobile terminal of third embodiment of the invention;
Fig. 4 is the block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 5 is the block diagram of the mobile terminal of fifth embodiment of the invention;
Fig. 6 is the structural representation of the mobile terminal of sixth embodiment of the invention.
Specific embodiment
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 Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
First embodiment
Reference picture 1, shows the flow chart of the control method of the flash lamp of one embodiment of the invention, the movement being applied to Terminal, methods described specifically may include steps of:
Step 101, obtains environmental light brightness;
Wherein it is possible to detect the brightness of ambient light first.
Step 102, if the environmental light brightness is more than default environmental light brightness threshold value, obtains taking the photograph for the mobile terminal As the view data of head collection;
Wherein, if environmental light brightness is more than default environmental light brightness threshold value, illustrate that the light-inletting quantity of ambient light is very big, clap Take the photograph the situation that object has backlight, then in order to avoid the problem that flash lamp cannot be automatically turned in the prior art, need exist for Carry out flash lamp control.First, in the preview mode of taking pictures of mobile terminal, the camera of unlatching can gather view data, Need exist for obtaining the view data in the preview interface of taking pictures of camera acquired image data, the i.e. mobile terminal.
Step 103, obtains the human face data in described image data;
Then, in order to avoid the problem that the face in the image captured when being taken pictures using mobile terminal is unclear, Here firstly the need of the human face data in the view data for obtaining preview interface.
Step 104, calculates the mean flow rate and contrast of the human face data;
Then, the mean flow rate of the human face data and the contrast of the human face data can be calculated, so that it is determined that preview The brightness case of the facial image in interface;
Step 105, if the mean flow rate is less than predetermined luminance threshold value and the contrast is less than default contrast threshold The flash lamp of the mobile terminal is opened in value, then control.
Finally, the mean flow rate can be compared with predetermined luminance threshold value, and by the contrast and default contrast Degree threshold value is compared, so that it is determined that the brightness of facial image in the preview image of current collection whether excessively dark, contrast is It is no too low.
If through judging that the mean flow rate and contrast that determine the human face data are respectively less than corresponding threshold value, illustrating current Facial image in the preview image that will be shot is not clear enough, it is necessary to open flash lighting, therefore, need exist for control and open Open the flash lamp of mobile terminal.
So, the embodiment of the present invention is by that when judging that environmental light brightness is more than default environmental light brightness threshold value, can obtain The human face data in the image of camera collection is taken, and calculates the mean flow rate and contrast of human face data, so that according to bright Degree and contrast and corresponding threshold value come the human face region in the image for judging collection whether luminance shortage, it is determined that brightness not When sufficient, then control open flash lamp carry out light filling so that effectively solve backlight environment glitter down lamp cannot automatically turn on and Cause the problem of the face insufficient light in captured image so that the human face region in the image shot under backlight environment is still Old is clearly.
Second embodiment
Reference picture 2, shows the flow chart of the control method of the flash lamp of another embodiment of the present invention, the shifting being applied to Dynamic terminal, idiographic flow is as follows:
First, environmental light brightness is obtained, if the environmental light brightness is more than default environmental light brightness threshold value, movement is read The view data of the shooting preview interface of the camera application program of terminal;
Wherein, the view data of shooting preview interface is the view data of camera collection, therefore, need exist for reading institute State the view data of the camera collection of mobile terminal.
Wherein, in one embodiment, when the view data of camera collection of the mobile terminal is read, if inspection The unlatching operation for the camera of the mobile terminal is measured, then controls the view data in camera collection photographed scene;Come Obtain described image data.
Specifically, when user opens the camera application program of mobile terminal, then system will be detected for the phase The unlatching operation of machine application program.If detecting unlatching operation, camera can be opened to gather in photographed scene View data (is displayed in the view data in shooting preview interface), finally, it is possible to obtain the view data.
Then, recognition of face is carried out to the view data using face recognition algorithms, judges to whether there is in view data Face;
If there is face, then the human face data in described image data is obtained;
Wherein, in the human face data in obtaining described image data, face can be carried out by described image data Identification, determines the facial contour in described image data;Then, in described image data, obtain in the facial contour Human face data.
Then, the mean flow rate and contrast of the human face data are calculated;
Wherein, when the mean flow rate of the human face data is calculated, can be by calculating each in the human face data The brightness of pixel;The average value of the brightness of all pixels point in the human face data is calculated again.
Then, judge whether the mean flow rate and the contrast are respectively less than corresponding predetermined threshold value;
If the mean flow rate less than predetermined luminance threshold value (luminance threshold can between 120~136 value, it is excellent Choosing value is 128) and the contrast is less than default contrast threshold, then open automatic flash pattern of taking pictures (that is, control unlatching The flash lamp of the mobile terminal).
If conversely, by judging to find that mean flow rate and contrast are unsatisfactory for the above-mentioned bar less than corresponding predetermined threshold value Do not include face in part, or the view data of collection, then do not carry out any operation.
Alternatively, when the flash lamp of the mobile terminal is opened in control, the mean flow rate can judged less than pre- If luminance threshold and the contrast are less than default contrast threshold, send and represent and remind user to open the flash lamp Reminder message;Then, if detecting the confirmation operation for the reminder message, the flash of light of the mobile terminal is opened in control Lamp.
Specifically, the form of the reminder message can be the tinkle of bells, vibrations, text importing, speech play etc..If text Word shows that the prompting word may be displayed on shooting preview interface.
So, the embodiment of the present invention is in the case where face position luminance shortage is detected, will not enforced opening flash lamp, But issuing the user with can open flash lamp with the prompting to face's light filling, so, if user does want to take backlight people The photo of the partially dark effect of face, the embodiment of the present invention will not enforced opening flash lamp, more disclosure satisfy that the demand of taking pictures of user.
By means of the technical scheme of the above embodiment of the present invention, the embodiment of the present invention can be more than environmental light brightness is judged During default environmental light brightness threshold value (in the case that i.e. subject is in backlight), the picture number that acquisition is taken pictures in preview interface According to, and when including human face data in the view data, mean flow rate and contrast are calculated to human face data, so as to find it Less than predetermined threshold value when, flexible automatic flash lamp carries out light filling to human face region so that in the case of backlight still Flash lamp can be automatically turned on, it is to avoid the partially dark problem of the photo face of shooting.
3rd embodiment
Reference picture 3, shows the block diagram of the mobile terminal of one embodiment of the invention.The mobile terminal of the embodiment of the present invention The details of the control method of flash lamp in embodiment one to embodiment two can be realized, and reaches identical effect.Moved shown in Fig. 3 Dynamic terminal includes:
Environmental light brightness acquisition module 31, for obtaining environmental light brightness;
Image data acquisition module 32, if being more than default environmental light brightness threshold value for the environmental light brightness, obtains The view data of the camera collection of the mobile terminal;
Human face data acquisition module 33, for obtaining the human face data in described image data;
Computing module 34, mean flow rate and contrast for calculating the human face data;
Opening module 35, if for the mean flow rate to be less than predetermined luminance threshold value and the contrast is right less than default Than degree threshold value, then the flash lamp of the mobile terminal is opened in control.
Fourth embodiment
On the basis of 3rd embodiment, alternatively, reference picture 4, the human face data obtains mould 33 to be included:
Profile determination sub-module 331, for carrying out recognition of face to described image data, in determining described image data Facial contour;
Human face data acquisition submodule 332, in described image data, obtaining the face number in the facial contour According to.
Alternatively, reference picture 4, the opening module 35 includes:
Message sending submodule 351, if being less than less than predetermined luminance threshold value and the contrast for the mean flow rate Default contrast threshold, then send the reminder message for representing and reminding user to open the flash lamp;
Submodule 352 is opened, if for detecting the confirmation operation for the reminder message, the shifting is opened in control The flash lamp of dynamic terminal.
Alternatively, reference picture 4, described image data acquisition module 32 includes:
Control submodule 321, if for detecting the unlatching operation for the camera of the mobile terminal, control shooting View data in head collection photographed scene;
Acquisition submodule 322, for obtaining described image data.
Alternatively, reference picture 4, the computing module 34 includes:
Brightness calculation submodule 341, the brightness for calculating each pixel in the human face data;
Mean flow rate calculating sub module 342, the average value of the brightness for calculating all pixels point in the human face data.
Mobile terminal by above-mentioned module, by judging that environmental light brightness is more than default environmental light brightness threshold value (i.e. quilt In the case that reference object is in backlight) when, the view data that acquisition is taken pictures in preview interface, and included in the view data During human face data, mean flow rate and contrast are calculated to human face data, so that when finding that they are less than predetermined threshold value, flexibly Automatic flash lamp carries out light filling to human face region so that remain able to automatically turn on flash lamp in the case of backlight, it is to avoid The partially dark problem of the photo face of shooting.
5th embodiment
Fig. 5 is the block diagram of the mobile terminal of another embodiment of the invention.Mobile terminal 500 shown in Fig. 5 includes:At least One processor 501, memory 502, at least one network interface 504 and user interface 503.Each in mobile terminal 500 Component is coupled by bus system 505.It is understood that bus system 505 is used to realize that the connection between these components to be led to Letter.Bus system 505 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.It but is For the sake of clear explanation, in Figure 5 various buses are all designated as bus system 505.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 502 be intended to including but not limited to these With the memory of any other suitable type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for Realize various basic businesses and process hardware based task.Application program 5022, comprising various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program for calling memory 502 to store or instruction, specifically, can be application The program stored in program 5022 or instruction, processor 501 are used to obtain environmental light brightness;If the environmental light brightness is more than pre- If environmental light brightness threshold value, then the view data of the camera collection of the mobile terminal is obtained;In acquisition described image data Human face data;Calculate the mean flow rate and contrast of the human face data;If the mean flow rate less than predetermined luminance threshold value, And the contrast is less than default contrast threshold, then the flash lamp of the mobile terminal is opened in control.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501. Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned treatment Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 502, processor 501 reads the information in memory 502, with reference to the step of its hardware completion above method.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (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 place In reason device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Alternatively, processor 501 is additionally operable to:Recognition of face is carried out to described image data, in determining described image data Facial contour;In described image data, the human face data in the facial contour is obtained.
Alternatively, processor 501 is additionally operable to:If the mean flow rate is less than predetermined luminance threshold value and the contrast is small In default contrast threshold, then the reminder message for representing and reminding user to open the flash lamp is sent;If detecting for described The flash lamp of the mobile terminal is opened in the confirmation operation of reminder message, then control.
Alternatively, processor 501 is additionally operable to:If detecting the unlatching operation for the camera of the mobile terminal, control View data in camera collection photographed scene processed;Obtain described image data.
Alternatively, processor 501 is additionally operable to:Calculate the brightness of each pixel in the human face data;Calculate described The average value of the brightness of all pixels point in human face data.
It can be seen that, the mobile terminal 500 of the embodiment of the present invention can realize each that mobile terminal in previous embodiment realizes Process, to avoid repeating, repeats no more here.
Sixth embodiment
Fig. 6 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6 600 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric Brain etc..
Mobile terminal 600 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input Unit 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) module 680 and electricity Source 690.
Wherein, input block 630 can be used for receive mobile terminal user input numeral or character information, and produce with The mobile terminal user of mobile terminal 600 is set and the relevant signal input of function control.Specifically, the embodiment of the present invention In, the input block 630 can include contact panel 631.Contact panel 631, also referred to as touch-screen, can collect mobile terminal use Family thereon or neighbouring touch operation (such as mobile terminal user uses any suitable objects or annex such as finger, stylus Operation on contact panel 631), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 631 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detect mobile terminal user's Touch orientation, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch detection Touch information is received on device, and is converted into contact coordinate, then give the processor 660, and energy receiving processor 660 is sent out Come order and performed.Furthermore, it is possible to using the polytype reality such as resistance-type, condenser type, infrared ray and surface acoustic wave Existing contact panel 631.Except contact panel 631, input block 630 can also include other input equipments 632, and other inputs set Standby 632 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One or more in mark, action bars etc..
Wherein, display unit 640 can be used for display by the information of mobile terminal user's input or be supplied to mobile terminal to use The information at family and the various menu interfaces of mobile terminal 600.Display unit 640 may include display panel 641, optionally, can To configure display using the form such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) Panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection Measure thereon or after neighbouring touch operation, processor 660 is sent to determine the type of touch event, with preprocessor 660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal 600, using various interfaces and connection whole mobile phone Various pieces, by running or performing software program and/or module of the storage in first memory 621, and call storage Data in second memory 622, perform the various functions and processing data of mobile terminal 600, so as to mobile terminal 600 Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, processor 660 is for obtaining environmental light brightness;If the environmental light brightness is more than pre- If environmental light brightness threshold value, then the view data of the camera collection of the mobile terminal is obtained;In acquisition described image data Human face data;Calculate the mean flow rate and contrast of the human face data;If the mean flow rate less than predetermined luminance threshold value, And the contrast is less than default contrast threshold, then the flash lamp of the mobile terminal is opened in control.
Alternatively, processor 660 is additionally operable to:Recognition of face is carried out to described image data, in determining described image data Facial contour;In described image data, the human face data in the facial contour is obtained.
Alternatively, processor 660 is additionally operable to:If the mean flow rate is less than predetermined luminance threshold value and the contrast is small In default contrast threshold, then the reminder message for representing and reminding user to open the flash lamp is sent;If detecting for described The flash lamp of the mobile terminal is opened in the confirmation operation of reminder message, then control.
Alternatively, processor 660 is additionally operable to:If detecting the unlatching operation for the camera of the mobile terminal, control View data in camera collection photographed scene processed;Obtain described image data.
Alternatively, processor 660 is additionally operable to:Calculate the brightness of each pixel in the human face data;Calculate described The average value of the brightness of all pixels point in human face data.
It can be seen that, the mobile terminal 600 of the embodiment of the present invention can realize each that mobile terminal in previous embodiment realizes Process, to avoid repeating, repeats no more here.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of control method of flash lamp, the mobile terminal being applied to, it is characterised in that methods described includes:
Obtain environmental light brightness;
If the environmental light brightness is more than default environmental light brightness threshold value, the figure of the camera collection of the mobile terminal is obtained As data;
Obtain the human face data in described image data;
Calculate the mean flow rate and contrast of the human face data;
If the mean flow rate is less than predetermined luminance threshold value and the contrast is less than default contrast threshold, control is opened The flash lamp of the mobile terminal.
2. method according to claim 1, it is characterised in that the step of the human face data in the acquisition described image data Suddenly, including:
Recognition of face is carried out to described image data, the facial contour in described image data is determined;
In described image data, the human face data in the facial contour is obtained.
3. method according to claim 1, it is characterised in that if the mean flow rate less than predetermined luminance threshold value, And the contrast is less than default contrast threshold, then the step of opening the flash lamp of the mobile terminal is controlled, including:
If the mean flow rate is less than predetermined luminance threshold value and the contrast is less than default contrast threshold, sends and represent User is reminded to open the reminder message of the flash lamp;
If detecting the confirmation operation for the reminder message, the flash lamp of the mobile terminal is opened in control.
4. method according to claim 1, it is characterised in that the figure of the camera collection of the acquisition mobile terminal As the step of data, including:
If detecting the unlatching operation for the camera of the mobile terminal, the image in control camera collection photographed scene Data;
Obtain described image data.
5. method according to claim 1, it is characterised in that the step of the mean flow rate of the calculating human face data Suddenly, including:
Calculate the brightness of each pixel in the human face data;
Calculate the average value of the brightness of all pixels point in the human face data.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Environmental light brightness acquisition module, for obtaining environmental light brightness;
Image data acquisition module, if being more than default environmental light brightness threshold value for the environmental light brightness, obtains the shifting The view data of the camera collection of dynamic terminal;
Human face data acquisition module, for obtaining the human face data in described image data;
Computing module, mean flow rate and contrast for calculating the human face data;
Opening module, if for the mean flow rate to be less than predetermined luminance threshold value and the contrast is less than default contrast threshold The flash lamp of the mobile terminal is opened in value, then control.
7. mobile terminal according to claim 6, it is characterised in that the human face data acquisition module includes:
Profile determination sub-module, for carrying out recognition of face to described image data, determines the face wheel in described image data It is wide;
Human face data acquisition submodule, in described image data, obtaining the human face data in the facial contour.
8. mobile terminal according to claim 6, it is characterised in that the opening module includes:
Message sending submodule, if for the mean flow rate to be less than predetermined luminance threshold value and the contrast is right less than default Than degree threshold value, then the reminder message for representing and reminding user to open the flash lamp is sent;
Submodule is opened, if for detecting the confirmation operation for the reminder message, the mobile terminal is opened in control Flash lamp.
9. mobile terminal according to claim 6, it is characterised in that described image data acquisition module includes:
Control submodule, if for detecting the unlatching operation for the camera of the mobile terminal, control camera collection View data in photographed scene;
Acquisition submodule, for obtaining described image data.
10. mobile terminal according to claim 6, it is characterised in that the computing module includes:
Brightness calculation submodule, the brightness for calculating each pixel in the human face data;
Mean flow rate calculating sub module, the average value of the brightness for calculating all pixels point in the human face data.
CN201710029456.4A 2017-01-16 2017-01-16 Control method for flash lamp and mobile terminal Pending CN106713780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710029456.4A CN106713780A (en) 2017-01-16 2017-01-16 Control method for flash lamp and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710029456.4A CN106713780A (en) 2017-01-16 2017-01-16 Control method for flash lamp and mobile terminal

Publications (1)

Publication Number Publication Date
CN106713780A true CN106713780A (en) 2017-05-24

Family

ID=58906972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710029456.4A Pending CN106713780A (en) 2017-01-16 2017-01-16 Control method for flash lamp and mobile terminal

Country Status (1)

Country Link
CN (1) CN106713780A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107155063A (en) * 2017-06-19 2017-09-12 深圳市泰衡诺科技有限公司上海分公司 Night scene filming control method, system and equipment
CN107220621A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Terminal carries out the method and device of recognition of face
CN107451570A (en) * 2017-08-04 2017-12-08 中控智慧科技股份有限公司 A kind of method and device for starting palm pattern recognition device
CN107566746A (en) * 2017-09-12 2018-01-09 广东小天才科技有限公司 Photographing method and user terminal
CN107948538A (en) * 2017-11-14 2018-04-20 广东欧珀移动通信有限公司 Imaging method, device, mobile terminal and storage medium
CN108200265A (en) * 2017-11-22 2018-06-22 秦广民 Mobile phone control platform based on gesture recognition
CN108513706A (en) * 2018-04-12 2018-09-07 深圳阜时科技有限公司 Electronic equipment and its face recognition method
CN108650411A (en) * 2018-04-23 2018-10-12 Oppo广东移动通信有限公司 A kind of control method of flash lamp, terminal and computer storage media
CN109670386A (en) * 2017-10-16 2019-04-23 深圳泰首智能技术有限公司 Face identification method and terminal
CN109857238A (en) * 2019-02-25 2019-06-07 深圳传音通讯有限公司 Terminal unlock method and terminal
CN109963118A (en) * 2018-07-24 2019-07-02 永康市异造科技有限公司 Scene monitoring system based on air-conditioning platform
CN110301891A (en) * 2018-12-29 2019-10-08 合刃科技(深圳)有限公司 A kind of detection method for early warning, detector and system based on EO-1 hyperion
WO2019196075A1 (en) * 2018-04-12 2019-10-17 深圳阜时科技有限公司 Electronic device and facial recognition method therefor
CN110460782A (en) * 2019-08-28 2019-11-15 北京海益同展信息科技有限公司 Information collecting device, method, crusing robot and storage medium
CN110620879A (en) * 2019-10-10 2019-12-27 武汉普利商用机器有限公司 Dynamic light supplementing device and method for face recognition
CN111327831A (en) * 2020-03-30 2020-06-23 北京智美智学科技有限公司 Image acquisition method and device for UGC, electronic equipment and system
CN111915529A (en) * 2020-08-05 2020-11-10 广州市百果园信息技术有限公司 Video dim light enhancement method and device, mobile terminal and storage medium
CN113422893A (en) * 2021-06-21 2021-09-21 杭州朗和科技有限公司 Image acquisition method and device, storage medium and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499823A (en) * 2002-11-05 2004-05-26 奥林巴斯株式会社 Camera
CN101102408A (en) * 2006-07-07 2008-01-09 奥林巴斯映像株式会社 Camera and image processing method of camera
CN101867716A (en) * 2009-04-14 2010-10-20 华晶科技股份有限公司 Adjusting method for digital image capturing conditions and digital photographing device
US8345120B2 (en) * 2004-04-06 2013-01-01 Nikon Corporation Electronic camera with self-adjusting flash and image-capture sensitivity
CN105635595A (en) * 2015-05-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp control method, flash lamp control device and mobile terminal
CN105915815A (en) * 2016-05-31 2016-08-31 北京奇虎科技有限公司 Method and device for shooting based on mobile device, and mobile device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499823A (en) * 2002-11-05 2004-05-26 奥林巴斯株式会社 Camera
US8345120B2 (en) * 2004-04-06 2013-01-01 Nikon Corporation Electronic camera with self-adjusting flash and image-capture sensitivity
CN101102408A (en) * 2006-07-07 2008-01-09 奥林巴斯映像株式会社 Camera and image processing method of camera
CN101867716A (en) * 2009-04-14 2010-10-20 华晶科技股份有限公司 Adjusting method for digital image capturing conditions and digital photographing device
CN105635595A (en) * 2015-05-29 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp control method, flash lamp control device and mobile terminal
CN105915815A (en) * 2016-05-31 2016-08-31 北京奇虎科技有限公司 Method and device for shooting based on mobile device, and mobile device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220621A (en) * 2017-05-27 2017-09-29 北京小米移动软件有限公司 Terminal carries out the method and device of recognition of face
CN107155063A (en) * 2017-06-19 2017-09-12 深圳市泰衡诺科技有限公司上海分公司 Night scene filming control method, system and equipment
CN107451570A (en) * 2017-08-04 2017-12-08 中控智慧科技股份有限公司 A kind of method and device for starting palm pattern recognition device
CN107566746A (en) * 2017-09-12 2018-01-09 广东小天才科技有限公司 Photographing method and user terminal
CN107566746B (en) * 2017-09-12 2020-09-04 广东小天才科技有限公司 Photographing method and user terminal
CN109670386A (en) * 2017-10-16 2019-04-23 深圳泰首智能技术有限公司 Face identification method and terminal
CN107948538A (en) * 2017-11-14 2018-04-20 广东欧珀移动通信有限公司 Imaging method, device, mobile terminal and storage medium
CN107948538B (en) * 2017-11-14 2020-02-21 Oppo广东移动通信有限公司 Imaging method, imaging device, mobile terminal and storage medium
CN108200265A (en) * 2017-11-22 2018-06-22 秦广民 Mobile phone control platform based on gesture recognition
WO2019196075A1 (en) * 2018-04-12 2019-10-17 深圳阜时科技有限公司 Electronic device and facial recognition method therefor
CN108513706A (en) * 2018-04-12 2018-09-07 深圳阜时科技有限公司 Electronic equipment and its face recognition method
CN108650411B (en) * 2018-04-23 2020-11-06 Oppo广东移动通信有限公司 Flash lamp control method, terminal and computer storage medium
CN108650411A (en) * 2018-04-23 2018-10-12 Oppo广东移动通信有限公司 A kind of control method of flash lamp, terminal and computer storage media
CN109963118A (en) * 2018-07-24 2019-07-02 永康市异造科技有限公司 Scene monitoring system based on air-conditioning platform
CN109963118B (en) * 2018-07-24 2020-10-02 苏州律点信息科技有限公司 Scene monitoring system based on air conditioning platform
CN110301891A (en) * 2018-12-29 2019-10-08 合刃科技(深圳)有限公司 A kind of detection method for early warning, detector and system based on EO-1 hyperion
CN109857238A (en) * 2019-02-25 2019-06-07 深圳传音通讯有限公司 Terminal unlock method and terminal
CN110460782A (en) * 2019-08-28 2019-11-15 北京海益同展信息科技有限公司 Information collecting device, method, crusing robot and storage medium
CN110620879A (en) * 2019-10-10 2019-12-27 武汉普利商用机器有限公司 Dynamic light supplementing device and method for face recognition
CN111327831A (en) * 2020-03-30 2020-06-23 北京智美智学科技有限公司 Image acquisition method and device for UGC, electronic equipment and system
CN111327831B (en) * 2020-03-30 2021-09-10 北京智美智学科技有限公司 Image acquisition method and device for UGC, electronic equipment and system
CN111915529A (en) * 2020-08-05 2020-11-10 广州市百果园信息技术有限公司 Video dim light enhancement method and device, mobile terminal and storage medium
CN111915529B (en) * 2020-08-05 2024-06-21 广州市百果园信息技术有限公司 Dim light enhancement method and device for video, mobile terminal and storage medium
CN113422893A (en) * 2021-06-21 2021-09-21 杭州朗和科技有限公司 Image acquisition method and device, storage medium and mobile terminal

Similar Documents

Publication Publication Date Title
CN106713780A (en) Control method for flash lamp and mobile terminal
CN106131341B (en) A kind of photographic method and mobile terminal
CN105847680B (en) A kind of camera power consumption control method and mobile terminal
CN107197169A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN106657806B (en) A kind of exposure method and mobile terminal
CN106648035A (en) Image resolution adjusting method and mobile terminal
CN106210526A (en) A kind of image pickup method and mobile terminal
CN106506960A (en) A kind of processing method of view data and mobile terminal
CN106899803A (en) A kind of pan-shot light supplement control method and mobile terminal
CN106101569A (en) A kind of method of light filling of taking pictures and mobile terminal
CN106937055A (en) A kind of image processing method and mobile terminal
CN106357961A (en) Photographing method and mobile terminal
CN106412457B (en) A kind of image processing method and mobile terminal
CN106791393A (en) A kind of image pickup method and mobile terminal
CN106101545A (en) A kind of image processing method and mobile terminal
CN106454456A (en) Video playing control method and mobile terminal
CN106791438A (en) A kind of photographic method and mobile terminal
CN106407950A (en) Facial information identification method and mobile terminal
CN106855744B (en) A kind of screen display method and mobile terminal
CN106357989A (en) Brightness adjustment method and mobile terminal
CN107222675A (en) The photographic method and mobile terminal of a kind of mobile terminal
CN107509040A (en) A kind of photographic method and mobile terminal
CN107071264A (en) A kind of image resolution ratio method of adjustment and mobile terminal
CN106354303A (en) Photographed method of mobile terminal and mobile terminal
CN106293293A (en) The detection method of a kind of object distance state and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170524

RJ01 Rejection of invention patent application after publication