WO2017004886A1 - Image capturing method and terminal - Google Patents

Image capturing method and terminal Download PDF

Info

Publication number
WO2017004886A1
WO2017004886A1 PCT/CN2015/089185 CN2015089185W WO2017004886A1 WO 2017004886 A1 WO2017004886 A1 WO 2017004886A1 CN 2015089185 W CN2015089185 W CN 2015089185W WO 2017004886 A1 WO2017004886 A1 WO 2017004886A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
flash
current value
terminal
driving current
Prior art date
Application number
PCT/CN2015/089185
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2017004886A1 publication Critical patent/WO2017004886A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of terminal applications, and in particular, to a photographing method and a terminal.
  • the embodiment of the present invention provides a photographing method and a terminal.
  • the embodiment of the present invention provides a photographing method, including: when a flash pre-flashes, the terminal collects a current illuminance value of an environment in which the flash is located; and the terminal determines an actual photo of the flash according to the current illuminance value. Driving a current value; the terminal drives the flash with the actual driving current value and takes a picture.
  • the terminal determines the actual driving current value of the flash according to the current illuminance value, including: the terminal gradually adjusting the driving current value of the flash until the adjusted driving current value is The current illuminance value matches; the terminal will adjust the The drive current value is determined as the actual drive current value.
  • the terminal determines the actual driving current value of the flash according to the current illuminance value, including: the terminal determines a preset image brightness value according to the current illuminance value; and the terminal gradually adjusts a driving current value of the flash lamp, and after each adjusting the driving current value, driving the flash and taking a picture with the adjusted driving current value; the terminal analyzing the obtained image to determine the brightness of the image a value; the terminal determines the adjusted driving current value as the actual driving current value when the brightness value of the image is consistent with the preset image brightness value.
  • the terminal gradually adjusts the driving current value of the flash, including: the terminal gradually adjusting the driving current value of the flash in a manner of sequentially increasing a fixed value.
  • the determining, by the terminal, the actual driving current value of the flash according to the current illuminance value comprising: determining, by the terminal, the current illuminance value according to a correspondence between a preset illuminance value and a driving current. a drive current value; the terminal determines the corresponding drive current value as the actual drive current value.
  • an embodiment of the present invention provides a terminal, including: a light sensor, a controller, a flash, a driving circuit, and a camera; wherein the flash is configured to fill light when the camera is photographed; the driving circuit The light sensor is configured to collect a current illuminance value of an environment in which the terminal to which the terminal belongs when the flash is pre-flashed; the controller is configured to be configured according to the current a illuminance value, determining an actual driving current value of the flash; controlling the driving circuit to drive the flash with the actual driving current value, and controlling the camera to take a picture.
  • the controller is specifically configured to gradually adjust the driving current value of the flash until the adjusted driving current value matches the current illuminance value; determining the adjusted driving current value as the The actual drive current value is described.
  • the controller is specifically configured to be determined according to the current illuminance value. Determining a preset image brightness value; gradually adjusting a driving current value of the flash lamp, and after each adjusting the driving current value, controlling the driving circuit to drive the flash lamp with an adjusted driving current value and controlling the Taking a picture of the camera; analyzing the obtained image to determine a brightness value of the image; and determining, when the brightness value of the image is consistent with the brightness value of the preset image, determining the adjusted driving current value as the actual Drive current value.
  • the controller is specifically configured to gradually adjust the driving current value of the flash in a manner of sequentially incrementing a fixed value.
  • the controller is configured to determine a driving current value corresponding to the current illuminance value according to a preset relationship between the illuminance value and the driving current; and determine the corresponding driving current value as the Actual drive current value.
  • the embodiment of the invention provides a photographing method and a terminal.
  • the terminal collects the illuminance value of the current environment in real time, and then determines the actual driving current of the flash according to the illuminance value, and then The actual drive current drives the flash to fill the light. That is to say, the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, and it is not necessary to always drive the flash with a large current value.
  • the terminal performs photographing, power consumption can be reduced, and the battery can be improved.
  • the endurance capability further, since the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, the photograph taken can avoid overexposure or underexposure, adapt to more shooting scenes, and provide Good user experience.
  • FIG. 1 is a schematic flowchart diagram of a photographing method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a photographing method, which can be applied to terminals such as smart phones, tablet computers, portable digital cameras, and SLR cameras. At least one camera is disposed on the terminals, and a flash or flash array is disposed at a position beside the camera, and a driving circuit for driving the flash or the flash array and a light sensor are further disposed on the terminal.
  • the light sensor can be set in the vicinity of the front camera and the rear camera, so that the illuminance value of the environment in which the terminal is located can be more accurately collected.
  • the above photographing method includes:
  • the terminal collects a current illuminance value of an environment in which the flash is located when the flash performs pre-flashing;
  • the flash performs pre-flashing to reduce the red eye of the photo.
  • the terminal collects the illuminance value of the environment in which the environment is located by using the light sensor.
  • S102 The terminal determines an actual driving current value of the flash according to the current illuminance value
  • S102 may be, without being limited to, the following three cases.
  • the terminal determines the actual driving current value corresponding to the current illuminance value according to the correspondence between the preset illuminance value and the driving current.
  • the manufacturer or the software developer obtains the correspondence between the illuminance value and the driving current through multiple experiments, and presets it in the terminal. Then, when the user uses the terminal to take a photo, Through the preset correspondence, the actual driving current of the flash corresponding to the current illuminance is determined.
  • the terminal gradually adjusts the driving current value of the flash until the adjusted driving current value matches the current illuminance value; and determines the adjusted driving current value as the actual driving current value.
  • the terminal can gradually adjust the flash.
  • the driving current for example, the driving current starts from the initial value, and gradually adjusts the driving current value of the flash until the current illuminance value is matched, which may be when the flash is driven by the currently adjusted driving current value.
  • the flash fills the environment to achieve the best fill light effect, then the adjusted drive current value at this time is determined as the actual drive current value.
  • the terminal determines a preset image brightness value according to the current illuminance value; gradually adjusts the driving current value of the flash, and after each adjustment of the driving current value, drives the flash and takes a picture with the adjusted driving current value;
  • the obtained image is analyzed to determine the brightness value of the image; when the brightness value of the image is consistent with the brightness value of the preset image, the adjusted driving current value is determined as the actual driving current value.
  • the manufacturer or software developer presets the correspondence between the illuminance value and the image brightness value in the terminal.
  • the image brightness value here refers to the best exposure effect under different illuminance values.
  • the brightness value of the image is obtained after obtaining the current illumination value in S101, the terminal determines the corresponding preset image brightness value according to the corresponding relationship between the preset illumination value and the image brightness value, and then gradually adjusts the flash drive current value, which may be sequentially incremented.
  • the fixed value method gradually adjusts the driving current value of the flash, and after each adjustment of the driving current value, the flash is driven and photographed with the adjusted driving current value.
  • the terminal obtains an image, and then, the terminal Detecting a brightness value of the image, if the brightness value is consistent with the preset image brightness value, confirming the adjusted driving current value at this time as an actual driving current value of the flash, if the brightness value and the preset image brightness If the values do not match, continue to increase the drive current value and take a picture until the brightness value of the image obtained by the photograph is consistent with the preset image brightness value.
  • the terminal may also adopt other methods to obtain the actual driving current of the flash according to the current illuminance, which is not specifically limited in the present invention.
  • the terminal drives the flash with the actual driving current value and takes a picture.
  • the terminal determines the actual power of the flash corresponding to the current illumination value through S102. After the stream drive value, the flash is officially driven with the actual current drive value, the flash is lit, the shot area is filled, and the photograph is taken.
  • the terminal collects the illuminance value of the current environment in real time, and then determines the actual driving current of the flash according to the illuminance value, and then drives the flash to fill the light with the actual driving current.
  • the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, and it is not necessary to always drive the flash with a large current value.
  • the terminal performs photographing, power consumption can be reduced, and the battery can be improved.
  • the endurance capability since the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, the photograph taken can avoid overexposure or underexposure, adapt to more shooting scenes, and provide Good user experience.
  • the embodiment of the invention provides a terminal, which is consistent with the terminal described in one or more embodiments.
  • the terminal includes: a light sensor 21, a controller 22, a flash 23, a driving circuit 24, and a camera 25; wherein the flash 23 is configured to fill light when the camera 25 takes a picture; the driving circuit 24 is configured In order to drive the flash 23, the light sensor 21 is configured to collect the current illuminance value of the environment in which the terminal to which the terminal belongs when the flash 23 is pre-flashed; the controller 22 is configured to determine the actual driving current of the flash 23 according to the current illuminance value.
  • the control drive circuit 24 drives the flash 23 with the actual drive current value and controls the camera 25 to take a picture.
  • the controller 22 is specifically configured to gradually adjust the driving current value of the flash 23 until the adjusted driving current value matches the current illuminance value; and determine the adjusted driving current value as the actual driving current value.
  • the controller 22 is specifically configured to determine a preset image brightness value according to the current illuminance value; gradually adjust the driving current value of the flash 23, and adjust the driving current every time.
  • the control driving circuit 24 drives the flash 23 with the adjusted driving current value and controls the camera 25 to take a picture; analyzes the obtained image to determine the brightness value of the image; when the brightness value of the image matches the preset image brightness value
  • the adjusted drive current value is determined as the actual drive current value.
  • the controller 22 is specifically configured to gradually adjust the driving current value of the flash 23 in a manner of sequentially incrementing the fixed value.
  • the controller 22 is specifically configured to determine a driving current value corresponding to the current illuminance value according to a preset relationship between the illuminance value and the driving current; and determine a corresponding driving current value as the actual driving current value.
  • the controller 22 may be a CPU, an ARM, or a DSP of the terminal, and the present invention is not specifically limited.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • These computer program instructions can also be stored in a bootable computer or other programmable data processing
  • the apparatus is readable in a computer readable memory in a particular manner such that instructions stored in the computer readable memory produce an article of manufacture comprising instruction means implemented in one or more flows and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

