WO2016131329A1 - 拍摄的方法及装置 - Google Patents

拍摄的方法及装置 Download PDF

Info

Publication number
WO2016131329A1
WO2016131329A1 PCT/CN2015/096582 CN2015096582W WO2016131329A1 WO 2016131329 A1 WO2016131329 A1 WO 2016131329A1 CN 2015096582 W CN2015096582 W CN 2015096582W WO 2016131329 A1 WO2016131329 A1 WO 2016131329A1
Authority
WO
WIPO (PCT)
Prior art keywords
brightness
flash
target
shooting
photographing
Prior art date
Application number
PCT/CN2015/096582
Other languages
English (en)
French (fr)
Inventor
李飞
胡文迪
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016131329A1 publication Critical patent/WO2016131329A1/zh

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 communications, and in particular to a method and apparatus for photographing.
  • the flash used in the terminal photographing is controlled by the driver IC driven by the AP side software, and the brightness of the flash is controlled by controlling the current intensity.
  • the brightness is fixed and does not change depending on the change of the scene.
  • the problem caused by this is that when shooting a character, when the character is very close, the light is relatively strong and the stimulation of the human eye is very strong, and when the character is very far away, the light is relatively weak, and the light filling effect is not good (such as proactive When using the selfie stick).
  • the beautiful background light is taken, and the flashing characters are too dark to see clearly.
  • the flash is turned on, the night scene is very dim and unsightly.
  • a main object of the embodiments of the present invention is to provide a method and an apparatus for photographing to solve at least the problem that the brightness of the flash is fixed and the shooting effect is poor when performing shooting based on the flash.
  • a method for photographing includes: acquiring distance information of a photographing target and/or brightness information of the photographing target; and adjusting a terminal according to the distance information and/or the brightness information a target shooting brightness value of the flash; performing a shooting operation on the shooting target according to the target shooting brightness value.
  • the distance information from the shooting target is obtained by one of the following methods: laser ranging, dual camera ranging, and statistical law.
  • the acquiring the brightness information of the shooting target comprises: using the calculated frame brightness as the brightness information by previewing a frame image of the shooting target.
  • the distance information is a relative distance between the shooting target and the terminal, and adjusting a target shooting brightness value of the flash of the terminal according to the distance information includes: when the relative distance falls within a first threshold range a system default value of the flash brightness; when the relative distance is less than a minimum value within the first threshold range, the flash brightness is decreased based on the system default value; When the maximum value is greater than the first threshold range, the flash brightness is raised based on the system default value.
  • adjusting the brightness of the flash when photographing according to the brightness information comprises: adopting a system default value of the flash brightness when the background brightness falls within a second threshold range; and the background brightness is less than When the minimum value is within the second threshold range, the flash brightness is increased based on the system default value; when the background brightness is greater than a maximum value within the second threshold range, based on the system default The value reduces the brightness of the flash.
  • the performing the photographing operation on the photographing target according to the target photographing brightness value comprises: calculating, according to the target photographing luma value, driving the flash to perform a photographing operation driving current on the photographing target .
  • an apparatus for photographing comprising: an acquisition module configured to acquire distance information of a shooting target and/or brightness information of the shooting target; and an adjustment module configured to The distance information and/or the brightness information adjusts a target shooting brightness value of the flash of the terminal; the shooting module is configured to perform a shooting operation on the shooting target according to the target shooting brightness value.
  • the acquiring module acquires distance information from the shooting target by one of the following methods: laser ranging, dual camera ranging, and statistical law.
  • the acquiring module is further configured to use the calculated background brightness as the brightness information by previewing a frame image of the shooting target.
  • the distance information is a relative distance between the shooting target and the terminal
  • the adjusting module includes: a first adjusting unit, configured to use the first distance when the relative distance falls within a first threshold range a system default value of the flash brightness; a second adjusting unit configured to decrease the flash brightness based on the system default value when the relative distance is less than a minimum value within the first threshold range; And a unit configured to increase the flash brightness based on the system default value when the relative distance is greater than a maximum value within the first threshold range.
  • the adjusting module includes: a fourth adjusting unit, configured to adopt a system default value of the flash brightness when the background brightness falls within a second threshold range; and the fifth adjusting unit is configured to be at When the background brightness is less than the minimum value in the second threshold range, the flash brightness is increased based on the system default value; and the sixth adjusting unit is configured to be in the background brightness is greater than the second threshold range When the maximum value is within, the flash brightness is lowered based on the system default value.
  • the photographing module is further configured to calculate, according to the target photographing brightness value, a driving operation current for driving the flash to perform a photographing operation on the photographing target.
  • the distance information of the shooting target and/or the brightness information of the shooting target are acquired; and the target shooting brightness value of the flash of the terminal is adjusted according to the distance information and/or the brightness information; and then the target shooting brightness value is performed according to the target shooting brightness value.
  • the shooting operation of the shooting target so that the brightness of the flash can be taken according to the shooting during shooting
  • the distance information between the target and the terminal and the background brightness information of the shooting target are adjusted accordingly, which more closely matches the needs of the shooting scene, and solves the problem that the brightness of the flash is fixed when the shooting is based on the flash, which results in poor shooting performance.
  • the problem has improved the user experience.
  • FIG. 1 is a flow chart of a method of photographing according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of an apparatus for photographing according to an embodiment of the present invention.
  • FIG. 3 is a block diagram of an optional structure of a device for photographing according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of an optional structure of a device for photographing according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the structure of a camera apparatus for automatic flash control according to an alternative embodiment of the present invention.
  • FIG. 6 is a flow chart of a method of photographing an automatic flash control in accordance with an alternative embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for photographing according to an embodiment of the present invention. As shown in FIG. 1, the steps of the method include:
  • Step S102 acquiring distance information of the shooting target and/or brightness information of the shooting target;
  • Step S104 Adjust a target shooting brightness value of the flash of the terminal according to the distance information and/or the brightness information;
  • Step S106 Perform a photographing operation on the photographing target in accordance with the target photographing luminance value.
  • the shooting brightness value is performed to perform a shooting operation on the shooting target, so that the brightness of the flashing light can be adjusted according to the distance information of the shooting target and the terminal and the background brightness information of the shooting target during the shooting process, so as to better match the shooting scene requirements and solve the problem.
  • the flash when the flash is used for shooting, the brightness of the flash is fixed and the shooting effect is poor, and the user experience is improved.
  • the brightness value of the flash can be adjusted by the target distance and/or the background brightness, and the two modes will be described in detail below;
  • the manner of acquiring the distance information of the shooting target involved in the embodiment may be implemented by one of the following methods: laser ranging, dual camera ranging, and statistical law.
  • the relative position size of the feature points of the face may be recognized, and the approximate distance of the face may be calculated according to the statistical rule.
  • the laser ranging can be a module that actively emits laser light, and the distance is calculated by the time of receiving and transmitting; the dual camera ranging can be consistent with the principle of human eye ranging, and the parallax of the two camera scenes and the algorithm distance.
  • the manner of acquiring the brightness information of the shooting target involved in the embodiment can be realized by using the calculated background brightness as the brightness information by previewing the frame image of the shooting target.
  • the distance information involved in step S104 is the relative distance between the shooting target and the terminal, and the manner of adjusting the target shooting brightness value of the flash of the terminal according to the distance information is an optional implementation in this embodiment.
  • the mode can be implemented as follows:
  • Step S11 adopting a system default value of the flash brightness when the relative distance falls within the first threshold range
  • Step S12 when the relative distance is less than the minimum value within the first threshold range, the flash brightness is decreased based on the system default value;
  • Step S13 When the relative distance is greater than the maximum value within the first threshold range, the flash brightness is increased based on the system default value.
  • the method for obtaining the background brightness of the photographic subject in the embodiment may be implemented in the following manner. : Calculates the background brightness by previewing the frame image of the shooting target.
  • the manner of adjusting the brightness of the flash at the time of shooting according to the brightness information involved in the embodiment can be implemented in the following manner:
  • Step S21 adopting a system default value of the flash brightness when the background brightness falls within the second threshold range
  • Step S22 When the background brightness is less than the minimum value within the second threshold range, the flash brightness is increased based on the system default value;
  • Step S23 When the background brightness is greater than the maximum value in the second threshold range, the flash brightness is lowered based on the system default value.
  • the manner of performing the shooting operation based on the flash on the shooting target according to the adjusted flash brightness is performed in the embodiment. It can be realized by obtaining the driving current of the flash according to the adjusted brightness of the flash, and driving the flash according to the driving current to perform a shooting operation on the shooting target.
  • a device for photographing is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the device includes: an acquisition module 22 configured to acquire distance information of a shooting target and/or brightness information of a shooting target; and an adjustment module 24, And being coupled to the acquisition module 22, configured to adjust a target shooting brightness value of the flash of the terminal according to the distance information and/or the brightness information; the shooting module 26 is coupled to the adjusting module 24, and configured to perform the shooting target according to the target shooting brightness value.
  • Shooting operation the device includes: an acquisition module 22 configured to acquire distance information of a shooting target and/or brightness information of a shooting target; and an adjustment module 24, And being coupled to the acquisition module 22, configured to adjust a target shooting brightness value of the flash of the terminal according to the distance information and/or the brightness information; the shooting module 26 is coupled to the adjusting module 24, and configured to perform the shooting target according to the target shooting brightness value. Shooting operation.
  • the method for adjusting the brightness of the flash is involved; therefore, in the embodiment, the acquiring module can obtain the distance information from the shooting target by one of the following methods: laser ranging, dual camera ranging, and statistics. law.
  • the obtaining module is further configured to use the calculated background brightness as the brightness information by previewing the frame image of the shooting target.
  • FIG. 3 is a block diagram of an optional structure of a device according to an embodiment of the present invention.
  • the distance information is a relative distance between a shooting target and a terminal
  • the adjusting module 24 includes: a first adjusting unit 32, configured to be in When the relative distance falls within the first threshold range, the system default value of the flash brightness is adopted; and the second adjusting unit 34 is configured to decrease the flash brightness based on the system default value when the relative distance is smaller than the minimum value within the first threshold range
  • the third adjusting unit 36 is configured to increase the flash brightness based on the system default value when the relative distance is greater than the maximum value within the first threshold range.
  • the adjustment module 24 includes: a fourth adjusting unit 42 configured to adopt when the background brightness falls within a second threshold range. a system default value of the flash brightness; the fifth adjusting unit 44 is configured to increase the flash brightness based on the system default value when the background brightness is less than the minimum value in the second threshold range; the sixth adjusting unit 46 is set to be in the background When the brightness is greater than the maximum value in the second threshold range, the flash brightness is reduced based on the system default value.
  • the photographing module 26 is further configured to calculate, according to the target photographing brightness value, a driving operation current for driving the flash to perform a photographing operation on the photographing target.
  • FIG. 5 is an alternative according to the present invention.
  • the structural block diagram of the automatic flash control camera device of the embodiment includes: a camera module 52 (corresponding to the shooting module in the above embodiment), a flash module 54, and a flash brightness control module 56 (corresponding to the above The adjustment module in the embodiment); wherein the flash brightness control module comprises: a scene recognition unit, an AP side brightness control algorithm unit, and a driving unit.
  • the camera module provides normal camera functions; the flash module can be a normal LED or xenon light source and a reflector/light mirror.
  • the flash brightness control module controls the brightness of the flash according to the statistical information such as the specific scene distance or brightness recognized by the object to be photographed, so as to achieve an optimized shooting effect.
  • FIG. 6 is a flow chart of a method for photographing an automatic flash control according to an alternative embodiment of the present invention. As shown in FIG. 6, the steps of a photographing process by a user using the device include:
  • Step S602 receiving an instruction that the user sets the flash to the open mode or the system automatically switches to the flash to the open mode.
  • Step S604 The user initiates photographing or recording, and the flash brightness control module calculates the flash target brightness according to the captured scene.
  • Step S606 The flash brightness control module controls the flash module to emit light according to the target brightness, and the photographing and recording is completed.
  • the flash mode when the flash mode is turned on when the photograph is taken or the system automatically switches the flash to the on mode, the user initiates photographing or recording, and performs face recognition by previewing the frame image to recognize the feature of the face.
  • the relative position of the point, according to the statistical law, the distance of the face can be calculated, the target brightness of the flash is calculated by the distance; the driving current of the flash is calculated according to the brightness; the flash is controlled to complete the photographing and recording.
  • the strong stimulating experience of the flash on the human eye and the long-distance illuminance are too low when the distance is reduced in the photographing process, thereby solving the problem that the face is far away from the terminal when photographing in the related art.
  • the flash is brighter, and the face myopia flash is darker, resulting in poor imaging results.
  • Application scenario 1 face distance control flash brightness
  • a scheme for controlling the brightness of the flash according to the distance between the face and the terminal is adopted.
  • the flash is brighter, the face myopia flash is darker, and the illumination reaching the face is relatively stable, and the distance is reduced.
  • the flash has a strong stimulating experience on the human eye and the distance is too low, the problem of poor imaging performance is solved.
  • the system involved in the optional embodiment includes: a camera module, a face distance calculation module, a brightness control module, and a flash module; wherein the face distance calculation module performs face recognition and recognition according to the image. After reaching the face, according to the relative relationship of the feature points of the face and the statistical law, the distance of the face from the terminal can be calculated; the brightness control module calculates the target brightness of the flash through the distance information of the face from the terminal. In order to achieve the illuminance of the face is better.
  • the specific execution process includes: when the flash mode is turned on in the camera, or the system automatically switches the flash to the on mode, the user starts taking a picture or recording, the user starts taking a picture or recording, and the face recognition is performed by previewing the frame image to recognize the face.
  • the relative position of the feature points, according to the statistical law can calculate the approximate distance of the face, through the distance and reach the face to calculate the target brightness of the flash.
  • the driving current of the flash is calculated according to the brightness; the flash is controlled to complete the photographing and recording.
  • the distance calculation method can be other means, such as laser ranging, dual camera calculation distance, and the like.
  • Application scenario 2 background brightness controls the brightness of the flash
  • a scheme for controlling the brightness of the flash according to the background brightness is adopted; when the person is photographed under the night scene of the beautiful background light, the flash can produce a beautiful background, but the character is dark, and related art When the flash solution is turned on, the character is very bright but the background light is very dark, and the overall imaging effect is not good.
  • the specific execution process of the application scenario includes: after the flash mode is turned on in the camera, or the system automatically switches the flash to the on mode, the user initiates a photo or video recording, and the user starts taking a photo or recording, and calculates the background brightness by previewing the frame image, according to the background.
  • the brightness is used to calculate the brightness of the flash target, so that when the flash is turned on, the foreground and the background can be properly exposed; the driving current of the flash is calculated according to the brightness; the flash is controlled to complete the photographing and recording.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device for execution by the computing device and, in some cases, may be performed in a different order than herein.
  • the steps shown or described are either made separately into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the distance information of the shooting target and/or the brightness information of the shooting target are acquired; and the target shooting brightness value of the flash of the terminal is adjusted according to the distance information and/or the brightness information; and then the target shooting brightness value is performed according to the target shooting brightness value.
  • the shooting operation of the shooting target enables the brightness of the flash to be adjusted according to the distance information of the shooting target and the terminal and the background brightness information of the shooting target, which more closely matches the needs of the shooting scene, and solves the related art in the related art.
  • the brightness of the flash is fixed and the shooting is not good, which improves the user experience.

