CN104506777B - Method and device for controlling flash exposure - Google Patents
Method and device for controlling flash exposure Download PDFInfo
- Publication number
- CN104506777B CN104506777B CN201410778992.0A CN201410778992A CN104506777B CN 104506777 B CN104506777 B CN 104506777B CN 201410778992 A CN201410778992 A CN 201410778992A CN 104506777 B CN104506777 B CN 104506777B
- Authority
- CN
- China
- Prior art keywords
- motor position
- camera
- overexposure
- underexposure
- sensitivity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000035945 sensitivity Effects 0.000 claims abstract description 48
- 238000012360 testing method Methods 0.000 claims description 5
- AIXMJTYHQHQJLU-UHFFFAOYSA-N chembl210858 Chemical compound O1C(CC(=O)OC)CC(C=2C=CC(O)=CC=2)=N1 AIXMJTYHQHQJLU-UHFFFAOYSA-N 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Studio Devices (AREA)
- Stroboscope Apparatuses (AREA)
Abstract
本发明公开了一种控制闪光灯曝光的方法和装置。其中的方法包括:当启动照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置;判断所述当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外;根据所述判断的结果,调整所述照相机的感光度,以控制所述闪光灯的曝光。还公开了相应的装置。本发明通过判断照相机对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,根据判断的结果,调整照相机的感光度,以控制闪光灯的曝光,可以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。
The invention discloses a method and a device for controlling the exposure of a flash lamp. The method includes: when starting the camera to take pictures, driving the motor of the camera to focus, and obtaining the current motor position after focusing; judging whether the current motor position is within the motor position at the critical point of underexposure or at the overexposure The motor position is outside the critical point; according to the result of the judgment, the sensitivity of the camera is adjusted to control the exposure of the flash. Corresponding devices are also disclosed. The present invention judges whether the current motor position after the camera focuses is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, and adjusts the sensitivity of the camera according to the judgment result to control the exposure of the flashlight , can automatically control the exposure of the flash to prevent the phenomenon of overexposure in the near area and underexposure in the distance.
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及一种控制闪光灯曝光的方法及装置。The invention relates to the technical field of image processing, in particular to a method and device for controlling flash exposure.
背景技术Background technique
随着人们生活水平的提高,人们喜欢用专业照相机或带照相功能的终端拍摄照片,然而,非专业摄影者对控制照相机的闪光灯的曝光很难把握,在打开照相机上的闪光灯拍照的时候,存在近处过曝、远处欠曝的现象。With the improvement of people's living standards, people like to take photos with professional cameras or terminals with camera functions. However, it is difficult for non-professional photographers to control the exposure of the flash light of the camera. When turning on the flash light on the camera to take pictures, there are The phenomenon of overexposure near and underexposure far away.
因此,需要提供一种自动控制闪光灯曝光的方案,防止近处过曝、远处欠曝的现象的产生。Therefore, it is necessary to provide a solution for automatically controlling the exposure of the flashlight to prevent overexposure in the near area and underexposure in the distance.
发明内容Contents of the invention
本发明提供一种控制闪光灯曝光的方法及装置,以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。The present invention provides a method and device for controlling the exposure of flash lamps, so as to automatically control the exposure of flash lamps and prevent the phenomenon of overexposure in the near area and underexposure in the distance.
一方面,提供了一种控制闪光灯曝光的方法,包括:In one aspect, a method of controlling flash exposure is provided, comprising:
当启动照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置;When starting the camera to take pictures, drive the motor of the camera to focus, and obtain the current motor position after focusing;
判断所述当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外;judging whether the current motor position is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure;
根据所述判断的结果,调整所述照相机的感光度,以控制所述闪光灯的曝光。According to the judgment result, the sensitivity of the camera is adjusted to control the exposure of the flashlight.
另一方面,提供了一种控制闪光灯曝光的装置,包括:In another aspect, an apparatus for controlling flash exposure is provided, comprising:
第一获取单元,用于当启动照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置;The first acquiring unit is used to drive the motor of the camera to focus when starting the camera to take pictures, and acquire the current motor position after focusing;
判断单元,用于判断所述当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外;A judging unit, configured to judge whether the current motor position is within the motor position at the critical point of underexposure or outside the motor position at the critical point of overexposure;
调整单元,用于根据所述判断的结果,调整所述照相机的感光度,以控制所述闪光灯的曝光。An adjustment unit, configured to adjust the sensitivity of the camera according to the result of the judgment, so as to control the exposure of the flashlight.
可见,根据本发明提供的一种控制闪光灯曝光的方法和装置,通过判断照相机对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,根据判断的结果,调整照相机的感光度,以控制闪光灯的曝光,可以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。It can be seen that according to a method and device for controlling flash exposure provided by the present invention, by judging whether the current motor position after the camera focuses is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, according to As a result of the judgment, adjust the sensitivity of the camera to control the exposure of the flash, which can automatically control the exposure of the flash to prevent the phenomenon of overexposure in the near area and underexposure in the distance.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例提供的一种控制闪光灯曝光的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for controlling flash exposure provided by an embodiment of the present invention;
图2为对图1所示的本发明实施例提供的一种控制闪光灯曝光的方法的进一步细化的流程示意图;FIG. 2 is a schematic flow diagram of a further refinement of a method for controlling flash lamp exposure provided by the embodiment of the present invention shown in FIG. 1;
图3为本发明实施例提供的一种控制闪光灯曝光的装置的结构示意图;FIG. 3 is a schematic structural diagram of a device for controlling flash exposure provided by an embodiment of the present invention;
图4为对图3所示的本发明实施例提供的一种控制闪光灯曝光的装置的进一步细化的结构示意图。FIG. 4 is a further detailed structural schematic diagram of a device for controlling flash exposure provided by the embodiment of the present invention shown in FIG. 3 .
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
请参阅图1,为本发明实施例提供的一种控制闪光灯曝光的方法的流程示意图,该方法包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a method for controlling flash exposure provided by an embodiment of the present invention. The method includes the following steps:
步骤S101,当启动照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置。Step S101 , when the camera is started to take pictures, the motor of the camera is driven to focus, and the current motor position after focusing is obtained.
本发明实施例所涉及的照相机可以为专业的照相机例如数码照相机,也可以为带有照相功能的终端,例如手机、平板电脑等。在启动照相机进行拍照时,会执行一次对焦,对焦的过程就是驱动照相机的马达移动位置进行对焦,对焦后,获取当前马达位置。The camera involved in the embodiment of the present invention may be a professional camera such as a digital camera, or a terminal with a camera function such as a mobile phone or a tablet computer. When the camera is started to take pictures, it will perform a focusing process. The process of focusing is to drive the motor of the camera to move the position to focus. After focusing, obtain the current motor position.
步骤S102,判断所述当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外。Step S102 , judging whether the current motor position is within the motor position of the underexposure critical point or outside the overexposure critical point motor position.
在对焦时,马达有可能移动到离焦点较近的位置,也有可能移动到离焦点较远的位置,然后,照相机的感光度(ISO)是根据周围环境等多个参数确定的,如果当前马达位置离焦点过近,会存在闪光灯过曝的现象;如果当前马达位置离焦点过远,会存在闪光灯欠曝的现象。因此,可以首先判断对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外。When focusing, the motor may move to a position closer to the focus, or it may move to a position farther from the focus. Then, the sensitivity (ISO) of the camera is determined according to multiple parameters such as the surrounding environment. If the current motor If the position is too close to the focus, there will be overexposure of the flash; if the current motor position is too far from the focus, there will be underexposure of the flash. Therefore, it may first be determined whether the current motor position after focusing is within the under-exposure critical point motor position or outside the over-exposure critical point motor position.
步骤S103,根据所述判断的结果,调整所述照相机的感光度,以控制所述闪光灯的曝光。Step S103, adjusting the sensitivity of the camera to control the exposure of the flash according to the result of the determination.
根据判断的结果,即对焦后的当前马达位置位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,调整照相机的感光度,具体是减小或增大照相机的感光度,以防止近处过曝或远程欠曝的现象的产生;当然,若对焦后的当前马达位置位于欠曝的临界点马达位置和过曝的临界点马达位置之间,则无需重新调整照相机的感光度。According to the judgment result, that is, the current motor position after focusing is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, adjust the sensitivity of the camera, specifically reduce or increase the sensitivity of the camera to prevent close overexposure or long distance underexposure; of course, if the current motor position after focusing is between the underexposure critical point motor position and the overexposure critical point motor position, there is no need to readjust the camera sensitivity.
根据本发明提供的一种控制闪光灯曝光的方法,通过判断照相机对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,根据判断的结果,调整照相机的感光度,以控制闪光灯的曝光,可以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。According to a method for controlling flash exposure provided by the present invention, by judging whether the current motor position after the camera focuses is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, according to the judgment result, Adjust the sensitivity of the camera to control the exposure of the flash, which can automatically control the exposure of the flash to prevent the phenomenon of overexposure in the near area and underexposure in the distance.
请参阅图2,为对图1所示的本发明实施例提供的一种控制闪光灯曝光的方法的进一步细化的流程示意图,该方法包括以下步骤:Please refer to FIG. 2, which is a schematic flow chart of a further refinement of a method for controlling flash exposure provided by the embodiment of the present invention shown in FIG. 1. The method includes the following steps:
步骤S201,在启动照相机进行拍照前,对所述照相机的欠曝和过曝进行测试,获取欠曝的临界点马达位置和过曝的临界点马达位置。Step S201, before starting the camera to take pictures, test the underexposure and overexposure of the camera, and obtain the motor position of the critical point of underexposure and the motor position of the critical point of overexposure.
先测试当前照相机过曝、欠曝的位置点,假定50cm以内过曝,这时记录下马达在50cm的位置position_50cm。假定150cm以外欠曝,这时记录下马达在150cm的位置position_150cm。First test the overexposure and underexposure position of the current camera, assuming that the overexposure is within 50cm, then record the position_50cm where the motor is at 50cm. Assuming underexposure beyond 150cm, record the position_150cm where the motor is at 150cm.
步骤S202,当启动所述照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置。Step S202, when starting the camera to take pictures, drive the motor of the camera to focus, and obtain the current motor position after focusing.
打开照相机闪光灯拍照,记录下当前马达位置position_current。Turn on the camera flash to take pictures and record the current motor position position_current.
步骤S203,判断所述当前马达位置是否位于所述欠曝的临界点马达位置之内或位于所述过曝的临界点马达位置之外;若所述当前马达位置位于所述欠曝的临界点马达位置之内,则转至步骤S204;若所述当前马达位置位于所述过曝的临界点马达位置之外,则转至步骤S205。Step S203, judging whether the current motor position is within the under-exposure critical point motor position or outside the over-exposure critical point motor position; if the current motor position is within the under-exposure critical point If the motor position is within the motor position, go to step S204; if the current motor position is outside the overexposure critical point motor position, go to step S205.
步骤S204,若所述当前马达位置位于所述欠曝的临界点马达位置之内,减小所述照相机的感光度,以防止所述闪光灯过曝。Step S204, if the current motor position is within the underexposure threshold motor position, reduce the sensitivity of the camera to prevent the flash from overexposure.
如果position_current<position_50cm,则将闪光灯拍照的ISO乘上这个比例:position_current/position_50cm,以降低亮度。即:If position_current<position_50cm, multiply the ISO of the flash photo by this ratio: position_current/position_50cm to reduce the brightness. which is:
ISO2=ISO1*position_current/position_50cmISO 2 = ISO 1 *position_current/position_50cm
其中,ISO1为在调整闪光灯曝光前照相机根据周围环境等多个参数确定的感光度,ISO2为调整闪光灯曝光后的照相机的感光度。Among them, ISO 1 is the sensitivity determined by the camera according to multiple parameters such as the surrounding environment before adjusting the flash exposure, and ISO 2 is the sensitivity of the camera after adjusting the flash exposure.
步骤S205,若所述当前马达位置位于所述过曝的临界点马达位置之外,增大所述照相机的感光度,以防止所述闪光灯欠曝。Step S205 , if the current motor position is outside the overexposure threshold motor position, increase the sensitivity of the camera to prevent underexposure of the flash.
如果position_current>position_150cm,将ISO乘上position_150cm/position_current,以提高亮度。即:If position_current>position_150cm, multiply ISO by position_150cm/position_current to increase brightness. which is:
ISO3=ISO1*position_150cm/position_currentISO 3 = ISO 1 *position_150cm/position_current
其中,ISO3为调整闪光灯曝光后的照相机的感光度。Among them, ISO 3 is the sensitivity of the camera after adjusting the flash exposure.
将调整后的ISO写进照相机的寄存器,控制曝光的亮度。这样就可以将50cm以内的亮度降低,,150cm以外的亮度提高,达到近处不过曝,远处不欠曝的目的。Write the adjusted ISO into the camera's register to control the brightness of the exposure. In this way, the brightness within 50cm can be reduced, and the brightness beyond 150cm can be increased, so as to achieve the purpose of not under-exposing near and not under-exposure at a distance.
根据本发明提供的一种控制闪光灯曝光的方法,通过判断照相机对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,根据判断的结果,调整照相机的感光度,以控制闪光灯的曝光,可以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。According to a method for controlling flash exposure provided by the present invention, by judging whether the current motor position after the camera focuses is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, according to the judgment result, Adjust the sensitivity of the camera to control the exposure of the flash, which can automatically control the exposure of the flash to prevent the phenomenon of overexposure in the near area and underexposure in the distance.
请参阅图3,为本发明实施例提供的一种控制闪光灯曝光的装置的结构示意图,该装置1000包括:Please refer to FIG. 3 , which is a schematic structural diagram of a device for controlling flash exposure provided by an embodiment of the present invention. The device 1000 includes:
第一获取单元11,用于当启动照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置。The first acquiring unit 11 is configured to drive the motor of the camera to focus when the camera is started to take pictures, and acquire the current motor position after focusing.
本发明实施例所涉及的照相机可以为专业的照相机例如数码照相机,也可以为带有照相功能的终端,例如手机、平板电脑等。在启动照相机进行拍照时,会执行一次对焦,对焦的过程就是驱动照相机的马达移动位置进行对焦,第一获取单元11对焦后,获取当前马达位置。The camera involved in the embodiment of the present invention may be a professional camera such as a digital camera, or a terminal with a camera function such as a mobile phone or a tablet computer. When the camera is started to take pictures, it will perform a focusing process. The process of focusing is to drive the motor of the camera to move the position to focus. After the first acquisition unit 11 focuses, it acquires the current motor position.
判断单元12,用于判断所述当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外。The judging unit 12 is configured to judge whether the current motor position is within the motor position at the critical point of underexposure or outside the motor position at the critical point of overexposure.
在对焦时,马达有可能移动到离焦点较近的位置,也有可能移动到离焦点较远的位置,然后,照相机的感光度(ISO)是根据周围环境等多个参数确定的,如果当前马达位置离焦点过近,会存在闪光灯过曝的现象;如果当前马达位置离焦点过远,会存在闪光灯欠曝的现象。因此,判断单元12可以首先判断对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外。When focusing, the motor may move to a position closer to the focus, or it may move to a position farther from the focus. Then, the sensitivity (ISO) of the camera is determined according to multiple parameters such as the surrounding environment. If the current motor If the position is too close to the focus, there will be overexposure of the flash; if the current motor position is too far from the focus, there will be underexposure of the flash. Therefore, the judging unit 12 may first judge whether the current motor position after focusing is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure.
调整单元13,用于根据所述判断的结果,调整所述照相机的感光度,以控制所述闪光灯的曝光。The adjustment unit 13 is configured to adjust the sensitivity of the camera according to the result of the judgment, so as to control the exposure of the flashlight.
调整单元13根据判断的结果,即对焦后的当前马达位置位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,调整照相机的感光度,具体是减小或增大照相机的感光度,以防止近处过曝或远程欠曝的现象的产生;当然,若对焦后的当前马达位置位于欠曝的临界点马达位置和过曝的临界点马达位置之间,则无需重新调整照相机的感光度。The adjustment unit 13 adjusts the sensitivity of the camera according to the judgment result, that is, the current motor position after focusing is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, specifically reducing or increasing the sensitivity of the camera. The sensitivity of the camera to prevent close-range overexposure or long-range underexposure; of course, if the current motor position after focusing is between the underexposure critical point motor position and the overexposure critical point motor position, there is no need Readjust the camera's sensitivity to light.
根据本发明提供的一种控制闪光灯曝光的装置,通过判断照相机对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,根据判断的结果,调整照相机的感光度,以控制闪光灯的曝光,可以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。According to a device for controlling flash exposure provided by the present invention, by judging whether the current motor position after the camera focuses is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, according to the judgment result, Adjust the sensitivity of the camera to control the exposure of the flash, which can automatically control the exposure of the flash to prevent the phenomenon of overexposure in the near area and underexposure in the distance.
请参阅图4,为对图3所示的本发明实施例提供的一种控制闪光灯曝光的装置的进一步细化的结构示意图,该装置2000包括:Please refer to FIG. 4, which is a further detailed structural schematic diagram of a device for controlling flash exposure provided by the embodiment of the present invention shown in FIG. 3. The device 2000 includes:
第二获取单元21,用于在启动照相机进行拍照前,对所述照相机的欠曝和过曝进行测试,获取欠曝的临界点马达位置和过曝的临界点马达位置。The second acquiring unit 21 is configured to test the underexposure and overexposure of the camera before starting the camera to take pictures, and acquire the critical point motor position of underexposure and the critical point motor position of overexposure.
先测试当前照相机过曝、欠曝的位置点,假定50cm以内过曝,这时记录下马达在50cm的位置position_50cm。假定150cm以外欠曝,这时记录下马达在150cm的位置position_150cm。First test the overexposure and underexposure position of the current camera, assuming that the overexposure is within 50cm, then record the position_50cm where the motor is at 50cm. Assuming underexposure beyond 150cm, record the position_150cm where the motor is at 150cm.
第一获取单元22,用于当启动所述照相机进行拍照时,驱动所述照相机的马达进行对焦,获取对焦后的当前马达位置。The first acquiring unit 22 is configured to drive the motor of the camera to focus when starting the camera to take pictures, and acquire the current motor position after focusing.
打开照相机闪光灯拍照,记录下当前马达位置position_current。Turn on the camera flash to take pictures and record the current motor position position_current.
判断单元23,用于判断所述当前马达位置是否位于所述欠曝的临界点马达位置之内或位于所述过曝的临界点马达位置之外。The judging unit 23 is configured to judge whether the current motor position is within the under-exposed critical point motor position or outside the over-exposed critical point motor position.
调整单元24,用于根据所述判断的结果,调整所述照相机的感光度,以控制所述闪光灯的曝光。The adjustment unit 24 is configured to adjust the sensitivity of the camera according to the judgment result, so as to control the exposure of the flashlight.
在本实施例中,调整单元24包括减小单元241和增大单元242。In this embodiment, the adjustment unit 24 includes a reduction unit 241 and an increase unit 242 .
减小单元241,用于若所述当前马达位置位于所述欠曝的临界点马达位置之内,减小所述照相机的感光度,以防止所述闪光灯过曝。The reducing unit 241 is configured to reduce the sensitivity of the camera if the current motor position is within the underexposure threshold motor position, so as to prevent the flash from overexposure.
如果position_current<position_50cm,则将闪光灯拍照的ISO乘上这个比例:position_current/position_50cm,以降低亮度。即:If position_current<position_50cm, multiply the ISO of the flash photo by this ratio: position_current/position_50cm to reduce the brightness. which is:
ISO2=ISO1*position_current/position_50cmISO 2 = ISO 1 *position_current/position_50cm
其中,ISO1为在调整闪光灯曝光前照相机根据周围环境等多个参数确定的感光度,ISO2为调整闪光灯曝光后的照相机的感光度。Among them, ISO 1 is the sensitivity determined by the camera according to multiple parameters such as the surrounding environment before adjusting the flash exposure, and ISO 2 is the sensitivity of the camera after adjusting the flash exposure.
增大单元242,用于若所述当前马达位置位于所述过曝的临界点马达位置之外,增大所述照相机的感光度,以防止所述闪光灯欠曝。The increasing unit 242 is configured to increase the sensitivity of the camera to prevent underexposure of the flash if the current motor position is outside the overexposure threshold motor position.
如果position_current>position_150cm,将ISO乘上position_150cm/position_current,以提高亮度。即:If position_current>position_150cm, multiply ISO by position_150cm/position_current to increase brightness. which is:
ISO3=ISO1*position_150cm/position_currentISO 3 = ISO 1 *position_150cm/position_current
其中,ISO3为调整闪光灯曝光后的照相机的感光度。Among them, ISO 3 is the sensitivity of the camera after adjusting the flash exposure.
将调整后的ISO写进照相机的寄存器,控制曝光的亮度。这样就可以将50cm以内的亮度降低,,150cm以外的亮度提高,达到近处不过曝,远处不欠曝的目的。Write the adjusted ISO into the camera's register to control the brightness of the exposure. In this way, the brightness within 50cm can be reduced, and the brightness beyond 150cm can be increased, so as to achieve the purpose of not under-exposing near and not under-exposure at a distance.
根据本发明提供的一种控制闪光灯曝光的装置,通过判断照相机对焦后的当前马达位置是否位于欠曝的临界点马达位置之内或位于过曝的临界点马达位置之外,根据判断的结果,调整照相机的感光度,以控制闪光灯的曝光,可以自动控制闪光灯曝光,防止近处过曝、远处欠曝的现象的产生。According to a device for controlling flash exposure provided by the present invention, by judging whether the current motor position after the camera focuses is within the motor position of the critical point of underexposure or outside the motor position of the critical point of overexposure, according to the judgment result, Adjust the sensitivity of the camera to control the exposure of the flash, which can automatically control the exposure of the flash to prevent the phenomenon of overexposure in the near area and underexposure in the distance.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为根据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because according to the present invention, certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、电可擦可编程只读存储器(ElectricallyErasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(Digital Subscriber Line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本发明所使用的,盘(Disk)和碟(disc)包括压缩光碟(CD)、激光碟、光碟、数字通用光碟(DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Through the above description of the implementation manners, those skilled in the art can clearly understand that the present invention can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Take this as an example but not limited to: computer-readable media may include Random Access Memory (Random Access Memory, RAM), Read-Only Memory (Read-Only Memory, ROM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read -Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage medium or other magnetic storage devices, or can be used to carry or store information in the form of instructions or data structures desired program code and any other medium that can be accessed by a computer. also. Any connection can suitably be a computer-readable medium. For example, if the Software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, Coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, wireless and microwave are then included in the fixation of the associated medium. As used herein, Disk and disc include compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disc, and Blu-ray disc, where discs usually reproduce data magnetically, and discs Lasers are used to optically reproduce the data. Combinations of the above should also be included within the scope of computer-readable media.
总之,以上所述仅为本发明技术方案的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above descriptions are only preferred embodiments of the technical solutions of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410778992.0A CN104506777B (en) | 2014-12-15 | 2014-12-15 | Method and device for controlling flash exposure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410778992.0A CN104506777B (en) | 2014-12-15 | 2014-12-15 | Method and device for controlling flash exposure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104506777A CN104506777A (en) | 2015-04-08 |
CN104506777B true CN104506777B (en) | 2017-08-01 |
Family
ID=52948491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410778992.0A Expired - Fee Related CN104506777B (en) | 2014-12-15 | 2014-12-15 | Method and device for controlling flash exposure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104506777B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1815341A (en) * | 2005-02-06 | 2006-08-09 | 亚洲光学股份有限公司 | Method and system for automatically adjusting flash strength for camera |
CN101082755A (en) * | 2006-06-01 | 2007-12-05 | 普立尔科技股份有限公司 | flash light excitation method |
CN101399924A (en) * | 2007-09-25 | 2009-04-01 | 展讯通信(上海)有限公司 | Automatic exposure method and device based on brightness histogram |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007248521A (en) * | 2006-03-13 | 2007-09-27 | Ricoh Co Ltd | Image recording apparatus, image recording method, program and recording medium |
-
2014
- 2014-12-15 CN CN201410778992.0A patent/CN104506777B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1815341A (en) * | 2005-02-06 | 2006-08-09 | 亚洲光学股份有限公司 | Method and system for automatically adjusting flash strength for camera |
CN101082755A (en) * | 2006-06-01 | 2007-12-05 | 普立尔科技股份有限公司 | flash light excitation method |
CN101399924A (en) * | 2007-09-25 | 2009-04-01 | 展讯通信(上海)有限公司 | Automatic exposure method and device based on brightness histogram |
Also Published As
Publication number | Publication date |
---|---|
CN104506777A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3429187A1 (en) | Method and device for switching between cameras, and terminal | |
CN107613199B (en) | Blurred photo generation method and device and mobile terminal | |
CN106210311B (en) | Screen brightness control method and device | |
CN107950018B (en) | Image generation method and system, and computer readable medium | |
WO2017008353A1 (en) | Capturing method and user terminal | |
US8830380B2 (en) | Depth of focus in digital imaging systems | |
CN108391051B (en) | A focus exception processing method and mobile terminal | |
KR101528216B1 (en) | Photographing processing method and terminal device | |
US10708499B2 (en) | Method and apparatus having a function of constant automatic focusing when exposure changes | |
WO2018121385A1 (en) | Information processing method and apparatus, and computer storage medium | |
CN106412437B (en) | Terminal focusing method and device and terminal | |
CN103118231A (en) | Image data processing method and related device | |
CN102272673A (en) | Method, device and computer program product for automatically taking pictures of oneself | |
CN106506973B (en) | Focusing control method and device, electronic equipment and terminal equipment | |
CN104580885B (en) | A kind of object tracking method and device | |
WO2017076000A1 (en) | Method and device for night photography and mobile terminal | |
CN105739706A (en) | Control method, control device and electronic device | |
CN108600636A (en) | Intelligent image pickup method, intelligent filming apparatus | |
CN110855979A (en) | Camera module detection method and device | |
WO2017076042A1 (en) | Method and device for image-stabilized photograph capturing and mobile terminal | |
CN104535178A (en) | A light intensity value detection method and terminal | |
CN105657278A (en) | Control method, control device and electronic device | |
CN104506777B (en) | Method and device for controlling flash exposure | |
CN106454131A (en) | Terminal photographing method, device and terminal | |
CN105681645A (en) | Anti-shake photographing method and device, and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170801 |