An embodiment of the present invention discloses an image capturing method. The method comprises: acquiring, by a terminal, a current illuminance value of the environment where the terminal is located when a flash performs a pre-flash; determining, by the terminal and according to the current illuminance value, a value of an actual drive current of the flash; and driving, by the terminal, the flash with the value of the actual drive current. An embodiment of the present invention further discloses a terminal.

Description

一种拍照方法及终端Photographing method and terminal 技术领域Technical field
本发明涉及终端应用领域,尤其涉及一种拍照方法及终端。The present invention relates to the field of terminal applications, and in particular, to a photographing method and a terminal.
背景技术Background technique
目前,大多智能终端上都设置有摄像头及闪光灯,以供使用者在光线不好的环境下进行拍照。通常,闪光灯都是在预闪后以软件预设的驱动电流大小进行正式闪光,一般软件预设的闪光灯电流都是固定的,最大可接近1A。为了提供良好的用户体验,更好的适应不同的拍摄环境,对于不同照度的环境,会对应一个固定的闪光灯驱动电流值,这样就使得用户在使用终端的过程中,通过选择不同的场景模式,来调整闪光灯的驱动电流。但是,这样也会存在在不同照度的环境下,均以同一驱动电流值来驱动闪光灯,使得终端在拍照时耗电量大,影响电池续航。At present, most smart terminals are equipped with a camera and a flash for the user to take pictures in a poor light environment. Usually, the flash is officially flashed after the pre-flash with the software preset drive current. Generally, the default flash current of the software is fixed, and the maximum can be close to 1A. In order to provide a good user experience and better adapt to different shooting environments, for a different illumination environment, a fixed flash drive current value is required, so that the user selects different scene modes during the process of using the terminal. To adjust the drive current of the flash. However, this also exists in different illumination environments, all of which drive the flash with the same driving current value, so that the terminal consumes a large amount of power when taking pictures, which affects battery life.
发明内容Summary of the invention
有鉴于此,为解决现有技术存在的技术问题,本发明实施例提供一种拍照方法及终端。In view of this, in order to solve the technical problem existing in the prior art, the embodiment of the present invention provides a photographing method and a terminal.
第一方面,本发明实施例提供一种拍照方法,包括:终端在闪光灯进行预闪时,采集自身所处环境的当前光照度值;所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值;所述终端以所述实际驱动电流值驱动所述闪光灯,并拍照。In a first aspect, the embodiment of the present invention provides a photographing method, including: when a flash pre-flashes, the terminal collects a current illuminance value of an environment in which the flash is located; and the terminal determines an actual photo of the flash according to the current illuminance value. Driving a current value; the terminal drives the flash with the actual driving current value and takes a picture.
在上述方案中,所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值,包括:所述终端逐步调整所述闪光灯的驱动电流值,直至调整后的驱动电流值与所述当前光照度值匹配;所述终端将所述调整后 的驱动电流值确定为所述实际驱动电流值。In the above solution, the terminal determines the actual driving current value of the flash according to the current illuminance value, including: the terminal gradually adjusting the driving current value of the flash until the adjusted driving current value is The current illuminance value matches; the terminal will adjust the The drive current value is determined as the actual drive current value.
在上述方案中,所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值,包括:所述终端根据所述当前光照度值,确定一预设图像亮度值;所述终端逐步调整所述闪光灯的驱动电流值,并在每一次调整所述驱动电流值后,以调整后的驱动电流值驱动所述闪光灯并拍照;所述终端对获得的图像进行分析,确定所述图像的亮度值;所述终端在所述图像的亮度值与所述预设图像亮度值一致时,将所述调整后的驱动电流值确定为所述实际驱动电流值。In the above solution, the terminal determines the actual driving current value of the flash according to the current illuminance value, including: the terminal determines a preset image brightness value according to the current illuminance value; and the terminal gradually adjusts a driving current value of the flash lamp, and after each adjusting the driving current value, driving the flash and taking a picture with the adjusted driving current value; the terminal analyzing the obtained image to determine the brightness of the image a value; the terminal determines the adjusted driving current value as the actual driving current value when the brightness value of the image is consistent with the preset image brightness value.
在上述方案中,所述终端逐步调整所述闪光灯的驱动电流值,包括:所述终端按照依次递增固定值的方式,逐步调整所述闪光灯的驱动电流值。In the above solution, the terminal gradually adjusts the driving current value of the flash, including: the terminal gradually adjusting the driving current value of the flash in a manner of sequentially increasing a fixed value.
在上述方案中,所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值,包括:所述终端根据预设的光照度值与驱动电流的对应关系,确定所述当前光照度值对应的驱动电流值;所述终端将所述对应的驱动电流值确定为所述实际驱动电流值。In the above solution, the determining, by the terminal, the actual driving current value of the flash according to the current illuminance value, comprising: determining, by the terminal, the current illuminance value according to a correspondence between a preset illuminance value and a driving current. a drive current value; the terminal determines the corresponding drive current value as the actual drive current value.
第二方面,本发明实施例提供一种终端,包括:光线传感器、控制器、闪光灯、驱动电路以及摄像头;其中,所述闪光灯,配置为在所述摄像头拍照时进行补光;所述驱动电路,配置为驱动所述闪光灯;所述光线传感器,配置为在所述闪光灯进行预闪时,采集自身所属的所述终端所处环境的当前光照度值;所述控制器,配置为根据所述当前光照度值,确定所述闪光灯的实际驱动电流值;控制所述驱动电路以所述实际驱动电流值驱动所述闪光灯,并控制所述摄像头拍照。In a second aspect, an embodiment of the present invention provides a terminal, including: a light sensor, a controller, a flash, a driving circuit, and a camera; wherein the flash is configured to fill light when the camera is photographed; the driving circuit The light sensor is configured to collect a current illuminance value of an environment in which the terminal to which the terminal belongs when the flash is pre-flashed; the controller is configured to be configured according to the current a illuminance value, determining an actual driving current value of the flash; controlling the driving circuit to drive the flash with the actual driving current value, and controlling the camera to take a picture.
在上述方案中,所述控制器,具体配置为逐步调整所述闪光灯的驱动电流值,直至调整后的驱动电流值与所述当前光照度值匹配;将所述调整后的驱动电流值确定为所述实际驱动电流值。In the above solution, the controller is specifically configured to gradually adjust the driving current value of the flash until the adjusted driving current value matches the current illuminance value; determining the adjusted driving current value as the The actual drive current value is described.
在上述方案中,所述控制器,具体配置为根据所述当前光照度值,确 定一预设图像亮度值;逐步调整所述闪光灯的驱动电流值,并在每一次调整所述驱动电流值后,控制所述驱动电路以调整后的驱动电流值驱动所述闪光灯并控制所述摄像头拍照;对获得的图像进行分析,确定所述图像的亮度值;在所述图像的亮度值与所述预设图像亮度值一致时,将所述调整后的驱动电流值确定为所述实际驱动电流值。In the above solution, the controller is specifically configured to be determined according to the current illuminance value. Determining a preset image brightness value; gradually adjusting a driving current value of the flash lamp, and after each adjusting the driving current value, controlling the driving circuit to drive the flash lamp with an adjusted driving current value and controlling the Taking a picture of the camera; analyzing the obtained image to determine a brightness value of the image; and determining, when the brightness value of the image is consistent with the brightness value of the preset image, determining the adjusted driving current value as the actual Drive current value.
在上述方案中,所述控制器,具体配置为按照依次递增固定值的方式,逐步调整所述闪光灯的驱动电流值。In the above solution, the controller is specifically configured to gradually adjust the driving current value of the flash in a manner of sequentially incrementing a fixed value.
在上述方案中,所述控制器,具体配置为根据预设的光照度值与驱动电流的对应关系,确定所述当前光照度值对应的驱动电流值;将所述对应的驱动电流值确定为所述实际驱动电流值。In the above solution, the controller is configured to determine a driving current value corresponding to the current illuminance value according to a preset relationship between the illuminance value and the driving current; and determine the corresponding driving current value as the Actual drive current value.
本发明实施例提供了一种拍照方法及终端,终端在闪光灯进行预闪时,实时地采集当前自身所处环境的光照度值,然后,根据该照度值,确定出闪光灯的实际驱动电流,再以该实际驱动电流驱动闪光灯进行补光。也就是说,闪光灯的实际驱动电流是与终端当前所处环境的光照度相适应的,而不必一直以较大的电流值驱动闪光灯,如此,在终端进行拍照时,能够降低功耗,提高电池的续航能力;进一步地,由于闪光灯的实际驱动电流是与终端当前所处环境的光照度相适应的,这样,拍出来的照片能够避免出现过曝或者曝光不足的情况,适应更多的拍摄场景,提供良好的用户体验。The embodiment of the invention provides a photographing method and a terminal. When the flash pre-flashes, the terminal collects the illuminance value of the current environment in real time, and then determines the actual driving current of the flash according to the illuminance value, and then The actual drive current drives the flash to fill the light. That is to say, the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, and it is not necessary to always drive the flash with a large current value. Thus, when the terminal performs photographing, power consumption can be reduced, and the battery can be improved. The endurance capability; further, since the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, the photograph taken can avoid overexposure or underexposure, adapt to more shooting scenes, and provide Good user experience.
附图说明DRAWINGS
图1为本发明实施例中的拍照方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a photographing method according to an embodiment of the present invention;
图2为本发明实施例中的终端的结构示意图。FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述。The technical solution in the embodiment of the present invention will be further described below with reference to the accompanying drawings in the embodiments of the present invention. Clearly and completely described.
本发明实施例提供一种拍照方法,该方法可以应用于如智能手机、平板电脑、便携式数码相机、单反相机等终端。这些终端上均设置有至少一个摄像头,在摄像头的旁边位置设置有闪光灯或者闪光灯阵列,终端上还设置有驱动闪光灯或者闪光灯阵列的驱动电路,以及光线传感器。The embodiment of the invention provides a photographing method, which can be applied to terminals such as smart phones, tablet computers, portable digital cameras, and SLR cameras. At least one camera is disposed on the terminals, and a flash or flash array is disposed at a position beside the camera, and a driving circuit for driving the flash or the flash array and a light sensor are further disposed on the terminal.
在实际应用中,当终端具有前置和后置摄像头时,光线传感器可以在前摄像头和后摄像头附近都设置一个,这样,能够更精确的采集终端所处环境的光照度值。In practical applications, when the terminal has front and rear cameras, the light sensor can be set in the vicinity of the front camera and the rear camera, so that the illuminance value of the environment in which the terminal is located can be more accurately collected.
参见图1所示,上述拍照方法包括:Referring to FIG. 1, the above photographing method includes:
S101:终端在闪光灯进行预闪时,采集自身所处环境的当前光照度值;S101: the terminal collects a current illuminance value of an environment in which the flash is located when the flash performs pre-flashing;
具体来说,当用户打开闪光灯开关,并按下快门键时,首先,闪光灯进行预闪,以减少拍照红眼,此时,终端通过光线传感器采集自身所处环境的光照度值。Specifically, when the user turns on the flash switch and presses the shutter button, first, the flash performs pre-flashing to reduce the red eye of the photo. At this time, the terminal collects the illuminance value of the environment in which the environment is located by using the light sensor.
S102:终端根据当前光照度值,确定闪光灯的实际驱动电流值;S102: The terminal determines an actual driving current value of the flash according to the current illuminance value;
在具体实施过程中,S102可以有且不限于以下三种情况。In a specific implementation process, S102 may be, without being limited to, the following three cases.
第一种情况,终端根据预设的光照度值与驱动电流的对应关系,确定当前光照度值对应的实际驱动电流值。In the first case, the terminal determines the actual driving current value corresponding to the current illuminance value according to the correspondence between the preset illuminance value and the driving current.
具体来说,在终端出厂之前,制造商或者软件开发者会通过多次试验获得光照度值与驱动电流的对应关系,并预置于终端中,那么,当用户使用该终端进行拍照时,就可以通过该预设的对应关系,确定出与当前光照度对应的闪光灯的实际驱动电流。Specifically, before the terminal leaves the factory, the manufacturer or the software developer obtains the correspondence between the illuminance value and the driving current through multiple experiments, and presets it in the terminal. Then, when the user uses the terminal to take a photo, Through the preset correspondence, the actual driving current of the flash corresponding to the current illuminance is determined.
第二种情况,终端逐步调整闪光灯的驱动电流值,直至调整后的驱动电流值与当前光照度值匹配;将调整后的驱动电流值确定为实际驱动电流值。In the second case, the terminal gradually adjusts the driving current value of the flash until the adjusted driving current value matches the current illuminance value; and determines the adjusted driving current value as the actual driving current value.
具体来说,S101采集当前照度值之后,终端可以逐步地调整闪光灯的 驱动电流,比如,驱动电流从初始值开始,按照依次递增固定值的方式,逐步调整闪光灯的驱动电流值,直到与当前光照度值匹配,可以是当以当前调整后的驱动电流值驱动闪光灯时,闪光灯对环境的补光能够达到最优补光效果,那么,就将此时的调整后的驱动电流值确定为实际驱动电流值。Specifically, after the S101 collects the current illuminance value, the terminal can gradually adjust the flash. The driving current, for example, the driving current starts from the initial value, and gradually adjusts the driving current value of the flash until the current illuminance value is matched, which may be when the flash is driven by the currently adjusted driving current value. The flash fills the environment to achieve the best fill light effect, then the adjusted drive current value at this time is determined as the actual drive current value.
第三种情况,终端根据当前光照度值,确定一预设图像亮度值;逐步调整闪光灯的驱动电流值,并在每一次调整驱动电流值后,以调整后的驱动电流值驱动闪光灯并拍照;对获得的图像进行分析,确定图像的亮度值;在图像的亮度值与预设图像亮度值一致时,将调整后的驱动电流值确定为实际驱动电流值。In the third case, the terminal determines a preset image brightness value according to the current illuminance value; gradually adjusts the driving current value of the flash, and after each adjustment of the driving current value, drives the flash and takes a picture with the adjusted driving current value; The obtained image is analyzed to determine the brightness value of the image; when the brightness value of the image is consistent with the brightness value of the preset image, the adjusted driving current value is determined as the actual driving current value.
具体来说,在终端出厂之前,制造商或者软件开发者会在终端中预置光照度值与图像亮度值的对应关系,这里所说的图像亮度值是指在不同光照度值下,曝光效果最好的图像所具有的亮度值。那么,终端在S101中获得当前光照值后,根据预设的光照度值与图像亮度值的对应关系,确定出对应的预设图像亮度值,再逐步调整闪光灯的驱动电流值,可以为按照依次递增固定值的方式,逐步调整闪光灯的驱动电流值,并且在每一次调整驱动电流值后,都以调整后的驱动电流值驱动闪光灯并拍照,此时,终端会获得一张图像,接下来,终端检测该图像的亮度值,如果该亮度值与上述预设图像亮度值一致,则将此时的调整后的驱动电流值确认为闪光灯的实际驱动电流值,如果该亮度值与上述预设图像亮度值不一致,则继续增加驱动电流值并拍照,直至拍照获得的图像的亮度值与预设图像亮度值一致为止。Specifically, before the terminal leaves the factory, the manufacturer or software developer presets the correspondence between the illuminance value and the image brightness value in the terminal. The image brightness value here refers to the best exposure effect under different illuminance values. The brightness value of the image. Then, after obtaining the current illumination value in S101, the terminal determines the corresponding preset image brightness value according to the corresponding relationship between the preset illumination value and the image brightness value, and then gradually adjusts the flash drive current value, which may be sequentially incremented. The fixed value method gradually adjusts the driving current value of the flash, and after each adjustment of the driving current value, the flash is driven and photographed with the adjusted driving current value. At this time, the terminal obtains an image, and then, the terminal Detecting a brightness value of the image, if the brightness value is consistent with the preset image brightness value, confirming the adjusted driving current value at this time as an actual driving current value of the flash, if the brightness value and the preset image brightness If the values do not match, continue to increase the drive current value and take a picture until the brightness value of the image obtained by the photograph is consistent with the preset image brightness value.
当然,在实际应用中,终端还可以采取其他方式根据当前光照度,获得闪光灯的实际驱动电流,本发明不做具体限定。Of course, in the actual application, the terminal may also adopt other methods to obtain the actual driving current of the flash according to the current illuminance, which is not specifically limited in the present invention.
S103:终端以实际驱动电流值驱动闪光灯,并拍照。S103: The terminal drives the flash with the actual driving current value and takes a picture.
也就是说,终端通过S102确定出与当前光照值对应的闪光灯的实际电 流驱动值之后,就以该实际电流驱动值正式驱动闪光灯,闪光灯点亮,对拍摄区域进行补光,同时,进行拍照。That is, the terminal determines the actual power of the flash corresponding to the current illumination value through S102. After the stream drive value, the flash is officially driven with the actual current drive value, the flash is lit, the shot area is filled, and the photograph is taken.
至此,就完成了终端根据所处环境的当前光照度值调整闪光灯的驱动电流进行补光并拍照的过程。At this point, the process of adjusting the light and adjusting the photo by the terminal according to the current illuminance value of the environment is completed.
由上述可知,终端在闪光灯进行预闪时,实时地采集当前自身所处环境的光照度值,然后,根据该照度值,确定出闪光灯的实际驱动电流,再以该实际驱动电流驱动闪光灯进行补光。也就是说,闪光灯的实际驱动电流是与终端当前所处环境的光照度相适应的,而不必一直以较大的电流值驱动闪光灯,如此,在终端进行拍照时,能够降低功耗,提高电池的续航能力;进一步地,由于闪光灯的实际驱动电流是与终端当前所处环境的光照度相适应的,这样,拍出来的照片能够避免出现过曝或者曝光不足的情况,适应更多的拍摄场景,提供良好的用户体验。It can be seen from the above that when the flash pre-flashes, the terminal collects the illuminance value of the current environment in real time, and then determines the actual driving current of the flash according to the illuminance value, and then drives the flash to fill the light with the actual driving current. . That is to say, the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, and it is not necessary to always drive the flash with a large current value. Thus, when the terminal performs photographing, power consumption can be reduced, and the battery can be improved. The endurance capability; further, since the actual driving current of the flash is adapted to the illumination of the environment in which the terminal is currently located, the photograph taken can avoid overexposure or underexposure, adapt to more shooting scenes, and provide Good user experience.
本发明实施例提供一种终端,与上述一个或者多个实施例所述的终端一致。The embodiment of the invention provides a terminal, which is consistent with the terminal described in one or more embodiments.
参见图2所示,该终端,包括:光线传感器21、控制器22、闪光灯23、驱动电路24以及摄像头25;其中,闪光灯23,配置为在摄像头25拍照时进行补光;驱动电路24,配置为驱动闪光灯23;光线传感器21,配置为在闪光灯23进行预闪时,采集自身所属的终端所处环境的当前光照度值;控制器22,配置为根据当前光照度值,确定闪光灯23的实际驱动电流值;控制驱动电路24以实际驱动电流值驱动闪光灯23,并控制摄像头25拍照。Referring to FIG. 2, the terminal includes: a light sensor 21, a controller 22, a flash 23, a driving circuit 24, and a camera 25; wherein the flash 23 is configured to fill light when the camera 25 takes a picture; the driving circuit 24 is configured In order to drive the flash 23, the light sensor 21 is configured to collect the current illuminance value of the environment in which the terminal to which the terminal belongs when the flash 23 is pre-flashed; the controller 22 is configured to determine the actual driving current of the flash 23 according to the current illuminance value. The control drive circuit 24 drives the flash 23 with the actual drive current value and controls the camera 25 to take a picture.
在上述方案中,控制器22,具体配置为逐步调整闪光灯23的驱动电流值,直至调整后的驱动电流值与当前光照度值匹配;将调整后的驱动电流值确定为实际驱动电流值。In the above solution, the controller 22 is specifically configured to gradually adjust the driving current value of the flash 23 until the adjusted driving current value matches the current illuminance value; and determine the adjusted driving current value as the actual driving current value.
在上述方案中,控制器22,具体配置为根据当前光照度值,确定一预设图像亮度值;逐步调整闪光灯23的驱动电流值,并在每一次调整驱动电 流值后,控制驱动电路24以调整后的驱动电流值驱动闪光灯23并控制摄像头25拍照;对获得的图像进行分析,确定图像的亮度值;在图像的亮度值与预设图像亮度值一致时,将调整后的驱动电流值确定为实际驱动电流值。In the above solution, the controller 22 is specifically configured to determine a preset image brightness value according to the current illuminance value; gradually adjust the driving current value of the flash 23, and adjust the driving current every time. After the stream value, the control driving circuit 24 drives the flash 23 with the adjusted driving current value and controls the camera 25 to take a picture; analyzes the obtained image to determine the brightness value of the image; when the brightness value of the image matches the preset image brightness value The adjusted drive current value is determined as the actual drive current value.
在上述方案中,控制器22,具体配置为按照依次递增固定值的方式,逐步调整闪光灯23的驱动电流值。In the above solution, the controller 22 is specifically configured to gradually adjust the driving current value of the flash 23 in a manner of sequentially incrementing the fixed value.
在上述方案中,控制器22,具体配置为根据预设的光照度值与驱动电流的对应关系,确定当前光照度值对应的驱动电流值;将对应的驱动电流值确定为实际驱动电流值。In the above solution, the controller 22 is specifically configured to determine a driving current value corresponding to the current illuminance value according to a preset relationship between the illuminance value and the driving current; and determine a corresponding driving current value as the actual driving current value.
在实际应用中,上述控制器22可以为终端的CPU、ARM或者DSP等,本发明不做具体限定。In an actual application, the controller 22 may be a CPU, an ARM, or a DSP of the terminal, and the present invention is not specifically limited.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a bootable computer or other programmable data processing The apparatus is readable in a computer readable memory in a particular manner such that instructions stored in the computer readable memory produce an article of manufacture comprising instruction means implemented in one or more flows and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (11)

  1. 一种拍照方法,包括:A method of photographing, including:
    终端在闪光灯进行预闪时,采集自身所处环境的当前光照度值;When the flash pre-flashes, the terminal collects the current illuminance value of the environment in which it is located;
    所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值;The terminal determines an actual driving current value of the flash according to the current illuminance value;
    所述终端以所述实际驱动电流值驱动所述闪光灯工作。The terminal drives the flash to operate with the actual drive current value.
  2. 根据权利要求1所述的方法,其中,所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值,包括:The method according to claim 1, wherein the terminal determines an actual driving current value of the flash according to the current illuminance value, including:
    所述终端逐步调整所述闪光灯的驱动电流值,直至调整后的驱动电流值与所述当前光照度值匹配;The terminal gradually adjusts a driving current value of the flash lamp until the adjusted driving current value matches the current illuminance value;
    所述终端将所述调整后的驱动电流值确定为所述实际驱动电流值。The terminal determines the adjusted driving current value as the actual driving current value.
  3. 根据权利要求1所述的方法,其中,所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值,包括:The method according to claim 1, wherein the terminal determines an actual driving current value of the flash according to the current illuminance value, including:
    所述终端根据所述当前光照度值,确定一预设图像亮度值;The terminal determines a preset image brightness value according to the current illuminance value;
    所述终端逐步调整所述闪光灯的驱动电流值,并在每一次调整所述驱动电流值后,以调整后的驱动电流值驱动所述闪光灯并拍照;The terminal gradually adjusts the driving current value of the flash, and after each adjustment of the driving current value, drives the flash and takes a picture with the adjusted driving current value;
    所述终端对获得的图像进行分析,确定所述图像的亮度值;The terminal analyzes the obtained image to determine a brightness value of the image;
    所述终端在所述图像的亮度值与所述预设图像亮度值一致时,将所述调整后的驱动电流值确定为所述实际驱动电流值。The terminal determines the adjusted driving current value as the actual driving current value when the brightness value of the image is consistent with the preset image brightness value.
  4. 根据权利要求2或3所述的方法,其中,所述终端逐步调整所述闪光灯的驱动电流值,包括:The method according to claim 2 or 3, wherein the terminal gradually adjusts the driving current value of the flash lamp, including:
    所述终端按照依次递增固定值的方式,逐步调整所述闪光灯的驱动电流值。The terminal gradually adjusts the driving current value of the flash in a manner of sequentially incrementing a fixed value.
  5. 根据权利要求1所述的方法,其中,所述终端根据所述当前光照度值,确定所述闪光灯的实际驱动电流值,包括: The method according to claim 1, wherein the terminal determines an actual driving current value of the flash according to the current illuminance value, including:
    所述终端根据预设的光照度值与驱动电流的对应关系,确定所述当前光照度值对应的驱动电流值;Determining, by the terminal, a driving current value corresponding to the current illuminance value according to a correspondence between a preset illuminance value and a driving current;
    所述终端将所述对应的驱动电流值确定为所述实际驱动电流值。The terminal determines the corresponding driving current value as the actual driving current value.
  6. 一种终端,包括:光线传感器、控制器、闪光灯、驱动电路以及摄像头;其中,A terminal includes: a light sensor, a controller, a flash, a driving circuit, and a camera; wherein
    所述闪光灯,配置为在所述摄像头拍照时进行补光;The flash is configured to fill light when the camera is photographed;
    所述驱动电路,配置为驱动所述闪光灯;The driving circuit is configured to drive the flash lamp;
    所述光线传感器,配置为在所述闪光灯进行预闪时,采集自身所属的所述终端所处环境的当前光照度值;The light sensor is configured to collect a current illuminance value of an environment in which the terminal to which the terminal belongs when the flash is pre-flashed;
    所述控制器,配置为根据所述当前光照度值,确定所述闪光灯的实际驱动电流值;控制所述驱动电路以所述实际驱动电流值驱动所述闪光灯工作。The controller is configured to determine an actual driving current value of the flash according to the current illuminance value; and control the driving circuit to drive the flash to operate at the actual driving current value.
  7. 根据权利要求6所述的终端,其中,所述控制器,配置为逐步调整所述闪光灯的驱动电流值,直至调整后的驱动电流值与所述当前光照度值匹配;将所述调整后的驱动电流值确定为所述实际驱动电流值。The terminal according to claim 6, wherein the controller is configured to gradually adjust a driving current value of the flash until the adjusted driving current value matches the current illuminance value; and the adjusted driving The current value is determined as the actual drive current value.
  8. 根据权利要求6所述的终端,其中,所述控制器,配置为根据所述当前光照度值,确定一预设图像亮度值;逐步调整所述闪光灯的驱动电流值,并在每一次调整所述驱动电流值后,控制所述驱动电路以调整后的驱动电流值驱动所述闪光灯并控制所述摄像头拍照;对获得的图像进行分析,确定所述图像的亮度值;在所述图像的亮度值与所述预设图像亮度值一致时,将所述调整后的驱动电流值确定为所述实际驱动电流值。The terminal according to claim 6, wherein the controller is configured to determine a preset image brightness value according to the current illuminance value; gradually adjust a driving current value of the flash, and adjust the After driving the current value, controlling the driving circuit to drive the flash with the adjusted driving current value and controlling the camera to take a picture; analyzing the obtained image to determine a brightness value of the image; and brightness value of the image When the preset image brightness value is consistent, the adjusted driving current value is determined as the actual driving current value.
  9. 根据权利要求7或8所述的终端,其中,所述控制器,配置为按照依次递增固定值的方式,逐步调整所述闪光灯的驱动电流值。The terminal according to claim 7 or 8, wherein the controller is configured to gradually adjust a driving current value of the flash in a manner of sequentially incrementing a fixed value.
  10. 根据权利要求6所述的终端,其中,所述控制器,配置为根据预设的光照度值与驱动电流的对应关系,确定所述当前光照度值对应的驱动 电流值;将所述对应的驱动电流值确定为所述实际驱动电流值。The terminal according to claim 6, wherein the controller is configured to determine a driving corresponding to the current illuminance value according to a correspondence between a preset illuminance value and a driving current. a current value; determining the corresponding drive current value as the actual drive current value.
  11. 一种计算机存储介质,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令用于执行所述权利要求1至5任一项所述的方法。 A computer storage medium storing computer executable instructions for performing the method of any one of claims 1 to 5.