Abstract

提供了一种拍摄的方法及装置,其中,该方法包括:获取拍摄目标的距离信息和/或拍摄目标的亮度信息;根据距离信息和/或亮度信息调整终端的闪光灯的目标拍摄亮度值;依据目标拍摄亮度值执行对拍摄目标的拍摄操作。解决了相关技术中在进行基于闪光灯进行拍摄时,闪光灯亮度固定不变导致拍摄效果不佳的问题,达到了提高用户体验的效果。

Description

拍摄的方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种拍摄的方法及装置。
背景技术
目前终端拍照中使用的闪光灯由AP侧软件控制驱动的driver IC,通过控制电流强度从而控制闪光灯亮度。亮度是固定的,不会根据不同场景的改变而改变。这样导致的问题是,拍摄人物时,人物很近的时候,光线相对很强对人眼的刺激很强很难受,而人物很远时,光线相对较弱,补光效果不好(如前摄使用自拍杆时)。在晚上夜景拍摄人像时,背景美丽的灯光拍照,不加闪光灯人物太黑看不清楚,加了闪光灯开了闪光灯时,人物亮了之后夜景就很暗淡,不美观。
针对相关技术中在进行基于闪光灯进行拍摄时,闪光灯亮度固定不变导致拍摄效果不佳的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例的主要目的在于提供一种拍摄的方法及装置,以至少解决相关技术中在进行基于闪光灯进行拍摄时,闪光灯亮度固定不变导致拍摄效果不佳的问题。
根据本发明实施例的一个方面,提供了一种拍摄的方法,包括:获取拍摄目标的距离信息和/或所述拍摄目标的亮度信息;根据所述距离信息和/或所述亮度信息调整终端的闪光灯的目标拍摄亮度值;依据所述目标拍摄亮度值执行对所述拍摄目标的拍摄操作。
可选地,通过以下之一的方式获取与拍摄目标的距离信息:激光测距、双摄像头测距、统计规律。
可选地,所述获取所述拍摄目标的亮度信息包括:通过预览所述拍摄目标的帧图像将计算出的背景亮度作为所述亮度信息。
可选地,所述距离信息为所述拍摄目标与所述终端的相对距离,根据所述距离信息调整所述终端的闪光灯的目标拍摄亮度值包括:在所述相对距离落入第一阈值范围内时,采用所述闪光灯亮度的系统缺省值;在所述相对距离小于所述第一阈值范围内的最小值时,基于所述系统缺省值降低所述闪光灯亮度;在所述相对距离大于所述第一阈值范围内的最大值时,基于所述系统缺省值调高所述闪光灯亮度。
可选地,根据所述亮度信息调整拍摄时所述闪光灯的亮度包括:在所述背景亮度落入第二阈值范围内时,采用所述闪光灯亮度的系统缺省值;在所述背景亮度小于所述第二阈值范围内的最小值时,基于所述系统缺省值调高所述闪光灯亮度;在所述背景亮度大于所述第二阈值范围内的最大值时,基于所述系统缺省值降低所述闪光灯亮度。
可选地,所述依据所述目标拍摄亮度值执行对所述拍摄目标的拍摄操作包括:依据所述目标拍摄亮度值计算得到用于驱动所述闪光灯执行对所述拍摄目标的拍摄操作驱动电流。
根据本发明实施例的另一个方面,提供了一种拍摄的装置,包括:获取模块,设置为获取拍摄目标的距离信息和/或所述拍摄目标的亮度信息;调整模块,设置为根据所述距离信息和/或所述亮度信息调整终端的闪光灯的目标拍摄亮度值;拍摄模块,设置为依据所述目标拍摄亮度值执行对所述拍摄目标的拍摄操作。
可选地,所述获取模块通过以下之一的方式获取与拍摄目标的距离信息:激光测距、双摄像头测距、统计规律。
可选地,所述获取模块,还设置为通过预览所述拍摄目标的帧图像将计算出的背景亮度作为所述亮度信息。
可选地,所述距离信息为所述拍摄目标与所述终端的相对距离,所述调整模块包括:第一调整单元,设置为在所述相对距离落入第一阈值范围内时,采用所述闪光灯亮度的系统缺省值;第二调整单元,设置为在所述相对距离小于所述第一阈值范围内的最小值时,基于所述系统缺省值降低所述闪光灯亮度;第三调整单元,设置为在所述相对距离大于所述第一阈值范围内的最大值时,基于所述系统缺省值调高所述闪光灯亮度。
可选地,所述调整模块包括:第四调整单元,设置为在所述背景亮度落入第二阈值范围内时,采用所述闪光灯亮度的系统缺省值;第五调整单元,设置为在所述背景亮度小于所述第二阈值范围内的最小值时,基于所述系统缺省值调高所述闪光灯亮度;第六调整单元,设置为在所述背景亮度大于所述第二阈值范围内的最大值时,基于所述系统缺省值降低所述闪光灯亮度。
可选地,所述拍摄模块,还设置为依据所述目标拍摄亮度值计算得到用于驱动所述闪光灯执行对所述拍摄目标的拍摄操作驱动电流。
通过本发明实施例,采用获取与拍摄目标的距离信息和/或拍摄目标的亮度信息;并根据距离信息和/或亮度信息调整终端的闪光灯的目标拍摄亮度值;进而依据目标拍摄亮度值执行对拍摄目标的拍摄操作,使得在拍摄过程中闪光灯的亮度可以根据拍摄 目标与终端的距离信息和拍摄目标的背景亮度信息进行相应的调整,更加贴合的匹配拍摄场景需求,解决了相关技术中在进行基于闪光灯进行拍摄时,闪光灯亮度固定不变导致拍摄效果不佳的问题,提高了用户体验效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的拍摄的方法流程图;
图2是根据本发明实施例的拍摄的装置结构框图;
图3是根据本发明实施例的拍摄的装置可选结构框图一;
图4是根据本发明实施例的拍摄的装置可选结构框图二;
图5是根据本发明可选实施例的自动闪光灯控制的拍照装置结构框图;
图6是根据本发明可选实施例的自动闪光灯控制的拍照方法流程图。
具体实施方式
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。
本实施例提供了一种拍摄的方法,图1是根据本发明实施例的拍摄的方法流程图,如图1所示,该方法的步骤包括:
步骤S102:获取拍摄目标的距离信息和/或拍摄目标的亮度信息;
步骤S104:根据距离信息和/或亮度信息调整终端的闪光灯的目标拍摄亮度值;
步骤S106:依据目标拍摄亮度值执行对拍摄目标的拍摄操作。
通过本实施例的步骤S102至步骤S106,采用获取与拍摄目标的距离信息和/或拍摄目标的亮度信息;并根据距离信息和/或亮度信息调整终端的闪光灯的目标拍摄亮度值;进而依据目标拍摄亮度值执行对拍摄目标的拍摄操作,使得在拍摄过程中闪光灯的亮度可以根据拍摄目标与终端的距离信息和拍摄目标的背景亮度信息进行相应的调整,更加贴合的匹配拍摄场景需求,解决了相关技术中在进行基于闪光灯进行拍摄时,闪光灯亮度固定不变导致拍摄效果不佳的问题,提高了用户体验效果。
由此可见,在本实施例中可以采用通过目标距离和/或背景亮度来调整闪光灯的亮度值,下面将对该两种方式进行详细的说明;
在通过目标距离来调整闪光灯的亮度值时,对于本实施例中涉及到的获取拍摄目标的距离信息的方式可以通过以下之一的方式实现:激光测距、双摄像头测距、统计规律。对于本实施例中涉及到的统计规律可以是识别到人脸的特征点的相对位置大小,根据统计规律可以计算出人脸的大概距离。而激光测距可以是有主动发射激光的模块,通过接收和发射的时间来计算距离;双摄像头测距可以是和人眼测距原理一致,通过两个摄像头景物的视差来及算法距离。
对于本实施例中涉及到的获取拍摄目标的亮度信息方式,可以通过如下方式来实现:通过预览拍摄目标的帧图像将计算出的背景亮度作为亮度信息。
基于此,在本实施例中步骤S104中涉及到的距离信息为拍摄目标与终端的相对距离,根据距离信息调整终端的闪光灯的目标拍摄亮度值的方式,在本实施例中的一个可选实施方式中可以通过如下方式来实现:
步骤S11:在相对距离落入第一阈值范围内时,采用闪光灯亮度的系统缺省值;
步骤S12:在相对距离小于第一阈值范围内的最小值时,基于系统缺省值降低闪光灯亮度;
步骤S13:在相对距离大于第一阈值范围内的最大值时,基于系统缺省值调高闪光灯亮度。
而在本实施例中通过背景亮度来调整闪光灯亮度值时,对于本实施例中涉及到的获取拍摄目标的背景亮度的方式,在本实施例的可选实施方式中,可以通过如下方式来实现:通过预览拍摄目标的帧图像计算出背景亮度。
基于此,在本实施例中涉及到的根据亮度信息调整拍摄时闪光灯的亮度的方式,在本实施例中可以通过如下方式来实现:
步骤S21:在背景亮度落入第二阈值范围内时,采用闪光灯亮度的系统缺省值;
步骤S22:在背景亮度小于第二阈值范围内的最小值时,基于系统缺省值调高闪光灯亮度;
步骤S23:在背景亮度大于第二阈值范围内的最大值时,基于系统缺省值降低闪光灯亮度。
此外,在本实施例中无论采用上述何种方式来调整闪关灯亮度值,在本实施例中涉及到的依据调整后的闪光灯亮度执行基于闪光灯对拍摄目标的拍摄操作的方式,都 可以通过如下方式来实现:依据调整后的闪光灯亮度得到闪光灯的驱动电流,并依据驱动电流驱动闪光灯执行对拍摄目标的拍摄操作。
在本实施例中还提供了一种拍摄的装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的拍摄的装置结构框图,如图2所示,该装置包括:获取模块22,设置为获取拍摄目标的距离信息和/或拍摄目标的亮度信息;调整模块24,与获取模块22耦合连接,设置为根据距离信息和/或亮度信息调整终端的闪光灯的目标拍摄亮度值;拍摄模块26,与调整模块24耦合连接,设置为依据目标拍摄亮度值执行对拍摄目标的拍摄操作。
由于本实施例中涉及到两种调整闪光灯亮度的方式;因此,在本实施例中该获取模块可以通过以下之一的方式获取与拍摄目标的距离信息:激光测距、双摄像头测距、统计规律。
可选地,获取模块,还设置为通过预览拍摄目标的帧图像将计算出的背景亮度作为亮度信息。
图3是根据本发明实施例的拍摄的装置可选结构框图一,如图3所示,距离信息为拍摄目标与终端的相对距离,该调整模块24包括:第一调整单元32,设置为在相对距离落入第一阈值范围内时,采用闪光灯亮度的系统缺省值;第二调整单元34,设置为在相对距离小于第一阈值范围内的最小值时,基于系统缺省值降低闪光灯亮度;第三调整单元36,设置为在相对距离大于第一阈值范围内的最大值时,基于系统缺省值调高闪光灯亮度。
图4是根据本发明实施例的拍摄的装置可选结构框图二,如图4所示,调整模块24包括:第四调整单元42,设置为在背景亮度落入第二阈值范围内时,采用闪光灯亮度的系统缺省值;第五调整单元44,设置为在背景亮度小于第二阈值范围内的最小值时,基于系统缺省值调高闪光灯亮度;第六调整单元46,设置为在背景亮度大于第二阈值范围内的最大值时,基于系统缺省值降低闪光灯亮度。
可选地,拍摄模块26,还设置为依据目标拍摄亮度值计算得到用于驱动闪光灯执行对拍摄目标的拍摄操作驱动电流。
下面通过本发明可选实施例对本发明进行举例说明;
本可选实施例提供了一种自动闪光灯控制的拍照装置,图5是根据本发明可选实 施例的自动闪光灯控制的拍照装置结构框图,如图5所示,该装置包括:相机模块52(对应于上述实施例中的拍摄模块)、闪光灯模块54、闪光灯亮度控制模块56(对应于上述实施例中的调整模块);其中,闪光灯亮度控制模块包括:场景识别单元、AP侧亮度控制算法单元、驱动单元。相机模块提供正常相机功能;闪光灯模块可以为普通LED灯或氙气灯光源和反光杯/灯镜等。闪光灯亮度控制模块根据被摄场景物体识别出特定景物距离或者亮度等统计信息控制闪光灯亮度,达到优化拍摄的效果。
图6是根据本发明可选实施例的自动闪光灯控制的拍照方法流程图,如图6所示,用户使用该装置的拍照过程的步骤包括:
步骤S602:接收用户设置闪光灯为打开模式的指令或系统自动切换到闪光灯为打开模式。
步骤S604:用户启动拍照或录像,闪光灯亮度控制模块根据被摄场景计算出闪光灯目标亮度。
步骤S606:闪光灯亮度控制模块控制闪光灯模块按照目标亮度发光,拍照录像完成。
也就是说,在本可选实施例中在拍照时开启闪光灯模式或者系统自动切换闪光灯为开的模式时,用户启动拍照或录像,并通过预览帧图像进行人脸识别,识别到人脸的特征点的相对位置大小,根据统计规律可以计算出人脸的距离,通过距离算出闪光灯的目标亮度;根据亮度算出闪光灯的驱动电流;控制闪光灯发光,完成拍照和录像。
可见,通过本可选实施例,使得拍照过程中减少距离近时闪光灯对人眼的强刺激不良体验和距离远时照度过低,进而解决了相关技术中在拍照时,人脸距离终端远时闪光灯较亮,人脸近视闪光灯较暗,导致成像效果不好的问题。
下面结合具体的应用场景对本发明可选实施例进行详细的说明;
应用场景一:人脸距离控制闪光灯亮度;
在本应用场景中,采用了根据人脸距离终端远近来控制闪光灯亮度的方案,人脸距离终端远时闪光灯较亮,人脸近视闪光灯较暗,而到达人脸的照度相对稳定,减少距离近时闪光灯对人眼的强刺激不良体验和距离远时照度过低,解决了成像效果不好的问题。
由上述本可选实施例可知,本可选实施例涉及到的系统包括:相机模块,人脸距离计算模块,亮度控制模块,闪光灯模块;其中,人脸距离计算模块根据图像做人脸识别,识别到人脸后,根据人脸的特征点的相对关系及统计规律可以推算出人脸大概距离终端的距离;亮度控制模块通过人脸距终端的距离信息,算出闪光灯的目标亮度, 以达到达人脸的照度较优。
具体的执行过程包括:在相机中闪光灯模式为打开,或者系统自动切换闪光灯为开的模式后,用户启动拍照或录像,用户开始拍照或录像,通过预览帧图像进行人脸识别,识别到人脸的特征点的相对位置大小,根据统计规律可以计算出人脸的大概距离,通过距离和到达人脸的算出闪光灯的目标亮度。根据亮度算出闪光灯的驱动电流;控制闪光灯发光,完成拍照和录像。
同样的,距离计算的方法可以是其他手段,如激光测距,双摄像头计算距离等。
应用场景二:背景亮度控制闪光灯亮度;
在本应用场景中,采用了根据背景亮度来控制闪光灯亮度的方案;在又漂亮背景灯光的夜景下拍照人物时,不开闪光灯能拍出漂亮的背景,但人物较暗,而相关技术中的闪光灯方案打开闪光灯时人物拍的很亮但背景灯光就很暗,整体成像效果不好。
该应用场景的具体执行过程包括:在相机中闪光灯模式为打开,或者系统自动切换闪光灯为开的模式后,用户启动拍照或录像,用户开始拍照或录像,通过预览帧图像计算背景亮度,根据背景亮度来计算闪光灯目标亮度,使闪光灯打开时拍照使前景和背景都能得到合适的曝光;根据亮度算出闪光灯的驱动电流;控制闪光灯发光,完成拍照和录像。
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。
显然,本领域的技术人员应该明白,上述本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
通过本发明实施例,采用获取与拍摄目标的距离信息和/或拍摄目标的亮度信息;并根据距离信息和/或亮度信息调整终端的闪光灯的目标拍摄亮度值;进而依据目标拍摄亮度值执行对拍摄目标的拍摄操作,使得在拍摄过程中闪光灯的亮度可以根据拍摄目标与终端的距离信息和拍摄目标的背景亮度信息进行相应的调整,更加贴合的匹配拍摄场景需求,解决了相关技术中在进行基于闪光灯进行拍摄时,闪光灯亮度固定不变导致拍摄效果不佳的问题,提高了用户体验效果。

