WO2019047115A1 - 一种智能终端的闪光灯控制方法及控制系统 - Google Patents

一种智能终端的闪光灯控制方法及控制系统 Download PDF

Info

Publication number
WO2019047115A1
WO2019047115A1 PCT/CN2017/100938 CN2017100938W WO2019047115A1 WO 2019047115 A1 WO2019047115 A1 WO 2019047115A1 CN 2017100938 W CN2017100938 W CN 2017100938W WO 2019047115 A1 WO2019047115 A1 WO 2019047115A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash
smart terminal
distance
module
threshold
Prior art date
Application number
PCT/CN2017/100938
Other languages
English (en)
French (fr)
Inventor
王周丹
王雪蓉
骆海涛
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/100938 priority Critical patent/WO2019047115A1/zh
Publication of WO2019047115A1 publication Critical patent/WO2019047115A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of intelligent terminals, and in particular, to a flash control method and a control system for an intelligent terminal.
  • flash phones for smartphones have the following main uses:
  • the flash of the smartphone can be used as a camera aid.
  • the flash is usually used for taking pictures in the dark or in the absence of sufficient light, and the rear camera assists in taking clearer pictures at night.
  • the flash is one of the most commonly used image attachments for photographers. It adds a certain amount of illumination to the dark environment, making the subject of the picture brighter. Therefore, the flash of the smartphone is widely used in smartphones to take photos.
  • the flash of the smartphone can be used not only as a camera aid for the rear camera of the camera, but also for the rear camera to take clear photos at night, and can also be used as a photo.
  • the lighting equipment is used as a photographic light to assist the lighting, and special effects are arranged according to the photographer's requirements.
  • the flash is used as a camera assisting tool.
  • it can be set to three modes, namely a normally open mode, an automatic mode, and an off mode.
  • the automatic mode is set to the automatic mode, if the current ambient light is not less than the set illumination threshold, The flash is turned off. If the current ambient illumination is less than the set illumination threshold, the flash is turned on for a fixed amount of flash.
  • the prior art has the following problems: after the flash is turned on, the illumination light line and the illumination intensity of the flash cannot be adjusted, resulting in battery waste and lighting demand cannot be satisfied, and the flash is a large current.
  • the flash In the case of a device, if only a small amount of flash is required, the flash still performs a fixed amount of flash, and the amount of flash cannot be adjusted according to the actual situation, which wastes the power of the shooting device. Moreover, at this time, the color temperature of the environment is destroyed due to the opening of the flash, thereby affecting the white balance of the camera.
  • the flash of a smartphone can also be used as a flashlight as a lighting device.
  • Smartphones have become an inseparable part of people's daily lives, and smart phones with more and more powerful functions have brought us more and more convenience.
  • the flash on the back of the smartphone can also be used as a lighting tool.
  • users can't carry light sources with them, such as flashlights, but they all carry smart phones with them. Therefore, when walking at night, camping in the wild, or looking for items in the dark, the flash can be used as a light source to meet the lighting needs of users. Play an important role.
  • the power consumption of the smartphone is also large, which affects the endurance of the smartphone.
  • the illumination direction of the flash of the smart phone and the intensity of the illumination light are not adjustable, the illumination range is limited, the illumination distance is short, and the concentration is not adjustable.
  • the flash is basically in the brightest state, and the light is glaring, affecting the user's use. Experience.
  • the present invention provides a flash control method and a control system for an intelligent terminal, which realizes the purpose of adjusting the direction of illumination of the flash and the intensity of the illumination, and automatically adjusts the mode of the low beam and the high beam of the flash according to the needs of the user, and illuminates the flash.
  • Direction, intensity, range, distance, etc. are adjusted to meet the user's lighting needs, to achieve the best lighting effect of the flash, to control the flash to the user's comfortable brightness, save power, extend battery life, and improve user experience.
  • an object of the present invention is to provide a flash control method and a control system for an intelligent terminal.
  • the invention discloses a flash control method for a smart terminal, comprising the following steps:
  • the distance sensor of the smart terminal Calling the distance sensor of the smart terminal to detect a distance value between the distance sensor and an object, wherein the object is an object having a minimum distance from the distance sensor in a direction of the distance sensor;
  • the high beam mode of the flash is turned on.
  • the step of invoking an angular velocity sensor of the smart terminal to track an angle value of a facing direction and a vertical direction of the distance sensor of the smart terminal includes:
  • the angular velocity sensor of the smart terminal is invoked to track the facing direction and the vertical downward direction of the distance sensor that captures the smart terminal.
  • the angular velocity sensor of the smart terminal is called to track the facing direction and the vertical direction of the distance sensor that captures the smart terminal. Angle value.
  • the flash control method further includes:
  • the flash control method further includes:
  • the flash is turned off.
  • the flash control method further includes:
  • the invention also discloses a flash control system of a smart terminal, comprising a preset module, a start module, a setting module, a detecting module, a judging module and a control module;
  • the preset module is configured to set a distance sensor on a back side of the smart terminal near a flash of the smart terminal;
  • the startup module starts a flash of the smart terminal
  • the setting module sets a distance threshold
  • the detecting module is communicably connected to the preset module, and calls a distance sensor of the smart terminal to detect a distance value between the distance sensor and an object; wherein the object is in a direction opposite to the distance sensor An object having the smallest distance from the distance sensor;
  • the determining module is communicably connected to the setting module and the detecting module, and determines the size of the distance value and the distance threshold;
  • the control module is communicably connected to the determining module, and when the distance value is less than the distance threshold, turning on a low beam mode of the flash;
  • the startup module starts a flash of the smart terminal
  • the setting module sets an angle threshold
  • the detecting module calls an angular velocity sensor of the smart terminal to track an angle value of a facing direction and a vertical direction of the distance sensor that captures the smart terminal;
  • the determining module determines a size of the angle value and the angle threshold
  • the control module when the angle value is less than the angle threshold, turning on a low beam mode of the flash;
  • the high beam mode of the flash is turned on.
  • the detecting module includes a determining unit and a detecting unit;
  • the determining unit determines an orientation of a facing direction of the distance sensor of the smart terminal
  • the detecting unit is communicably connected to the determining unit, and when the facing direction of the distance sensor of the smart terminal faces downward, the angular velocity sensor of the smart terminal is invoked to track and capture the The angle between the facing direction of the sensor and the vertical downward direction;
  • the angular velocity sensor of the smart terminal is called to track the facing direction and the vertical direction of the distance sensor that captures the smart terminal. Angle value.
  • the setting module sets a time threshold
  • the detecting module detects an accumulated time when the flash is turned on
  • the determining module compares the accumulated time and the time threshold
  • the control module turns off the flash when the accumulated time exceeds the time threshold.
  • the detecting module detects a screen state of the smart terminal
  • the control module is communicably connected to the detecting module, and is closed when the smart terminal is in a blanking state The flash.
  • the setting module sets an adjustment switch of the flash, and sets a correspondence relationship between the adjustment switch and the flash driving current;
  • the detecting module detects a change of the adjustment switch
  • the control module adjusts a driving current of the flash lamp according to a change of the adjustment switch and a corresponding relationship between the adjustment switch and the flash driving current, thereby adjusting an illumination brightness of the flash.
  • the invention provides a flash control method and a control system for an intelligent terminal, which realizes the purpose of adjusting the direction of the flash illumination and the intensity of the illumination, and automatically adjusts the mode of the low beam and the high beam of the flash according to the needs of the user, and illuminates the flash.
  • Direction, intensity, range, distance, etc. are adjusted to meet the user's lighting needs, to achieve the best lighting effect of the flash, to control the flash to the user's comfortable brightness, save power, extend battery life, and improve user experience.
  • FIG. 1 is a schematic flow chart of a flash lamp control method in accordance with a preferred embodiment of the present invention
  • FIG. 2 is a schematic flow chart of another method of controlling a flash lamp according to a preferred embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a step of measuring an angle value of the flash control method of FIG. 2;
  • FIG. 4 is a flow chart showing a timing closing step of a flash lamp control method in accordance with a preferred embodiment of the present invention
  • FIG. 5 is a flow chart showing a step of turning off the screen in accordance with a flash control method according to a preferred embodiment of the present invention
  • FIG. 6 is a flow chart showing a step of adjusting brightness of a flash control method according to a preferred embodiment of the present invention.
  • Figure 7 is a flow chart showing a flash control system in accordance with a preferred embodiment of the present invention.
  • the flash control method and control system of the present invention can be applied to an intelligent terminal, and the smart terminal can be implemented in various forms.
  • the smart terminal described in the present invention may include mobiles such as mobile phones, smart phones, notebook computers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), navigation devices, smart watches, and the like.
  • Terminals, as well as fixed terminals such as digital TVs, desktop computers, and the like.
  • the present invention will be described assuming that the terminal is a mobile terminal and assuming that the mobile terminal is a smart phone.
  • configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • the embodiments of the present invention are described by taking a smart phone as an example, and other application scenarios may be referred to each other.
  • a flash control method for a smart terminal includes the following steps:
  • a distance sensor is disposed on a back of the smart terminal near a flash of the smart terminal;
  • S400 Calling a distance sensor of the smart terminal to detect a distance value between the distance sensor and an object, wherein the object is an object having a minimum distance from the distance sensor in a direction opposite to the distance sensor;
  • S500 determining a size of the distance value and the distance threshold
  • S600 Turn on a low beam mode of the flash when the distance value is less than the distance threshold; and turn on a high beam mode of the flash when the distance value is greater than or equal to the distance threshold.
  • S300' calling an angular velocity sensor of the smart terminal, and tracking an angle value of a facing direction and a vertical direction of the distance sensor that captures the smart terminal;
  • S500' when the angle value is less than the angle threshold, turning on a low beam mode of the flash; when the angle value is greater than or equal to the angle threshold, turning on a high beam mode of the flash.
  • the flash control method provided by the present invention can be applied to various situations such as a flashing off lamp used as a photographing auxiliary tool or as a lighting tool, by detecting the distance between the back of the smart phone and the object or the ground or detecting the angle of the user holding the smart phone. Realize the adjustment of flash low beam and high beam mode. specifically:
  • Step S100 On the back side of the smart terminal, a distance sensor is disposed near the flash of the smart terminal; and the flash of the smart terminal is turned on;
  • the flash in the smartphone is usually set on the back of the smartphone and near the rear camera. Therefore, you need to set a distance sensor on the back of the smartphone to detect the distance between the back of the smartphone and the object or the ground. Of course, if the flash in the smartphone is set on the front of the smartphone, you can directly use the built-in front distance sensor.
  • Step S200 Turn on the flash of the smart terminal
  • the user turns on the smartphone flash and aligns the smartphone's flash to the object to be shot or illuminated.
  • Step S400 Calling a distance sensor of the smart terminal to detect a distance value between the distance sensor and an object, wherein the object is an object having a minimum distance from the distance sensor in a direction opposite to the distance sensor;
  • the distance sensor detects the physical change amount of the object using various elements, and measures the distance from the sensor to the object by converting the amount of change into a distance. According to different components, it is divided into optical displacement sensor, linear proximity sensor, ultrasonic displacement sensor and so on.
  • a distance sensor used in a typical smart terminal is a sensor that uses time to measure distance. Its working principle is to calculate the distance from the object by measuring the time by emitting a particularly short pulse of light and measuring the time from the emission of the light pulse to being reflected by the object.
  • the front distance sensor is generally disposed on both sides of the smartphone earpiece or in the groove of the smart phone earphone, so that the user can work with the front distance sensor when the user When answering or making a call, the mobile phone is placed close to the head or ear.
  • the front distance sensor can measure the distance between the human head or the ear and the smart phone.
  • the touch screen backlight is controlled. Turn off, the touch screen is turned off, so that the wrong operation of the touch screen in the call state can be prevented, and the power of the smart phone can be saved.
  • the backlight of the touch screen is turned on again, and the touch screen is turned on. This makes it easier for users to hang up the phone for other operations and saves power.
  • Step S600 When the distance value is less than the distance threshold, turn on the low beam mode of the flash; when the distance value is greater than or equal to the distance threshold, turn on the high beam mode of the flash.
  • a distance threshold is set in advance, for example, 2 m, which can be set by the system or adjusted by the user according to needs.
  • the distance sensor of the smart phone detects a distance close to an object or the ground, for example, less than 2 m, it is determined as a user. It is necessary to illuminate the near object.
  • the low beam mode of the flash is turned on, so that the illumination light of the flash has a large illumination range (about 160°), the illumination distance is short, and the light is concentrated, thereby achieving close-range illumination;
  • the distance sensor of the smart phone detects a distance from an object or the ground, it is determined that the user needs to illuminate a distant object. At this time, the high beam mode of the flash is turned on, so that the illumination light of the flash is emitted in parallel and the irradiation distance is long. High brightness for long-distance illumination.
  • An angle threshold is preset in the S200', for example, the facing direction of the distance sensor on the back of the smartphone (ie, the direction perpendicular to the back of the smartphone) and the vertical direction (upward and downward in the vertical direction).
  • the angle threshold is 45°, which can be adjusted by the system or the user can adjust it according to the needs.
  • the angular velocity sensor detects that the angle between the facing direction and the vertical direction of the distance sensor on the back of the smartphone is less than 45°, it is judged that the user needs illumination nearby.
  • the low beam mode of the flash is turned on, so that the illumination light of the flash has a large illumination range, the illumination distance is short, and the light is concentrated, thereby achieving close-range illumination;
  • the angular velocity sensor detects that the angle between the facing direction of the distance sensor on the back of the smartphone and the vertical direction is greater than or equal to 45°, it is determined that the user needs to illuminate a distant object, and at this time, the high beam mode of the flash is turned on, so that the flash The illumination light is emitted in parallel, the illumination distance is long, and the brightness is high, thereby achieving long-distance illumination.
  • S300' the angular velocity sensor of the smart terminal is invoked, and the step of tracking the angle values of the facing direction and the vertical direction of the distance sensor of the smart terminal is included. :
  • S310' determining an orientation of a facing direction of the distance sensor of the smart terminal
  • the angular velocity sensor of the smart terminal is called to track the facing direction and the vertical direction of the distance sensor that captures the smart terminal. Angle value.
  • the purpose of adjusting the direction of illumination of the flash and the intensity of the illumination can be adjusted.
  • the mode of low beam and high beam of the flash can be automatically adjusted to adjust the direction, intensity, range and distance of the flash illumination to satisfy the user.
  • Lighting needs to play the best lighting effect of the flash, control the flash to the brightness of the human eye, save power, extend battery life and improve the user experience.
  • the flash control method further includes:
  • S800 detecting an accumulated time when the flash is turned on
  • S900 Compare the accumulated time with the size of the time threshold, and when the accumulated time exceeds the time threshold, turn off the flash.
  • the flash control method further includes:
  • S1100 Turn off the flash when the smart terminal is in the off state.
  • a judgment condition can be set, and when the judgment condition is satisfied, the flash is automatically turned off to save power, which is beneficial to prolonging the life time of the smart phone.
  • the judgment condition can be designed to be a certain time, for example, 2 min, and the flash is automatically turned off when it is detected that the flash has been turned on for more than 2 minutes; or, the judgment condition can be designed to be in a state where the smart phone is in the off state, when the smart phone is detected.
  • the flash is automatically turned off after the screen is automatically turned off or the screen is manually locked.
  • the judgment condition can be turned on or off in the smart phone. When the user needs the flash to use the desk lamp, the above judgment condition can be turned off, and the flash is always turned on.
  • the flash control method further includes:
  • S1200 setting an adjustment switch of the flash, and setting a correspondence relationship between the adjustment switch and the flash driving current;
  • S1400 Adjust a driving current of the flash according to a change of the adjustment switch and a corresponding relationship between the adjustment switch and the flash driving current, thereby adjusting an illumination brightness of the flash.
  • the adjustment of the brightness of the flash can be achieved by setting an adjustment switch that controls the brightness of the flash in the flash.
  • the adjustment switch for controlling the brightness of the flash is connected with the driving current or driving voltage of the flash or the pulse width modulation duty-modulation signal, and a correspondence relationship is set, and the driving current of the flash or the driving voltage or the pulse width modulation is controlled by controlling the adjusting switch.
  • the air ratio modulates the signal to adjust the brightness of the flash.
  • the adjustment switch can be set to the volume key on the smartphone, and a correspondence relationship is set between the volume key and the driving current or driving voltage of the flash or the pulse width modulation duty-modulation signal, for example, the volume can be set.
  • the key "+” the driving current of the flash is increased
  • the volume key is "-" the driving current of the flash is reduced.
  • the volume button "+” of the smartphone the driving current of the flash increases, and the brightness of the flash increases.
  • the volume button "-” of the smartphone the driving current of the flash decreases, and the flash The brightness is reduced.
  • the user can continuously press the volume button “+” or “-” of the smartphone to continuously adjust the brightness of the flash.
  • the volume button of the mobile phone can be a physical switch existing on the smart phone or a new physical button, a physical button, a physical button, a physical rotation button, etc., and can also be a touch switch in a camera or a flashlight application on a smart phone.
  • Touch buttons and other forms can also be gestures such as long press on the smartphone screen, long press and slide on the screen, and do not limit the specific form of the volume button.
  • the adjustment switch is set to the volume key on the smart phone, when the user uses the headset without the remote control on the smart phone to listen to the audio and video, make a phone call, or use the external function to listen to the audio and video, and make a phone call.
  • a priority of the volume key adjustment can be designed.
  • the volume adjustment level of the volume key can be designed to be higher than the brightness adjustment of the flash, so that the user adjusts the volume key by using the wire-controlled earphone or externally listening to the audio and video on the smart phone, and adjusting the volume key to adjust the listening and watching.
  • the volume button to adjust the volume. If the application requires volume adjustment, for example, the current page is a phone page, adjust the volume button to adjust the volume. If the application requires brightness adjustment, such as a flashlight, adjust the volume button to adjust the brightness. If neither is, First adjust the volume. If you need to further adjust the brightness of the flash, you need to enter the application page of the camera or flashlight. At this time, adjust the volume button to adjust the brightness of the flash.
  • brightness adjustment such as a flashlight
  • the volume key can adjust the volume and brightness in different forms to distinguish the two.
  • the volume button can be designed to adjust the volume of the smartphone, and the volume button is double for the smart Adjust the brightness of the phone flash.
  • taking the physical volume key on the side of the smart phone as an example when the user presses the volume key, the user is prompted to adjust the flash brightness or need to adjust the volume according to the user's different selection, and the user continues.
  • the volume button to adjust the brightness or volume; or, for example, the touch switch on the smartphone, when the user presses the volume button, the volume and brightness adjustment buttons can be displayed simultaneously on the screen of the smartphone, such as
  • the up and down keys are for brightness adjustment
  • the left and right buttons are for volume adjustment; or, for example, the touch screen gesture control on the smartphone, for example, when the user presses the volume button, the screen of the smartphone lights up, and after the screen is unlocked, the user is on the smartphone.
  • Screen or In the portrait mode slide up and down on the right hand side of the screen to adjust the brightness, and slide up and down on the left hand side of the screen to adjust the volume.
  • a brightness sensor can be set in the smartphone to automatically adjust the brightness of the flash according to the brightness of the surrounding environment.
  • a correspondence relationship is set between the brightness of the external environment and the flash driving current or the driving voltage or the pulse width modulation duty-modulating signal.
  • the brightness of the external environment around the smart phone is automatically detected, according to the brightness of the external environment and the external environment.
  • the relationship between the brightness and the flash drive current or the drive voltage or the pulse width modulation duty cycle modulation signal adjusts the illumination brightness of the flash so that the brightness of the flash is consistent with the brightness of the external environment.
  • the brightness adjustment method provided by the invention can also set a color sensor in the smart phone, automatically adjust the color of the flash according to the color of the surrounding environment, or the user can set the color of the flash according to the need, and adjust the flash.
  • brightness For example, you can adjust the brightness of the lower flash automatically or manually, and adjust the color of the flash automatically or manually to a light yellow color. This allows the flash to be used as a desk lamp with low brightness, no glare, and yellow to protect the eyes.
  • the present invention further discloses a flash control system 100 for an intelligent terminal, comprising a preset module 10, a startup module 11, a setting module 12, a detection module 13, a determination module 14, and a control module 15;
  • the preset module 10 is disposed on the back of the smart terminal, and is disposed at a flash near the smart terminal;
  • the startup module 11 turns on a flash of the smart terminal
  • the setting module 12 sets a distance threshold
  • the detecting module 13 is communicably connected to the preset module 10, and calls a distance sensor of the smart terminal to detect a distance value between the distance sensor and an object, wherein the object is positive of the distance sensor An object having the smallest distance from the distance sensor in the direction;
  • the determining module 14 is communicatively connected to the setting module 12 and the detecting module 13, and determines the size of the distance value and the distance threshold;
  • the control module 15 is communicably connected to the determining module 14, and when the distance value is less than the distance threshold, turning on the low beam mode of the flash;
  • the startup module 11 turns on a flash of the smart terminal
  • the setting module 12 sets an angle threshold
  • the detecting module 13 calls an angular velocity sensor of the smart terminal to track an angle value of a facing direction and a vertical direction of the distance sensor that captures the smart terminal;
  • the determining module 14 determines a size of the angle value and the angle threshold
  • the control module 15 is configured to turn on a low beam mode of the flash when the angle value is less than the angle threshold;
  • the high beam mode of the flash is turned on.
  • the detecting module 13 includes a determining unit and a detecting unit
  • the determining unit determines an orientation of a facing direction of the distance sensor of the smart terminal
  • the detecting unit is communicably connected to the determining unit, and when the facing direction of the distance sensor of the smart terminal faces downward, the angular velocity sensor of the smart terminal is invoked to track and capture the The angle between the facing direction of the sensor and the vertical downward direction;
  • the angular velocity sensor of the smart terminal is called to track the facing direction and the vertical direction of the distance sensor that captures the smart terminal. Angle value.
  • the setting module 12 sets a time threshold
  • the detecting module 13 detects an accumulated time when the flash is turned on
  • the determining module 14 compares the accumulated time with the size of the time threshold
  • the control module 15 turns off the flash when the accumulated time exceeds the time threshold.
  • the detecting module 13 detects a screen state of the smart terminal
  • the control module 15 is communicatively coupled to the detection module 13 and turns off the flash when the smart terminal is in an off-screen state.
  • the setting module 12 sets an adjustment switch of the flash, and sets a correspondence between the adjustment switch and the flash driving current;
  • the detecting module 13 detects a change of the adjustment switch
  • the control module 15 adjusts a driving current of the flash according to a change of the adjustment switch and a corresponding relationship between the adjustment switch and the flash driving current, thereby adjusting an illumination brightness of the flash.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种智能终端的闪光灯控制方法及控制系统,通过检测智能终端背面与物体或地面的距离或者检测用户手持智能终端的角度,实现闪光灯照明方向、照明强度可调节的目的,根据用户需要,自动调节闪光灯的近光、远光等模式,对闪光灯照明的方向、强度、范围、距离等进行调节,满足用户的照明需求,发挥闪光灯的最佳照明效果,将闪光灯控制在人眼舒适的亮度,节省电量,延长续航时间,提高用户的使用体验。

