WO2016082414A1 - 亮度补偿方法及装置 - Google Patents

亮度补偿方法及装置 Download PDF

Info

Publication number
WO2016082414A1
WO2016082414A1 PCT/CN2015/076008 CN2015076008W WO2016082414A1 WO 2016082414 A1 WO2016082414 A1 WO 2016082414A1 CN 2015076008 W CN2015076008 W CN 2015076008W WO 2016082414 A1 WO2016082414 A1 WO 2016082414A1
Authority
WO
WIPO (PCT)
Prior art keywords
depth
brightness
picture
compensation
field
Prior art date
Application number
PCT/CN2015/076008
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 WO2016082414A1 publication Critical patent/WO2016082414A1/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
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/407Control or modification of tonal gradation or of extreme levels, e.g. background level
    • H04N1/4072Control or modification of tonal gradation or of extreme levels, e.g. background level dependent on the contents of the original
    • 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
    • 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
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • 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
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Definitions

  • the present invention relates to the field of communications, and in particular to a method and device for compensating for brightness.
  • the flash is a photographic accessory that emits strong light in a short period of time. It is mostly used for instant illumination in dark lighting situations, and also used to partially fill the subject when the light is bright.
  • the utility model has the advantages of small size, safe use, convenient carrying and stable performance.
  • the flashlight of the mobile phone in the related art is limited by the process and the volume, and is prone to near brightness and darkness in the distance.
  • the center is bright, the four corners are dark, and the brightness of the flash lamp cannot be compensated in the related art, thereby causing a problem of poor quality of photographing or photographing.
  • the embodiment of the invention provides a brightness compensation method and device to solve at least the problem of poor shooting quality existing in the related art.
  • a brightness compensation method comprising: dividing a captured picture into a predetermined number of blocks; determining depth of field information of an image in each of the blocks; The screen performs partition block brightness compensation.
  • performing the partition block brightness compensation on the picture according to the determined depth information includes one of: suppressing the brightness of the image whose depth of field is smaller than the foreground depth of the picture; and the depth of the depth is greater than The brightness of the image of the depth of the depth of the target image in the picture is enhanced.
  • the method before performing the partition block luminance compensation on the picture according to the determined depth information, the method further includes: determining a brightness compensation matrix; converting a matrix composed of the predetermined number of blocks into the brightness Compensation matrix.
  • the method further includes: smoothing the brightness of the adjacent block.
  • the photographing screen includes at least one of the following: a screen stored after the photographing is completed; and an unstored screen composed of the preview data.
  • a brightness compensation apparatus comprising: a dividing module configured to divide a photographing picture into a predetermined number of blocks; and a first determining module configured to determine an image in each block Depth of field information; a compensation module configured to perform partition block brightness compensation on the picture according to the determined depth of field information.
  • the compensation module includes one of: suppressing brightness of an image whose depth of field is smaller than a foreground depth of field in the picture; and performing brightness of an image whose depth of field is greater than a depth of depth of the target image in the picture.
  • the brightness compensation apparatus further includes: a second determining module configured to determine a brightness compensation matrix; and a conversion module configured to convert a matrix composed of the predetermined number of blocks into the brightness compensation matrix .
  • the brightness compensation device further includes: a processing module configured to perform smoothing processing on brightness of the adjacent block.
  • the photographing screen includes at least one of the following: a screen stored after the photographing is completed; and an unstored screen composed of the preview data.
  • the shooting picture is divided into a predetermined number of blocks; the depth information of the image in each block is determined; and the partition block brightness compensation is performed on the picture according to the determined depth information, and the correlation is solved.
  • FIG. 1 is a flow chart of a method of brightness compensation according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of a brightness compensation apparatus according to an embodiment of the present invention.
  • FIG. 3 is a block diagram 1 showing a preferred structure of a brightness compensation device according to an embodiment of the present invention
  • FIG. 4 is a block diagram 2 of a preferred structure of a brightness compensation device according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a brightness compensation system according to an embodiment of the present invention.
  • FIG. 6 is a flow chart showing the principle of operation of compensating for flash brightness using depth of field information in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of a brightness compensation method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 dividing the shooting picture into a predetermined number of blocks
  • Step S104 determining depth information of an image in each block
  • Step S106 performing partition block brightness compensation on the screen according to the determined depth information.
  • the brightness compensation is performed according to the depth information partition block of the image in the shooting picture, and the fine brightness compensation of the sub-area of the captured picture is realized, which solves the problem of poor shooting quality in the related art, thereby achieving improved shooting.
  • the effect of quality is realized.
  • the brightness compensation method may include multiple types when performing the partition block brightness compensation on the captured picture according to the determined depth of field information.
  • the partition block brightness compensation of the picture according to the determined depth information may include one of the following: : suppresses the brightness of an image whose depth of field is smaller than the foreground depth of the screen; enhances the brightness of an image whose depth of field is greater than the depth of depth of the target image in the picture.
  • the brightness of an image whose depth of field depth is greater than the foreground depth and smaller than the depth of the depth of the target image may be left unprocessed, the original brightness is maintained, and the image having a depth of field depth greater than the depth of field in the picture may not be processed. Thereby achieving an overall brightness adjustment of the picture. Improve the quality of the shots.
  • the processing of the matrix may further be performed, including: determining a brightness compensation matrix; and converting a matrix composed of the predetermined number of blocks to the brightness compensation matrix.
  • the related smoothing process may be performed.
  • the method may further include: Smoothing the brightness of adjacent blocks.
  • the above-described photographing screen may include at least one of the following: a screen stored after the photographing is completed; an unstored screen composed of the preview data. That is to say, when the screen is saved and the screen preview is performed, the preview screen may be subjected to brightness compensation, or after the screen is stored, the stored screen may be analyzed and brightness adjustment may be performed. Improve picture quality.
  • a brightness compensation device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be 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.
  • FIG. 2 is a block diagram showing the structure of a brightness compensation apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a division module 22, a first determination module 24, and a compensation module 26. The apparatus will be described below.
  • the dividing module 22 is configured to divide the shooting picture into a predetermined number of blocks; the first determining module 24 is connected to the dividing module 22, configured to determine depth information of an image in each block; and the compensation module 26 is connected to The first determining module 24 is configured to perform partition block brightness compensation on the screen according to the determined depth of field information.
  • the compensation module 26 includes one of the following: suppressing the brightness of the image whose depth of field is smaller than the foreground depth of the screen; and enhancing the brightness of the image whose depth of field is greater than the depth of the depth of the target image in the picture.
  • FIG. 3 is a block diagram of a preferred structure of a brightness compensation apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a second determination module 32 and a conversion module 34, in addition to all the modules shown in FIG. Continue to explain the device.
  • the second determining module 32 is configured to determine a brightness compensation matrix; the conversion module 34 is coupled to the second determining module 32 and the compensation module 26, and is configured to convert a matrix consisting of a predetermined number of blocks into a brightness compensation matrix.
  • FIG. 4 is a block diagram of a preferred structure of a brightness compensation apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a processing module 42 in addition to all the modules shown in FIG. 2, and the apparatus is described below. .
  • the processing module 42 is coupled to the compensation module 26 and configured to smooth the brightness of adjacent blocks.
  • the shooting screen includes at least one of the following: a screen stored after the shooting is completed; and an unstored screen composed of the preview data.
  • the shooting terminal is a mobile phone as an example.
  • the system includes a camera 52, a flash unit 54, a mobile phone main body 56, and a depth of field detecting module 58 ( The first determining module 24), the brightness compensation module 510 (same as the compensation module 26 described above) and the memory 512 are the same as described above.
  • the mobile phone main body 56 includes a central processing unit (CPU) and a digital signal processor (DSP).
  • DSP digital signal processor
  • the mobile phone main body 56 includes a DSP that collects at least RAW data and processes the RAW data. The ability to produce JPEG photos.
  • the depth of field detection module 58 has a rough recognition capability for the distance of the entire screen object from the camera, and the error is within a certain range (for example, 10%). It can be realized by the sensor sensor in the camera 52, or can be realized on the mobile phone side by the image acquired by the dual camera.
  • the flash brightness compensation module 510 has a function of changing the brightness of the entire picture in a grid (for example, 17 ⁇ 13). The brightness of the image is compensated in the image processing flow of the mobile phone using the depth of field information of the image.
  • the screen is meshed according to different depth of field, and the mesh that is overexposed is suppressed, and the grid that is underexposed is enhanced to improve the quality of the photo.
  • FIG. 6 is a flowchart of a working principle of compensating for flash brightness by using depth information according to an embodiment of the present invention. As shown in FIG. 6, the flow includes the following steps:
  • Step S602 the camera is turned on to take a picture, and the flash brightness compensation module 510 is activated;
  • Step S604 starting to preview while the flash 45 pre-flashes the auxiliary focus
  • Step S606 starting phase focusing, acquiring depth information of the image
  • Step S608 the flash compensation module calculates a compensation matrix
  • Step S610 using the depth of field image to focus and flashing the photo
  • Step S612 the brightness compensation module 510 processes the image, including compensating the flash 45;
  • step S614 a photo is generated.
  • the brightness of the flash is compensated according to the distance of the object, and the compensation method is accurate and the subjective effect of the picture is better.
  • the flash compensation module is activated. During the preview process, flash assisted aggregation can be turned on if needed.
  • the depth of field detection module 58 (such as a dual camera or a camera with phase difference information) that collects depth information begins collecting depth of field information after receiving the preview data. First, give the entire scene a certain depth of field (such as The depth is analyzed from the macro to the infinity, and then the entire picture is divided into M1 ⁇ N1 matrices, and the depth of field information is marked block by block on the image in the matrix.
  • the general mobile phone has a DSP to compensate for this situation, improve the brightness of the surrounding.
  • it can be implemented by means of a DSP, or can be implemented by other software and hardware modules that can change the brightness of an image.
  • a flash brightness compensation module the module divides the picture into M x N blocks. The gain of different blocks can be increased or decreased as needed to achieve the purpose of adjusting the brightness uniformity of the picture.
  • the matrix size of the image compensation for the different flash brightness compensation modules is not necessarily the same, assuming that the specific size is M ⁇ N, it is necessary to first convert the M1 ⁇ N1 of the depth information into the compensation matrix M ⁇ N.
  • the depth of field of the target object in the screen can be set to T2, the foreground depth is set to T1, and the back depth of field is set to T3. If the depth of field is less than T1, the brightness of the block is suppressed. T1 to T2 remain unchanged, T2 to T3 increase the brightness, and T3 is too far away to be processed or slightly enhanced.
  • the parameter table is set to the brightness compensation module (DSP or specific implementation module).
  • the above images can all come from the preview data. All the processes can be completed before the photo is taken. After the official photo data is collected, it can be adjusted.
  • modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in 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 by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

本发明提供了一种亮度补偿方法及装置,其中,该方法包括:将拍摄画面划分成预定数量的区块;确定每个区块中的图像的景深信息;根据确定的景深信息对画面进行分区块亮度补偿,通过本发明,解决了相关技术中存在的拍摄质量差的问题,进而达到了提高拍摄质量的效果。

Description

亮度补偿方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种亮度补偿方法及装置。
背景技术
闪光灯是能在很短时间内发出很强的光线,是照相感光的摄影配件。多用于光线较暗的场合瞬间照明,也用于光线较亮的场合给被拍摄对象局部补光。外形小巧,使用安全,携带方便,性能稳定。
随着智能终端的普及,人们在夜间使用闪光灯辅助拍照的场景越来越多,下面以手机为例进行说明。相关技术中的手机的闪光灯受工艺和体积的限制,很容易出现近处亮,远处暗。中心亮,四角暗的情况,并且,在相关技术中不能对闪光灯的亮度进行补偿,由此导致拍照或摄像的质量差的问题。
针对相关技术中存在的拍摄质量差的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种亮度补偿方法及装置,以至少解决相关技术中存在的拍摄质量差的问题。
根据本发明的一个方面,提供了一种亮度补偿方法,包括:将拍摄画面划分成预定数量的区块;确定每个区块中的图像的景深信息;根据确定的所述景深信息对所述画面进行分区块亮度补偿。
在本发明实施例中,根据确定的所述景深信息对所述画面进行分区块亮度补偿包括以下之一:对景深深度小于所述画面中前景景深的图像的亮度进行抑制;对景深深度大于所述画面中目标图像景深深度的图像的亮度进行增强。
在本发明实施例中,在根据确定的所述景深信息对所述画面进行分区块亮度补偿之前,还包括:确定亮度补偿矩阵;将由所述预定数量的区块组成的矩阵转换成所述亮度补偿矩阵。
在本发明实施例中,在根据确定的所述景深信息对所述画面进行分区块亮度补偿之后,还包括:对相邻区块的亮度进行平滑处理。
在本发明实施例中,所述拍摄画面包括以下至少之一:拍摄完成后存储的画面;由预览数据组成的未存储的画面。
根据本发明的另一反面,还提供了一种亮度补偿装置,包括:划分模块,设置为将拍摄画面划分成预定数量的区块;第一确定模块,设置为确定每个区块中的图像的景深信息;补偿模块,设置为根据确定的所述景深信息对所述画面进行分区块亮度补偿。
在本发明实施例中,所述补偿模块包括以下之一:对景深深度小于所述画面中前景景深的图像的亮度进行抑制;对景深深度大于所述画面中目标图像景深深度的图像的亮度进行增强。
在本发明实施例中,所述亮度补偿装置还包括:第二确定模块,设置为确定亮度补偿矩阵;转换模块,设置为将由所述预定数量的区块组成的矩阵转换成所述亮度补偿矩阵。
在本发明实施例中,所述亮度补偿装置还包括:处理模块,设置为对相邻区块的亮度进行平滑处理。
在本发明实施例中,所述拍摄画面包括以下至少之一:拍摄完成后存储的画面;由预览数据组成的未存储的画面。
通过本发明实施例,采用将拍摄画面划分成预定数量的区块;确定每个区块中的图像的景深信息;根据确定的所述景深信息对所述画面进行分区块亮度补偿,解决了相关技术中存在的拍摄质量差的问题,进而达到了提高拍摄质量的效果。
附图说明
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明实施例的示意性实施例及其说明用于解释本发明实施例,并不构成对本发明实施例的不当限定。在附图中:
图1是根据本发明实施例的亮度补偿方法的流程图;
图2是根据本发明实施例的亮度补偿装置的结构框图;
图3是根据本发明实施例的亮度补偿装置的优选结构框图一;
图4是根据本发明实施例的亮度补偿装置的优选结构框图二;
图5是根据本发明实施例的亮度补偿系统的结构框图;
图6是根据本发明实施例的利用景深信息对闪光灯亮度进行补偿的工作原理流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明实施例。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种亮度补偿方法,图1是根据本发明实施例的亮度补偿方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,将拍摄画面划分成预定数量的区块;
步骤S104,确定每个区块中的图像的景深信息;
步骤S106,根据确定的景深信息对上述画面进行分区块亮度补偿。
通过上述步骤,根据拍摄画面中图像的景深信息分区块进行亮度补偿,实现了对拍摄的画面进行分区域的精细亮度补偿,解决了相关技术中存在的拍摄质量差的问题,进而达到了提高拍摄质量的效果。
在根据确定的景深信息对拍摄画面进行分区块亮度补偿时,亮度补偿方法可以包括多种,在一个可选的实施例中,根据确定的景深信息对画面进行分区块亮度补偿可以包括以下之一:对景深深度小于画面中前景景深的图像的亮度进行抑制;对景深深度大于画面中目标图像景深深度的图像的亮度进行增强。对于景深深度大于前景景深且小于目标图像景深深度的图像的亮度可以不进行处理,维持原有的亮度,并且,对于景深深度大于画面中后景景深的图像的也可以不进行处理。从而实现对画面的整体亮度调整。提高拍摄画面的质量。
在根据确定的景深信息对画面进行分区块亮度补偿之前,还可以进行矩阵的处理,包括:确定亮度补偿矩阵;将由上述的预定数量的区块组成的矩阵转换成该亮度补偿矩阵。从而保证不同的亮度补偿装置都能实现相同效果的亮度补偿。
并且,为了防止相邻区块间面案变化太剧烈,可以进行相关的平滑处理,在一个可选的实施例中,在根据确定的景深信息对画面进行分区块亮度补偿之后,还可以包括:对相邻区块的亮度进行平滑处理。
上述的拍摄画面可以包括以下至少之一:拍摄完成后存储的画面;由预览数据组成的未存储的画面。也就是说在保存画面,进行画面预览时可以对该预览画面进行亮度补偿,也可以在存储画面之后,对存储的画面进行分析,再进行亮度调整。提高画面质量。
在本实施例中还提供了一种亮度补偿装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的亮度补偿装置的结构框图,如图2所示,该装置包括划分模块22、第一确定模块24和补偿模块26,下面对该装置进行说明。
划分模块22,设置为将拍摄画面划分成预定数量的区块;第一确定模块24,连接至上述划分模块22,设置为确定每个区块中的图像的景深信息;补偿模块26,连接至上述第一确定模块24,设置为根据确定的景深信息对画面进行分区块亮度补偿。
其中,上述补偿模块26包括以下之一:对景深深度小于画面中前景景深的图像的亮度进行抑制;对景深深度大于画面中目标图像景深深度的图像的亮度进行增强。
图3是根据本发明实施例的亮度补偿装置的优选结构框图一,如图3所示,该装置除包括图2所示的所有模块外,还包括第二确定模块32和转换模块34,下面对该装置继续说明。
第二确定模块32,设置为确定亮度补偿矩阵;转换模块34,连接至上述第二确定模块32和补偿模块26,设置为将由预定数量的区块组成的矩阵转换成亮度补偿矩阵。
图4是根据本发明实施例的亮度补偿装置的优选结构框图二,如图4所示,该装置除包括图2所示的所有模块外,还包括处理模块42,下面对该装置进行说明。
处理模块42,连接至上述补偿模块26,设置为对相邻区块的亮度进行平滑处理。
其中,上述拍摄画面包括以下至少之一:拍摄完成后存储的画面;由预览数据组成的未存储的画面。
图5是根据本发明实施例的亮度补偿系统的结构框图,如图5所示,以拍摄终端为手机为例进行说明,该系统包括摄像头52、闪光灯54、手机主体56、景深检测模块58(同上述的第一确定模块24)、亮度补偿模块510(同上述的补偿模块26)和存储器512。其中,手机主体56包括中央处理器(Central Processing Unit,简称CPU)及数字信号处理器(Digital Signal Process,简称为DSP),该手机主体56包括的DSP至少具有采集RAW数据并对RAW数据处理最终产生JPEG照片的能力。该景深检测模块58具有整个画面物体距摄像头的距离有大致的识别能力,误差在一定范围内(比如10%)。可在摄像头52测由传感器sensor实现,也可以通过双摄像头采集的图像在手机侧实现。该闪光灯亮度补偿模块510具有对整个画面的亮度按照网格(比如17×13)分块改变亮度的功能。利用图像的景深信息在手机图像处理流程中对图像的亮度进行补偿。把画面按照不同景深网格化,对近处过曝的网格进行抑制,远处欠曝的网格进行增强,提高照片的质量。
图6是根据本发明实施例的利用景深信息对闪光灯亮度进行补偿的工作原理流程图,如图6所示,该流程包括如下步骤:
步骤S602,打开摄像头准备拍照,同时启动闪光灯亮度补偿模块510;
步骤S604,开始预览同时闪光灯45预闪辅助聚焦;
步骤S606,开始相位聚焦,获取到图像的景深信息;
步骤S608,闪光灯补偿模块计算出补偿矩阵;
步骤S610,利用景深形象对焦并闪光拍照;
步骤S612,亮度补偿模块510对图像进行处理,包括对闪光灯45补偿;
步骤S614,生成照片。
通过上述的利用景深信息,按照物体的距离远近不同来区别对闪光灯亮度进行补偿,补偿的方法精确、画面主观效果更好。
手机照相模块开启后,如果选用闪光灯方式设为打开或自动使能闪光灯的模式,启动闪光灯补偿模块。在预览的过程中,如果需要可开启闪光灯辅助聚集。
负责收集景深信息的景深检测模块58(比如双摄像头或者带有相位差信息的摄像头)在收到预览数据后,开始采集景深信息。先对着给整个场景在一定景深范围(比如 从微距到无穷远)的深度进行分析,然后将整个画面分成M1×N1个矩阵,对矩阵中图像逐块标记景深信息。
通常受镜头的限制,在不开闪光灯的时候,图像也会出现中间亮,四周暗情况,一般手机中都有DSP来对这种情况作补偿,提升四周的亮度。在本发明实施例中既可以借助DSP来实现,也可以由其他可以改变图像亮度的软硬件模块实现。统称为闪光灯亮度补偿模块,该模块把画面分成M×N个块。可以根据需要对不同块的增益增加或者减少,从而达到对画面亮度均匀性进行调整的目的。
由于不同闪光灯亮度补偿模块对图像亮度补偿的矩阵大小不一定一样,假设具体的大小是M×N,则需要先把景深信息的M1×N1转换到补偿矩阵M×N。与此同时可以把画面中目标物体的景深设为T2,前景深设为T1,后景深设为T3。景深小于T1,则对该块亮度抑制。T1到T2之间保持不变,T2到T3对亮度增加,大于T3由于太远了,不做处理或稍作增强。
使用上述规则对M×N逐一查表或计算辅助。产一张M×N新表,然后对相邻网格之间平滑处理,以防止明暗变化太剧烈。补偿参数计算完成,把参数表格设定到亮度补偿模块中(DSP或者具体实施模块)。
以上图像可以都来自预览数据,所有过程可以在拍照前完成,等待正式拍照数据采集进来后,即可对其进行调整。
由于图像在DSP中的处理往往是多个通道(比如YCbCr,或者RGbGrB等),所以可能需要对多个通道都进行补偿。所以可以能需要产生多张表。
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。
以上所述仅为本发明实施例的优选实施例而已,并不用于限制本发明实施例,对于本领域的技术人员来说,本发明实施例可以有各种更改和变化。凡在本发明实施例的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。
工业实用性
如上所述,通过上述实施例及优选实施方式,解决了相关技术中存在的拍摄质量差的问题,进而达到了提高拍摄质量的效果。

Claims (10)

  1. 一种亮度补偿方法,包括:
    将拍摄画面划分成预定数量的区块;
    确定每个区块中的图像的景深信息;
    根据确定的所述景深信息对所述画面进行分区块亮度补偿。
  2. 根据权利要求1所述的方法,其中,根据确定的所述景深信息对所述画面进行分区块亮度补偿包括以下之一:
    对景深深度小于所述画面中前景景深的图像的亮度进行抑制;
    对景深深度大于所述画面中目标图像景深深度的图像的亮度进行增强。
  3. 根据权利要求1所述的方法,其中,在根据确定的所述景深信息对所述画面进行分区块亮度补偿之前,还包括:
    确定亮度补偿矩阵;
    将由所述预定数量的区块组成的矩阵转换成所述亮度补偿矩阵。
  4. 根据权利要求1所述的方法,其中,在根据确定的所述景深信息对所述画面进行分区块亮度补偿之后,还包括:
    对相邻区块的亮度进行平滑处理。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述拍摄画面包括以下至少之一:
    拍摄完成后存储的画面;
    由预览数据组成的未存储的画面。
  6. 一种亮度补偿装置,包括:
    划分模块,设置为将拍摄画面划分成预定数量的区块;
    第一确定模块,设置为确定每个区块中的图像的景深信息;
    补偿模块,设置为根据确定的所述景深信息对所述画面进行分区块亮度补偿。
  7. 根据权利要求6所述的装置,其中,所述补偿模块包括以下之一:
    对景深深度小于所述画面中前景景深的图像的亮度进行抑制;
    对景深深度大于所述画面中目标图像景深深度的图像的亮度进行增强。
  8. 根据权利要求6所述的装置,其中,还包括:
    第二确定模块,设置为确定亮度补偿矩阵;
    转换模块,设置为将由所述预定数量的区块组成的矩阵转换成所述亮度补偿矩阵。
  9. 根据权利要求6所述的装置,其中,还包括:
    处理模块,设置为对相邻区块的亮度进行平滑处理。
  10. 根据权利要求6至9中任一项所述的装置,其中,所述拍摄画面包括以下至少之一:
    拍摄完成后存储的画面;
    由预览数据组成的未存储的画面。
PCT/CN2015/076008 2014-11-25 2015-04-07 亮度补偿方法及装置 WO2016082414A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410692766.0 2014-11-25
CN201410692766.0A CN105611182B (zh) 2014-11-25 2014-11-25 亮度补偿方法及装置

Publications (1)

Publication Number Publication Date
WO2016082414A1 true WO2016082414A1 (zh) 2016-06-02

Family

ID=55990695

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2015/072776 WO2016082347A1 (zh) 2014-11-25 2015-02-11 亮度补偿方法、装置和计算机存储介质
PCT/CN2015/076008 WO2016082414A1 (zh) 2014-11-25 2015-04-07 亮度补偿方法及装置

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072776 WO2016082347A1 (zh) 2014-11-25 2015-02-11 亮度补偿方法、装置和计算机存储介质

Country Status (4)

Country Link
US (1) US20170331997A1 (zh)
EP (1) EP3226546A4 (zh)
CN (1) CN105611182B (zh)
WO (2) WO2016082347A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852312A (zh) * 2020-01-14 2020-02-28 深圳飞科机器人有限公司 悬崖检测方法、移动机器人的控制方法及移动机器人

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI604221B (zh) * 2016-05-27 2017-11-01 致伸科技股份有限公司 影像景深測量方法以及應用該方法的影像擷取裝置
CN107105158B (zh) * 2017-03-31 2020-02-18 维沃移动通信有限公司 一种拍照方法及移动终端
CN109447926A (zh) * 2018-09-29 2019-03-08 Oppo广东移动通信有限公司 图像处理方法和装置、电子设备、计算机可读存储介质
CN109447927B (zh) * 2018-10-15 2021-01-22 Oppo广东移动通信有限公司 图像处理方法和装置、电子设备、计算机可读存储介质
CN110536067B (zh) * 2019-09-04 2021-02-26 Oppo广东移动通信有限公司 图像处理方法、装置、终端设备及计算机可读存储介质
CN111583368B (zh) * 2020-03-31 2024-01-02 完美世界(北京)软件科技发展有限公司 画面的生成方法及装置、存储介质、电子装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070262236A1 (en) * 2006-05-15 2007-11-15 Shimon Pertsel Techniques for Modifying Image Field Data Obtained Using Illumination Sources
CN101441386A (zh) * 2007-11-20 2009-05-27 鸿富锦精密工业(深圳)有限公司 摄影装置及其摄影方法
CN101884011A (zh) * 2007-12-05 2010-11-10 Nxp股份有限公司 用于数字摄像机系统的闪光补偿系统
CN102158670A (zh) * 2010-02-11 2011-08-17 富士通微电子(上海)有限公司 数字视频图像的自适应对比度拉伸方法与系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870505A (en) * 1996-03-14 1999-02-09 Polaroid Corporation Method and apparatus for pixel level luminance adjustment
EP1193977B1 (en) * 1997-06-09 2003-08-27 Hitachi, Ltd. Image sequence coding method
US6865229B1 (en) * 1999-12-14 2005-03-08 Koninklijke Philips Electronics N.V. Method and apparatus for reducing the “blocky picture” effect in MPEG decoded images
JP4275344B2 (ja) * 2002-01-22 2009-06-10 富士フイルム株式会社 撮像装置、撮像方法、及びプログラム
JP2005181355A (ja) * 2003-12-15 2005-07-07 Canon Inc 撮像装置
JP5451316B2 (ja) * 2009-10-28 2014-03-26 キヤノン株式会社 撮像装置及び発光制御方法
CN104112433B (zh) * 2013-04-22 2016-06-29 华为技术有限公司 一种图像补偿方法及装置
CN104092956B (zh) * 2014-07-31 2018-02-02 北京智谷睿拓技术服务有限公司 闪光控制方法、闪光控制装置以及图像采集设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070262236A1 (en) * 2006-05-15 2007-11-15 Shimon Pertsel Techniques for Modifying Image Field Data Obtained Using Illumination Sources
CN101441386A (zh) * 2007-11-20 2009-05-27 鸿富锦精密工业(深圳)有限公司 摄影装置及其摄影方法
CN101884011A (zh) * 2007-12-05 2010-11-10 Nxp股份有限公司 用于数字摄像机系统的闪光补偿系统
CN102158670A (zh) * 2010-02-11 2011-08-17 富士通微电子(上海)有限公司 数字视频图像的自适应对比度拉伸方法与系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110852312A (zh) * 2020-01-14 2020-02-28 深圳飞科机器人有限公司 悬崖检测方法、移动机器人的控制方法及移动机器人
CN110852312B (zh) * 2020-01-14 2020-07-17 深圳飞科机器人有限公司 悬崖检测方法、移动机器人的控制方法及移动机器人

Also Published As

Publication number Publication date
EP3226546A1 (en) 2017-10-04
EP3226546A4 (en) 2017-11-29
US20170331997A1 (en) 2017-11-16
CN105611182A (zh) 2016-05-25
CN105611182B (zh) 2020-05-22
WO2016082347A1 (zh) 2016-06-02

Similar Documents

Publication Publication Date Title
WO2016082414A1 (zh) 亮度补偿方法及装置
JP2018504790A (ja) ハイダイナミックレンジ画像の生成方法及び装置
TWI530911B (zh) 動態曝光調整方法及其電子裝置
CN103780840A (zh) 一种高品质成像的双摄像成像装置及其方法
JP6605629B2 (ja) 撮影方法及び装置
KR20150099302A (ko) 전자 장치와, 그의 제어 방법
TWI386042B (zh) Digital camera device and its brightness correction method
TW201225645A (en) Techniques for synchronizing audio and video data in an image signal processing system
WO2020244374A1 (zh) 高动态范围hdr图像生成方法和装置、电子设备、计算机可读存储介质
JP2018503325A (ja) 画素データに対して演算を実行するためのシステムおよび方法
TWI486057B (zh) 影像擷取裝置及其影像合成方法
US11297256B2 (en) Method and device for balancing foreground-background luminosity
JP6467190B2 (ja) 露出制御装置及びその制御方法、撮像装置、プログラム、記憶媒体
TWI394443B (zh) Image brightness correction method
JP2014123915A (ja) 撮像装置及びその制御方法、プログラム、並びに記憶媒体
JP2017112462A (ja) 撮像装置及びその制御方法、プログラム並びに記憶媒体
WO2015192545A1 (zh) 拍照的方法、装置及计算机存储介质
US11871123B2 (en) High dynamic range image synthesis method and electronic device
US8587714B2 (en) Method for capturing image
WO2019111659A1 (ja) 画像処理装置、撮像装置、画像処理方法、およびプログラム
TWI524279B (zh) 影像擷取裝置及其暗角補償方法
TW201911853A (zh) 雙攝像頭影像擷取裝置及其攝像方法
CN109600547B (zh) 拍照方法、装置、电子设备和存储介质
CN109582811B (zh) 图像处理方法、装置、电子设备和计算机可读存储介质
JP2015126455A5 (zh)

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

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

Country of ref document: EP

Kind code of ref document: A1