Claims (12)

  1. 一种拍摄的方法,包括:
    获取拍摄目标的距离信息和/或所述拍摄目标的亮度信息;
    根据所述距离信息和/或所述亮度信息调整终端的闪光灯的目标拍摄亮度值;
    依据所述目标拍摄亮度值执行对所述拍摄目标的拍摄操作。
  2. 根据权利要求1所述的方法,其中,通过以下之一的方式获取与拍摄目标的距离信息:激光测距、双摄像头测距、统计规律。
  3. 根据权利要求2所述的方法,其中,所述获取所述拍摄目标的亮度信息包括:
    通过预览所述拍摄目标的帧图像将计算出的背景亮度作为所述亮度信息。
  4. 根据权利要求2或3所述的方法,其中,所述距离信息为所述拍摄目标与所述终端的相对距离,根据所述距离信息调整所述终端的闪光灯的目标拍摄亮度值包括:
    在所述相对距离落入第一阈值范围内时,采用所述闪光灯亮度的系统缺省值;
    在所述相对距离小于所述第一阈值范围内的最小值时,基于所述系统缺省值降低所述闪光灯亮度;
    在所述相对距离大于所述第一阈值范围内的最大值时,基于所述系统缺省值调高所述闪光灯亮度。
  5. 根据权利要求2或3所述的方法,其中,根据所述亮度信息调整拍摄时所述闪光灯的亮度包括:
    在所述背景亮度落入第二阈值范围内时,采用所述闪光灯亮度的系统缺省值;
    在所述背景亮度小于所述第二阈值范围内的最小值时,基于所述系统缺省值调高所述闪光灯亮度;
    在所述背景亮度大于所述第二阈值范围内的最大值时,基于所述系统缺省值降低所述闪光灯亮度。
  6. 根据权利要求1至3中任意一项所述的方法,其中,所述依据所述目标拍摄亮度值执行对所述拍摄目标的拍摄操作包括:
    依据所述目标拍摄亮度值计算得到用于驱动所述闪光灯执行对所述拍摄目标的拍摄操作驱动电流。
  7. 一种拍摄的装置,包括:
    获取模块,设置为获取拍摄目标的距离信息和/或所述拍摄目标的亮度信息;
    调整模块,设置为根据所述距离信息和/或所述亮度信息调整终端的闪光灯的目标拍摄亮度值;
    拍摄模块,设置为依据所述目标拍摄亮度值执行对所述拍摄目标的拍摄操作。
  8. 根据权利要求7所述的装置,其中,所述获取模块通过以下之一的方式获取与拍摄目标的距离信息:激光测距、双摄像头测距、统计规律。
  9. 根据权利要求8所述的装置,其中,
    所述获取模块,还设置为通过预览所述拍摄目标的帧图像将计算出的背景亮度作为所述亮度信息。
  10. 根据权利要求8或9所述的装置,其中,所述距离信息为所述拍摄目标与所述终端的相对距离,所述调整模块包括:
    第一调整单元,设置为在所述相对距离落入第一阈值范围内时,采用所述闪光灯亮度的系统缺省值;
    第二调整单元,设置为在所述相对距离小于所述第一阈值范围内的最小值时,基于所述系统缺省值降低所述闪光灯亮度;
    第三调整单元,设置为在所述相对距离大于所述第一阈值范围内的最大值时,基于所述系统缺省值调高所述闪光灯亮度。
  11. 根据权利要求8或9所述的装置,其中,所述调整模块包括:
    第四调整单元,设置为在所述背景亮度落入第二阈值范围内时,采用所述闪光灯亮度的系统缺省值;
    第五调整单元,设置为在所述背景亮度小于所述第二阈值范围内的最小值时,基于所述系统缺省值调高所述闪光灯亮度;
    第六调整单元,设置为在所述背景亮度大于所述第二阈值范围内的最大值时,基于所述系统缺省值降低所述闪光灯亮度。
  12. 根据权利要求7至9中任意一项所述的装置,其中,
    所述拍摄模块,还设置为依据所述目标拍摄亮度值计算得到用于驱动所述闪光灯执行对所述拍摄目标的拍摄操作驱动电流。