Description

一种智能终端的闪光灯控制方法及控制系统 技术领域
本发明涉及智能终端领域,尤其涉及一种智能终端的闪光灯控制方法及控制系统。
背景技术
自首款智能手机问世以来,智能手机制造商就在不断的改进产品设计,越来越多无法想象到的功能来到我们身边,随着智能手机功能的丰富以及移动互联网的快速发展,智能手机已然取代了我们身边很多常用的电子设备,改变着我们的生活方式以及周边的行业。
就智能手机的闪光灯而言,它是智能手机不可缺少的一个部件,在人们的日常生活中发挥着重要作用。目前,智能手机的闪光灯主要有以下几种用途:
第一,智能手机的闪光灯可用作拍照辅助工具,闪光灯通常用于黑夜或没有充足光线环境下的拍照,辅助后置摄像头在夜间拍出更清晰的照片。
由于智能手机携带的便利性和智能手机摄像头像素的大大提高,越来越多的用户更倾向于通过智能手机进行拍照,在某种程度上,智能手机已经逐渐取代相机成为当前拍照的主流工具。而闪光灯是摄影玩家最常用到的一种影像附件,它可以在暗光环境中增加一定量的照明,让画面的主体变得更加明亮。因此,智能手机的闪光灯被广泛应用于智能手机拍摄照片中,智能手机的闪光灯不仅可用作自身后置摄像头的拍照辅助工具,辅助后置摄像头在夜间拍出清晰的照片,而且还可用作打光设备,作为摄影灯辅助布光,根据摄影师的要求布置特殊效果。
闪光灯作为拍照辅助工具,现有技术中,可以设置为三种模式,分别是常开模式、自动模式和关闭模式,在设置为自动模式时,若当前的环境光照度不小于设置的照度阈值时,闪光灯关闭,若当前的环境光照度小于设置的照度阈值时,闪光灯开启,进行固定量的闪光。但是,在实现上述闪光灯闪光的过程中,现有技术中存在如下问题:打开闪光灯后无法对闪光灯的照明灯光线和照明灯强度进行调节,导致电池浪费和照明需求无法满足,闪光灯是一个大电流器件,如果仅需要少量闪光的情况下,闪光灯依然进行固定量的闪光,而不能根据实际情况进行闪光量的调节,这样就会浪费拍摄设备的电能。而且,此时由于闪光灯的开启破坏了环境的色温,进而影响摄像头的白平衡。
第二,智能手机的闪光灯还可用作手电筒,作为照明设备使用。
智能手机成了人们日常生活不可分割的一部分,功能越来越强大的智能手机给我们带来越来越多的方便。智能手机背部的闪光灯还可以用作照明工具。在日常生活中,用户不可能随身携带光源,如手电筒,但都随身携带智能手机,因此,在夜间走路、野外宿营或者在黑暗处寻找物品时,闪光灯就可用作光源,满足用户的照明需求,发挥重要的作用。
闪光灯作为照明设备使用时,智能手机的耗电量同样很大,影响智能手机的续航能力。现有技术中,智能手机的闪光灯的照明方向、照明光线的强度均不可调节,照射范围有限、照射距离短、聚光度也无法调节,闪光灯基本处于最亮的状态,光线刺眼,影响用户的使用体验。
因此,本发明提供了一种智能终端的闪光灯控制方法及控制系统,实现闪光灯照明方向、照明强度可调节的目的,根据用户需要,自动调节闪光灯的近光、远光等模式,对闪光灯照明的方向、强度、范围、距离等进行调节,满足用户的照明需求,发挥闪光灯的最佳照明效果,将闪光灯控制在人眼舒适的亮度,节省电量,延长续航时间,提高用户的使用体验。
发明内容
为了克服上述技术缺陷,本发明的目的在于提供一种智能终端的闪光灯控制方法及控制系统。
本发明公开了一种智能终端的闪光灯控制方法,包括以下步骤:
于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;
开启所述智能终端的闪光灯;
设定一距离阈值;
调用所述智能终端的所述距离传感器,检测所述距离传感器与一物体之间的距离值,其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
判断所述距离值与所述距离阈值的大小;
当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;
当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式;
和/或
开启所述智能终端的闪光灯;
设定一角度阈值;
调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正 对方向与竖直方向所呈的角度值;
判断所述角度值与所述角度阈值的大小;
当所述角度值小于所述角度阈值时,开启所述闪光灯的近光模式;
当所述角度值大于等于所述角度阈值时,开启所述闪光灯的远光模式。
优选地,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值的步骤包括:
判断所述智能终端的所述距离传感器的正对方向的朝向;
当所述智能终端的所述距离传感器的正对方向朝向向下时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向下方向所呈的角度值;
当所述智能终端的所述距离传感器的正对方向朝向向上时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向上方向所呈的角度值。
优选地,所述闪光灯控制方法还包括:
设定一时间阈值;
检测所述闪光灯开启的累计时间;
比较所述累计时间与所述时间阈值的大小,当所述累计时间超过所述时间阈值时,关闭所述闪光灯。
优选地,所述闪光灯控制方法还包括:
检测所述智能终端的屏幕状态;
当所述智能终端处于熄屏状态时,关闭所述闪光灯。
优选地,所述闪光灯控制方法还包括:
设定所述闪光灯的调节开关,设定所述调节开关与所述闪光灯驱动电流的对应关系;
检测所述调节开关的变化;
根据所述调节开关的变化及所述调节开关与所述闪光灯驱动电流的对应关系,调节所述闪光灯的驱动电流,进而调节所述闪光灯的照明亮度。
本发明还公开了一种智能终端的闪光灯控制系统,包括预置模块、启动模块、设定模块、检测模块、判断模块、控制模块;
所述预置模块,于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;
所述启动模块,开启所述智能终端的闪光灯;
所述设定模块,设定一距离阈值;
所述检测模块,与所述预置模块通信连接,调用所述智能终端的距离传感器,检测所述距离传感器与一物体之间的距离值;其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
所述判断模块,与所述设定模块、检测模块通信连接,判断所述距离值与所述距离阈值的大小;
所述控制模块,与所述判断模块通信连接,当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;
当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式;
和/或
所述启动模块,开启所述智能终端的闪光灯;
所述设定模块,设定一角度阈值;
所述检测模块,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值;
所述判断模块,判断所述角度值与所述角度阈值的大小;
所述控制模块,当所述角度值小于所述角度阈值时,开启所述闪光灯的近光模式;
当所述角度值大于等于所述角度阈值时,开启所述闪光灯的远光模式。
优选地,所述检测模块,包括判断单元、检测单元;
所述判断单元,判断所述智能终端的所述距离传感器的正对方向的朝向;
所述检测单元,与所述判断单元通信连接,当所述智能终端的所述距离传感器的正对方向朝向向下时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向下方向所呈的角度值;
当所述智能终端的所述距离传感器的正对方向朝向向上时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向上方向所呈的角度值。
优选地,所述设定模块,设定一时间阈值;
所述检测模块,检测所述闪光灯开启的累计时间;
所述判断模块,比较所述累计时间与所述时间阈值的大小;
所述控制模块,当所述累计时间超过所述时间阈值时,关闭所述闪光灯。
优选地,所述检测模块,检测所述智能终端的屏幕状态;
所述控制模块,与所述检测模块通信连接,当所述智能终端处于熄屏状态时,关闭 所述闪光灯。
优选地,所述设定模块,设定所述闪光灯的调节开关,设定所述调节开关与所述闪光灯驱动电流的对应关系;
所述检测模块,检测所述调节开关的变化;
所述控制模块,根据所述调节开关的变化及所述调节开关与所述闪光灯驱动电流的对应关系,调节所述闪光灯的驱动电流,进而调节所述闪光灯的照明亮度。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.本发明提供了一种智能终端的闪光灯控制方法及控制系统,实现闪光灯照明方向、照明强度可调节的目的,根据用户需要,自动调节闪光灯的近光、远光等模式,对闪光灯照明的方向、强度、范围、距离等进行调节,满足用户的照明需求,发挥闪光灯的最佳照明效果,将闪光灯控制在人眼舒适的亮度,节省电量,延长续航时间,提高用户的使用体验。
附图说明
图1为符合本发明一优选实施例的闪光灯控制方法的流程示意图;
图2为符合本发明一优选实施例的闪光灯控制方法的另一流程示意图;
图3为图2的闪光灯控制方法的测量角度值步骤的流程示意图;
图4为符合本发明一优选实施例的闪光灯控制方法的定时关闭步骤的流程示意图;
图5为符合本发明一优选实施例的闪光灯控制方法的熄屏关闭步骤的流程示意图;
图6为符合本发明一优选实施例的闪光灯控制方法的调节亮度步骤的流程示意图;
图7为符合本发明一优选实施例的闪光灯控制系统的流程示意图。
附图标记:
100-闪光灯控制系统;10-预置模块;11-启动模块;12-设定模块;13-检测模块;14-判断模块;15-控制模块。
具体实施方式
以下结合附图与具体实施例进一步阐述本发明的优点。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在 本发明和所附权利要求书中所使用的单数形式的“一”、“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
在本发明的描述中,除非另有规定和限定,对于本领域的普通技术人员而言,可以根据具体情况理解术语的具体含义。
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
本发明的闪光灯控制方法及控制系统,可以应用于智能终端,智能终端可以以各种形式来实施。例如,本发明中描述的智能终端可以包括诸如移动电话、智能电话、笔记本电脑、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、智能手表等的移动终端,以及诸如数字TV、台式计算机等的固定终端。下面,假设终端是移动终端,并假设该移动终端为智能手机,对本发明进行说明。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。为便于描述,本发明实施例均以智能手机为例进行说明,其它应用场景相互参照即可。
参考图1、2,一种智能终端的闪光灯控制方法,包括以下步骤:
S100:于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;
S200:开启所述智能终端的闪光灯;
S300:设定一距离阈值;
S400:调用所述智能终端的距离传感器,检测所述距离传感器与一物体之间的距离值,其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
S500:判断所述距离值与所述距离阈值的大小;
S600:当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式。
和/或
S100’:开启所述智能终端的闪光灯;
S200’:设定一角度阈值;
S300’:调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值;
S400’:判断所述角度值与所述角度阈值的大小;
S500’:当所述角度值小于所述角度阈值时,开启所述闪光灯的近光模式;当所述角度值大于等于所述角度阈值时,开启所述闪光灯的远光模式。
本发明所提供的闪光灯控制方法,可以应用于闪关灯用作拍照辅助工具或用作照明工具等各种情形,通过检测智能手机背面与物体或地面的距离或者检测用户手持智能手机的角度,实现闪光灯近光、远光模式的调节。具体地:
-步骤S100-S600:
步骤S100:于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;开启所述智能终端的闪光灯;
智能手机中的闪光灯一般设置在智能手机背面,后置摄像头附近,因此,需要在智能手机的背面闪光灯处设置一距离传感器,用于检测智能手机背面与物体或地面的距离。当然,若智能手机中的闪光灯设置在智能手机的正面,则直接利用自带的前置距离传感器即可。
步骤S200:开启所述智能终端的闪光灯;
使用者打开智能手机闪光灯,并将智能手机的闪光灯对准所要拍摄或照明的物体。
步骤S400:调用所述智能终端的距离传感器,检测所述距离传感器与一物体之间的距离值,其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
距离传感器利用各种元件检测对象物的物理变化量,通过将该变化量换算为距离,来测量从传感器到对象物的距离。根据使用元件不同,分为光学式位移传感器、线性接近传感器、超声波位移传感器等。通常的智能终端使用的距离传感器是利用测时间来实现距离测量的一种传感器。其工作原理为,通过发射特别短的光脉冲,并测量此光脉冲从发射到被物体反射回来的时间,通过测时间来计算与物体之间的距离。
在智能手机中,以现代最常见的触摸屏智能手机为例,前置距离传感器一般设置在智能手机听筒的两侧或者设置在智能手机听筒凹槽中,这样便于前置距离传感器的工作,当用户在接听或拨打电话时,将手机靠近头部或耳朵,前置距离传感器就可以测出人头部或耳朵与智能手机之间的距离,当该距离减小到一定程度后便控制触摸屏背景灯熄灭,触摸屏关闭,这样,一来可以防止在通话状态下对触摸屏的误操作,二来可以节约智能手机电量,当用户通话完毕拿开智能手机时,再度点亮触摸屏的背景灯,开启触摸屏,这样更方便用户挂断电话进行其他操作,也更为节省电量。
步骤S600:当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式。
在步骤S300中预先设置一距离阈值,例如2m,可由系统设置或用户根据需要自行调整,当智能手机的距离传感器检测到与某一物体或地面的距离很近时,例如小于2m,判断为用户需要照明近处的物体,此时开启闪光灯的近光模式,使得闪光灯的照明光线照射范围大(160°左右)、照射距离短、聚光,从而实现近距离照明;
当智能手机的距离传感器检测到与某一物体或地面的距离较远时,判断为用户需要照明远处的物体,此时开启闪光灯的远光模式,使得闪光灯的照明光线平行射出、照射距离长、亮度高,从而实现远距离照明。
-步骤S100’-S500’:
S200’中预先设置一角度阈值,例如智能手机背面的距离传感器的正对方向(即垂直与智能手机背面向外的方向)与竖直方向(竖直方向向上、向下均可)所呈的角度阈值为45°,可由系统设置或用户根据需要自行调整,当角速度传感器检测到智能手机背面的距离传感器的正对方向与竖直方向所呈的角度小于45°时,判断为用户需要照明近处的物体,此时开启闪光灯的近光模式,使得闪光灯的照明光线照射范围大、照射距离短、聚光,从而实现近距离照明;
当角速度传感器检测到智能手机背面的距离传感器的正对方向与竖直方向所呈的角度大于等于45°时,判断为用户需要照明远处的物体,此时开启闪光灯的远光模式,使得闪光灯的照明光线平行射出、照射距离长、亮度高,从而实现远距离照明。
参考图3,在一优选实施例中,S300’:调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值的步骤包括:
S310’:判断所述智能终端的所述距离传感器的正对方向的朝向;
S320’:当所述智能终端的所述距离传感器的正对方向朝向向下时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向下方向所呈的角度值;
当所述智能终端的所述距离传感器的正对方向朝向向上时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向上方向所呈的角度值。
通过上述步骤,实现闪光灯照明方向、照明强度可调节的目的,根据用户需要,自动调节闪光灯的近光、远光等模式,对闪光灯照明的方向、强度、范围、距离等进行调节,满足用户的照明需求,发挥闪光灯的最佳照明效果,将闪光灯控制在人眼舒适的亮度,节省电量,延长续航时间,提高用户的使用体验。
参考图4,在一优选实施例中,所述闪光灯控制方法还包括:
S700:设定一时间阈值;
S800:检测所述闪光灯开启的累计时间;
S900:比较所述累计时间与所述时间阈值的大小,当所述累计时间超过所述时间阈值时,关闭所述闪光灯。
参考图5,在一优选实施例中,所述闪光灯控制方法还包括:
S1000:检测所述智能终端的屏幕状态;
S1100:当所述智能终端处于熄屏状态时,关闭所述闪光灯。
本发明所提供的亮度调节方法,可以设定一判断条件,在判断条件满足时,自动关闭闪光灯,节省电量,有利于延长智能手机的续航时间。例如,可以将判断条件设计为一定时间,例如2min,当检测到闪光灯已开启的时间超过2min后,自动关闭闪光灯;或者,可以将判断条件设计为智能手机处于熄屏状态,当检测到智能手机自动熄屏或手动锁屏后,自动关闭闪光灯。在此基础上,可以在智能手机内将该判断条件开启或关闭,当用户需要闪光灯作台灯使用时,可以关闭上述判断条件,维持闪光灯一直开启。
参考图6,在一优选实施例中,所述闪光灯控制方法还包括:
S1200:设定所述闪光灯的调节开关,设定所述调节开关与所述闪光灯驱动电流的对应关系;
S1300:检测所述调节开关的变化;
S1400:根据所述调节开关的变化及所述调节开关与所述闪光灯驱动电流的对应关系,调节所述闪光灯的驱动电流,进而调节所述闪光灯的照明亮度。
通过在闪光灯内设定一控制闪光灯亮度的调节开关可以实现闪光灯亮度的调节。将控制闪光灯亮度的调节开关与闪光灯的驱动电流或驱动电压或脉冲宽度调制占空比调制信号联系起来,设置一对应关系,通过控制调节开关来控制闪光灯的驱动电流或驱动电压或脉冲宽度调制占空比调制信号,进而调节闪光灯的亮度。当将闪关灯用作照明工具时,通过上述步骤调节闪光灯至人眼舒适的亮度,可以将闪光灯作台灯使用。
例如,可以将调节开关设定为智能手机上的音量键,并在音量键与闪光灯的驱动电流或驱动电压或脉冲宽度调制占空比调制信号之间设置一对应关系,例如,可以设定音量键“+”时,增大所述闪光灯的驱动电流,音量键“-”时,减小所述闪光灯的驱动电流。这样,当用户按下智能手机的音量键“+”时,闪光灯的驱动电流增大,闪光灯的亮度增加,当用户按下智能手机的音量键“-”时,闪光灯的驱动电流减小,闪光灯的亮度减小。用户可以连续按下智能手机的音量键“+”或“-”,实现闪光灯亮度的连续调节。同样地,根据智能手机的不同厂家不同型号,智能手机的音量键形式各异,智 能手机的音量键可以是智能手机上已有或新设的实体开关、实体按钮、实体按键、实体转动键等多种形式,也可以是智能手机上相机或手电筒应用程序内的触控开关、触控按键等多种形式,也可以是智能手机屏幕上长按上下滑、长按左右滑等手势,不对音量键的具体形式进行限定。
进一步地,将调节开关设定为智能手机上的音量键,当用户在智能手机上使用不带线控的耳机收听观看音视频、打电话,或使用外放功能收听观看音视频、打电话的同时,需要使用闪光灯,并调节闪光灯的亮度时,即,音量键同时控制音量调节和亮度调节时,在一实施例中,可以设计一音量键调节的优先级。例如,可以设计音量键的音量调节的等级高于闪光灯的亮度调节,这样,用户在智能手机上使用线控耳机或外放收听观看音视频、打电话时,调节音量键,调节的是收听观看音视频、打电话的音量,而不是闪光灯的亮度,若用户需要进一步调节闪光灯的亮度,需要进入相机或手电筒的应用程序内使用其他方式进行调节;也可以设计为,调节音量键,首先对收听观看音视频、打电话的音量进行调节,在调节音量一段时间后,如1min后,继续调节音量键,可以实现对闪光灯亮度的调节,当然,也可以设计为闪光灯的亮度调节高于音量调节的等级;或者,可以设计为,调节音量键,首先对收听观看音视频、打电话的音量进行调节,若用户需要进一步调节闪光灯的亮度,需要进入相机或手电筒的应用程序页面内,这时调节音量键,对闪光灯的亮度进行调节;又或者,可以设计为,调节音量键,首先检测智能手机的当前页面是否是通讯应用、音乐应用、视频应用等需要音量调节的应用程序或是相机应用、手电筒应用等需要亮度调节的应用程序,若是需要音量调节的应用程序,例如,当前页面是电话页面,则调节音量键进行音量的调节,若是需要亮度调节的应用程序,例如手电筒,则调节音量键进行亮度调节,若两者都不是,则首先对音量进行调节,若用户需要进一步调节闪光灯的亮度,需要进入相机或手电筒的应用程序页面内,这时调节音量键,对闪光灯的亮度进行调节。
在一实施例中,音量键对音量和亮度的调节可以采用不同的形式,以将两者区别开来,例如,可以设计单击音量键是对智能手机音量的调节,双击音量键是对智能手机闪光灯亮度的调节。在一实施例中,以智能手机侧面的实体音量键为例,用户按下音量键时,在屏幕上弹框提示用户,需要调节闪光灯亮度或者需要调节音量,根据用户的不同选择,在用户继续按下音量键后进行亮度或音量的调节;或者,以智能手机上的触控开关为例,当用户按下音量键时,可以在智能手机的屏幕上同时显示音量与亮度的调节键,如上下键为亮度调节,左右键为音量调节;又或者,以智能手机上的触摸屏手势控制为例,用户按下音量键时,智能手机的屏幕亮起,在屏幕解锁后,用户在智能手机横屏或 竖屏状态下,在屏幕右手端上下滑动为亮度调节,在屏幕左手端上下滑动为音量调节。
此外,还可以在智能手机内设置亮度传感器,根据周围环境的亮度,自动调节闪光灯的亮度。首先在外界环境亮度与闪光灯驱动电流或驱动电压或脉冲宽度调制占空比调制信号之间设置一对应关系,用户打开闪光灯后,自动检测智能手机周围的外界环境亮度,根据外界环境亮度及外界环境亮度与闪光灯驱动电流或驱动电压或脉冲宽度调制占空比调制信号之间的对应关系,调节闪光灯的照明亮度,使得闪光灯亮度与外界环境亮度一致。在此基础上,本发明所提供的亮度调节方法,还可以在智能手机内设置颜色传感器,根据周围环境的颜色,自动调节闪光灯的颜色,或用户根据需要设定闪光灯的颜色,并调节闪光灯的亮度。例如,可以自动或手动调节较低的闪光灯的亮度,并自动或手动调节闪光灯的颜色为淡黄色,这样,可以将闪光灯用作台灯,亮度低,不刺眼,黄色还可以保护眼睛。
参考图7,本发明还公开了一种智能终端的闪光灯控制系统100,包括预置模块10、启动模块11、设定模块12、检测模块13、判断模块14、控制模块15;
所述预置模块10,于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;
所述启动模块11,开启所述智能终端的闪光灯;
所述设定模块12,设定一距离阈值;
所述检测模块13,与所述预置模块10通信连接,调用所述智能终端的距离传感器,检测所述距离传感器与一物体之间的距离值,其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
所述判断模块14,与所述设定模块12、检测模块13通信连接,判断所述距离值与所述距离阈值的大小;
所述控制模块15,与所述判断模块14通信连接,当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;
当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式;
和/或
所述启动模块11,开启所述智能终端的闪光灯;
所述设定模块12,设定一角度阈值;
所述检测模块13,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值;
所述判断模块14,判断所述角度值与所述角度阈值的大小;
所述控制模块15,当所述角度值小于所述角度阈值时,开启所述闪光灯的近光模式;
当所述角度值大于等于所述角度阈值时,开启所述闪光灯的远光模式。
在一优选实施例中,所述检测模块13,包括判断单元、检测单元;
所述判断单元,判断所述智能终端的所述距离传感器的正对方向的朝向;
所述检测单元,与所述判断单元通信连接,当所述智能终端的所述距离传感器的正对方向朝向向下时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向下方向所呈的角度值;
当所述智能终端的所述距离传感器的正对方向朝向向上时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向上方向所呈的角度值。
在一优选实施例中,所述设定模块12,设定一时间阈值;
所述检测模块13,检测所述闪光灯开启的累计时间;
所述判断模块14,比较所述累计时间与所述时间阈值的大小;
所述控制模块15,当所述累计时间超过所述时间阈值时,关闭所述闪光灯。
在一优选实施例中,所述检测模块13,检测所述智能终端的屏幕状态;
所述控制模块15,与所述检测模块13通信连接,当所述智能终端处于熄屏状态时,关闭所述闪光灯。
在一优选实施例中,所述设定模块12,设定所述闪光灯的调节开关,设定所述调节开关与所述闪光灯驱动电流的对应关系;
所述检测模块13,检测所述调节开关的变化;
所述控制模块15,根据所述调节开关的变化及所述调节开关与所述闪光灯驱动电流的对应关系,调节所述闪光灯的驱动电流,进而调节所述闪光灯的照明亮度。
对于上述控制系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。

