WO2014036911A1 - 一种闪光控制方法及装置 - Google Patents
一种闪光控制方法及装置 Download PDFInfo
- Publication number
- WO2014036911A1 WO2014036911A1 PCT/CN2013/082695 CN2013082695W WO2014036911A1 WO 2014036911 A1 WO2014036911 A1 WO 2014036911A1 CN 2013082695 W CN2013082695 W CN 2013082695W WO 2014036911 A1 WO2014036911 A1 WO 2014036911A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- flash
- exposure
- gray value
- fill light
- drive current
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B7/00—Control of exposure by setting shutters, diaphragms or filters, separately or conjointly
- G03B7/16—Control of exposure by setting shutters, diaphragms or filters, separately or conjointly in accordance with both the intensity of the flash source and the distance of the flash source from the object, e.g. in accordance with the "guide number" of the flash bulb and the focusing of the camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/56—Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
Definitions
- the present invention claims the priority of the Chinese Patent Application entitled “A Flash Control Method and Apparatus", which is filed on Sep. 10, 2012, to the Chinese Patent Office, Application No. 201210332153. The entire contents are incorporated herein by reference.
- the present invention relates to the field of digital technologies, and in particular, to a flash control method and apparatus.
- BACKGROUND With the continuous development of mobile phone technology and the gradual enrichment of material life, people are increasingly emphasizing the multimedia experience of mobile phones. Cameras have become an essential function of high-end mobile phones, and multimedia refers to the ability to simultaneously acquire, process, edit, and store. And techniques for displaying two or more different types of information media.
- the flash function is integrated on the camera, so that it is possible to increase the exposure amount by the flash to take a photo with better effect in a scene with a relatively dark ambient light.
- the general working process of the camera flash in the prior art is divided into two steps: pre-flash and flash.
- the pre-flash is to make the camera's pupil fit before the flash is turned on, and then perform the flash, in order to reduce the effects of darkness and backlighting on the camera's autofocus when shooting in a dark environment, and
- the pupil of the person being photographed is adapted to prevent the residual phenomenon of the flash light generated during the actual shooting from entering the pupil of the photographed person, thereby avoiding red eye.
- Embodiments of the present invention provide a flash control method and apparatus, which are capable of setting a corresponding fill light drive current and an exposure drive current according to different statistical gray values of a preview picture, thereby ensuring pre-flash, flash, and ambient light. Balance also improves the quality of the photos taken.
- an embodiment of the present invention provides a flash control method, where the method includes: Get the statistical gray value of the preview image;
- the method further includes:
- the flash is not driven to flash.
- the method further includes:
- the statistical gray value of the preview picture uniquely corresponds to the fill light parameter, and the fill light parameter uniquely corresponds to the exposure drive current.
- the method further includes:
- a photograph taken by the exposure driving current driving the flash to perform flashing is stored.
- the method further includes:
- the dynamic exposure meter is modified to reduce the fill light drive current or the exposure drive current.
- an embodiment of the present invention provides a flash control device, where the device includes: a physical sensor, configured to acquire a statistical gray value of a preview picture;
- a processor configured to: if the statistical gray value of the preview picture is less than a preset threshold, search for a corresponding fill light parameter in a preset dynamic light meter according to the statistical gray value of the preview picture, and After the fill light parameter sets the fill light drive current, the flash is driven by the fill light drive current to perform pre-flash, and the corresponding exposure drive current is searched in the preset exposure parameter table according to the fill light parameter. Thereafter, the flash is driven by the exposure drive current to perform flashing.
- the processor is further configured to: if the statistical gray value of the preview picture is less than or equal to the preset threshold, do not drive the flash to perform flashing.
- the apparatus further includes:
- the processor is further configured to obtain a statistical gray value of the photo, and If the statistical gray value of the photo is less than the first preset threshold, modifying the dynamic exposure meter to increase the exposure driving current, or
- an embodiment of the present invention further provides a user terminal, including a camera, and a flash control device having any of the above features connected to the flash of the camera.
- the method and device for flash control provided by the embodiment of the present invention obtain the statistical gray value of the preview picture. If the statistical gray value of the preview picture is less than the preset threshold, the statistical gray value according to the preview picture is preset. Find the corresponding fill light parameter in the dynamic fill light table, and set the fill light drive current according to the fill light parameter, drive the flash to pre-flash with the fill light drive current, and find the corresponding in the preset exposure parameter table according to the fill light parameter. The exposure drive current is used to drive the flash to flash with the exposure drive current.
- the intensity of the pre-flash and the flash can be driven by the fill light drive current and the exposure drive current to follow the environment.
- the change of light adapts adaptively, so that the photos taken in the prior art are prevented from being exposed due to the environment being too dark, or the exposure is not very dark due to the environment, resulting in poor photo quality and unsatisfactory results.
- the problem is that not only can the quality of the photograph taken can be improved, but also the photographing power consumption of the user terminal can be reduced with respect to the overexposed photo to extend the standby time of the user terminal.
- FIG. 1 is a schematic flowchart 1 of a flash control method according to an embodiment of the present invention.
- FIG. 2 is a second schematic flowchart of a flash control method according to an embodiment of the present invention.
- FIG. 3 is a schematic structural view 1 of a flash control device according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram 2 of a flash control device according to an embodiment of the present invention.
- the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without the creative work are all within the scope of the present invention.
- An embodiment of the present invention provides a flash control method. As shown in FIG. 1, the method includes:
- the flash control device acquires a statistical gray value of the preview picture.
- the camera function of mobile phones has become a must-have function for medium and high-end mobile phones.
- the flash function is integrated on the camera, so that the photograph with better exposure can be taken by the flash to increase the exposure amount in a scene with a relatively dark ambient light.
- the flash control device provided by the embodiment of the present invention can be set in other devices having a photographing function, and the following is a mobile phone as an example: when the user takes a photo, the flash control is performed.
- the device obtains a statistical gray value of the preview image according to the image image previewed by the camera (ie, the preview image).
- the statistical gray value of the preview image may be obtained by using a physical sensor of the flash control device, where the preview image may be a user.
- the physical sensor of the flash control device can obtain the statistical gray value of the preview image from the image captured by the mobile phone camera, wherein the physical sensor is passed through the photosensitive chip.
- the statistical gray value is a statistical value for indicating the brightness level, and the smaller the statistical gray value is, the darker the image picture is, the darker the ambient light is, and the larger the statistical gray value is, the image is represented.
- a picture is composed of a plurality of pixels, each pixel corresponding to a corresponding gray value, the size of the gray value is in the range of 0 to 255, wherein 0 represents black, 255 stands for white, and different gray values reflect different color depths.
- Flash control device can pass The average value of the gray values of all the pixels constituting the preview picture is calculated to obtain the statistical gray value of the preview picture, thereby obtaining the statistical gray value of the preview picture.
- the larger the statistical gray value is, the whiter the preview picture color is, and the brighter the ambient light is.
- the flash control device searches for a corresponding fill light parameter in the preset dynamic light meter according to the statistical gray value of the preview picture.
- the flash control device If the gray value of the preview picture obtained by the physical sensor of the flash control device is less than the preset threshold, the ambient light is dark, and the fill light is required to fill the light, then the flash control device counts the gray value according to the preview picture. Find the corresponding fill parameters in the dynamic fill light table.
- the preset dynamic light meter of the embodiment of the present invention may include a statistical gray value and a fill light parameter, wherein the statistical gray value uniquely corresponds to the fill light parameter.
- the fill light drive current set according to the fill light parameter can be 75 millimeters. Ann, and then drive the flash for pre-flash with a 75 mA fill light drive current.
- the preset threshold of the flash control device set in the mobile phone can be set to 30 lux (illuminance unit, 1 lux is equal to 1 lumen of luminous flux) The illuminance is evenly distributed over an area of 1 square meter.
- the preset threshold of the flash control unit set in the tablet can be set to 35 lux. 5103.
- the flash control device sets the fill light drive current according to the found fill light parameter.
- the fill light drive current is set according to the fill light parameter.
- the flash control device drives the flash to perform pre-flashing with the fill light drive current.
- the flash control device drives the flash lamp to perform pre-flashing by the fill light drive current according to the set fill light drive current.
- the flash control device searches for a corresponding exposure drive current in the preset exposure parameter table according to the corresponding fill light parameter found in the dynamic fill light meter.
- the flash control unit After the flash control unit performs the pre-flash, it will search for the corresponding exposure drive current in the preset exposure parameter table based on the corresponding fill parameters found in the dynamic fill meter.
- the preset exposure parameter table of the embodiment of the present invention may include a fill light parameter and an exposure drive current, wherein the fill light parameter uniquely corresponds to the exposure drive current.
- the exposure driving current can match the size of the flash aperture, the length of the shutter time, and the exposure gain, that is, the aperture coefficient level and the shutter coefficient in the dynamic light meter. Level, scene brightness level and exposure gain level match, drive The flash is flashed, and the invention is not limited.
- the flash control device drives the flash to flash with the exposure drive current.
- the flash control device drives the flash to perform flashing according to the corresponding exposure driving current found in the preset exposure parameter table.
- a flash control method provided by an embodiment of the present invention obtains a statistical gray value of a preview picture. If the statistical gray value of the preview picture is less than a preset threshold, the statistical gray value according to the preview picture is in a preset dynamic state. Find the corresponding fill light parameter in the fill light meter, set the fill light drive current according to the fill light parameter, drive the flash to pre-flash with the fill light drive current, and find the corresponding exposure in the preset exposure parameter table according to the fill light parameter. The drive current is used to drive the flash to flash with the exposure drive current.
- the intensity of the pre-flash and the flash can be driven by the fill light drive current and the exposure drive current to follow the environment.
- the change of light adapts adaptively, so that the photos taken in the prior art are prevented from being exposed due to the environment being too dark, or the exposure is not very dark due to the environment, resulting in poor photo quality and unsatisfactory results.
- the problem is that not only can the quality of the photograph taken can be improved, but also the photographing power consumption of the user terminal can be reduced with respect to the overexposed photo to extend the standby time of the user terminal.
- a flash control method provided by an embodiment of the present invention includes: S201: A flash control device acquires a statistical gray value of a preview picture.
- the camera function of mobile phones has become a must-have function for medium and high-end mobile phones.
- the flash function is integrated on the camera, so that the photograph with better exposure can be taken by the flash to increase the exposure amount in a scene with a relatively dark ambient light.
- the flash control device provided by the embodiment of the present invention can be set in other devices having a photographing function, and the following is a mobile phone as an example: when the user takes a photo, the flash control is performed.
- the device obtains the statistical gray value of the preview image by using the physical sensor according to the image image previewed by the camera (ie, the preview image).
- the statistical gray value of the preview image may be obtained by the physical sensor of the flash control device, wherein, the user
- the previewed image image may be an image captured by the mobile phone camera when the user activates the camera function of the mobile phone
- the physical sensor of the flash control device can obtain the statistical gray value of the preview image from the image captured by the mobile phone camera
- the physical sensor is a device for converting an optical signal into an electrical signal by a photosensitive chip
- the statistical gray value is a statistical value for indicating the brightness level
- the smaller the statistical gray value is the image image. The darker the color of the film, the darker the ambient light. The larger the statistical gray value, the brighter the color of the image and the brighter the ambient light.
- a picture is composed of a plurality of pixels, each pixel corresponding to a corresponding gray value, the size of the gray value is in the range of 0 to 255, wherein 0 represents black, 255 stands for white, and different gray values reflect different color depths.
- the flash control device can calculate the gray value of all the pixels constituting the preview picture by averaging to obtain the statistical gray value of the preview picture, thereby obtaining the statistical gray value of the preview picture. The smaller the statistical gray value is, the darker the color of the preview image is, and the darker the ambient light is. The larger the statistical gray value is, the whiter the preview image is, and the brighter the ambient light is.
- the flash control device searches for a corresponding fill light parameter in the preset dynamic light meter according to the statistical gray value of the preview picture.
- the flash control device If the gray value of the preview picture obtained by the physical sensor of the flash control device is less than the preset threshold, the ambient light is dark, and the fill light is required to fill the light, then the flash control device counts the gray value according to the preview picture. Find the corresponding fill parameters in the dynamic fill light table.
- the preset threshold of the flash control device set in the mobile phone can be set to 30 lux (illuminance unit, 1 lux is equal to 1 lumen of luminous flux) The illuminance is evenly distributed over an area of 1 square meter.
- the preset threshold of the flash control unit set in the tablet can be set to 35 lux.
- the flash control device does not drive the flash to flash.
- step S202 if the preview picture statistical gray value is greater than the preset threshold, it indicates that the ambient light is bright, and the flash is not required to perform pre-flash and flash, so the flash control device does not drive the flash to flash.
- the flash control device sets the fill light drive current according to the found fill light parameter.
- the flash control device drives the flash to perform pre-flashing with the set fill light drive current.
- a process of pre-flashing the flash control device to drive the flash will be described with reference to steps S204 and S205.
- the fill light drive current is set according to the fill light parameter, and the fill light drive current is used to drive the flash to perform pre-flash.
- the purpose of the pre-flash is to autofocus the camera when shooting in darker environments to prevent the effects of autofocus on the camera when shooting in darker and backlit conditions, and
- the pupil of the person being photographed is adapted to prevent the residual phenomenon of the flash light generated during the actual shooting from entering the pupil of the photographed person, thereby avoiding red eye.
- the embodiment of the present invention can control the pre-flash amount of the light emitting diode by setting the fill light driving current output by the current source.
- the flash control device can also perform white balance calculation while pre-flashing, wherein White Balance is an indicator for describing the white precision of the red, green and blue colors in the display.
- White Balance is an indicator for describing the white precision of the red, green and blue colors in the display.
- the flash control device searches for a corresponding exposure drive current in the preset exposure parameter table according to the corresponding fill light parameter found in the dynamic fill light meter.
- the flash control device drives the flash to flash with the set exposure drive current.
- the flash control device first obtains a preset picture statistical gray value obtained from the physical sensor, and searches for a corresponding fill light parameter in a preset dynamic light meter, and then according to the corresponding complement found in the dynamic fill light table.
- the light parameter finds the corresponding exposure drive current in the preset exposure parameter table, and drives the flash to perform flash according to the exposure drive current, wherein the fill light parameter uniquely corresponds to the exposure drive current, and similarly, when the light-emitting diode is used as the flash,
- the amount of flash of the light emitting diode can be controlled by the exposure driving current corresponding to the fill light parameter.
- the dynamic fill light table and the exposure parameter table are combined, wherein the statistical gray value uniquely corresponds to the fill light parameter, and the fill light parameter uniquely corresponds to the exposure drive current.
- the fill light drive current set according to the fill light parameter can be 75.
- the mAh drives the flash to pre-flash with a 75 mA fill light drive current, and then finds the corresponding exposure drive current of 300 mA, and drives the flash to fire with a 300 mA exposure drive current.
- the exposure driving current matches the size of the flash aperture, the length of the shutter time, and the exposure gain, that is, the aperture coefficient level in the dynamic light meter, The shutter speed level, the scene brightness level, and the exposure gain level match to drive the flash to fire.
- the flash control device stores a photograph taken after the flash is flashed by the exposure drive current.
- the flash control device acquires a statistical gray value of a photograph taken after the flash is flashed by the exposure driving current.
- modify the dynamic exposure meter to increase the fill light drive current or the exposure drive current, or, if greater than the second preset threshold, modify the dynamic exposure meter. To reduce the fill light drive current or the exposure drive current.
- steps S208, S209 and S210 how to modify the dynamic fill light table of the mobile phone will be described.
- the camera flash often adopts the automatic flash mode. At this time, the camera will automatically judge whether the light of the shooting scene is sufficient. If it is insufficient, the flash will be automatically turned on during shooting to compensate for the light.
- the flash control device first stores a photo taken by the exposure driving current driving the flash to perform a flash, and then obtains a photo according to the photo taken after the flash is driven by the exposure driving current. a grayscale value, and comparing the statistical gray value of the captured photo with the first preset threshold and the second preset threshold, wherein the first preset threshold is a threshold for determining whether the photo is underexposed, and the second preset threshold It is a critical value for determining whether a photo has been overexposed.
- the statistical gray value of the photo taken after the flash is flashed by the exposure driving current is less than the first preset threshold Or greater than the second preset threshold, modify the dynamic fill light table, and vice versa, end the photograph, wherein if the dynamic fill light table needs to be modified, it indicates that the photo has been overexposed or underexposed, and thus the preview image is displayed at this time.
- the statistical gray value and the corresponding fill light parameters need to be adjusted. If over-exposure occurs, the flash is too strong. The corresponding exposure drive current in the dynamic fill light meter should be reduced. If there is under-exposure, then If the flash is too weak, the corresponding exposure drive current in the dynamic fill light should be increased. Therefore, the flash control structure of the mobile phone can be constantly corrected and improved by modifying the dynamic fill light meter.
- a flash control method provided by an embodiment of the present invention obtains a statistical gray value of a preview picture. If the statistical gray value of the preview picture is less than a preset threshold, the statistical gray value according to the preview picture is in a preset dynamic state. Find the corresponding fill light parameter in the fill light meter, set the fill light drive current according to the fill light parameter, drive the flash to pre-flash with the fill light drive current, and find the corresponding exposure in the preset exposure parameter table according to the fill light parameter.
- Driving current driving the flash to flash with the exposure driving current, and analyzing the photo taken after the flash is driven by the exposure driving current, if there is a photo taken after the flash is driven by the exposure driving current If the gray value is smaller than the first preset threshold or greater than the second preset threshold, the dynamic fill light table is modified. According to the scheme, since the corresponding fill light drive current and the exposure drive current are set according to the difference of the gray value of the preview picture, the intensity of the pre-flash and the flash can be driven by the fill light drive current and the exposure drive current to follow the environment.
- the change of light adapts adaptively, so that the photos taken in the prior art are prevented from being exposed due to the environment being too dark, or the exposure is not very dark due to the environment, resulting in poor photo quality and unsatisfactory results.
- the problem is that not only can the quality of the photograph taken can be improved, but also the photographing power consumption of the user terminal can be reduced with respect to the overexposed photo to extend the standby time of the user terminal.
- a flash control device 1 according to an embodiment of the present invention corresponds to the above embodiment, and each functional unit of the flash control device 1 can be used in the above method steps. As shown in Figure 3, it includes:
- a physical sensor 10 configured to obtain a statistical gray value of the preview picture
- the processor 1 is configured to: if the statistical gray value of the preview picture is less than a preset threshold, search for a corresponding fill light parameter in the preset dynamic light meter according to the statistical gray value of the preview picture, and according to the fill light After setting the fill light drive current, the pre-flash is driven by the fill light drive current, and after the corresponding exposure drive current is found in the preset exposure parameter table according to the fill light parameter, the flash is driven by the exposure drive current.
- the processor 11 is further configured to: if the statistical gray value of the preview picture is less than or equal to the preset threshold, the flash is not driven to perform flashing.
- the statistical gray value of the preview picture uniquely corresponds to the fill light parameter
- the The fill light parameter uniquely corresponds to the exposure drive current
- the flash control device 1 further includes:
- the memory 12 is configured to store a picture taken by the exposure driving current driving the flash to perform a flash.
- the processor 1 1 is further configured to acquire a statistical gray value of the photo, and if the statistical gray value of the photo is less than a first preset threshold, modify the dynamic exposure table to increase the location Exposing the drive current, or
- the dynamic exposure meter is modified to reduce the exposure drive current.
- the flash control device can be integrated in the software, and is displayed in the camera system of the mobile phone in the form of a software menu interface. The user can manually select and modify various fill light exposure parameters according to his own needs. Meet the user's various needs for lighting.
- a flash control device obtains a statistical gray value of a preview image. If a statistical gray value of the preview image is less than a preset threshold, the statistical gray value according to the preview image is in a preset dynamic state. Find the corresponding fill light parameter in the fill light meter, set the fill light drive current according to the fill light parameter, drive the flash to pre-flash with the fill light drive current, and find the corresponding exposure in the preset exposure parameter table according to the fill light parameter.
- Driving current driving the flash to flash with the exposure driving current, and analyzing the photo taken after the flash is driven by the exposure driving current, if there is a photo taken after the flash is driven by the exposure driving current If the gray value is smaller than the first preset threshold or greater than the second preset threshold, the dynamic fill light table is modified. According to the scheme, since the corresponding fill light drive current and the exposure drive current are set according to the difference of the gray value of the preview picture, the intensity of the pre-flash and the flash can be driven by the fill light drive current and the exposure drive current to follow the environment.
- the change of light adapts adaptively, so that the photos taken in the prior art are prevented from being exposed due to the environment being too dark, or the exposure is not very dark due to the environment, resulting in poor photo quality and unsatisfactory results.
- the problem is that not only can the quality of the photograph taken can be improved, but also the photographing power consumption of the user terminal can be reduced with respect to the overexposed photo to extend the standby time of the user terminal.
- Embodiments of the present invention also provide a user terminal, including a camera, and a flash control device having any of the above features coupled to a flash of the camera.
- the flash control device when the flash control device is disposed in the mobile phone, the balance of the pre-flash, the flash, and the ambient light is ensured, and the quality of the photographed photo is also improved.
- the flash control device in addition to being used in a mobile phone camera system, can be installed in other devices having a photographing function, for example, a tablet computer, etc., and can also ensure the fill light and the environment. In the case of equalization of light, the power consumption of the device capable of photographing is reduced, and the standby time is prolonged, and the present invention is not limited.
- the terminal includes a camera, and a flash control device having any of the above features connected to the flash of the camera, and the statistical gray value of the preview image is obtained by the flash control device, if the preview If the statistical gray value of the picture is less than the preset threshold, the corresponding fill light parameter is searched in the preset dynamic light meter according to the statistical gray value of the preview picture, and the fill light drive current is set according to the fill light parameter to fill the light.
- the driving current drives the flash to perform pre-flashing, and searches for a corresponding exposure driving current in a preset exposure parameter table according to the fill light parameter, drives the flash to perform flashing with the exposure driving current, and performs flash shooting with the exposure driving current driving the flash.
- the subsequent photo is analyzed, and if the statistical gray value of the photo taken after the flash is flashed by the exposure driving current is less than the first preset threshold or greater than the second preset threshold, the dynamic light meter is modified. .
- the corresponding fill light drive current and the exposure drive current are set according to the difference of the gray value of the preview picture, the intensity of the pre-flash and the flash can be driven by the fill light drive current and the exposure drive current to follow the environment.
- the change of light adapts adaptively, so that the photos taken in the prior art are prevented from being exposed due to the environment being too dark, or the exposure is not very dark due to the environment, resulting in poor photo quality and unsatisfactory results.
- the problem is that not only can the quality of the photograph taken can be improved, but also the photographing power consumption of the user terminal can be reduced with respect to the overexposed photo to extend the standby time of the user terminal.
- the foregoing method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
- Exposure Control For Cameras (AREA)
Abstract
一种闪光控制方法,包括:获取预览图片的统计灰度值(S101),若预览图片的统计灰度值小于预设门限,则根据预览图片的统计灰度值在预设的动态补光表中查找相应的补光参数(S102),以及根据补光参数设置补光驱动电流(S103),以补光驱动电流驱动闪光灯进行预闪光(S104),以及根据补光参数在预设的曝光参数表中查找相应的曝光驱动电流(S105),以曝光驱动电流驱动闪光灯进行闪光(S106)。还公开了一种闪光控制装置和一种用户终端。保证了预闪光、闪光和环境光的均衡,提高了照片的质量。
Description
一种闪光控制方法及装置 本申请要求于 2012年 09月 10日提交中国专利局、 申请号为 201210332153. 7、 发 明名称为 "一种闪光控制方法及装置"的中国专利申请的优先权, 其全部内容通过引用 结合在本申请中。 技术领域 本发明涉及数码技术领域, 尤其涉及一种闪光控制方法及装置。 背景技术 随着手机技术的不断发展和物质生活的逐渐丰富, 人们越来越强调手机的 多媒体体验, 相机已经成为中高端手机的必备功能, 其中多媒体是指能够同时 获取、 处理、 编辑、 储存和展示两个或两个以上不同类型的信息媒体的技术。 在手机的拍照功能中, 为了提高拍照体验, 又在相机上集成了闪光灯功能, 从 而能够在环境光比较暗的场景下,通过闪光灯增加曝光量拍出效果较好的照片。
现有技术中相机闪光灯的一般工作过程分为两个步骤: 预闪光和闪光。 预 闪光是在闪光灯开启前先打出微弱光让被拍摄者的瞳孔适应,然后再执行闪光, 目的是为了在较暗的环境下拍摄时,减小黑暗和逆光等对相机自动对焦的影响, 以及让被拍照者的瞳孔适应, 防止实际拍摄时产生的闪光灯光线进入被拍照者 的瞳孔而发生的残留现象, 避免产生红眼。
但是, 采用现有技术实现上述闪光控制的过程中, 闪光灯在进行闪光时的闪 光强度是固定的, 这必然导致的结果是, 拍摄出的照片会由于所处环境过暗而欠 曝光, 或者由于所处环境并非很暗而过曝光, 从而使得拍摄出的照片质量差, 效 果不理想。 发明内容 本发明的实施例提供一种闪光控制方法及装置, 能够根据预览图片的统计 灰度值的不同设置相应的补光驱动电流及曝光驱动电流, 既保证了预闪光、 闪 光和环境光的均衡, 也提高了拍摄出的照片的质量。
为达到上述目的, 本发明的实施例采用如下技术方案:
第一方面, 本发明实施例提供一种闪光控制方法, 该方法包括:
获取预览图片的统计灰度值;
若所述预览图片的统计灰度值小于预设门限, 则根据所述预览图片的统计 灰度值在预设的动态补光表中查找相应的补光参数;
根据所述补光参数设置补光驱动电流;
以所述补光驱动电流驱动闪光灯进行预闪光;
根据所述补光参数在预设的曝光参数表中查找相应的曝光驱动电流; 以所述曝光驱动电流驱动闪光灯进行闪光。
根据第一方面, 在第一种可能的实现方式中, 该方法还包括:
若所述预览图片的统计灰度值大于等于所述预设门限, 则不驱动闪光灯进 行闪光。
结合第一方面或第一种可能的实现方式, 在第二种可能的实现方式中, 该 方法还包括:
所述预览图片的统计灰度值唯一对应于所述补光参数, 且所述补光参数唯 一对应于所述曝光驱动电流。
结合第一方面或第一种可能的实现方式或第二种可能的实现方式, 在第三 种可能的实现方式中, 该方法还包括:
存储以所述曝光驱动电流驱动闪光灯进行闪光所拍摄的照片。
结合第一方面或第一种可能的实现方式至第三种可能的实现方式, 在第四 种可能的实现方式中, 该方法还包括:
获取所述照片的统计灰度值;
若所述照片的统计灰度值小于第一预设阈值, 则修改所述动态曝光表, 以 增大所述补光驱动电流或曝光驱动电流, 或者,
若大于第二预设阈值, 则修改所述动态曝光表, 以减小所述补光驱动电流 或曝光驱动电流。
第二方面, 本发明实施例提供一种闪光控制装置, 该装置包括: 物理传感器, 用于获取预览图片的统计灰度值;
处理器, 用于若所述预览图片的统计灰度值小于预设门限, 则根据所述预 览图片的统计灰度值在预设的动态补光表中查找相应的补光参数, 以及在根据 所述补光参数设置补光驱动电流后, 以所述补光驱动电流驱动闪光灯进行预闪 光, 以及在根据所述补光参数在预设的曝光参数表中查找相应的曝光驱动电流
后, 以所述曝光驱动电流驱动闪光灯进行闪光。
根据第一方面, 在第一种可能的实现方式中, 所述处理器, 还用于若所述 预览图片的统计灰度值小于等于所述预设门限, 则不驱动闪光灯进行闪光。
根据第一方面或第一种可能的实现方式, 在第二种可能的实现方式中, 该 装置还包括:
存储器,用于存储以所述曝光驱动电流驱动闪光灯进行闪光所拍摄的照片。 结合第一方面或第一种可能的实现方式或第二种可能的实现方式, 在第三 种可能的实现方式中, 所述处理器, 还用于获取所述照片的统计灰度值, 以及 若所述照片的统计灰度值小于第一预设阈值, 则修改所述动态曝光表, 以增大 所述曝光驱动电流, 或者,
若大于第二预设阈值, 则修改所述动态曝光表, 以减小所述曝光驱动电流。 第三方面, 本发明实施例还提供一种用户终端, 包括相机, 以及与所述相 机的闪光灯连接的具有上述任意特征的闪光控制装置。
本发明实施例所提供的闪光控制的方法及装置, 通过获取预览图片的统计灰 度值, 若预览图片的统计灰度值小于预设门限, 则根据预览图片的统计灰度值在 预设的动态补光表中查找相应的补光参数, 以及根据补光参数设置补光驱动电 流, 以补光驱动电流驱动闪光灯进行预闪光, 以及根据补光参数在预设的曝光参 数表中查找相应的曝光驱动电流, 以曝光驱动电流驱动闪光灯进行闪光。 通过该 方案, 由于针对不同的预览图片统计灰度值设置了相应的补光驱动电流及曝光驱 动电流, 因此通过补光驱动电流及曝光驱动电流驱动闪光灯进行预闪光及闪光的 强度能够随着环境光的变化适应性地变化, 从而避免了现有技术中拍摄的照片由 于所处环境过暗而欠曝光, 或者由于所处环境并非很暗而过曝光, 而导致照片质 量差, 效果不理想的问题, 即不但 能够提高拍摄出的照片的质量, 而且能够相 对于照片过曝光的情况而降低用户终端的拍照功耗, 以延长用户终端的待机时 间。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付
出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的闪光控制方法流程示意图一;
图 2为本发明实施例提供的闪光控制方法流程示意图二;
图 3为本发明实施例提供的闪光控制装置的结构示意图一;
图 4为本发明实施例提供的闪光控制装置的结构示意图二。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供一种闪光控制方法, 如图 1所示, 该方法包括:
S 101、 闪光控制装置获取预览图片的统计灰度值。
随着手机技术的不断发展, 手机的拍照功能已经成为中高端手机的必备功 能。 在手机的拍照功能中, 为了提高拍照体验, 又在相机上集成了闪光灯功能, 从而能够在环境光比较暗的场景下, 通过闪光灯增加曝光量拍出效果较好的照 片。
需要说明的是, 本发明实施例所提供的闪光控制装置除了可以设置在手机 中, 还能够设置在其他具有拍照功能的设备中, 下面以手机为例进行说明: 在用户进行拍照时, 闪光控制装置根据摄像头所预览到的影像图片 (即预 览图片) 获取预览图片的统计灰度值, 具体地, 可以通过闪光控制装置的物理 传感器获取预览图片的统计灰度值, 其中, 预览图片可以是用户启动手机的拍 照功能时手机摄像头所捕捉到的影像画面, 闪光控制装置的物理传感器能够从 手机摄像头所捕捉到的影像画面获得该预览图片的统计灰度值, 其中, 物理传 感器是通过感光芯片将光信号转换为电信号的装置, 统计灰度值是用以表示亮 度大小的统计值, 统计灰度值越小代表影像图片的颜色越暗、 环境光越暗, 统 计灰度值越大代表影像图片的颜色越亮、 环境光越亮。
可以理解的是, 一张图片是由很多个像素点组成的, 每一个像素点都对应 着一个相应的灰度值, 灰度值的大小在 0至 255的范围内, 其中, 0代表黑色, 255 代表白色, 不同的灰度值反映了不同的颜色深度。 闪光控制装置可以通过
对组成预览图片的所有像素点的灰度值进行平均值计算, 以获取预览图片的统 计灰度值, 从而得到预览图片的统计灰度值。 其中, 统计灰度值越小则表明预 览图片颜色越黑, 环境光越暗, 统计灰度值越大则表明预览图片颜色越白, 环 境光越亮。
S 102、 若预览图片的统计灰度值小于预设门限, 闪光控制装置则根据预览 图片的统计灰度值在预设的动态补光表中查找相应的补光参数。
若闪光控制装置的物理传感器获取的预览图片统计灰度值小于预设门限, 则说明环境光较暗, 需要补光灯进行补光, 则闪光控制装置根据预览图片统计 灰度值在预设的动态补光表中查找相应的补光参数。
示例性的, 如表 1所示, 本发明实施例的预设的动态补光表中可以包括统 计灰度值和补光参数, 其中, 统计灰度值唯一对应于补光参数。
表 1
由表 1可知, 若预览图片的统计灰度值为 12勒克斯, 那么在动态补光表中 查找的到相应的补光参数即为 75,根据补光参数设置的补光驱动电流可以为 75 毫安, 进而以 75毫安的补光驱动电流驱动闪光灯进行预闪光。
需要说明的是, 不同的用户设备, 可以设定不同的预设门限, 例如, 设置 于手机中的闪光控制装置的预设门限可以设定为 30勒克斯 (照度单位, 1勒克 斯等于 1 流明的光通量均匀分布于 1 平方米面积上的光照度) , 设置于平板 电脑中的闪光控制装置的预设门限可以设定为 35勒克斯。
5103、 闪光控制装置根据查找到的补光参数设置补光驱动电流。
闪光控制装置在根据预览图片统计灰度值查找到预设的动态补光表中相应 的补光参数后, 根据补光参数设置补光驱动电流。
5104、 闪光控制装置以补光驱动电流驱动闪光灯进行预闪光。
进而, 闪光控制装置根据设置的补光驱动电流, 用此补光驱动电流驱动闪 光灯进行预闪光。
5105、 闪光控制装置根据从动态补光表中查找到的相应的补光参数在预设 的曝光参数表中查找相应的曝光驱动电流。
闪光控制装置在驱动闪光灯进行预闪光之后, 会根据从动态补光表中查找 到的相应的补光参数, 在预设的曝光参数表中查找相应的曝光驱动电流。
示例性的, 如表 2所示, 本发明实施例的预设的曝光参数表可以包括补光 参数和曝光驱动电流, 其中, 补光参数唯一对应于曝光驱动电流。
表 2
由表 2可知, 若在动态补光表中查找的到补光参数为 75, 那么在曝光参数 表中查找到的对应的根据曝光驱动电流即为 300毫安, 进而以 300毫安的曝光 驱动电流驱动闪光灯进行闪光。
其中, 在预设的曝光参数表中查找相应的曝光驱动电流后, 该曝光驱动电 流可以配合闪光灯光圈的大小, 快门时间的长短, 以及曝光增益, 即动态补光 表中光圈系数等级、 快门系数等级、 景物亮度等级和曝光增益等级相配合, 驱
动闪光灯进行闪光, 本发明不做限制。
S 106、 闪光控制装置以曝光驱动电流驱动闪光灯进行闪光。
进而, 闪光控制装置根据在预设的曝光参数表中查找到的相应的曝光驱动 电流, 用此曝光驱动电流驱动闪光灯进行闪光。
本发明实施例所提供的一种闪光控制方法, 通过获取预览图片的统计灰度 值, 若预览图片的统计灰度值小于预设门限, 则根据预览图片的统计灰度值在 预设的动态补光表中查找相应的补光参数, 以及根据补光参数设置补光驱动电 流, 以补光驱动电流驱动闪光灯进行预闪光, 以及根据补光参数在预设的曝光 参数表中查找相应的曝光驱动电流, 以曝光驱动电流驱动闪光灯进行闪光。 通 过该方案, 由于根据预览图片统计灰度值的不同设置了相应的补光驱动电流及 曝光驱动电流, 因此通过补光驱动电流及曝光驱动电流驱动闪光灯进行预闪光 及闪光的强度能够随着环境光的变化适应性地变化, 从而避免了现有技术中拍 摄的照片由于所处环境过暗而欠曝光, 或者由于所处环境并非很暗而过曝光, 而导致照片质量差,效果不理想的问题,即不但 能够提高拍摄出的照片的质量, 而且能够相对于照片过曝光的情况而降低用户终端的拍照功耗, 以延长用户终 端的待机时间。
本发明实施例提供的一种闪光控制方法, 如图 2所示, 该方法包括: S201、 闪光控制装置获取预览图片的统计灰度值。
随着手机技术的不断发展, 手机的拍照功能已经成为中高端手机的必备功 能。 在手机的拍照功能中, 为了提高拍照体验, 又在相机上集成了闪光灯功能, 从而能够在环境光比较暗的场景下, 通过闪光灯增加曝光量拍出效果较好的照 片。
需要说明的是, 本发明实施例所提供的闪光控制装置除了可以设置在手机 中, 还能够设置在其他具有拍照功能的设备中, 下面以手机为例进行说明: 在用户进行拍照时, 闪光控制装置根据摄像头所预览到的影像图片 (即预 览图片) 通过物理传感器, 获取预览图片的统计灰度值, 具体地, 可以通过闪 光控制装置的物理传感器获取预览图片的统计灰度值, 其中, 用户预览到的影 像图片可以是用户启动手机的拍照功能时手机摄像头所捕捉到的影像画面, 闪 光控制装置的物理传感器能够从手机摄像头所捕捉到的影像画面获得该预览图 片的统计灰度值, 其中, 物理传感器是通过感光芯片将光信号转换为电信号的 装置, 统计灰度值是用以表示亮度大小的统计值, 统计灰度值越小代表影像图
片的颜色越暗、 环境光越暗, 统计灰度值越大代表影像图片的颜色越亮、 环境 光越亮。
可以理解的是, 一张图片是由很多个像素点组成的, 每一个像素点都对应 着一个相应的灰度值, 灰度值的大小在 0至 255的范围内, 其中, 0代表黑色, 255 代表白色, 不同的灰度值反映了不同的颜色深度。 闪光控制装置可以通过 对组成预览图片的所有像素点的灰度值进行平均值计算, 以获取预览图片的统 计灰度值, 从而得到预览图片的统计灰度值。 其中, 统计灰度值越小则表明预 览图片颜色越黑, 环境光越暗, 统计灰度值越大则表明预览图片颜色越白, 环 境光越亮。
S202、 若预览图片的统计灰度值小于预设门限, 闪光控制装置则根据预览 图片的统计灰度值在预设的动态补光表中查找相应的补光参数。
若闪光控制装置的物理传感器获取的预览图片统计灰度值小于预设门限, 则说明环境光较暗, 需要补光灯进行补光, 则闪光控制装置根据预览图片统计 灰度值在预设的动态补光表中查找相应的补光参数。
需要说明的是, 不同的用户设备, 可以设定不同的预设门限, 例如, 设置 于手机中的闪光控制装置的预设门限可以设定为 30勒克斯 (照度单位, 1勒克 斯等于 1 流明的光通量均匀分布于 1 平方米面积上的光照度) , 设置于平板 电脑中的闪光控制装置的预设门限可以设定为 35勒克斯。
5203、 若预览图片统计灰度值大于预设门限, 则闪光控制装置不驱动闪光 灯进行闪光。
与步骤 S202并列的一种情况, 若预览图片统计灰度值大于预设门限, 则说 明环境光较亮, 不需要闪光灯进行预闪光及闪光, 所以闪光控制装置不驱动闪 光灯进行闪光。
5204、 闪光控制装置根据查找到的补光参数设置补光驱动电流。
S205、 闪光控制装置以设置后的补光驱动电流驱动闪光灯进行预闪光。 下面, 结合步骤 S204和 S205 , 对闪光控制装置驱动闪光灯进行预闪光的 过程进行说明。
闪光控制装置在根据预览图片统计灰度值查找到预设的动态补光表中相应 的补光参数后, 根据补光参数设置补光驱动电流, 并用此补光驱动电流驱动闪 光灯进行预闪光。 预闪光的目的是为了在较暗的环境下拍摄时, 为相机自动对 焦照亮, 以防止在较黑暗和逆光的条件下拍照时对相机自动对焦的影响, 以及
让被拍照者的瞳孔适应, 这样能够防止实际拍摄时产生的闪光灯光线进入被拍 照者的瞳孔而发生的残留现象, 避免产生红眼。例如, 当采用发光二极管(LED ) 作为闪光灯时, 本发明实施例可以通过设置电流源输出的补光驱动电流来控制 发光二极管的预闪光量。
需要补充的是, 在预闪光的同时闪光控制装置还可以进行白平衡计算, 其 中, 白平衡 (White Balance ) 是描述显示器中红、 绿、 蓝三基色混合生成后白 色精确度的一项指标, 可以解决色彩还原和色调处理等一系列问题。 由于人眼 独特的适应性, 能够使人们在不同的环境下所看到的白色物体颜色依旧, 但是 数码设备去不具有人眼的这种适应功能, 所以, 数码设备就必须模仿人类大脑 并根据光线来调整色彩, 也就是需要自动或手动调整白平衡来达到令人满意的 色彩。
5206、 闪光控制装置根据从动态补光表中查找到的相应的补光参数在预设 的曝光参数表中查找相应的曝光驱动电流。
5207、 闪光控制装置以设置后的曝光驱动电流驱动闪光灯进行闪光。
下面, 结合步骤 S206和 S207 , 对闪光控制装置驱动闪光灯进行闪光的过 程进行说明。
示例性的, 闪光控制装置先获取从物理传感器获取的预览图片统计灰度值 在预设的动态补光表中查找相应的补光参数, 再根据从动态补光表中查找到的 相应的补光参数在预设的曝光参数表中查找到相应的曝光驱动电流, 根据曝光 驱动电流驱动闪光灯进行闪光, 其中, 补光参数唯一对应于曝光驱动电流, 同 样的, 当采用发光二极管作为闪光灯时, 本发明实施例可以通过与补光参数对 应的曝光驱动电流来控制发光二极管的闪光量。
示例性的, 如表 3所示, 将动态补光表及曝光参数表结合在一起, 其中, 统计灰度值唯一对应于补光参数, 补光参数唯一对应于曝光驱动电流。
表 3
[20, 25) 125 500
[25, 30) 150 600
[30, 25) 175 700
… … … 由表 3可知, 若预览图片的统计灰度值为 12勒克斯, 那么在表 3中查找的 到相应的补光参数即为 75, 根据补光参数设置的补光驱动电流可以为 75毫安, 进而先以 75毫安的补光驱动电流驱动闪光灯进行预闪光,再查找到的对应的根 据曝光驱动电流为 300毫安,以 300毫安的曝光驱动电流驱动闪光灯进行闪光。
需要补充的是, 在预设的曝光参数表中查找相应的曝光驱动电流后, 该曝 光驱动电流配合闪光灯光圈的大小, 快门时间的长短, 以及曝光增益, 即动态 补光表中光圈系数等级、 快门系数等级、 景物亮度等级和曝光增益等级相配合, 驱动闪光灯进行闪光。
5208、 闪光控制装置存储以所述曝光驱动电流驱动闪光灯进行闪光后所拍 摄的照片。
5209、 闪光控制装置获取以所述曝光驱动电流驱动闪光灯进行闪光后所拍 摄的照片的统计灰度值。
5210、 若照片的统计灰度值小于第一预设阈值, 则修改动态曝光表, 以增 大补光驱动电流或曝光驱动电流, 或者, 若大于第二预设阈值, 则修改动态曝 光表, 以减小补光驱动电流或曝光驱动电流。
结合步骤 S208、 S209和 S210, 对手机如何修改动态补光表进行说明。 现有技术中, 相机闪光往往采用自动闪光的方式, 此时, 相机会自动判断 拍摄场景的光线是否充足, 如果不足, 就会自动在拍摄时打开闪光灯进行闪光, 以弥补光线。
而在本发明实施例中, 闪光控制装置首先会存储以所述曝光驱动电流驱动 闪光灯进行闪光所拍摄的照片, 进而根据以所述曝光驱动电流驱动闪光灯进行 闪光后所拍摄的照片获取照片的统计灰度值, 并将所拍摄照片的统计灰度值和 第一预设阈值、 第二预设阈值进行比较, 其中第一预设阈值是判定照片是否欠 曝光的临界值, 第二预设阈值是判定照片是否过曝光的临界值。 若以所述曝光 驱动电流驱动闪光灯进行闪光后所拍摄的照片的统计灰度值小于第一预设阈值
或大于第二预设阈值, 则修改动态补光表, 反之则结束拍照, 其中, 若需要修 改动态补光表, 则说明照片出现了过曝光或欠曝光的情况, 进而说明此时预览 图片的统计灰度值与对应的补光参数需要进行调整, 若出现过曝光的情况, 则 说明闪光过强, 应将动态补光表中对应的曝光驱动电流减小, 若出现欠曝光的 情况, 则说明闪光过弱, 应将动态补光表中对应的曝光驱动电流增大, 所以, 通过修改动态补光表能够不断的修正和完善手机的闪光控制结构。
本发明实施例所提供的一种闪光控制方法, 通过获取预览图片的统计灰度 值, 若预览图片的统计灰度值小于预设门限, 则根据预览图片的统计灰度值在 预设的动态补光表中查找相应的补光参数, 以及根据补光参数设置补光驱动电 流, 以补光驱动电流驱动闪光灯进行预闪光, 以及根据补光参数在预设的曝光 参数表中查找相应的曝光驱动电流, 以曝光驱动电流驱动闪光灯进行闪光, 并 对以所述曝光驱动电流驱动闪光灯进行闪光拍摄后的照片进行分析, 若出现以 所述曝光驱动电流驱动闪光灯进行闪光后所拍摄的照片的统计灰度值小于第一 预设阈值或大于第二预设阈值的情况, 则修改动态补光表。 通过该方案, 由于 根据预览图片统计灰度值的不同设置了相应的补光驱动电流及曝光驱动电流, 因此通过补光驱动电流及曝光驱动电流驱动闪光灯进行预闪光及闪光的强度能 够随着环境光的变化适应性地变化, 从而避免了现有技术中拍摄的照片由于所 处环境过暗而欠曝光, 或者由于所处环境并非很暗而过曝光, 而导致照片质量 差, 效果不理想的问题, 即不但 能够提高拍摄出的照片的质量, 而且能够相对 于照片过曝光的情况而降低用户终端的拍照功耗,以延长用户终端的待机时间。
本发明实施例提供的一种闪光控制装置 1, 对应上述方案实施例, 闪光控 制装置 1的各个功能单元均可以用于上述方法步骤。 如图 3所示, 包括:
物理传感器 10, 用于获取预览图片的统计灰度值;
处理器 1 1, 用于若预览图片的统计灰度值小于预设门限, 则根据预览图片 的统计灰度值在预设的动态补光表中查找相应的补光参数, 以及在根据补光参 数设置补光驱动电流后, 以补光驱动电流驱动闪光灯进行预闪光, 以及在根据 补光参数在预设的曝光参数表中查找相应的曝光驱动电流后, 以曝光驱动电流 驱动闪光灯进行闪光。
进一步地, 处理器 1 1还用于若预览图片的统计灰度值小于等于预设门限, 则不驱动闪光灯进行闪光。
进一步地, 所述预览图片的统计灰度值唯一对应于所述补光参数, 且所述
补光参数唯一对应于所述曝光驱动电流。
进一步地, 如图 4所示, 闪光控制装置 1还包括:
存储器 12, 用于存储以所述曝光驱动电流驱动闪光灯进行闪光所拍摄的照 片。
进一步地, 处理器 1 1, 还用于获取所述照片的统计灰度值, 以及若所述照 片的统计灰度值小于第一预设阈值, 则修改所述动态曝光表, 以增大所述曝光 驱动电流, 或者,
若大于第二预设阈值, 则修改所述动态曝光表, 以减小所述曝光驱动电流。 需要补充的是, 该闪光控制装置能够集成在软件中, 在手机的拍照***中 以一个软件菜单界面的方式展现在用户面前, 用户可以根据自身的需求手动选 择修改各种补光曝光参数, 以满足用户对于光照的各种需求。
本发明实施例所提供的一种闪光控制装置, 通过获取预览图片的统计灰度 值, 若预览图片的统计灰度值小于预设门限, 则根据预览图片的统计灰度值在 预设的动态补光表中查找相应的补光参数, 以及根据补光参数设置补光驱动电 流, 以补光驱动电流驱动闪光灯进行预闪光, 以及根据补光参数在预设的曝光 参数表中查找相应的曝光驱动电流, 以曝光驱动电流驱动闪光灯进行闪光, 并 对以所述曝光驱动电流驱动闪光灯进行闪光拍摄后的照片进行分析, 若出现以 所述曝光驱动电流驱动闪光灯进行闪光后所拍摄的照片的统计灰度值小于第一 预设阈值或大于第二预设阈值的情况, 则修改动态补光表。 通过该方案, 由于 根据预览图片统计灰度值的不同设置了相应的补光驱动电流及曝光驱动电流, 因此通过补光驱动电流及曝光驱动电流驱动闪光灯进行预闪光及闪光的强度能 够随着环境光的变化适应性地变化, 从而避免了现有技术中拍摄的照片由于所 处环境过暗而欠曝光, 或者由于所处环境并非很暗而过曝光, 而导致照片质量 差, 效果不理想的问题, 即不但 能够提高拍摄出的照片的质量, 而且能够相对 于照片过曝光的情况而降低用户终端的拍照功耗,以延长用户终端的待机时间。
本发明实施例还提供一种用户终端, 包括相机, 以及与所述相机的闪光灯 连接的具有上述任意特征的闪光控制装置。
需要说明的是, 本发明实施例以手机拍照为例, 描述了当该闪光控制装置 设置在手机中时, 既保证了预闪光、 闪光和环境光的均衡, 也提高了拍摄出的 照片的质量, 但是, 该闪光控制装置除了用在手机拍照***中, 还能够设置在 其他具有拍照功能的设备中, 例如, 平板电脑等, 同样能在保证了补光和环境
光的均衡的情况下, 降低能够拍照的设备的功耗, 延长待机时间, 本发明不做 限制。
本发明实施例所提供的一种用户终端, 该终端包括相机, 以及与所述相机 的闪光灯连接的具有上述任意特征的闪光控制装置, 通过闪光控制装置获取预 览图片的统计灰度值, 若预览图片的统计灰度值小于预设门限, 则根据预览图 片的统计灰度值在预设的动态补光表中查找相应的补光参数, 以及根据补光参 数设置补光驱动电流, 以补光驱动电流驱动闪光灯进行预闪光, 以及根据补光 参数在预设的曝光参数表中查找相应的曝光驱动电流, 以曝光驱动电流驱动闪 光灯进行闪光, 并对以所述曝光驱动电流驱动闪光灯进行闪光拍摄后的照片进 行分析, 若出现以所述曝光驱动电流驱动闪光灯进行闪光后所拍摄的照片的统 计灰度值小于第一预设阈值或大于第二预设阈值的情况, 则修改动态补光表。 通过该方案, 由于根据预览图片统计灰度值的不同设置了相应的补光驱动电流 及曝光驱动电流, 因此通过补光驱动电流及曝光驱动电流驱动闪光灯进行预闪 光及闪光的强度能够随着环境光的变化适应性地变化, 从而避免了现有技术中 拍摄的照片由于所处环境过暗而欠曝光,或者由于所处环境并非很暗而过曝光, 而导致照片质量差,效果不理想的问题,即不但 能够提高拍摄出的照片的质量, 而且能够相对于照片过曝光的情况而降低用户终端的拍照功耗, 以延长用户终 端的待机时间。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: R0M、 RAM , 磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或 替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权 利要求的保护范围为准。
Claims
1、 一种闪光控制方法, 其特征在于, 包括:
获取预览图片的统计灰度值;
若所述预览图片的统计灰度值小于预设门限, 则根据所述预览图片的统计 灰度值在预设的动态补光表中查找相应的补光参数;
根据所述补光参数设置补光驱动电流;
以所述补光驱动电流驱动闪光灯进行预闪光;
根据所述补光参数在预设的曝光参数表中查找相应的曝光驱动电流; 以所述曝光驱动电流驱动闪光灯进行闪光。
2、 根据权利要求 1所述的闪光控制方法, 其特征在于, 还包括: 若所述预览图片的统计灰度值大于等于所述预设门限, 则不驱动闪光灯进 行闪光。
3、 根据权利要求 1或 2所述的闪光控制方法, 其特征在于, 所述预览图片 的统计灰度值唯一对应于所述补光参数, 且所述补光参数唯一对应于所述曝光 驱动电流。
4、 根据权利要求 1 -3中任意一项所述的闪光控制方法, 其特征在于, 所述 以所述曝光驱动电流驱动闪光灯进行闪光后, 所述方法还包括:
存储以所述曝光驱动电流驱动闪光灯进行闪光后所拍摄的照片。
5、 根据权利要求 4所述的闪光控制方法, 其特征在于, 所述存储使用闪光 所拍摄的照片后, 所述方法还包括:
获取所述照片的统计灰度值;
若所述照片的统计灰度值小于第一预设阈值, 则修改所述动态曝光表, 以 增大所述补光驱动电流或曝光驱动电流, 或者,
若大于第二预设阈值, 则修改所述动态曝光表, 以减小所述补光驱动电流 或曝光驱动电流。
6、 一种闪光控制装置, 其特征在于, 包括:
物理传感器, 用于获取预览图片的统计灰度值;
处理器, 用于若所述预览图片的统计灰度值小于预设门限, 则根据所述预 览图片的统计灰度值在预设的动态补光表中查找相应的补光参数, 以及在根据 所述补光参数设置补光驱动电流后, 以所述补光驱动电流驱动闪光灯进行预闪 光, 以及在根据所述补光参数在预设的曝光参数表中查找相应的曝光驱动电流 后, 以所述曝光驱动电流驱动闪光灯进行闪光。
7、 根据权利要求 6所述的闪光控制装置, 其特征在于, 所述处理器, 还用 于若所述预览图片的统计灰度值小于等于所述预设门限, 则不驱动闪光灯进行 闪光。
8、 根据权利要求 6或 7所述的闪光控制装置, 其特征在于, 还包括: 存储器,用于存储以所述曝光驱动电流驱动闪光灯进行闪光所拍摄的照片。
9、 根据权利要求 9所述的闪光控制装置, 其特征在于, 所述处理器, 还用 于获取所述照片的统计灰度值, 以及若所述照片的统计灰度值小于第一预设阈 值, 则修改所述动态曝光表, 以增大所述曝光驱动电流, 或者,
若大于第二预设阈值, 则修改所述动态曝光表, 以减小所述曝光驱动电流。
10、 一种用户终端, 其特征在于, 包括相机, 以及与所述相机的闪光灯连 接的如权利要求 6-9任意一项所述的闪光控制装置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210332153.7A CN102830573B (zh) | 2012-09-10 | 2012-09-10 | 一种闪光控制方法及装置 |
CN201210332153.7 | 2012-09-10 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014036911A1 true WO2014036911A1 (zh) | 2014-03-13 |
Family
ID=47333755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/082695 WO2014036911A1 (zh) | 2012-09-10 | 2013-08-30 | 一种闪光控制方法及装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US9030600B2 (zh) |
EP (1) | EP2706745A1 (zh) |
CN (1) | CN102830573B (zh) |
WO (1) | WO2014036911A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105163473A (zh) * | 2015-09-10 | 2015-12-16 | 浙江宇视科技有限公司 | 一种氙气灯及其补光方法 |
Families Citing this family (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102830573B (zh) | 2012-09-10 | 2015-08-19 | 华为终端有限公司 | 一种闪光控制方法及装置 |
CN104010150B (zh) * | 2013-02-27 | 2018-06-01 | 联想(北京)有限公司 | 一种图像采集的方法及电子设备 |
CN104104883A (zh) * | 2013-04-11 | 2014-10-15 | 深圳富泰宏精密工业有限公司 | 拍照***及方法 |
CN104349068B (zh) * | 2013-08-08 | 2017-12-26 | 联想(北京)有限公司 | 一种拍摄方法及电子设备 |
CN103472971B (zh) * | 2013-09-03 | 2017-10-17 | 小米科技有限责任公司 | 一种设置拍摄参数的方法、装置及终端设备 |
CN108184047B (zh) * | 2013-10-15 | 2020-12-01 | Oppo广东移动通信有限公司 | 一种手机闪光拍照智能ae算法 |
CN103945119B (zh) * | 2014-03-17 | 2018-01-23 | 广东明创软件科技有限公司 | 基于移动终端的提高摄像头对焦速度的方法及其移动终端 |
CN103957363A (zh) * | 2014-05-16 | 2014-07-30 | 深圳市中兴移动通信有限公司 | 闪光拍摄方法和拍摄装置 |
CN104113688B (zh) * | 2014-06-26 | 2019-01-15 | 联想(北京)有限公司 | 一种图像处理方法及其电子设备 |
CN105335958B (zh) * | 2014-08-15 | 2018-12-28 | 格科微电子(上海)有限公司 | 闪光灯补光的处理方法和设备 |
TWI563845B (en) * | 2014-11-19 | 2016-12-21 | Method for taking photo with extension flash module of mobile device | |
CN106331512A (zh) * | 2015-07-08 | 2017-01-11 | 西安中兴新软件有限责任公司 | 一种拍照方法及终端 |
CN105141856B (zh) * | 2015-09-18 | 2018-08-10 | 联想(北京)有限公司 | 一种光照控制方法及装置 |
CN105554413B (zh) * | 2016-02-15 | 2018-11-20 | 广东欧珀移动通信有限公司 | 一种屏幕补光拍照方法、装置及移动终端 |
CN107302654A (zh) * | 2016-04-15 | 2017-10-27 | 中兴通讯股份有限公司 | 一种拍摄方法及装置 |
CN105763814B (zh) * | 2016-04-26 | 2019-03-29 | 南昌黑鲨科技有限公司 | 夜景拍摄的方法及装置 |
CN106131451A (zh) * | 2016-08-04 | 2016-11-16 | 乐视控股(北京)有限公司 | 拍摄设备的控制方法、***及其移动终端 |
CN106534711A (zh) * | 2016-09-30 | 2017-03-22 | 西安易朴通讯技术有限公司 | 拍摄方法及拍摄装置 |
CN106455217B (zh) * | 2016-10-30 | 2017-11-14 | 深圳市裕明鑫科技有限公司 | 大功率洗墙灯的控制方法及控制*** |
CN106791460A (zh) * | 2016-11-23 | 2017-05-31 | 滁州昭阳电信通讯设备科技有限公司 | 一种闪光灯亮度控制的方法及移动终端 |
CN107968920B (zh) * | 2017-11-28 | 2021-01-05 | 努比亚技术有限公司 | 一种参数确定方法及电子设备、存储介质 |
CN108449548A (zh) * | 2018-03-16 | 2018-08-24 | 广东小天才科技有限公司 | 一种拍摄方法、装置、拍摄设备及计算机可读存储介质 |
US10447942B1 (en) | 2018-06-07 | 2019-10-15 | Qualcomm Incorporated | Flash control for video capture |
CN116739009A (zh) * | 2018-11-15 | 2023-09-12 | 无锡盈达聚力科技有限公司 | 扫描装置、其补光灯控制***及控制方法 |
TWI708509B (zh) * | 2019-03-12 | 2020-10-21 | 麗寶大數據股份有限公司 | 影像顯示系統與方法 |
EP3973694A4 (en) * | 2019-07-17 | 2022-07-27 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | SYSTEMS AND METHODS FOR INTELLIGENT FLASH INTENSITY CONTROL |
CN110891145B (zh) * | 2019-12-02 | 2021-08-17 | 联想(北京)有限公司 | 一种拍照获得图像的方法及电子设备 |
CN112584059B (zh) * | 2020-12-11 | 2022-07-01 | 上海佳勒电子有限公司 | 一种具有多通路收发引闪方法、装置、***及存储介质 |
CN112954229B (zh) * | 2021-02-08 | 2023-04-18 | 青岛海尔电冰箱有限公司 | 基于灰度值调节补光灯光强的方法、设备及冰箱 |
US12022201B2 (en) | 2022-03-23 | 2024-06-25 | L3Harris Technologies, Inc. | Smart illumination for nightvision using semi-transparent detector array |
TWI807742B (zh) * | 2022-03-30 | 2023-07-01 | 華碩電腦股份有限公司 | 具有閃光功能的電子裝置及閃光燈的驅動方法 |
CN116167394A (zh) * | 2023-02-21 | 2023-05-26 | 深圳牛图科技有限公司 | 一种条码识别方法及*** |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001021961A (ja) * | 1999-07-06 | 2001-01-26 | Canon Inc | 撮像装置及びその制御方法 |
CN1744672A (zh) * | 2004-08-31 | 2006-03-08 | 佳能株式会社 | 图像捕捉设备及其控制方法 |
US20080199171A1 (en) * | 2007-02-15 | 2008-08-21 | Rei Yoshida | Imaging device |
CN101516002A (zh) * | 2008-02-18 | 2009-08-26 | 佛山普立华科技有限公司 | 摄影装置及其闪光调整方法 |
CN201450532U (zh) * | 2009-06-04 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端 |
CN102081278A (zh) * | 2010-11-19 | 2011-06-01 | 华为终端有限公司 | 闪光控制方法及装置 |
US20110280560A1 (en) * | 2010-05-14 | 2011-11-17 | Ability Enterprise Co., Ltd. | Flashing control method for a digital camera |
CN102830573A (zh) * | 2012-09-10 | 2012-12-19 | 华为终端有限公司 | 一种闪光控制方法及装置 |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100389362C (zh) * | 2005-04-04 | 2008-05-21 | 北京中星微电子有限公司 | 曝光调节方法及装置 |
US7663691B2 (en) * | 2005-10-11 | 2010-02-16 | Apple Inc. | Image capture using display device as light source |
JP4516500B2 (ja) * | 2005-08-23 | 2010-08-04 | 富士フイルム株式会社 | 撮像装置 |
JP4649550B2 (ja) * | 2005-12-27 | 2011-03-09 | 三星電子株式会社 | カメラ |
CN101281343A (zh) | 2007-04-03 | 2008-10-08 | 上海摩飞电子科技有限公司 | 一种手机led闪光模块 |
US8018525B2 (en) * | 2007-12-21 | 2011-09-13 | Nokia Corporation | Camera flash module and method for controlling same |
JP5268438B2 (ja) * | 2008-06-13 | 2013-08-21 | キヤノン株式会社 | ストロボ装置、撮像装置およびその制御方法 |
CN101685194A (zh) | 2008-09-26 | 2010-03-31 | 鸿富锦精密工业(深圳)有限公司 | 自动对焦装置及方法 |
TWI401522B (zh) | 2008-12-31 | 2013-07-11 | Altek Corp | Flash intensity adjustment method |
US20100253797A1 (en) * | 2009-04-01 | 2010-10-07 | Samsung Electronics Co., Ltd. | Smart flash viewer |
JP5489591B2 (ja) * | 2009-08-18 | 2014-05-14 | キヤノン株式会社 | 撮像装置およびその制御方法 |
JP2011061530A (ja) * | 2009-09-10 | 2011-03-24 | Canon Inc | 撮像装置及び撮像装置の制御方法 |
US8730384B2 (en) * | 2010-06-03 | 2014-05-20 | Apple Inc. | Systems, methods, and devices for flash exposure control using preflash statistics |
EP2466873B1 (en) | 2010-12-17 | 2014-07-23 | BlackBerry Limited | Reduced pre-flash for camera devices with LED flash |
KR101739380B1 (ko) * | 2011-04-11 | 2017-06-08 | 삼성전자주식회사 | 디지털 영상 촬영 장치 및 방법 |
-
2012
- 2012-09-10 CN CN201210332153.7A patent/CN102830573B/zh active Active
-
2013
- 2013-08-30 WO PCT/CN2013/082695 patent/WO2014036911A1/zh active Application Filing
- 2013-09-09 US US14/021,404 patent/US9030600B2/en active Active
- 2013-09-10 EP EP13183668.6A patent/EP2706745A1/en not_active Withdrawn
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001021961A (ja) * | 1999-07-06 | 2001-01-26 | Canon Inc | 撮像装置及びその制御方法 |
CN1744672A (zh) * | 2004-08-31 | 2006-03-08 | 佳能株式会社 | 图像捕捉设备及其控制方法 |
US20080199171A1 (en) * | 2007-02-15 | 2008-08-21 | Rei Yoshida | Imaging device |
CN101516002A (zh) * | 2008-02-18 | 2009-08-26 | 佛山普立华科技有限公司 | 摄影装置及其闪光调整方法 |
CN201450532U (zh) * | 2009-06-04 | 2010-05-05 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端 |
US20110280560A1 (en) * | 2010-05-14 | 2011-11-17 | Ability Enterprise Co., Ltd. | Flashing control method for a digital camera |
CN102081278A (zh) * | 2010-11-19 | 2011-06-01 | 华为终端有限公司 | 闪光控制方法及装置 |
CN102830573A (zh) * | 2012-09-10 | 2012-12-19 | 华为终端有限公司 | 一种闪光控制方法及装置 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105163473A (zh) * | 2015-09-10 | 2015-12-16 | 浙江宇视科技有限公司 | 一种氙气灯及其补光方法 |
Also Published As
Publication number | Publication date |
---|---|
CN102830573A (zh) | 2012-12-19 |
US20140071338A1 (en) | 2014-03-13 |
US9030600B2 (en) | 2015-05-12 |
EP2706745A1 (en) | 2014-03-12 |
CN102830573B (zh) | 2015-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014036911A1 (zh) | 一种闪光控制方法及装置 | |
JP6112230B2 (ja) | 撮影方法、装置、および端末 | |
US20070248342A1 (en) | Image quality in cameras using flash | |
JP5728498B2 (ja) | 撮像装置及びその発光量制御方法 | |
JP2003179810A (ja) | 写真撮影においてフィル・フラッシュをシミュレートするシステム及び方法 | |
WO2018121185A1 (zh) | 红外灯功率的调整方法及摄像设备 | |
JP6210775B2 (ja) | 撮像装置、撮像方法及び撮像プログラム | |
US20170094155A1 (en) | Mobile terminal and photographing method therefor | |
TWI594629B (zh) | 具有照明補充調整功能之攝影裝置及應用於其上之照明補充調整方法 | |
WO2024040981A1 (zh) | 拍照方法及其相关设备 | |
JP2008236032A (ja) | 撮影装置 | |
CN106791462B (zh) | 一种移动终端前置摄像头拍照补光的方法及*** | |
JP4869801B2 (ja) | 撮影装置 | |
JP6335497B2 (ja) | 撮像装置、その制御方法、および制御プログラム | |
JP2012060439A (ja) | 撮像装置、撮像装置の制御方法およびプログラム | |
JP2009211001A (ja) | 撮像装置 | |
JP2002277920A (ja) | 露出制御方法及び撮影装置 | |
JP2015126455A5 (zh) | ||
CN116055855B (zh) | 图像处理方法及其相关设备 | |
JP2015122569A (ja) | 撮像装置、撮像装置の制御方法およびプログラム | |
TWI499984B (zh) | 動態範圍模式的判定方法及其影像擷取裝置 | |
WO2023236215A1 (zh) | 图像处理方法、装置及存储介质 | |
JP2017139560A (ja) | 撮像装置、撮像システム、および撮像方法 | |
JP4211116B2 (ja) | カメラ | |
JP2005020341A (ja) | 露出制御方法および装置 |
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: 13835880 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: 13835880 Country of ref document: EP Kind code of ref document: A1 |