PCT/CN2015/096582 2015-09-14 2015-12-07 拍摄的方法及装置 WO2016131329A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510583153.8 2015-09-14
CN201510583153.8A CN106534707A (zh) 2015-09-14 2015-09-14 拍摄的方法及装置

Publications (1)

Publication Number Publication Date
WO2016131329A1 true WO2016131329A1 (zh) 2016-08-25

Family

ID=56691990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096582 WO2016131329A1 (zh) 2015-09-14 2015-12-07 拍摄的方法及装置

Country Status (2)

Country Link
CN (1) CN106534707A (zh)
WO (1) WO2016131329A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018205229A1 (zh) * 2017-05-11 2018-11-15 深圳市大疆创新科技有限公司 补光控制装置、系统、方法以及移动设备
CN107071287A (zh) * 2017-05-23 2017-08-18 奇酷互联网络科技(深圳)有限公司 一种拍照的方法和设备以及移动终端
CN107137026A (zh) * 2017-06-26 2017-09-08 深圳普思英察科技有限公司 一种扫地机器人及其摄像头补光系统、方法
CN107566695B (zh) * 2017-08-14 2019-07-02 厦门美图之家科技有限公司 一种补光方法及移动终端
CN109688351B (zh) 2017-10-13 2020-12-15 华为技术有限公司 一种图像信号处理方法、装置及设备
CN107728406A (zh) * 2017-10-26 2018-02-23 维沃移动通信有限公司 一种补光灯的调节方法及移动终端
CN109752951B (zh) * 2017-11-03 2022-02-08 腾讯科技(深圳)有限公司 控制系统的处理方法、装置、存储介质和电子装置
CN108650462B (zh) * 2018-05-14 2020-06-09 Oppo广东移动通信有限公司 拍摄预览显示方法、装置、终端及存储介质
CN109120864B (zh) * 2018-10-23 2021-02-02 Oppo广东移动通信有限公司 补光处理方法、装置、存储介质及移动终端
CN111866373B (zh) * 2020-06-19 2021-12-28 北京小米移动软件有限公司 一种显示拍摄预览图像的方法、装置及介质
CN112969029A (zh) * 2021-02-02 2021-06-15 展讯通信(上海)有限公司 光源亮度的控制方法及装置、存储介质、3d结构光模组

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110097067A1 (en) * 2009-10-28 2011-04-28 Canon Kabushiki Kaisha Imaging apparatus and imaging apparatus control method
US20120002081A1 (en) * 2010-07-02 2012-01-05 Altek Corporation Method for adjusting photosensitiveness of digital camera
CN104729692A (zh) * 2015-04-01 2015-06-24 郑州辰维科技股份有限公司 一种用于工业摄影测量标志点的测光方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4867365B2 (ja) * 2006-01-30 2012-02-01 ソニー株式会社 撮像制御装置、撮像装置および撮像制御方法
CN104580924B (zh) * 2014-12-30 2017-10-17 广东欧珀移动通信有限公司 一种闪光灯功率的调整方法及终端
CN104883509B (zh) * 2015-04-30 2017-11-24 广东欧珀移动通信有限公司 一种使用闪光灯拍摄的方法及终端
CN104853109B (zh) * 2015-04-30 2018-05-29 广东欧珀移动通信有限公司 一种自动调节闪光的方法及拍摄终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110097067A1 (en) * 2009-10-28 2011-04-28 Canon Kabushiki Kaisha Imaging apparatus and imaging apparatus control method
US20120002081A1 (en) * 2010-07-02 2012-01-05 Altek Corporation Method for adjusting photosensitiveness of digital camera
CN104729692A (zh) * 2015-04-01 2015-06-24 郑州辰维科技股份有限公司 一种用于工业摄影测量标志点的测光方法