Claims (10)

  1. 一种智能终端的闪光灯控制方法,其特征在于,包括以下步骤:
    于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;
    开启所述智能终端的闪光灯;
    设定一距离阈值;
    调用所述智能终端的所述距离传感器,检测所述距离传感器与一物体之间的距离值,其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
    判断所述距离值与所述距离阈值的大小;
    当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;
    当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式;
    和/或
    开启所述智能终端的闪光灯;
    设定一角度阈值;
    调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值;
    判断所述角度值与所述角度阈值的大小;
    当所述角度值小于所述角度阈值时,开启所述闪光灯的近光模式;
    当所述角度值大于等于所述角度阈值时,开启所述闪光灯的远光模式。
  2. 如权利要求1所述的闪光灯控制方法,其特征在于,
    调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值的步骤包括:
    判断所述智能终端的所述距离传感器的正对方向的朝向;
    当所述智能终端的所述距离传感器的正对方向朝向向下时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向下方向所呈的角度值;
    当所述智能终端的所述距离传感器的正对方向朝向向上时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向上方向所呈的角度值。
  3. 如权利要求1所述的闪光灯控制方法,其特征在于,
    所述闪光灯控制方法还包括:
    设定一时间阈值;
    检测所述闪光灯开启的累计时间;
    比较所述累计时间与所述时间阈值的大小,当所述累计时间超过所述时间阈值时,关闭所述闪光灯。
  4. 如权利要求1所述的闪光灯控制方法,其特征在于,
    所述闪光灯控制方法还包括:
    检测所述智能终端的屏幕状态;
    当所述智能终端处于熄屏状态时,关闭所述闪光灯。
  5. 如权利要求1所述的闪光灯控制方法,其特征在于,
    所述闪光灯控制方法还包括:
    设定所述闪光灯的调节开关,设定所述调节开关与所述闪光灯驱动电流的对应关系;
    检测所述调节开关的变化;
    根据所述调节开关的变化及所述调节开关与所述闪光灯驱动电流的对应关系,调节所述闪光灯的驱动电流,进而调节所述闪光灯的照明亮度。
  6. 一种智能终端的闪光灯控制系统,其特征在于,包括预置模块、启动模块、设定模块、检测模块、判断模块、控制模块;
    所述预置模块,于所述智能终端的背面,靠近所述智能终端的闪光灯处设置距离传感器;
    所述启动模块,开启所述智能终端的闪光灯;
    所述设定模块,设定一距离阈值;
    所述检测模块,与所述预置模块通信连接,调用所述智能终端的距离传感器,检测所述距离传感器与一物体之间的距离值,其中所述物体为所述距离传感器的正对方向上与所述距离传感器的间距最小的物体;
    所述判断模块,与所述设定模块、检测模块通信连接,判断所述距离值与所述距离阈值的大小;
    所述控制模块,与所述判断模块通信连接,当所述距离值小于所述距离阈值时,开启所述闪光灯的近光模式;
    当所述距离值大于等于所述距离阈值时,开启所述闪光灯的远光模式;
    和/或
    所述启动模块,开启所述智能终端的闪光灯;
    所述设定模块,设定一角度阈值;
    所述检测模块,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直方向所呈的角度值;
    所述判断模块,判断所述角度值与所述角度阈值的大小;
    所述控制模块,当所述角度值小于所述角度阈值时,开启所述闪光灯的近光模式;
    当所述角度值大于等于所述角度阈值时,开启所述闪光灯的远光模式。
  7. 如权利要求6所述的闪光灯控制系统,其特征在于,
    所述检测模块,包括判断单元、检测单元;
    所述判断单元,判断所述智能终端的所述距离传感器的正对方向的朝向;
    所述检测单元,与所述判断单元通信连接,当所述智能终端的所述距离传感器的正对方向朝向向下时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向下方向所呈的角度值;
    当所述智能终端的所述距离传感器的正对方向朝向向上时,调用所述智能终端的角速度传感器,跟踪捕获所述智能终端的所述距离传感器的正对方向与竖直向上方向所呈的角度值。
  8. 如权利要求6所述的闪光灯控制系统,其特征在于,
    所述设定模块,设定一时间阈值;
    所述检测模块,检测所述闪光灯开启的累计时间;
    所述判断模块,比较所述累计时间与所述时间阈值的大小;
    所述控制模块,当所述累计时间超过所述时间阈值时,关闭所述闪光灯。
  9. 如权利要求6所述的闪光灯控制系统,其特征在于,
    所述检测模块,检测所述智能终端的屏幕状态;
    所述控制模块,与所述检测模块通信连接,当所述智能终端处于熄屏状态时,关闭所述闪光灯。
  10. 如权利要求6所述的闪光灯控制系统,其特征在于,
    所述设定模块,设定所述闪光灯的调节开关,设定所述调节开关与所述闪光灯驱动电流的对应关系;
    所述检测模块,检测所述调节开关的变化;
    所述控制模块,根据所述调节开关的变化及所述调节开关与所述闪光灯驱动电流的对应关系,调节所述闪光灯的驱动电流,进而调节所述闪光灯的照明亮度。