PCT/CN2015/089185 2015-07-08 2015-09-08 Image capturing method and terminal WO2017004886A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510397102.6 2015-07-08
CN201510397102.6A CN106331512A (en) 2015-07-08 2015-07-08 Photographing method and terminal

Publications (1)

Publication Number Publication Date
WO2017004886A1 true WO2017004886A1 (en) 2017-01-12

Family

ID=57684701

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089185 WO2017004886A1 (en) 2015-07-08 2015-09-08 Image capturing method and terminal

Country Status (2)

Country Link
CN (1) CN106331512A (en)
WO (1) WO2017004886A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11224900B2 (en) 2017-01-17 2022-01-18 Equinor Energy As Gas compressor cleaning

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107137026A (en) * 2017-06-26 2017-09-08 深圳普思英察科技有限公司 A kind of sweeping robot and its camera light-supplementing system, method
CN107333070B (en) * 2017-07-12 2019-07-12 江苏集萃有机光电技术研究所有限公司 Image acquiring method and diagnostic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658055A (en) * 2004-02-17 2005-08-24 佳能株式会社 Light emission control method of flash device, and image sensing apparatus
CN101064792A (en) * 2006-04-28 2007-10-31 三星Techwin株式会社 Photographing apparatus and method
EP1858254A2 (en) * 2006-05-16 2007-11-21 Ricoh Company, Ltd. Image capture apparatus with improved flash control
CN101178532A (en) * 2006-11-09 2008-05-14 佳能株式会社 Image capturing apparatus, control method therefor, and program
CN102830573A (en) * 2012-09-10 2012-12-19 华为终端有限公司 Method and device for controlling flash

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658055A (en) * 2004-02-17 2005-08-24 佳能株式会社 Light emission control method of flash device, and image sensing apparatus
CN101064792A (en) * 2006-04-28 2007-10-31 三星Techwin株式会社 Photographing apparatus and method
EP1858254A2 (en) * 2006-05-16 2007-11-21 Ricoh Company, Ltd. Image capture apparatus with improved flash control
CN101178532A (en) * 2006-11-09 2008-05-14 佳能株式会社 Image capturing apparatus, control method therefor, and program
CN102830573A (en) * 2012-09-10 2012-12-19 华为终端有限公司 Method and device for controlling flash

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11224900B2 (en) 2017-01-17 2022-01-18 Equinor Energy As Gas compressor cleaning
US11945006B2 (en) 2017-01-17 2024-04-02 Equinor Energy As Gas compressor cleaning