Also Published As

Publication number Publication date
CN106534707A (zh) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2016131329A1 (zh) 拍摄的方法及装置
EP2905955B1 (en) Shooting method and device
US9030600B2 (en) Method and apparatus for controlling flash
US7813635B2 (en) Photographing apparatus, method for controlling photographing apparatus and computer-readable recording medium containing program
JP5610762B2 (ja) 撮像装置及び制御方法
US20150189138A1 (en) Shooting method, apparatus, and terminal
JP7336431B2 (ja) 撮像装置およびその制御方法、プログラム
EP3103254B1 (en) Using inertial sensors to provide smoothed exposure and white balance adjustments for video and photographic applications
JP2016510532A (ja) シーン適応型自動露出補正を伴う撮像装置
JP2016092618A (ja) 撮像装置およびその制御方法
WO2016004883A1 (en) Illumination control methods and apparatuses and devices having photographing function
JP2003179810A (ja) 写真撮影においてフィル・フラッシュをシミュレートするシステム及び方法
US10609265B2 (en) Methods and apparatus for synchronizing camera flash and sensor blanking
US20170094155A1 (en) Mobile terminal and photographing method therefor
KR20180019708A (ko) 촬영 방법 및 장치
CN113497879A (zh) 一种拍照补光方法、装置、终端及存储介质
JP2014049990A (ja) 撮像装置および制御方法
KR20060114890A (ko) 플래시 광량 자동 조절 기능을 가지는 무선통신 단말기 및그 방법
CN109076199B (zh) 白平衡调整装置及其工作方法和非临时性的计算机可读介质
KR101971535B1 (ko) 이미지 촬영 장치에서 자동 초점 조절 장치 및 방법
US10992874B2 (en) Camera system and camera fill light method
KR100978675B1 (ko) 플래시를 이용한 촬영에서의 화이트밸런스 조정 방법
CN109600547B (zh) 拍照方法、装置、电子设备和存储介质
JP5118165B2 (ja) カメラ撮影画像色調補正装置および携帯端末装置
JP4662332B2 (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: 15882468

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

Country of ref document: EP

Kind code of ref document: A1