PCT/CN2017/100938 2017-09-07 2017-09-07 一种智能终端的闪光灯控制方法及控制系统 WO2019047115A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100938 WO2019047115A1 (zh) 2017-09-07 2017-09-07 一种智能终端的闪光灯控制方法及控制系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100938 WO2019047115A1 (zh) 2017-09-07 2017-09-07 一种智能终端的闪光灯控制方法及控制系统

Publications (1)

Publication Number Publication Date
WO2019047115A1 true WO2019047115A1 (zh) 2019-03-14

Family

ID=65634660

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100938 WO2019047115A1 (zh) 2017-09-07 2017-09-07 一种智能终端的闪光灯控制方法及控制系统

Country Status (1)

Country Link
WO (1) WO2019047115A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253826A (zh) * 2020-02-10 2021-08-13 华为技术有限公司 一种控制方法、装置、终端以及存储介质
US20230244436A1 (en) * 2022-01-28 2023-08-03 Chiun Mai Communication Systems, Inc. Method and system for switching multi-function modes

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070273843A1 (en) * 2006-05-25 2007-11-29 Miklos Stern Arrangement for, and method of, increasing brightness of a projected image with drive-assisted flyback
CN104883496A (zh) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 一种婴儿拍照方法及移动终端
CN104967776A (zh) * 2015-06-11 2015-10-07 广东欧珀移动通信有限公司 一种拍照设置方法及用户终端
CN105721762A (zh) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 闪光灯控制方法及装置
CN106303266A (zh) * 2015-05-19 2017-01-04 小米科技有限责任公司 闪光灯的控制方法、装置及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070273843A1 (en) * 2006-05-25 2007-11-29 Miklos Stern Arrangement for, and method of, increasing brightness of a projected image with drive-assisted flyback
CN105721762A (zh) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 闪光灯控制方法及装置
CN104883496A (zh) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 一种婴儿拍照方法及移动终端
CN106303266A (zh) * 2015-05-19 2017-01-04 小米科技有限责任公司 闪光灯的控制方法、装置及终端
CN104967776A (zh) * 2015-06-11 2015-10-07 广东欧珀移动通信有限公司 一种拍照设置方法及用户终端

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253826A (zh) * 2020-02-10 2021-08-13 华为技术有限公司 一种控制方法、装置、终端以及存储介质
CN113253826B (zh) * 2020-02-10 2024-04-12 华为技术有限公司 一种控制方法、装置、终端以及存储介质
US20230244436A1 (en) * 2022-01-28 2023-08-03 Chiun Mai Communication Systems, Inc. Method and system for switching multi-function modes