Also Published As

Publication number Publication date
CN106331512A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2017096857A1 (en) Method and device for adjusting photographing parameter of camera
CN105744175B (en) A kind of screen light compensation method, device and mobile terminal
WO2014036911A1 (en) Flash control method and device
JP2005234014A5 (en)
JP2014126712A (en) Imaging apparatus and dimming control method
US10609265B2 (en) Methods and apparatus for synchronizing camera flash and sensor blanking
TW201334524A (en) Exposure value adjustment apparatus, method, and computer program product thereof
US8593566B2 (en) Method and apparatus for controlling light emission of flash and digital photographing apparatus using the method and apparatus
US20170094155A1 (en) Mobile terminal and photographing method therefor
KR20110096592A (en) System and method to estimate autoexposure control and auto white balance
US8170409B2 (en) Method and apparatus for controlling flash emission
JP2007096995A5 (en)
US20130016268A1 (en) External equipment and camera system
JP6598543B2 (en) Light emission control device and control method thereof
CN113497879B (en) Photographing light supplementing method and device, terminal and storage medium
WO2017004886A1 (en) Image capturing method and terminal
JP2015014647A (en) Camera
US9674496B2 (en) Method for selecting metering mode and image capturing device thereof
US20120140093A1 (en) Image capture device and method
US8896751B2 (en) Digital photographing apparatus and method of controlling the same
CN106303243A (en) A kind of photographic method, device and terminal
JP7103839B2 (en) Electronic devices, control devices, control methods and control programs
TW201911854A (en) Electronic device and method for image capturing control thereof
CN104965376A (en) Adjusting method and system of terminal camera flash lamp
JP2016058995A (en) Imaging device, imaging control method and program

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

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

Country of ref document: EP

Kind code of ref document: A1