WO2015154531A1 - 调节照明亮度的方法及装置、照明方法及照明装置 - Google Patents
调节照明亮度的方法及装置、照明方法及照明装置 Download PDFInfo
- Publication number
- WO2015154531A1 WO2015154531A1 PCT/CN2014/095409 CN2014095409W WO2015154531A1 WO 2015154531 A1 WO2015154531 A1 WO 2015154531A1 CN 2014095409 W CN2014095409 W CN 2014095409W WO 2015154531 A1 WO2015154531 A1 WO 2015154531A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- flash
- instruction
- mobile terminal
- photodetector
- driver
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/17—Operational modes, e.g. switching from manual to automatic mode or prohibiting specific operations
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Definitions
- the present invention relates to electronic technologies, and in particular, to a method and device for adjusting illumination brightness, a lighting method, and a lighting device.
- Mobile terminals such as smartphones and tablets are becoming more and more widely used in daily life and work.
- the flash on the mobile terminal is used as a flashlight, it is generally driven by a fixed current.
- the driving current is generally set according to the illumination brightness that can be achieved by the flash in an extremely dark environment, so that the user finds that the light is glaring when using the flashlight as a flashlight, thereby bringing bad to the user.
- the power consumption and battery life of mobile terminals are becoming more and more important, and the current driving currents are used when flashlights are used as flashlights on existing mobile terminals. Setting up in a dark environment will inevitably result in waste of power in the terminal.
- Embodiments of the present invention provide a method and device for adjusting illumination brightness, a lighting method, and a lighting device, which can automatically adjust the brightness of the flash according to the ambient brightness, can meet the lighting requirements, and can reduce power consumption and save power, thereby facilitating improvement.
- the endurance of the mobile terminal thereby improving the user experience.
- Embodiments of the present invention provide a method for adjusting brightness of a flash illumination, the method comprising:
- the method before the sending the first instruction to the photodetector, the method further includes:
- the first instruction is sent to the photodetector when the mode of adjusting the brightness of the flash meets a preset first condition.
- the method further includes:
- determining, according to the light intensity result, a first value of a driving current of the flash driver of the mobile terminal including:
- the first instruction is used to periodically trigger the photodetector to detect an illumination intensity of an environment surrounding the mobile terminal;
- the second instruction is configured to control the flash driver to provide a driving current to the flash by a first value of the driving current determined in each cycle.
- the embodiment of the invention further provides an apparatus for adjusting the brightness of the flash illumination, the apparatus comprising a first detecting unit, a first determining unit, a first transmitting unit, a receiving unit, a determining unit and a second transmitting unit, wherein:
- the first detecting unit is configured to detect an operation of the user on the mobile terminal
- the first determining unit is configured to determine whether the operation is to turn on a flash of the mobile terminal
- the first transmitting unit is configured to, when the operation is an operation of turning on a flash of the mobile terminal, send a first instruction to a photodetector of the mobile terminal, the first instruction being adapted to trigger the light
- the detector detects the light intensity of the environment surrounding the mobile terminal;
- the receiving unit is configured to receive a light intensity result detected by the photodetector
- the determining unit is configured to determine a first value of a driving current of the flash driver of the mobile terminal according to the light intensity result;
- the second transmitting unit is configured to send a second instruction to the flash driver, the second instruction being adapted to control a first value of the driving current determined by the flash driver to provide driving to the flash Current.
- the device further includes a second obtaining unit and a second determining unit, where:
- the second acquiring unit is configured to acquire a mode of adjusting the brightness of the flash of the mobile terminal
- the second determining unit is configured to determine whether the mode of adjusting the brightness of the flash of the mobile terminal satisfies a preset first condition
- the first sending unit is configured to send the first instruction to the photodetector when a mode of adjusting the flash brightness of the mobile terminal satisfies the first condition.
- the device further includes a third acquiring unit, configured to acquire a second driving current of the preset flash driver when the mode of adjusting the flash brightness of the mobile terminal does not satisfy the first condition Numerical value
- the second transmitting unit is further configured to send a third command to the flash driver, the third command being adapted to control the flash driver to provide a driving current to the flash with a second value of the driving current.
- the determining unit is configured to query a preset list according to the light intensity result to obtain a first value of a driving current of the flash driver.
- the first instruction is adapted to periodically trigger the photodetector to detect an illumination intensity of an environment surrounding the mobile terminal;
- the receiving unit is configured to periodically receive a light intensity result detected by the photodetector
- the determining unit is configured to determine a first value of a driving current of the flash driver according to a light intensity result obtained in each cycle;
- the second command is a first value set to control the flash driver to determine the drive current in each cycle to provide a drive current to the flash.
- Embodiments of the present invention also provide a flash lighting device including: a photodetector, a processor, a flash driver, and a flash, wherein:
- the photodetector is configured to detect an illumination intensity of the surrounding environment according to the first instruction of the processor; detect an illumination intensity of the surrounding environment, and send the detected illumination intensity result to the processor;
- the processor is configured to send a first instruction to the photodetector when the user turns on the flash, obtain a light intensity result detected by the photodetector, and determine the flash driver according to the light intensity result a first value of the drive current; and transmitting a second command to the flash drive, the second command being adapted to control the flash drive to determine a first value of the drive current to provide a drive current to the flash ;
- the flash driver is configured to receive a second command sent by the processor, and provide a driving current to the flash according to the second instruction;
- the flash is arranged to illuminate according to a drive current provided by the flash drive.
- the embodiment of the invention further provides a flash lighting method, the method comprising:
- the processor sends a first instruction to the photodetector when the user turns on the flash, the first instruction is used to trigger the photodetector to detect the illumination intensity of the surrounding environment;
- the photodetector detects the illumination intensity of the surrounding environment according to the first instruction sent by the processor, and sends the detected illumination intensity result to the processor;
- the processor receives a light detector to detect a transmitted light intensity result, and determines a first value of a driving current of the flash driver according to the light intensity result;
- the processor sends a second command to the flash driver, the second command for controlling the flash driver to determine a first value of the drive current to provide a drive current to the flash;
- the flash driver receives a second instruction sent by the processor, according to the second instruction Supplying a drive current to the flash;
- the flash is illuminated according to a drive current provided by the flash drive.
- the embodiment of the invention further provides a computer program and a carrier thereof, the computer program comprising program instructions, when the program instruction is executed by the mobile terminal device, enabling the device to implement the above method for adjusting the brightness of the flash illumination.
- the method and device for adjusting illumination brightness, the illumination method and the illumination device provided by the embodiment of the invention, wherein the operation of the user on the mobile terminal is detected; when the operation of the flash of the mobile terminal is detected by the user, the photodetector to the mobile terminal Sending a first instruction, the first instruction is used to trigger the photodetector to detect an illumination intensity of an environment surrounding the mobile terminal; and determining, according to the illumination intensity result, a first driving current of the flash driver of the mobile terminal a second command sent to the flash driver to control the flash driver to determine a first value of the drive current, to provide a drive current to the flash, thereby automatically adjusting the brightness of the flash according to ambient brightness, It can meet the lighting requirements and achieve the reduction of power consumption and power saving, which is conducive to improving the endurance of the mobile terminal and thus improving the user experience.
- FIG. 1 is a schematic structural diagram of a flash lighting device according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram showing an implementation flow of a flash lighting method according to an embodiment of the present invention
- 3-1 is a schematic flowchart 1 of an implementation process of a method for adjusting illumination brightness according to Embodiment 2 of the present invention
- 3-2 is a second schematic diagram of an implementation process of a method for adjusting illumination brightness according to Embodiment 2 of the present invention.
- FIG. 4 is a flowchart of automatically adjusting a flash illumination brightness when a mobile terminal is used according to an embodiment of the present invention
- 5-1 is a schematic structural diagram 1 of a device for adjusting brightness of a flash lamp according to Embodiment 4 of the present invention.
- FIG. 5-2 is a schematic structural diagram of a device for adjusting brightness of a flash lamp according to Embodiment 4 of the present invention.
- FIG. two is a schematic structural diagram of a device for adjusting brightness of a flash lamp according to Embodiment 4 of the present invention.
- the driving current is generally set according to the illumination brightness that the flash can achieve in an extremely dark environment, for example, the driving current of the smart phone is set to 200 mA, and the practical application In many cases, when the flash is used as a flashlight, it does not need such a strong illumination.
- the embodiment of the invention provides a method for automatically adjusting the brightness of the flashlight when the flash lamp is used as a flashlight illumination function.
- the driving current of the flash lamp can be appropriately adjusted according to the ambient brightness, and the illumination can be satisfied.
- the requirement is that the purpose of reducing power consumption and saving power can be achieved, which is beneficial to improving the endurance capability of the mobile terminal and improving the user experience.
- FIG. 1 is a schematic structural diagram of a flash lighting device according to an embodiment of the present invention.
- the flash lighting device includes a photodetector 11, a processor 12, and a flash driver. 13 and flash 14, where:
- the photodetector 11 is adapted to detect a light intensity of the surrounding environment according to the first instruction of the processor, and send the detected light intensity result to the processor;
- the first instruction is used to trigger the photodetector to detect the illumination intensity of the surrounding environment
- the processor 12 is configured to send a first instruction to the photodetector when the user turns on the flash, obtain a light intensity result detected by the photodetector, and determine a first driving current of the flash driver according to the light intensity result And transmitting, to the flash driver, a second command for controlling the flash driver to determine the first value to provide a drive current to the flash;
- the flash driver 13 is adapted to receive a second instruction sent by the processor, according to the first Two instructions provide a drive current to the flash;
- the flash 14 is adapted to illuminate according to a drive current provided by the flash drive.
- the flash lighting device is used for a mobile terminal
- the mobile terminal includes at least a terminal device such as a smart phone, a tablet computer, a notebook computer, a personal digital assistant, and a navigator.
- the photodetector 11 can be implemented by using various optical sensors, which are connected to the main processor of the mobile terminal through a hardware bus such as I2C, for detecting the ambient light intensity around the mobile terminal, and transmitting the relevant detection around the main processor.
- the light intensity result of the environment.
- the processor 12 may be a main processor of the mobile terminal, and the processor 12 optionally reads the light intensity result detected by the photodetector in a periodic manner, and adjusts the flash driver in real time according to different light intensity results.
- Drive current For example, when the ambient light intensity (ie, the light intensity result of the surrounding environment detected by the photodetector) is ⁇ 5 lux (lx), the flash operates at the maximum illumination brightness; when the ambient light intensity is between 5 lx and 15 lx, this The flash drive current is appropriately reduced downward to reduce the illumination brightness of the flash.
- lx is the unit of illuminance
- illuminance is a unit that reflects the intensity of light.
- the physical meaning of illuminance is the luminous flux per unit area.
- the unit of illuminance is the number of lumens per square meter (Lm), also known as Lux.
- the correspondence between the ambient light intensity and the flash brightness can be set by a preset list, and the processor can query the list to obtain
- the flash driver is mainly composed of a flash driving chip or a flash driving circuit (IC), and is connected with a main interface of the mobile terminal through a hardware interface such as I2C, and the output current of the flash driving chip can be controlled by an internal register; the main processing of the mobile terminal According to the relationship between the ambient light intensity and the brightness of the flash, and the relationship between the register value inside the flash drive chip and the output current of the flash drive IC, the register of the flash chip is timely configured through a hardware interface such as I2C to adjust the output current of the flash drive IC.
- the size thus controls the illumination brightness of the flashlight flash to achieve the purpose of automatically adjusting the brightness of the flash illumination of the mobile terminal, so that it can meet the lighting requirements, and achieve the purpose of reducing power consumption and saving power, and improving the endurance of the mobile terminal.
- the method provided by the above embodiment can achieve the purpose of automatically adjusting the brightness of the flash illumination according to the ambient light intensity when the flash is used as a flashlight, thereby solving the problem that the flash is illuminated with a fixed brightness, that is, according to the extremely black environment.
- the lighting effect that can be achieved can be set to drive electricity Flow, when the ambient lighting brightness is bright, the flashlight flash does not need such a large brightness, which causes waste of power and shortens the endurance time of the mobile terminal; if the fixed driving current of the flashlight is lowered, in an extremely dark environment The flashlight flash does not reach the corresponding lighting effect.
- the technical solutions provided by the embodiments of the present invention can solve the problems in the foregoing applications well.
- the technical solution provided by the embodiment of the present invention can use the general circuit design of the mobile terminal, and the circuit is simple, the performance is reliable, the cost is low, and the implementation is convenient.
- FIG. 2 is a schematic flowchart of the flash lighting method according to the embodiment of the present invention. As shown in FIG. 2, the method includes:
- Step 201 the processor sends a first instruction to the photodetector when the user turns on the flash;
- the first instruction is used to trigger the photodetector to detect the illumination intensity of the surrounding environment
- Step 202 the photodetector detects the illumination intensity of the surrounding environment according to the first instruction of the processor, and sends the detected illumination intensity result to the processor;
- Step 203 The processor receives a light detector to detect a transmitted light intensity result, and determines a first value of a driving current of the flash driver according to the light intensity result;
- Step 204 the processor sends a second instruction to the flash driver
- the second instruction is used to control the flash driver to determine a first value of the driving current, and provide a driving current to the flash lamp;
- Step 205 the flash driver receives a second instruction sent by the processor, and supplies a driving current to the flash according to the second instruction;
- Step 206 the flash is illuminated according to a driving current provided by the flash driver.
- Embodiments of the present invention provide a method for adjusting illumination brightness applied to a mobile terminal, and the method for adjusting illumination brightness is specifically a method for adjusting brightness of a flash lamp when the flash is used as a flashlight, and the method can be implemented in the form of a software function module.
- the method of adjusting the brightness of the flash can also be stored in a computer readable storage medium when sold or used as a stand-alone product in the form of a software function module.
- the portion of the technology contribution can be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) All or part of the methods described in the various embodiments of the invention are performed.
- the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
- 3-1 is a schematic flowchart of an implementation process of a method for adjusting illumination brightness according to Embodiment 2 of the present invention. As shown in FIG. 3-1, the method includes:
- Step 301 Detect a first operation of the user.
- the first operation is an operation of the user on the mobile terminal
- Step 302 Determine whether the first operation is an operation of turning on a flash, and obtain a first determination result
- Step 303 when the first determination result indicates that the first operation is an operation of turning on the flash, sending a first instruction to the photodetector;
- the first instruction is used to trigger the photodetector to detect the illumination intensity of the surrounding environment
- Step 304 Receive a light intensity result detected by the photodetector
- Step 305 determining a first value of a driving current of the flash driver according to the light intensity result
- Step 306 sending a second instruction to the flash driver
- the second instruction is for controlling the flash driver to determine a first value of the driving current to provide a driving current to the flash.
- the method for adjusting the brightness of the illumination provided by the embodiment of the present invention detects a first operation of the user, where the first operation is an operation of the user on the mobile terminal; and when the operation of the first operation is performed to open the flash, the photo detector is sent to the photodetector.
- An instruction the first instruction is used to trigger the photodetector to detect the illumination intensity of the surrounding environment; the illumination intensity result detected by the photodetector is received; and the first value of the driving current of the flash driver is determined according to the illumination intensity result
- FIG. 3-2 is a second schematic diagram of an implementation flow of a method for adjusting illumination brightness according to Embodiment 2 of the present invention. As shown in FIG. 3-2, the method further includes:
- Step S31 when the first determination result indicates that the first operation is an operation of turning on the flash, acquiring the first parameter
- the first parameter is a parameter indicating that the brightness mode of the flash is adjusted.
- the first parameter may be yes or no.
- the first parameter is yes, it indicates that the brightness of the flash in the mobile terminal adopts an automatic adjustment mode.
- the first parameter is no, it indicates that the brightness of the flash in the mobile terminal cannot be automatically adjusted; it is assumed that the adjustment mode of the flash is divided into automatic adjustment and non-automatic adjustment, wherein non-automatic adjustment is a method of using a fixed drive current in the background art. .
- the auto-adjustment mode and the non-auto-adjustment mode can be implemented by using an option.
- the flash brightness adjustment mode is set in the software, and the flash brightness adjustment mode includes automatic adjustment and non-automatic adjustment.
- Two options when the user can set the flash brightness adjustment mode to automatic adjustment, of course, the flash brightness adjustment mode can also be set to non-automatic adjustment; when set to automatic adjustment, the first parameter is yes;
- Step S32 determining whether the first parameter meets a preset first condition, and obtaining a second determination result
- the first condition here is yes, in other words, when the first parameter is yes, as described in step 303, the light is detected.
- the first instruction is sent.
- the first parameter and the first condition are exemplified by yes or no.
- the first parameter may be 0 or 1, when the first parameter is 1, It indicates that the brightness of the flash in the mobile terminal adopts an automatic adjustment mode.
- the first parameter is 0, it indicates that the brightness of the flash in the mobile terminal cannot be automatically adjusted; the first parameter is 1 or 0 and the first parameter is yes
- the situation of no or no is very similar. To save space, it will not be repeated.
- Step 303 When the second determination result indicates that the first parameter meets the first condition, sending a first instruction to the photodetector.
- the method includes:
- the third command for controlling the flash driver to provide a drive current to the flash with the second value.
- the step 305 is specifically: querying a preset list according to the light intensity result to obtain a first value of a driving current of the flash driver.
- the first instruction is used to periodically trigger the photodetector to detect the illumination intensity of the surrounding environment
- the receiving the light intensity result detected by the photodetector comprises:
- determining, according to the light intensity result, a first value of a driving current of the flash driver including:
- the second instruction is configured to control a first value of the driving current determined by the flash driver in each cycle to provide a driving current to the flash.
- the embodiment of the present invention provides a method for automatically adjusting the brightness of the flash when the flash is used as a flashlight in the mobile terminal
- FIG. 4 is a mobile terminal provided by the embodiment of the present invention.
- a flow chart for automatically adjusting the brightness of the flash illumination, as shown in Figure 4, the process includes:
- Step 401 setting a flashlight flash brightness adjustment mode
- the flash brightness adjustment mode option may be set in advance in the setting interface of the mobile terminal or the application interface of the flashlight, where the flash brightness adjustment mode includes automatic adjustment and non-automatic adjustment. Two modes.
- Step 402 when the flashlight application is turned on, it is determined whether to open the above automatic adjustment option; if not, proceed to step 403, and if yes, proceed to step 404;
- turning on the flashlight application is to use the flashlight as a flashlight.
- the flashlight flash when the above-mentioned automatic adjustment option is turned on, the flashlight flash is in the illumination brightness automatic adjustment mode; when the above-mentioned automatic adjustment option (ie, the non-automatic adjustment mode) is turned off, the flashlight flash is illuminated with a fixed illumination brightness, at which time the flash illumination brightness is not available. Adjust to work with a fixed brightness.
- Step 403 the flash is illuminated with a fixed illumination brightness
- the flash driver provides a fixed drive current to the flash, so the flash is fixed to illuminate the illumination.
- Step 404 the processor periodically reads the light intensity data collected by the photodetector
- the light intensity data is the light intensity result
- Step 405 The processor automatically adjusts the driving current of the flash driving unit according to the result of the light intensity read from the photodetector, thereby controlling the automatic adjustment of the brightness of the flashlight of the flashlight.
- FIG. 5-1 is a schematic structural diagram 1 of the device for adjusting the brightness of the flash illumination according to the fourth embodiment of the present invention, as shown in FIG. 5-1.
- the apparatus 500 includes a first detecting unit 501, a first determining unit 502, a first transmitting unit 503, a receiving unit 504, a determining unit 505, and a second sending unit 506, where:
- the first detecting unit 501 is adapted to detect a first operation of the user, where the first operation is an operation of the user on the mobile terminal;
- the first determining unit 502 is adapted to determine whether the first operation is an operation of turning on a flash, and obtain a first determination result;
- the first sending unit 503 is adapted to send a first instruction to the photodetector when the first determining result indicates that the first operation is an operation of turning on the flash, the first instruction is used to trigger
- the photodetector detects the light intensity of the surrounding environment
- the receiving unit 504 is adapted to receive a light intensity result detected by the photodetector
- the determining unit 504 is adapted to determine a first value of a driving current of the flash driver according to the light intensity result;
- the second sending unit 506 is adapted to send a second instruction to the flash driver, where the second instruction is used to control the first value of the driving current determined by the flash driver to provide the flash Drive current.
- FIG. 5-2 is a second structural diagram of the apparatus for adjusting the brightness of the flash illumination according to Embodiment 4 of the present invention.
- the apparatus 500 further includes a second obtaining unit 507 and a second determining unit 508, where:
- the second obtaining unit 507 is adapted to acquire the first parameter when the first determining result indicates that the first operation is an operation of turning on the flash;
- the first parameter is a parameter indicating that the brightness mode of the flash is adjusted.
- the second determining unit 508 is adapted to determine whether the first parameter meets a preset first condition, and obtain a second determination result
- the first sending unit 503 is adapted to send a first instruction to the photodetector when the second determining result indicates that the first parameter satisfies the first condition.
- the device for adjusting the brightness of the flash illumination includes a third obtaining unit, configured to acquire a preset driving circuit when the second determining result indicates that the first parameter does not satisfy the first condition Second value;
- the second sending unit is further adapted to send a third command to the flash driver, wherein the third command is used to control the flash driver to provide a second value of the driving circuit to the flash Drive current.
- the determining unit is further configured to query a preset list according to the light intensity result to obtain a first value of a driving current of the flash driver.
- the first instruction is adapted to periodically trigger the photodetector to detect the illumination intensity of the surrounding environment
- the first acquiring unit is further adapted to periodically receive the light intensity result detected by the photodetector;
- the determining unit is further adapted to determine a first value of a driving current of the flash driver according to the light intensity result obtained in each cycle;
- the second instruction is adapted to control a first value of the drive current determined by the flash driver in each cycle to provide a drive current to the flash.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
- the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
- the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
- the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The steps of the foregoing method embodiments; and the foregoing storage medium includes: a mobile storage device, a read only memory, a magnetic disk, or an optical disk, and the like, which can be stored.
- the medium of the program code includes: a mobile storage device, a read only memory, a magnetic disk, or an optical disk, and the like, which can be stored.
- the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
- the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
- a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.
- the method and device for adjusting the brightness of the flash illumination provided by the embodiment of the invention can determine the driving current of the flash by detecting the illumination intensity of the surrounding environment, and can automatically adjust the brightness of the flash according to the ambient brightness, which can meet the lighting requirement and reduce the work. Consumption and power saving, which is conducive to improving the endurance of the mobile terminal, thereby improving the user experience.
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Studio Devices (AREA)
Abstract
一种调节照明亮度的方法及装置、照明方法及装置,其中所述调节照明亮度的方法包括:当检测到用户打开移动终端的闪光灯的操作时,向移动终端的光检测器发送第一指令,所述第一指令用于触发光检测器检测所述移动终端周围环境的光照强度;根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
Description
本发明涉及电子技术,尤其涉及一种调节照明亮度的方法及装置、照明方法及照明装置。
智能手机和平板电脑等移动终端在日常生活和工作中的应用越来越广泛以及深入。移动终端上的闪光灯用作手电筒时,一般采用固定电流驱动。为了能够达到照明效果,一般都是按照极黑暗的环境下闪光灯所能达到的照明亮度来设置驱动电流,这样使得用户在使用闪光灯用作手电筒时发现光照比较刺眼,从而给用户带来不好的体验;另外,随着移动终端越来越智能,性能越来越强大,移动终端的功耗和续航问题也越来越重要,而现有的移动终端上使用闪光灯用作手电筒时驱动电流按极黑暗的环境来设置,必然造成终端中电量的浪费。
发明内容
本发明实施例提供一种调节照明亮度的方法及装置、照明方法及照明装置,能够根据环境亮度自动调节闪光灯的亮度,既能满足照明要求又能达到降低功耗、节省电量,从而有利于提升移动终端的续航能力,进而提高用户体验。
本发明实施例提供一种调节闪光灯照明亮度的方法,所述方法包括:
检测用户对移动终端的操作;
当检测到用户打开所述移动终端的闪光灯的操作时,向所述移动终端的光检测器发送第一指令,所述第一指令用于触发所述光检测器检测所述移动终端周围环境的光照强度;
根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值;
向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
可选地,在所述向光检测器发送第一指令之前,所述方法还包括:
获取所述移动终端的调节闪光灯亮度的模式;
当所述调节闪光灯亮度的模式满足预设的第一条件时,向所述光检测器发送所述第一指令。
可选地,所述方法还包括:
当所述调节闪光灯亮度的模式不满足所述第一条件时,获取预设的所述闪光灯驱动器的驱动电流的第二数值;
向所述闪光灯驱动器发送第三指令,所述第三指令用于控制所述闪光灯驱动器以所述驱动电流的第二数值,向所述闪光灯提供驱动电流。
可选地,所述根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值,包括:
根据所述光照强度结果查询预设的列表,获得所述闪光灯驱动器的驱动电流的第一数值。
可选地,所述第一指令用于周期性地触发所述光检测器检测所述移动终端周围环境的光照强度;
根据每一周期内获取的光照强度结果,确定所述闪光灯驱动器的驱动电流的第一数值;
所述第二指令,用于控制所述闪光灯驱动器以每一周期内确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
本发明实施例还提供一种调节闪光灯照明亮度的装置,所述装置包括第一检测单元、第一判断单元、第一发送单元、接收单元、确定单元和第二发送单元,其中:
所述第一检测单元,设置为检测用户对移动终端的操作;
所述第一判断单元,设置为判断所述操作是否为打开所述移动终端的闪光灯;
所述第一发送单元,设置为当所述操作是打开所述移动终端的闪光灯的操作时,向所述移动终端的光检测器发送第一指令,所述第一指令适用于触发所述光检测器检测所述移动终端周围环境的光照强度;
所述接收单元,设置为接收所述光检测器检测的光照强度结果;
所述确定单元,设置为根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值;
所述第二发送单元,设置为向所述闪光灯驱动器发送第二指令,所述第二指令适用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
可选地,所述装置还包括第二获取单元和第二判断单元,其中:
所述第二获取单元,设置为获取所述移动终端的调节闪光灯亮度的模式;
所述第二判断单元,设置为判断所述移动终端的调节闪光灯亮度的模式否满足预设的第一条件;
对应地,所述第一发送单元,是设置为当所述移动终端的调节闪光灯亮度的模式满足所述第一条件时,向所述光检测器发送所述第一指令。
可选地,所述装置还包括第三获取单元,设置为当所述移动终端的调节闪光灯亮度的模式不满足所述第一条件时,获取预设的所述闪光灯驱动器的驱动电流的第二数值;
所述第二发送单元,还设置为向所述闪光灯驱动器发送第三指令,所述第三指令适用于控制所述闪光灯驱动器以所述驱动电流的第二数值,向所述闪光灯提供驱动电流。
可选地,所述确定单元,是设置为根据所述光照强度结果查询预设的列表,获得所述闪光灯驱动器的驱动电流的第一数值。
可选地,所述第一指令是适用于周期性地触发所述光检测器检测所述移动终端周围环境的光照强度;
所述接收单元,是设置为周期性地接收所述光检测器检测的光照强度结果;
所述确定单元,是设置为根据每一周期内获取的光照强度结果,确定所述闪光灯驱动器的驱动电流的第一数值;
所述第二指令是设置为控制所述闪光灯驱动器以每一周期内确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
本发明实施例还提供一种闪光灯照明装置,所述闪光灯照明装置包括:光检测器、处理器、闪光灯驱动器和闪光灯,其中:
所述光检测器,设置为根据所述处理器的第一指令,检测周围环境的光照强度;检测周围环境的光照强度,并将检测到的光照强度结果发送给所述处理器;
所述处理器,设置为在用户打开闪光灯时,向所述光检测器发送第一指令;获取所述光检测器检测的光照强度结果,并根据所述光照强度结果,确定所述闪光灯驱动器的驱动电流的第一数值;以及向所述闪光灯驱动器发送第二指令,所述第二指令适用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流;
所述闪光灯驱动器,设置为接收所述处理器发送的第二指令,根据所述第二指令向所述闪光灯提供驱动电流;
所述闪光灯,设置为根据闪光灯驱动器提供的驱动电流进行照明。
本发明实施例还提供一种闪光灯照明方法,所述方法包括:
处理器在用户打开闪光灯时,向光检测器发送第一指令,所述第一指令用于触发所述光检测器检测周围环境的光照强度;
所述光检测器根据所述处理器发送的第一指令,检测周围环境的光照强度,并将检测到的光照强度结果发送给所述处理器;
所述处理器接收光检测器检测发送的光照强度结果,并根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;
所述处理器向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流;
所述闪光灯驱动器接收所述处理器发送的第二指令,根据所述第二指令
向所述闪光灯提供驱动电流;
所述闪光灯根据所述闪光灯驱动器提供的驱动电流进行照明。
本发明实施例还提供一种计算机程序及其载体,该计算机程序包括程序指令,当该程序指令被移动终端设备执行时,使得该设备可实施上述的调节闪光灯照明亮度的方法。
本发明实施例提供的调节照明亮度的方法及装置、照明方法及照明装置,其中,检测用户对移动终端的操作;当检测到用户打开移动终端的闪光灯的操作时,向移动终端的光检测器发送第一指令,所述第一指令用于触发所述光检测器检测所述移动终端周围环境的光照强度;根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值;向所述闪光灯驱动器发送第二指令,控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流,从而能够根据环境亮度自动调节闪光灯的亮度,既能满足照明要求又能达到降低功耗、节省电量,有利于提升移动终端的续航能力,进而提高用户体验。
附图概述
图1为本发明实施例一闪光灯照明装置的组成结构示意图;
图2为本发明实施例一闪光灯照明方法的实现流程示意图;
图3-1为本发明实施例二调节照明亮度的方法的实现流程示意图一;
图3-2为本发明实施例二调节照明亮度的方法的实现流程示意图二;
图4为本发明实施例提供的移动终端在使用时自动调节闪光灯照明亮度的流程图;
图5-1为本发明实施例四调节闪光灯照明亮度的装置的组成结构示意图一;
图5-2为本发明实施例四调节闪光灯照明亮度的装置的组成结构示意图
二。
本发明的较佳实施方式
如背景技术所述,移动终端上的闪光灯用作手电筒时,一般都是按照极黑暗的环境下闪光灯所能达到的照明亮度来设置驱动电流,例如智能手机的驱动电流设置为200mA,而实际应用中,很多时候闪光灯用作手电筒时,并不需要这么强的照明亮度。
本发明实施例提供了一种闪光灯用作手电筒照明功能时,自动调节手电筒照明亮度的方法,利用本发明实施例提供的技术方案,可以根据环境亮度,适当调整闪光灯的驱动电流,既能满足照明要求,又能达到降低功耗节省电量的目的,有利于提升移动终端的续航能力,提高用户体验。
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
实施例一
本发明实施例首先提供一种照明装置,图1为本发明实施例一闪光灯照明装置的组成结构示意图,如图1所示,所述闪光灯照明装置包括光检测器11、处理器12、闪光灯驱动器13和闪光灯14,其中:
所述光检测器11,适用于根据处理器的第一指令,检测周围环境的光照强度,并将检测到的光照强度结果发送给处理器;
这里,所述第一指令用于触发光检测器检测周围环境的光照强度;
所述处理器12,适用于在用户打开闪光灯时,向光检测器发送第一指令;获取光检测器检测的光照强度结果,并根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;以及向闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述第一数值,向所述闪光灯提供驱动电流;
所述闪光灯驱动器13,适用于接收处理器发送的第二指令,根据所述第
二指令向所述闪光灯提供驱动电流;
所述闪光灯14,适用于根据闪光灯驱动器提供的驱动电流进行照明。
本发明实施例中,所述闪光灯照明装置用于移动终端,所述移动终端至少包括智能手机、平板电脑、笔记本电脑、个人数字助理、导航仪等终端设备。
这里,光检测器11可以采用各种光传感器来实现,其通过I2C等硬件总线连接移动终端的主处理器,用来实现移动终端周围环境光照强度的检测,并向主处理器传输有关检测周围环境的光照强度结果。
这里,处理器12可以是移动终端的主处理器,处理器12可选地采用周期性的方式读取光检测器检测到的光照强度结果,并根据不同的光照强度结果,实时地调整闪光灯驱动器的驱动电流。例如,当环境光照强度(即光检测器检测到的周围环境的光照强度结果)<5勒克斯(lx)时,闪光灯工作于最大照明亮度;当环境光照强度介于5lx和15lx之间时,此时的闪光灯驱动电流适当的向下减小,以减小闪光灯的照明亮度。其中lx是照度的单位,照度是反映光照强度的一种单位,照度的物理意义是照射到单位面积上的光通量,照度的单位是每平方米的流明(Lm)数,也叫做勒克斯(Lux);环境光照强度与闪光灯亮度之间的对应关系可以通过预设的列表进行设定,处理器可以查询该列表得到闪光灯的亮度。
这里,闪光灯驱动器主要由闪光灯驱动芯片或闪光灯驱动电路(IC)组成,与移动终端主处理器间通过I2C等硬件接口相连,闪光灯驱动芯片的输出电流可以通过内部寄存器来控制;移动终端的主处理器根据环境光照强度与闪光灯亮度之间的对应关系、以及闪光灯驱动芯片内部的寄存器值与闪光灯驱动IC输出电流的关系,通过I2C等硬件接口适时配置闪光灯芯片的寄存器,调整闪光灯驱动IC的输出电流大小从而控制手电筒闪光灯的照明亮度,以实现自动调节移动终端闪光灯照明亮度的目的,使其既能满足照明要求,又能达到降低功耗节省电量的目的,提升移动终端的续航能力。
综上所述,上述实施例提供的方法可以在闪光灯用作手电筒时,根据环境光照强度实现自动调节闪光灯照明亮度的目的,从而解决闪光灯以固定亮度照明时存在的问题,即:按照极黑环境下所能达到的照明效果设置驱动电
流,在环境照明亮度较亮时,此时手电筒闪光灯并不需要如此大的亮度,造成电量的浪费,缩短了移动终端的续航时间;如果调低手电筒闪光灯的固定驱动电流,在极暗环境下手电筒闪光灯又达不到相应的照明效果。利用本发明实施例提供的技术方案,可以很好地解决上述应用中存在的问题。同时,本发明实施例提供的技术方案可以使用移动终端的通用电路设计,电路简单,性能可靠,成本低廉,便于实现。
基于上述的提供的闪光灯照明装置,本发明实施例提供一种闪光灯照明方法,图2为本发明实施例一闪光灯照明方法的实现流程示意图,如图2所示,该方法包括:
步骤201,处理器在用户打开闪光灯时,向光检测器发送第一指令;
这里,所述第一指令用于触发光检测器检测周围环境的光照强度;
步骤202,所述光检测器根据处理器的第一指令,检测周围环境的光照强度,并将检测到的光照强度结果发送给所述处理器;
步骤203,所述处理器接收光检测器检测发送的光照强度结果,并根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;
步骤204,所述处理器向闪光灯驱动器发送第二指令;
这里,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流;
步骤205,所述闪光灯驱动器接收处理器发送的第二指令,根据所述第二指令向所述闪光灯提供驱动电流;
步骤206,所述闪光灯根据闪光灯驱动器提供的驱动电流进行照明。
实施例二
本发明实施例提供一种应用于移动终端的调节照明亮度的方法,所述调节照明亮度的方法具体为将闪光灯用作手电筒时调节闪光灯亮度的方法,该方法可以以软件功能模块的形式实现,该调节闪光灯亮度的方法以软件功能模块的形式作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现
有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。图3-1为本发明实施例二调节照明亮度的方法的实现流程示意图一,如图3-1所示,该方法包括:
步骤301,检测用户的第一操作;
这里,所述第一操作为用户对移动终端的操作;
步骤302,判断所述第一操作是否为打开闪光灯的操作,得到第一判断结果;
步骤303,当所述第一判断结果表明所述第一操作为打开闪光灯的操作时,向光检测器发送第一指令;
这里,所述第一指令用于触发光检测器检测周围环境的光照强度;
步骤304,接收所述光检测器检测的光照强度结果;
步骤305,根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;
步骤306,向所述闪光灯驱动器发送第二指令;
这里,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
本发明实施例提供的调节照明亮度的方法,检测用户的第一操作,所述第一操作为用户对移动终端的操作;判断所述第一操作打开闪光灯的操作时,向光检测器发送第一指令,所述第一指令用于触发光检测器检测周围环境的光照强度;接收所述光检测器检测的光照强度结果;根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流,如此,能够根据环境亮度自动调节闪光灯的亮度,既能满足照明要求又能达到降低功耗、节省电量,从而有利于
提升移动终端的续航能力,进而提高用户体验。
图3-2为本发明实施例二调节照明亮度的方法的实现流程示意图二,如图3-2所示,该方法还包括:
步骤S31,当所述第一判断结果表明所述第一操作为打开闪光灯的操作时,获取第一参数;
这里,所述第一参数为表明调节闪光灯亮度模式的参数,例如所述第一参数可以是yes或no,当第一参数为yes时,表明移动终端中闪光灯的亮度采用自动调节的模式,当第一参数为no时,表明移动终端中闪光灯的亮度不能采用自动调节的模式;假设闪光灯的调节模式分为自动调节和非自动调节,其中非自动调节即为背景技术中采用固定驱动电流的方式。
这里,自动调节模式和非自动调节模式可以采用选项的方式来实现,例如在本方法采用程序软件来实现时,在软件中设置闪光灯亮度调节模式,该闪光灯亮度调节模式包括自动调节和非自动调节两个选项,当用户可以将闪光灯亮度调节模式设置为自动调节,当然也可以将闪光灯亮度调节模式设置为非自动调节;当设置为自动调节时,即第一参数为yes;
步骤S32,判断所述第一参数是否满足预设的第一条件,得到第二判断结果;
这里,继续承接步骤S31中的例子,当第一参数为yes或no时,这里的第一条件即yes,换句话说,当第一参数为yes的时候,如步骤303所述,向光检测器发送第一指令。
这里,第一参数和第一条件以yes或no来举例,在具体实现的过程中,将不限于上述的yes或no,例如第一参数可以是0或1,当第一参数为1时,表明移动终端中闪光灯的亮度采用自动调节的模式,当第一参数为0时,表明移动终端中闪光灯的亮度不能采用自动调节的模式;第一参数为1或0的情况与第一参数为yes或no的情况非常类似,为节约篇幅,因此不再赘述。
步骤303,当所述第二判断结果表明所述第一参数满足所述第一条件时,向光检测器发送第一指令。
本发明实施例中,所述方法包括:
当所述第二判断结果表明所述第一参数不满足所述第一条件时,获取预设的驱动电路的第二数值,所述第二数值为非自动调节方式对应的固定驱动电流;
向所述闪光灯驱动器发送第三指令,所述第三指令用于控制所述闪光灯驱动器以所述第二数值,向所述闪光灯提供驱动电流。
本发明实施例中,所述步骤305,具体为根据所述光照强度结果查询预设的列表,获得闪光灯驱动器的驱动电流的第一数值。
本发明实施例中,所述第一指令用于周期性地触发光检测器检测周围环境的光照强度;
对应地,所述接收所述光检测器检测的光照强度结果,包括:
周期性地获取所述光检测器检测的光照强度结果;
对应地,所述根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值,包括:
根据每一周期内获取的光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;
对应地,所述第二指令,用于控制所述闪光灯驱动器以每一周期内确定出的驱动电流的第一数值,向所述闪光灯提供驱动电流。
实施例三
基于上述的实施例一和实施例二,本发明实施例提供一种用户在将移动终端中闪光灯用作手电筒时自动调节闪光灯亮度的方法,图4为本发明实施例提供的移动终端在使用时自动调节闪光灯照明亮度的流程图,如图4所示,该流程包括:
步骤401,设置手电筒闪光灯亮度调节模式;
这里,可以预先在移动终端的设置界面或手电筒的应用界面中设置闪光灯亮度调节模式的选项,这里闪光灯亮度调节模式包括自动调节和非自动调
节两种模式。
步骤402,打开手电筒应用时,判断是否打开上述自动调节选项;否时,进入步骤403,是时,进入步骤404;
这里,打开手电筒应用即为将闪光灯用作手电筒。
这里,当上述自动调节选项打开时,手电筒闪光灯处在照明亮度自动调节模式;当关闭上述自动调节选项(即非自动调节模式)时,手电筒闪光灯以固定照明亮度进行照明,此时闪光灯照明亮度不可调节,以固定亮度工作。
步骤403,闪光灯以固定照明亮度进行照明;
这里,闪光灯驱动器向闪光灯提供固定驱动电流,所以闪光灯固定照明亮度进行照明。
步骤404,处理器周期性读取光检测器采集到光照强度数据;
这里,所述光照强度数据即为光照强度结果;
步骤405,处理器根据从光检测器读取的光照强度结果,适时自动调节闪光灯驱动单元的驱动电流,从而控制手电筒闪光灯照明亮度的自动调节。
实施例四
基于前述的方法实施例,本发明实施例提供一种调节闪光灯照明亮度的装置,图5-1为本发明实施例四调节闪光灯照明亮度的装置的组成结构示意图一,如图5-1所示,所述装置500包括第一检测单元501、第一判断单元502、第一发送单元503、接收单元504、确定单元505和第二发送单元506,其中:
所述第一检测单元501,适用于检测用户的第一操作,所述第一操作为用户对移动终端的操作;
所述第一判断单元502,适用于判断所述第一操作是否为打开闪光灯的操作,得到第一判断结果;
所述第一发送单元503,适用于当所述第一判断结果表明所述第一操作为打开闪光灯的操作时,向光检测器发送第一指令,所述第一指令用于触发
光检测器检测周围环境的光照强度;
所述接收单元504,适用于接收所述光检测器检测的光照强度结果;
所述确定单元504,适用于根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;
所述第二发送单元506,适用于向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
图5-2为本发明实施例四调节闪光灯照明亮度的装置的组成结构示意图二,如图5-2所示,所述装置500还包括第二获取单元507和第二判断单元508,其中:
所述第二获取单元507,适用于当所述第一判断结果表明所述第一操作为打开闪光灯的操作时,获取第一参数;
这里,所述第一参数为表明调节闪光灯亮度模式的参数。
所述第二判断单元508,适用于判断所述第一参数是否满足预设的第一条件,得到第二判断结果;
对应地,所述第一发送单元503,适用于当所述第二判断结果表明所述第一参数满足所述第一条件时,向光检测器发送第一指令。
本发明实施例中,所述调节闪光灯照明亮度的装置包括第三获取单元,适用于当所述第二判断结果表明所述第一参数不满足所述第一条件时,获取预设的驱动电路的第二数值;
对应地,所述第二发送单元,还适用于向所述闪光灯驱动器发送第三指令,所述第三指令用于控制所述闪光灯驱动器以所述驱动电路的第二数值,向所述闪光灯提供驱动电流。
本发明实施例中,所述确定单元,还适用于根据所述光照强度结果查询预设的列表,获得闪光灯驱动器的驱动电流的第一数值。
本发明实施例中,所述第一指令适用于周期性地触发光检测器检测周围环境的光照强度;
对应地,所述第一获取单元,还适用于周期性地接收所述光检测器检测的光照强度结果;
对应地,所述确定单元,还适用于根据每一周期内获取的光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;
对应地,所述第二指令适用于控制所述闪光灯驱动器以每一周期内确定出的驱动电流的第一数值,向所述闪光灯提供驱动电流。
这里需要指出的是:以上装置的描述,与上述方法描述是类似的,同方法的有益效果描述,不做赘述。对于本发明装置实施例中未披露的技术细节,请参照本发明方法实施例的描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器、磁碟或者光盘等各种可以存储
程序代码的介质。
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。
本发明实施例提供的调节闪光灯照明亮度的方法及其装置,通过检测周围环境的光照强度,确定闪光灯的驱动电流,能够根据环境亮度自动调节闪光灯的亮度,既能满足照明要求又能达到降低功耗、节省电量,从而有利于提升移动终端的续航能力,进而提高用户体验。
Claims (14)
- 一种调节闪光灯照明亮度的方法,包括:检测用户对移动终端的操作;当检测到用户打开所述移动终端的闪光灯的操作时,向所述移动终端的光检测器发送第一指令,所述第一指令用于触发所述光检测器检测所述移动终端周围环境的光照强度;根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值;向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
- 根据权利要求1所述的方法,在所述向光检测器发送第一指令之前,所述方法还包括:获取所述移动终端的调节闪光灯亮度的模式;当所述调节闪光灯亮度的模式满足预设的第一条件时,向所述光检测器发送所述第一指令。
- 根据权利要求2所述的方法,还包括:当所述调节闪光灯亮度的模式不满足所述第一条件时,获取预设的所述闪光灯驱动器的驱动电流的第二数值;向所述闪光灯驱动器发送第三指令,所述第三指令用于控制所述闪光灯驱动器以所述驱动电流的第二数值,向所述闪光灯提供驱动电流。
- 根据权利要求1所述的方法,其中,所述根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值,包括:根据所述光照强度结果查询预设的列表,获得所述闪光灯驱动器的驱动电流的第一数值。
- 根据权利要求1至4任一项所述的方法,其中,所述第一指令用于周期性地触发所述光检测器检测所述移动终端周围环境的光照强度;根据每一周期内获取的光照强度结果,确定所述闪光灯驱动器的驱动电 流的第一数值;所述第二指令,用于控制所述闪光灯驱动器以每一周期内确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
- 一种调节闪光灯照明亮度的装置,包括第一检测单元、第一判断单元、第一发送单元、接收单元、确定单元和第二发送单元,其中:所述第一检测单元,设置为检测用户对移动终端的操作;所述第一判断单元,设置为判断所述操作是否为打开所述移动终端的闪光灯;所述第一发送单元,设置为当所述操作是打开所述移动终端的闪光灯时,向所述移动终端的光检测器发送第一指令,所述第一指令适用于触发所述光检测器检测所述移动终端周围环境的光照强度;所述接收单元,设置为接收所述光检测器检测的光照强度结果;所述确定单元,设置为根据所述光照强度结果,确定所述移动终端的闪光灯驱动器的驱动电流的第一数值;所述第二发送单元,设置为向所述闪光灯驱动器发送第二指令,所述第二指令适用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
- 根据权利要求6所述的装置,还包括第二获取单元和第二判断单元,其中:所述第二获取单元,设置为获取所述移动终端的调节闪光灯亮度的模式;所述第二判断单元,设置为判断所述移动终端的调节闪光灯亮度的模式是否满足预设的第一条件;对应地,所述第一发送单元,是设置为当所述移动终端的调节闪光灯亮度的模式满足所述第一条件时,向所述光检测器发送所述第一指令。
- 根据权利要求7所述的装置,还包括第三获取单元,设置为当所述移动终端的调节闪光灯亮度的模式不满足所述第一条件时,获取预设的所述闪光灯驱动器的驱动电流的第二数值;所述第二发送单元,还设置为向所述闪光灯驱动器发送第三指令,所述第三指令适用于控制所述闪光灯驱动器以所述驱动电流的第二数值,向所述闪光灯提供驱动电流。
- 根据权利要求6所述的装置,其中,所述确定单元,是设置为根据所述光照强度结果查询预设的列表,获得所述闪光灯驱动器的驱动电流的第一数值。
- 根据权利要求6至9任一项所述的装置,其中,所述第一指令是适用于周期性地触发所述光检测器检测所述移动终端周围环境的光照强度;所述接收单元,是设置为周期性地接收所述光检测器检测的光照强度结果;所述确定单元,是设置为根据每一周期内获取的光照强度结果,确定所述闪光灯驱动器的驱动电流的第一数值;所述第二指令是设置为控制所述闪光灯驱动器以每一周期内确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流。
- 一种闪光灯照明装置,包括:光检测器、处理器、闪光灯驱动器和闪光灯,其中:所述光检测器,设置为根据所述处理器的第一指令,检测周围环境的光照强度,并将检测到的光照强度结果发送给所述处理器;所述处理器,设置为在用户打开闪光灯时,向所述光检测器发送所述第一指令;获取所述光检测器检测的光照强度结果,并根据所述光照强度结果,确定所述闪光灯驱动器的驱动电流的第一数值;以及向所述闪光灯驱动器发送第二指令,所述第二指令适用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流;所述闪光灯驱动器,设置为接收所述处理器发送的所述第二指令,根据所述第二指令向所述闪光灯提供驱动电流;所述闪光灯,设置为根据所述闪光灯驱动器提供的驱动电流进行照明。
- 一种闪光灯照明方法,包括:处理器在用户打开闪光灯时,向光检测器发送第一指令,所述第一指令 用于触发所述光检测器检测周围环境的光照强度;所述光检测器根据所述处理器发送的第一指令,检测周围环境的光照强度,并将检测到的光照强度结果发送给所述处理器;所述处理器接收光检测器检测发送的光照强度结果,并根据所述光照强度结果,确定闪光灯驱动器的驱动电流的第一数值;所述处理器向所述闪光灯驱动器发送第二指令,所述第二指令用于控制所述闪光灯驱动器以确定出的所述驱动电流的第一数值,向所述闪光灯提供驱动电流;所述闪光灯驱动器接收所述处理器发送的第二指令,根据所述第二指令向所述闪光灯提供驱动电流;所述闪光灯根据所述闪光灯驱动器提供的驱动电流进行照明。
- 一种计算机程序,包括程序指令,当该程序指令被移动终端设备执行时,使得该设备可实施权利要求1-5任一项的方法。
- 一种载有权利要求13所述计算机程序的载体。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410410253.6 | 2014-08-18 | ||
CN201410410253.6A CN105472824A (zh) | 2014-08-18 | 2014-08-18 | 调节照明亮度的方法及装置、照明方法及照明装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015154531A1 true WO2015154531A1 (zh) | 2015-10-15 |
Family
ID=54287263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/095409 WO2015154531A1 (zh) | 2014-08-18 | 2014-12-29 | 调节照明亮度的方法及装置、照明方法及照明装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105472824A (zh) |
WO (1) | WO2015154531A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535434A (zh) * | 2016-11-29 | 2017-03-22 | 维沃移动通信有限公司 | 一种移动终端的闪光灯控制方法及移动终端 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104809084A (zh) * | 2015-04-16 | 2015-07-29 | 深圳市金立通信设备有限公司 | 一种终端 |
CN108008880B (zh) * | 2017-12-25 | 2020-08-11 | 深圳豪客互联网有限公司 | 一种手电筒操作界面控制方法及装置 |
CN111954352B (zh) * | 2020-09-08 | 2022-06-14 | 安徽世林照明股份有限公司 | 一种移动终端设备照明灯的控制系统及方法 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201450532U (zh) * | 2009-06-04 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端 |
CN102081278A (zh) * | 2010-11-19 | 2011-06-01 | 华为终端有限公司 | 闪光控制方法及装置 |
WO2013046438A1 (ja) * | 2011-09-30 | 2013-04-04 | パイオニア株式会社 | 照明付き化粧鏡セット及び光源制御方法 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929560A (zh) * | 2005-09-09 | 2007-03-14 | 乐金电子(昆山)电脑有限公司 | 闪光亮度自动调节的个人移动终端及其调节方法 |
CN201318557Y (zh) * | 2008-12-10 | 2009-09-30 | 胡鹏 | 一种多用灯具 |
-
2014
- 2014-08-18 CN CN201410410253.6A patent/CN105472824A/zh active Pending
- 2014-12-29 WO PCT/CN2014/095409 patent/WO2015154531A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201450532U (zh) * | 2009-06-04 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端 |
CN102081278A (zh) * | 2010-11-19 | 2011-06-01 | 华为终端有限公司 | 闪光控制方法及装置 |
WO2013046438A1 (ja) * | 2011-09-30 | 2013-04-04 | パイオニア株式会社 | 照明付き化粧鏡セット及び光源制御方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535434A (zh) * | 2016-11-29 | 2017-03-22 | 维沃移动通信有限公司 | 一种移动终端的闪光灯控制方法及移动终端 |
CN106535434B (zh) * | 2016-11-29 | 2018-12-04 | 维沃移动通信有限公司 | 一种移动终端的闪光灯控制方法及移动终端 |
Also Published As
Publication number | Publication date |
---|---|
CN105472824A (zh) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160266643A1 (en) | System and method for setting display brightness of display of electronic device | |
TWI383112B (zh) | 可節省電能消耗之照明系統及其相關方法 | |
WO2015154531A1 (zh) | 调节照明亮度的方法及装置、照明方法及照明装置 | |
KR20130051569A (ko) | 휴대단말기의 온도 제어장치 및 방법 | |
CN109892010B (zh) | 可调光照明设备 | |
TW201205042A (en) | Electronic apparatus, proximity sensor and control method thereof | |
CN104661413A (zh) | 一种手电亮度调节方法和装置 | |
US10090926B2 (en) | Visible light communication | |
CN106094198B (zh) | 一种智能色选机光学系统自适应校正方法及装置 | |
US20140171124A1 (en) | Saving gps power by detecting indoor use | |
CN102546902A (zh) | 通过手机摄像头对光强度进行检测来控制手机背光的方法 | |
CN102183993A (zh) | 微型投影机与手机结合的便携式pc系统 | |
CN205566715U (zh) | 具有自动调节亮度功能的指示灯及包含其的电子装置 | |
US20150138433A1 (en) | Illumination Control System and Illumination Control Method | |
CN108156733B (zh) | 一种路灯亮度控制系统 | |
CN102063871A (zh) | 显示屏亮度自适应的电子设备及自适应方法 | |
CN113873122A (zh) | 双闪摄像头独立闪光控制方法、系统、装置及存储介质 | |
CN115379615B (zh) | 一种电子设备及控制发光装置亮度的方法 | |
CN103905117A (zh) | 基于有摄像头的智能手机的无线数据通信方法 | |
CN203289539U (zh) | 一种智能亮度控制猎物相机 | |
CN110913524B (zh) | 具备光控和调光功能的led电源控制装置及控制方法 | |
TW201814389A (zh) | 智慧相機閃光系統 | |
CN203289570U (zh) | 一种智能亮度控制数码夜视仪 | |
CN203661373U (zh) | 太阳能和市电兼容的警示灯 | |
US8405315B2 (en) | Energy-saving lamp |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14888634 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14888634 Country of ref document: EP Kind code of ref document: A1 |