Similar Documents

Publication Publication Date Title
US9754539B2 (en) Method and apparatus for setting brightness of a display screen
EP3103112B1 (en) System and method for setting display brightness of display of electronic device
TWI419063B (zh) 照相式行動通訊裝置及其閃光燈控制方法
CN107094346B (zh) 一种智能终端的闪光灯亮度调节方法及亮度调节系统
TWI334732B (en) Projector and method for adjusting projective luminance thereof
CN103312986A (zh) 一种基于移动终端的前置拍照补光方法及移动终端
KR20040087215A (ko) Lcd 화면 밝기 자동 조절 장치 및 그 방법
US11096255B2 (en) Ambient light sensing lighting system
TW201316323A (zh) 顯示調整裝置及顯示調整方法
JP2007535695A (ja) 携帯電子装置のディスプレイの動的な表示制御
WO2016029640A1 (zh) 一种背光亮度的控制方法及装置
WO2015131543A1 (zh) 一种利用终端前置摄像头拍照的方法及终端
WO2019047115A1 (zh) 一种智能终端的闪光灯控制方法及控制系统
US20190008018A1 (en) Method and apparatus for controlling smart flashlight and smart device
TW201417578A (zh) 具微型投影儀的移動終端及投影方法
US20210264876A1 (en) Brightness adjustment method and device, mobile terminal and storage medium
JP4270001B2 (ja) 携帯端末装置
US11096260B2 (en) Ambient light sensing lighting strobe system
KR100393805B1 (ko) 이동통신 단말기의 엘시디 배경조명 제어방법
WO2022062802A1 (zh) 移动终端的闪光灯控制方法及移动终端、存储介质、设备
US20070218859A1 (en) Method for switching operation modes of a mobile communication apparatus
CN111314550A (zh) 显示控制方法、装置、移动终端及存储介质
KR100739769B1 (ko) 디스플레이 장치의 자동 전원 제어 방법 및 장치
US11324094B2 (en) Hard and soft light module with ambient light sensing
KR100651385B1 (ko) 광량이 부족한 곳에서 인식률 증가 및 눈부심 방지를 위한디스플레이 제어 방법 및 장치

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: 17924138

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: 17924138

Country of ref document: EP

Kind code of ref document: A1