[go: up one dir, main page]

CN107592471A - A kind of high dynamic range images image pickup method and mobile terminal - Google Patents

A kind of high dynamic range images image pickup method and mobile terminal Download PDF

Info

Publication number
CN107592471A
CN107592471A CN201710953004.5A CN201710953004A CN107592471A CN 107592471 A CN107592471 A CN 107592471A CN 201710953004 A CN201710953004 A CN 201710953004A CN 107592471 A CN107592471 A CN 107592471A
Authority
CN
China
Prior art keywords
sub
exposure
region
image
preview image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710953004.5A
Other languages
Chinese (zh)
Inventor
胡鹏翔
徐璟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710953004.5A priority Critical patent/CN107592471A/en
Publication of CN107592471A publication Critical patent/CN107592471A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

本发明提供一种高动态范围图像拍摄方法及移动终端,该方法包括:获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。这样可以有效提升高动态范围图像的拍摄效果。

The present invention provides a high dynamic range image shooting method and a mobile terminal. The method includes: obtaining a preview image collected by a camera; dividing the preview image into N sub-regions; obtaining exposure parameters of each sub-region; Exposure parameters corresponding to the area determine the exposure image corresponding to each sub-area; perform image synthesis processing on the exposure images corresponding to all sub-areas, and output a high dynamic range image; wherein, N is an integer greater than 1. This can effectively improve the shooting effect of high dynamic range images.

Description

一种高动态范围图像拍摄方法及移动终端A high dynamic range image shooting method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种高动态范围图像拍摄方法及移动终端。The invention relates to the field of communication technology, in particular to a high dynamic range image shooting method and a mobile terminal.

背景技术Background technique

随着通信技术的发展,手机和平板电脑等移动终端已经成为人们日常生活中不可或缺的工具。为了满足移动终端的拍摄功能的要求,高动态范围(High-Dynamic Range,HDR)图像拍摄技术逐渐被应用到移动终端中,移动终端可以通过摄像头分别抓取长曝光、短曝光以及正常曝光的照片,并对抓取的多张照片进行合成得到HDR图像,合成的HDR图像具有更均衡的曝光效果,从而提升移动终端拍摄的拍摄效果。With the development of communication technology, mobile terminals such as mobile phones and tablet computers have become indispensable tools in people's daily life. In order to meet the requirements of the shooting function of mobile terminals, high-dynamic range (High-Dynamic Range, HDR) image capture technology is gradually applied to mobile terminals, and mobile terminals can capture long-exposure, short-exposure and normal-exposure photos respectively through the camera. , and synthesize multiple captured photos to obtain an HDR image, and the synthesized HDR image has a more balanced exposure effect, thereby improving the shooting effect of the mobile terminal.

目前,在使用HDR拍摄模式进行拍摄的过程中,一般是通过中央重点测光的方式,确定曝光参数,且每一帧图像的曝光参数对整幅画面有效。然而,由于整幅画面本身的亮度信息不同,以同样的曝光参数进行曝光,会导致画面中部分区域的存在过曝或者欠曝的情况,从而使照片的拍摄质量降低。可见,现有HDR拍摄模式的曝光参数在对预览图像进行曝光处理过程中,经曝光处理后的图像局部会存在过曝或者欠曝的问题。At present, in the process of shooting in the HDR shooting mode, the exposure parameters are generally determined by means of center-weighted photometry, and the exposure parameters of each frame of image are valid for the entire frame. However, since the brightness information of the whole picture itself is different, exposing with the same exposure parameters will result in overexposure or underexposure in some areas of the picture, thereby degrading the shooting quality of the photo. It can be seen that, during the exposure processing of the preview image by the exposure parameters of the existing HDR shooting mode, the image after exposure processing may partially have the problem of overexposure or underexposure.

发明内容Contents of the invention

本发明实施例提供一种高动态范围图像拍摄方法及移动终端,以解决现有HDR拍摄模式的曝光参数在对预览图像进行曝光处理过程中,经曝光处理后的图像局部会存在过曝或者欠曝的问题。Embodiments of the present invention provide a high dynamic range image shooting method and a mobile terminal to solve the problem of partial overexposure or underexposure of the image after exposure processing during the exposure processing of the preview image in the exposure parameters of the existing HDR shooting mode. exposed problem.

为解决上述技术问题,本发明是这样实现的:一种高动态范围图像拍摄方法,应用于包括摄像头的移动终端,包括:获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。In order to solve the above technical problems, the present invention is implemented as follows: a high dynamic range image shooting method, applied to a mobile terminal including a camera, comprising: acquiring a preview image collected by the camera; dividing the preview image into N sub-regions; Acquire the exposure parameters of each sub-region; determine the exposure image corresponding to each sub-region based on the exposure parameters corresponding to each sub-region; perform image synthesis processing on the exposure images corresponding to all sub-regions, and output a high dynamic range image; wherein, N is an integer greater than 1.

第一方面,本发明实施例提供了一种高动态范围图像拍摄方法,应用于包括摄像头的移动终端,包括:In the first aspect, an embodiment of the present invention provides a high dynamic range image shooting method, which is applied to a mobile terminal including a camera, including:

获取摄像头采集的预览图像;Obtain the preview image collected by the camera;

将所述预览图像划分成N个子区域;Divide the preview image into N sub-regions;

获取每个子区域的曝光参数;Obtain the exposure parameters of each sub-region;

基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;determining an exposure image corresponding to each sub-area based on the exposure parameters corresponding to each sub-area;

将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;Perform image synthesis processing on the exposure images corresponding to all sub-regions, and output a high dynamic range image;

其中,N为大于1的整数。Wherein, N is an integer greater than 1.

第二方面,本发明实施例还提供一种移动终端,包括摄像头,所述移动终端还包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including a camera, and the mobile terminal further includes:

第一获取模块,用于获取摄像头采集的预览图像;The first obtaining module is used to obtain the preview image collected by the camera;

划分模块,用于将所述预览图像划分成N个子区域;A division module, configured to divide the preview image into N sub-regions;

第二获取模块,用于获取每个子区域的曝光参数;The second obtaining module is used to obtain the exposure parameters of each sub-region;

确定模块,用于基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;A determining module, configured to determine an exposure image corresponding to each sub-region based on the exposure parameters corresponding to each sub-region;

合成模块,用于将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;A synthesis module, configured to perform image synthesis processing on exposure images corresponding to all sub-regions, and output a high dynamic range image;

其中,N为大于1的整数。Wherein, N is an integer greater than 1.

第三方面,本发明实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述高动态范围图像拍摄方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor The steps of realizing the above-mentioned high dynamic range image capturing method at the same time.

第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述高动态范围图像拍摄方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned high dynamic range image capture method are implemented .

在本发明实施例中,通过将预览图像划分成N个子区域,并获取每个子区域的曝光参数,使用每个子区域各自对应的曝光参数分别对预览图像进行曝光处理,可以得到与每个子区域对应的初始曝光图像,并将每个初始曝光图像中与其对应的子区域对应的图像确定为该子区域对应的曝光图像,并将所有子区域对应的曝光图像进行拼接合成处理,即可得到预览图像的高动态范围图像。相比于现有技术,采用这种方式合成得到的高动态范围图像更为清晰和真实,有效的提升了高动态范围图像的拍摄效果。In the embodiment of the present invention, by dividing the preview image into N sub-regions, obtaining the exposure parameters of each sub-region, and using the corresponding exposure parameters of each sub-region to perform exposure processing on the preview image respectively, it is possible to obtain the The initial exposure image of each initial exposure image, and the image corresponding to its corresponding sub-region in each initial exposure image is determined as the exposure image corresponding to the sub-region, and the exposure images corresponding to all sub-regions are spliced and synthesized to obtain a preview image high dynamic range images. Compared with the prior art, the high dynamic range image synthesized in this way is clearer and more real, which effectively improves the shooting effect of the high dynamic range image.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明一实施例提供的高动态范围图像拍摄方法的流程图;FIG. 1 is a flowchart of a high dynamic range image capturing method provided by an embodiment of the present invention;

图2是本发明提供的预览图像子区域的划分示意图;Fig. 2 is a schematic diagram of division of preview image sub-regions provided by the present invention;

图3是本发明另一实施例提供的高动态范围图像拍摄方法的流程图;Fig. 3 is a flowchart of a high dynamic range image capturing method provided by another embodiment of the present invention;

图4是本发明一实施例提供的移动终端的结构图;FIG. 4 is a structural diagram of a mobile terminal provided by an embodiment of the present invention;

图5是本发明一实施例提供的移动终端中确定模块的结构图;Fig. 5 is a structural diagram of a determination module in a mobile terminal provided by an embodiment of the present invention;

图6是本发明一实施例提供的移动终端中曝光子模块的结构图;FIG. 6 is a structural diagram of an exposure submodule in a mobile terminal provided by an embodiment of the present invention;

图7是本发明一实施例提供的移动终端中划分模块的结构图之一;Fig. 7 is one of the structural diagrams of the dividing module in the mobile terminal provided by an embodiment of the present invention;

图8是本发明一实施例提供的移动终端中第二获取模块的结构图之一;Fig. 8 is one of the structural diagrams of the second acquisition module in the mobile terminal provided by an embodiment of the present invention;

图9是本发明一实施例提供的移动终端中划分模块的结构图之二;FIG. 9 is the second structural diagram of the dividing module in the mobile terminal provided by an embodiment of the present invention;

图10是本发明一实施例提供的移动终端中第二获取模块的结构图之二;Fig. 10 is the second structural diagram of the second acquiring module in the mobile terminal provided by an embodiment of the present invention;

图11是本发明又一实施例提供的移动终端的结构图。Fig. 11 is a structural diagram of a mobile terminal provided by another embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,图1是本发明一实施例提供的高动态范围图像拍摄方法的流程图,应用于包括摄像头的移动终端,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a high dynamic range image capturing method provided by an embodiment of the present invention, which is applied to a mobile terminal including a camera, as shown in FIG. 1, including the following steps:

步骤101、获取摄像头采集的预览图像。Step 101, acquiring a preview image captured by a camera.

该步骤中,开启相机应用程序,获取摄像头采集的预览图像。In this step, start the camera application program to obtain the preview image captured by the camera.

步骤102、将所述预览图像划分成N个子区域。Step 102. Divide the preview image into N sub-regions.

该步骤中,若在HDR拍摄模式下接收到拍摄指令,则将预览图像划分成N个子区域,其中N为大于1的整数。In this step, if a shooting instruction is received in the HDR shooting mode, the preview image is divided into N sub-regions, where N is an integer greater than 1.

其中,子区域的划分可以根据用户预先设定的划分规则进行划分,也可以根据拍摄场景进行划分。如图2所示,比如,当预览图像在空间平面内各个方位的明暗程度不一时,可以按照方位划分规则将预览图像划分成ABCD四个大小等同的子区域。Wherein, the division of sub-regions can be performed according to division rules preset by the user, or can be divided according to shooting scenes. As shown in FIG. 2 , for example, when the lightness and darkness of the preview image are different in various orientations in the space plane, the preview image can be divided into four sub-regions ABCD with the same size according to the orientation division rule.

步骤103、获取每个子区域的曝光参数。Step 103, acquiring exposure parameters of each sub-region.

该步骤中,可以通过对每个子区域进行测光,并根据测光结果,计算得到每个子区域的曝光参数。In this step, the exposure parameter of each sub-region can be obtained by calculating the photometry of each sub-region according to the photometry result.

步骤104、基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像。Step 104, based on the exposure parameters corresponding to each sub-region, determine an exposure image corresponding to each sub-region.

该步骤中,可以使用每个子区域对应的曝光参数对预览图像进曝光处理,来获取每个子区域对应的曝光图像。In this step, exposure processing may be performed on the preview image by using the exposure parameters corresponding to each sub-region, so as to obtain the exposure image corresponding to each sub-region.

步骤105、将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像。Step 105 , performing image composition processing on the exposure images corresponding to all sub-regions, and outputting a high dynamic range image.

该步骤中,将步骤104获取得到的所有子区域对应的曝光图像进行拼接合成处理,即可得到预览图像的高动态范围图像,并输出该高动态范围图像。In this step, the exposure images corresponding to all sub-regions obtained in step 104 are spliced and synthesized to obtain a high dynamic range image of the preview image, and the high dynamic range image is output.

目前,在使用HDR拍摄模式进行拍摄的过程中,通过对整幅预览图像进行中央重点测光,并根据中央重点测光的测光结果确定整幅预览图像的曝光参数;然而,由于整幅预览图像可能会存在明暗程度不同的区域,通过使用同一个曝光参数对预览图像进行曝光处理,会导致曝光后的图像存在过曝和欠曝的区域,从而导致使用HDR拍摄模式拍摄的照片存在质量差的问题。At present, in the process of shooting in the HDR shooting mode, center-weighted metering is performed on the entire preview image, and the exposure parameters of the entire preview image are determined according to the metering results of the center-weighted metering; however, due to the There may be areas with different brightness and darkness in the image. Using the same exposure parameter to expose the preview image will result in overexposed and underexposed areas in the exposed image, resulting in poor quality of photos taken in HDR shooting mode. The problem.

在本实施方式中,通过将预览图像划分成N个子区域,并获取每个子区域的曝光参数,使用每个子区域各自对应的曝光参数分别对预览图像进行曝光处理,可以得到与每个子区域对应的初始曝光图像,并将每个初始曝光图像中与其对应的子区域对应的图像确定为该子区域对应的曝光图像,并将所有子区域对应的曝光图像进行拼接合成处理,即可得到预览图像的高动态范围图像。相比于现有技术,采用这种方式合成得到的高动态范围图像更为清晰和真实,有效的提升了高动态范围图像的拍摄效果。In this embodiment, by dividing the preview image into N sub-areas, obtaining the exposure parameters of each sub-area, and using the exposure parameters corresponding to each sub-area to perform exposure processing on the preview image respectively, the exposure corresponding to each sub-area can be obtained. The initial exposure image, and the image corresponding to the corresponding sub-region in each initial exposure image is determined as the exposure image corresponding to the sub-region, and the exposure images corresponding to all sub-regions are spliced and synthesized to obtain the preview image. High dynamic range images. Compared with the prior art, the high dynamic range image synthesized in this way is clearer and more real, which effectively improves the shooting effect of the high dynamic range image.

需要说明的是,子区域的划分越细,合成的高动态范围图像效果越好;但是子区域划分的数量过多时,会增加曝光过程的移动终端处理器计算量,进而增加移动终端的负荷,影响移动终端的其他操作,因此子区域数量一般设置在2~4个。这样可以在不增加移动终端负荷的情况下,还能输出更为清晰和真实的高动态范围图像。It should be noted that the finer the division of sub-regions, the better the effect of the synthesized high dynamic range image; however, when the number of sub-regions is too large, the calculation amount of the mobile terminal processor in the exposure process will be increased, thereby increasing the load of the mobile terminal. It affects other operations of the mobile terminal, so the number of sub-areas is generally set at 2 to 4. In this way, clearer and more realistic high dynamic range images can be output without increasing the load of the mobile terminal.

本发明实施例中,上述移动终端可以任何包括摄像头的移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned mobile terminal can be any mobile terminal including a camera, for example: a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), Mobile internet device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.

本发明实施例的高动态范围图像拍摄方法,通过获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。这样可以有效提升高动态范围图像的拍摄效果。In the high dynamic range image shooting method of the embodiment of the present invention, by obtaining the preview image collected by the camera; dividing the preview image into N sub-regions; obtaining the exposure parameters of each sub-region; based on the exposure parameters corresponding to each sub-region, Determine the exposure image corresponding to each sub-region; perform image synthesis processing on the exposure images corresponding to all sub-regions, and output a high dynamic range image; wherein, N is an integer greater than 1. This can effectively improve the shooting effect of high dynamic range images.

参见图3,图3是本发明另一实施例提供的高动态范围图像拍摄方法的流程图,如图3所示,包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of a high dynamic range image capturing method provided by another embodiment of the present invention, as shown in FIG. 3, including the following steps:

步骤301、获取摄像头采集的预览图像。Step 301, acquire a preview image captured by a camera.

该步骤中,开启相机应用程序,获取摄像头采集的预览图像。In this step, start the camera application program to obtain the preview image captured by the camera.

步骤302、将所述预览图像划分成N个子区域。Step 302. Divide the preview image into N sub-regions.

该步骤中,若在HDR拍摄模式下接收到拍摄指令,则将预览图像划分成N个子区域,其中N为大于1的整数。In this step, if a shooting instruction is received in the HDR shooting mode, the preview image is divided into N sub-regions, where N is an integer greater than 1.

可选的,在步骤302中,可以基于所述预览图像在空间平面的分布,将所述预览图像划分成N个子区域。Optionally, in step 302, the preview image may be divided into N sub-regions based on the distribution of the preview image on a spatial plane.

本实施方式中,基于预览图像在空间平面的分布,将预览图像划分成N个子区域的过程中,可以根据用户预先设定的划分规则进行划分,也可以根据拍摄场景进行划分。如图2所示,比如,当预览图像在空间平面内各个方位的明暗程度不一时,可以按照方位划分规则将预览图像划分成ABCD四个大小等同的子区域。In this embodiment, based on the distribution of the preview image on the spatial plane, the process of dividing the preview image into N sub-regions may be divided according to a division rule preset by the user, or may be divided according to the shooting scene. As shown in FIG. 2 , for example, when the lightness and darkness of the preview image are different in various orientations in the space plane, the preview image can be divided into four sub-regions ABCD with the same size according to the orientation division rule.

可选的,步骤302还可以包括:对所述预览图像进行场景检测,获得场景检测结果;并根据场景检测结果,将所述预览图像划分成N个子区域。Optionally, step 302 may further include: performing scene detection on the preview image to obtain a scene detection result; and dividing the preview image into N sub-regions according to the scene detection result.

本实施方式中,可以拍摄场景进行子区域的划分,比如,当检测到预览图像的上(1/3)部分需要过度曝光时,其余部分正常曝光,则可以将预览图像划分为两个子区域,其中一个子区域对应上(1/3)部分图像,另一个子区域对应下(2/3)部分图像。In this embodiment, the shooting scene can be divided into sub-regions. For example, when it is detected that the upper (1/3) part of the preview image needs to be overexposed, and the remaining part is normally exposed, the preview image can be divided into two sub-regions. One of the sub-regions corresponds to the upper (1/3) part of the image, and the other sub-region corresponds to the lower (2/3) part of the image.

进一步可选的,在步骤302中,还可以基于所述预览图像中每个像素点的亮度值,将所述预览图像划分成N个子区域;其中,每个子区域对应一个亮度值区间。Further optionally, in step 302, the preview image may also be divided into N sub-regions based on the brightness value of each pixel in the preview image; wherein each sub-region corresponds to a brightness value interval.

本实施方式中,可以根据预览图像中每个像素点的亮度值将预览图像划分成N个子区域。由于是根据亮度值进行子区域的划分,因此采用这种方式划分的子区域没有明显的界限划分,只是根据亮度值的不同,将每个像素点划分成不同的组,并形成不同的子区域。In this implementation manner, the preview image may be divided into N sub-regions according to the brightness value of each pixel in the preview image. Since the sub-regions are divided according to the brightness value, the sub-regions divided in this way have no obvious boundary division, but each pixel is divided into different groups according to the brightness value, and different sub-regions are formed. .

本实施方式的一具体应用为,先获取预览图像中每个像素点的亮度值;然后,将其中亮度值小于第一预设亮度值的所有像素点归类到第一组,且第一组内所有的像素点形成第一子区域;将亮度值大于第二预设亮度的所有像素点归类到第二组,且第二组内所有像素点形成第二子区域;将亮度值处于第一预设亮度值与第二预设亮度值之间的所有像素点归类到第三组,且第三组内所有的像素点形成第三子区域。A specific application of this embodiment is to first obtain the brightness value of each pixel in the preview image; then, classify all pixels whose brightness value is less than the first preset brightness value into the first group, and the first group All the pixels in the second group form the first sub-area; all the pixels whose brightness value is greater than the second preset brightness are classified into the second group, and all the pixels in the second group form the second sub-area; the brightness value is in the second sub-area All pixels between a preset brightness value and a second preset brightness value are classified into a third group, and all pixels in the third group form a third sub-region.

根据每个像素点的亮度值进行子区域的划分,可以获取与每个子区域更为匹配的曝光参数,从而获得更为真实的曝光图像,以便进一步提升高动态范围图像的拍摄效果。By dividing the sub-regions according to the luminance value of each pixel, exposure parameters that better match each sub-region can be obtained, so as to obtain a more realistic exposure image, so as to further improve the shooting effect of high dynamic range images.

步骤303、获取每个子区域的曝光参数。Step 303, acquiring exposure parameters of each sub-region.

该步骤中,可以通过对每个子区域进行测光,并根据测光结果,计算得到每个子区域的曝光参数。In this step, the exposure parameter of each sub-region can be obtained by calculating the photometry of each sub-region according to the photometry result.

具体的,可以通过对每个子区域进行中央重点测光,获得每个子区域的测光结果;并根据每个子区域的测光结果,计算得到每个子区域的曝光参数。该方式主要应用于通过空间平面划分子区域。Specifically, a photometric result of each sub-region may be obtained by performing center-weighted photometry on each sub-region; and an exposure parameter of each sub-region may be calculated according to the photometric result of each sub-region. This approach is mainly used to divide sub-regions by spatial planes.

也可以通过对每个子区域进行点测光,获得每个子区域的测光结果;并根据每个子区域的测光结果,计算得到每个子区域的曝光参数。该方式主要应用于通过像素点的亮度值划分子区域。The photometry result of each sub-region may also be obtained by performing spot metering on each sub-region; and the exposure parameter of each sub-region is calculated according to the photometry result of each sub-region. This method is mainly used to divide sub-regions by the brightness value of pixels.

步骤304、按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像。Step 304: Perform exposure processing on the preview image respectively according to the exposure parameters corresponding to each sub-region, to obtain an initial exposure image corresponding to each sub-region.

该步骤中,通过按照每个子区域对应的曝光参数,分别对预览图像进行曝光处理,可以得到与每个子区域对应的初始曝光图像。In this step, the initial exposure image corresponding to each sub-region can be obtained by performing exposure processing on the preview image according to the exposure parameters corresponding to each sub-region.

可选的,所述摄像头的数量为M,且M为大于1的整数;步骤304还可以包括:根据M和N的大小关系,确定每个摄像头对应的目标子区域;根据所述每个摄像头对应的目标子区域,确定每个摄像头对应的目标曝光参数;控制所有摄像头按照各自对应的目标曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;其中,每个摄像头对应S个目标子区域,每个摄像头对应S个目标曝光参数,且S为大于0的整数。Optionally, the number of cameras is M, and M is an integer greater than 1; step 304 may also include: determining the target sub-area corresponding to each camera according to the size relationship between M and N; For the corresponding target sub-area, determine the target exposure parameters corresponding to each camera; control all cameras to perform exposure processing on the preview image respectively according to their corresponding target exposure parameters, and obtain an initial exposure image corresponding to each sub-area; wherein, Each camera corresponds to S target sub-areas, each camera corresponds to S target exposure parameters, and S is an integer greater than 0.

在本实施方式中,当摄像头的数量为两个或者多个时,可以根据摄像头的数量M与子区域的数量N的大小关系,确定每个摄像头对应的目标子区域,并根据每个摄像头对应的目标子区域,确定每个摄像头对应的目标曝光参数,通过控制所有摄像头按照各自对应的目标曝光参数,分别对预览图像进行曝光处理,即可得到每个子区域对应的初始曝光图像。相比于对于摄像头的数量只有一个的移动终端,在对预览图像进行曝光的过程中,需要控制摄像头依次使用每个子区域对应的曝光参数对预览图像进行曝光处理,可以有效节省曝光处理的时间,提升曝光效率。In this embodiment, when the number of cameras is two or more, the target sub-area corresponding to each camera can be determined according to the size relationship between the number M of cameras and the number N of sub-areas, and according to the corresponding Determine the target exposure parameters corresponding to each camera, and control all cameras to perform exposure processing on the preview image according to their corresponding target exposure parameters, so as to obtain the initial exposure image corresponding to each sub-region. Compared with a mobile terminal with only one camera, in the process of exposing the preview image, the camera needs to be controlled to sequentially use the exposure parameters corresponding to each sub-region to perform exposure processing on the preview image, which can effectively save the exposure processing time. Improve exposure efficiency.

比如,如图2所示,预览图像划分成了ABCD四个大小等同的子区域,并设定每次曝光处理所需时间为t,针对只有一个摄像头的移动终端,需要4t的时间,才能完成使用ABCD四个子区域对应的曝光参数对预览图像的曝光处理过程。而对于包括第一摄像头和第二摄像头的移动终端,通过设定第一摄像头对应AC子区域,并关联AC子区域对应的曝光参数;第二摄像头对应BD子区域,并关联BD子区域对应的曝光参数;在控制第一摄像头和第二摄像头对预览图像进行曝光的过程中,可以先控制第一摄像头使用A子区域对应的曝光参数及第二摄像头使用B子区域对应的曝光参数同时对预览图像进行曝光,然后在控制第一摄像头使用C子区域对应的曝光参数及第二摄像头使用D子区域对应的曝光参数同时对预览图像进行曝光,这样所需的总曝光时间为2t。相比于第一种方式,可以节省一半的曝光时间,有效的提升了曝光效率。For example, as shown in Figure 2, the preview image is divided into four sub-regions of equal size ABCD, and the time required for each exposure processing is set as t. For a mobile terminal with only one camera, it takes 4t time to complete Use the exposure parameters corresponding to the four sub-areas of ABCD to process the exposure of the preview image. For a mobile terminal including a first camera and a second camera, by setting the first camera to correspond to the AC sub-area, and correlating the exposure parameters corresponding to the AC sub-area; Exposure parameters; in the process of controlling the first camera and the second camera to expose the preview image, you can first control the first camera to use the exposure parameters corresponding to the A sub-area and the second camera to use the exposure parameters corresponding to the B sub-area. The image is exposed, and then the first camera is controlled to use the exposure parameters corresponding to the C sub-area and the second camera is used to use the exposure parameters corresponding to the D sub-area to simultaneously expose the preview image, so that the total exposure time required is 2t. Compared with the first method, half of the exposure time can be saved, which effectively improves the exposure efficiency.

步骤305、对于每个子区域,将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像。Step 305 , for each sub-region, determine an image of the same region as the sub-region in the corresponding initial exposure image as the exposure image of the sub-region.

该步骤中,在获取得到每个子区域对应的初始曝光图像之后,对于每个子区域,可以将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像。In this step, after the initial exposure image corresponding to each sub-region is obtained, for each sub-region, an image of the same region as the sub-region in the corresponding initial exposure image may be determined as the exposure image of the sub-region.

具体的,比如使用第一子区域对应的第一曝光参数对预览图像进行曝光处理,可以得到第一初始曝光图像,并将初始曝光图像中对应第一子区域的图像作为第一子区域的曝光图像。Specifically, for example, using the first exposure parameters corresponding to the first sub-region to perform exposure processing on the preview image, the first initial exposure image can be obtained, and the image corresponding to the first sub-region in the initial exposure image is used as the exposure of the first sub-region image.

步骤306、将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像。Step 306 , performing image composition processing on the exposure images corresponding to all sub-regions, and outputting a high dynamic range image.

该步骤中,将步骤305获取得到的所有子区域对应的曝光图像进行拼接合成处理,即可得到预览图像的高动态范围图像,并输出该高动态范围图像。In this step, the exposure images corresponding to all sub-regions obtained in step 305 are spliced and synthesized to obtain a high dynamic range image of the preview image, and the high dynamic range image is output.

在本实施方式中,通过将预览图像划分成N个子区域,并获取每个子区域的曝光参数,使用每个子区域各自对应的曝光参数分别对预览图像进行曝光处理,可以得到与每个子区域对应的初始曝光图像,并将每个初始曝光图像中与其对应的子区域对应的图像确定为该子区域对应的曝光图像,并将所有子区域对应的曝光图像进行拼接合成处理,即可得到预览图像的高动态范围图像。相比于现有技术,采用这种方式合成得到的高动态范围图像更为清晰和真实,有效的提升了高动态范围图像的拍摄效果。In this embodiment, by dividing the preview image into N sub-areas, obtaining the exposure parameters of each sub-area, and using the exposure parameters corresponding to each sub-area to perform exposure processing on the preview image respectively, the exposure corresponding to each sub-area can be obtained. The initial exposure image, and the image corresponding to the corresponding sub-region in each initial exposure image is determined as the exposure image corresponding to the sub-region, and the exposure images corresponding to all sub-regions are spliced and synthesized to obtain the preview image. High dynamic range images. Compared with the prior art, the high dynamic range image synthesized in this way is clearer and more real, which effectively improves the shooting effect of the high dynamic range image.

本发明实施例的高动态范围图像拍摄方法,通过获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;对于每个子区域,将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。这样可以有效提升高动态范围图像的拍摄效果。In the high dynamic range image shooting method of the embodiment of the present invention, the preview image collected by the camera is obtained; the preview image is divided into N sub-regions; the exposure parameters of each sub-region are obtained; according to the exposure parameters corresponding to each sub-region, Perform exposure processing on the preview image respectively to obtain an initial exposure image corresponding to each sub-area; for each sub-area, determine an image of the same area as the sub-area in the corresponding initial exposure image as the exposure of the sub-area image; performing image synthesis processing on exposure images corresponding to all sub-regions, and outputting a high dynamic range image; wherein, N is an integer greater than 1. This can effectively improve the shooting effect of high dynamic range images.

参见图4,图4是本发明一实施例提供的移动终端的结构图,如图4所示,移动终端400包括摄像头,所述移动终端400还包括第一获取模块401、划分模块402、第二获取模块403、确定模块404和合成模块405,其中,第一获取模块401与划分模块402连接,划分模块402还与第二获取模块403连接,第二获取模块403还与确定模块404连接,确定模块404还与合成模块405连接:Referring to FIG. 4, FIG. 4 is a structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. Two acquisition modules 403, a determination module 404 and a synthesis module 405, wherein the first acquisition module 401 is connected to the division module 402, the division module 402 is also connected to the second acquisition module 403, and the second acquisition module 403 is also connected to the determination module 404, The determination module 404 is also connected with the synthesis module 405:

第一获取模块401,用于获取摄像头采集的预览图像;The first obtaining module 401 is used to obtain the preview image collected by the camera;

划分模块402,用于将所述预览图像划分成N个子区域;A division module 402, configured to divide the preview image into N sub-regions;

第二获取模块403,用于获取每个子区域的曝光参数;The second obtaining module 403 is used to obtain the exposure parameters of each sub-region;

确定模块404,用于基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;A determining module 404, configured to determine an exposure image corresponding to each sub-region based on the exposure parameters corresponding to each sub-region;

合成模块405,用于将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;A synthesis module 405, configured to perform image synthesis processing on the exposure images corresponding to all sub-regions, and output a high dynamic range image;

其中,N为大于1的整数。Wherein, N is an integer greater than 1.

可选的,如图5所示,所述确定模块404包括:Optionally, as shown in FIG. 5, the determining module 404 includes:

曝光子模块4041,用于按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;The exposure sub-module 4041 is configured to respectively perform exposure processing on the preview image according to the exposure parameters corresponding to each sub-region, so as to obtain an initial exposure image corresponding to each sub-region;

第一确定子模块4042,用于对于每个子区域,将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像。The first determination sub-module 4042 is configured to, for each sub-region, determine an image of the same region as the sub-region in the corresponding initial exposure image as the exposure image of the sub-region.

可选的,所述摄像头的数量为M,且M为大于1的整数;如图6所示,所述曝光子模块4041包括:Optionally, the number of the cameras is M, and M is an integer greater than 1; as shown in FIG. 6, the exposure submodule 4041 includes:

第一确定单元40411,用于根据M和N的大小关系,确定每个摄像头对应的目标子区域;The first determination unit 40411 is configured to determine the target sub-area corresponding to each camera according to the size relationship between M and N;

第二确定单元40412,用于根据所述每个摄像头对应的目标子区域,确定每个摄像头对应的目标曝光参数;The second determining unit 40412 is configured to determine a target exposure parameter corresponding to each camera according to the target sub-area corresponding to each camera;

曝光单元40413,用于控制所有摄像头按照各自对应的目标曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;The exposure unit 40413 is configured to control all the cameras to respectively perform exposure processing on the preview image according to their corresponding target exposure parameters, so as to obtain an initial exposure image corresponding to each sub-region;

其中,每个摄像头对应S个目标子区域,每个摄像头对应S个目标曝光参数,且S为大于0的整数。Wherein, each camera corresponds to S target sub-areas, each camera corresponds to S target exposure parameters, and S is an integer greater than 0.

可选的,所述划分模块402,具体用于基于所述预览图像在空间平面的分布,将所述预览图像划分成N个子区域。Optionally, the division module 402 is specifically configured to divide the preview image into N sub-regions based on the distribution of the preview image on a spatial plane.

可选的,如图7所示,所述划分模块402包括:Optionally, as shown in FIG. 7, the dividing module 402 includes:

检测子模块4021,用于对所述预览图像进行场景检测,获得场景检测结果;The detection sub-module 4021 is configured to perform scene detection on the preview image to obtain a scene detection result;

第一划分子模块4022,用于根据场景检测结果,将所述预览图像划分成N个子区域。The first division sub-module 4022 is configured to divide the preview image into N sub-regions according to the scene detection result.

可选的,如图8所示,所述第二获取模块403包括:Optionally, as shown in FIG. 8, the second obtaining module 403 includes:

第一测光子模块4031,用于对每个子区域进行中央重点测光,获得每个子区域的测光结果;The first photometry sub-module 4031 is configured to perform center-weighted photometry on each sub-region, and obtain a photometry result of each sub-region;

第二确定子模块4032,用于根据所述每个子区域的测光结果,确定每个子区域的曝光参数。The second determination sub-module 4032 is configured to determine the exposure parameter of each sub-region according to the photometry result of each sub-region.

可选的,所述划分模块402,具体用于基于所述预览图像中每个像素点的亮度值,将所述预览图像划分成N个子区域;Optionally, the division module 402 is specifically configured to divide the preview image into N sub-regions based on the brightness value of each pixel in the preview image;

其中,每个子区域对应一个亮度值区间。Wherein, each sub-region corresponds to a brightness value interval.

可选的,如图9所示,所述划分模块402包括:Optionally, as shown in FIG. 9, the dividing module 402 includes:

获取子模块4023,用于获取所述预览图像中每个像素点的亮度值;Obtaining sub-module 4023, configured to obtain the brightness value of each pixel in the preview image;

第二划分子模块4024,用于将亮度值小于第一预设亮度值的所有像素点划分为第一子区域;The second dividing sub-module 4024 is used to divide all pixels whose luminance value is less than the first preset luminance value into the first sub-region;

第三划分子模块4025,用于将亮度值大于第二预设亮度值的所有像素点划分为第二子区域;The third dividing sub-module 4025 is used to divide all pixels whose luminance value is greater than the second preset luminance value into the second sub-region;

第四划分子模块4026,用于将亮度值处于第一预设亮度值与第二预设亮度值之间的所有像素点划分为第三子区域。The fourth dividing sub-module 4026 is configured to divide all pixels whose luminance values are between the first preset luminance value and the second preset luminance value into third sub-regions.

可选的,如图10所示,所述第二获取模块403包括:Optionally, as shown in FIG. 10, the second acquiring module 403 includes:

第二测光子模块4033,用于对每个子区域进行点测光,获得每个子区域的测光结果;The second photometry sub-module 4033 is configured to perform spot photometry on each sub-region, and obtain a photometry result of each sub-region;

第三确定子模块4034,用于根据所述每个子区域的测光结果,确定每个子区域的曝光参数。The third determination sub-module 4034 is configured to determine the exposure parameters of each sub-area according to the photometry results of each sub-area.

移动终端400能够实现图1至图3的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 can implement various processes implemented by the mobile terminal in the method embodiments shown in FIG. 1 to FIG. 3 , and details will not be repeated here to avoid repetition.

本发明实施例的移动终端400,通过获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。这样可以有效提升高动态范围图像的拍摄效果。The mobile terminal 400 of the embodiment of the present invention obtains the preview image collected by the camera; divides the preview image into N sub-regions; obtains the exposure parameters of each sub-region; Exposure images corresponding to the regions; performing image synthesis processing on the exposure images corresponding to all sub-regions, and outputting high dynamic range images; wherein, N is an integer greater than 1. This can effectively improve the shooting effect of high dynamic range images.

图11是本发明又一实施提供的移动终端的结构图,如图11所示,该移动终端1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、处理器1110、电源1111、摄像头1112等部件。本领域技术人员可以理解,图11中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Fig. 11 is a structural diagram of a mobile terminal provided by another embodiment of the present invention. As shown in Fig. 11, the mobile terminal 1100 includes but not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, and a sensor 1105 , a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, a power supply 1111, a camera 1112 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 11 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器1110,用于获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。Wherein, the processor 1110 is used to obtain a preview image collected by the camera; divide the preview image into N sub-regions; obtain the exposure parameters of each sub-region; determine the corresponding The exposure images of all sub-regions are subjected to image synthesis processing to output high dynamic range images; wherein, N is an integer greater than 1.

可选的,所述处理器1110还用于:按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;对于每个子区域,将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像。Optionally, the processor 1110 is further configured to: respectively perform exposure processing on the preview image according to the exposure parameters corresponding to each sub-region to obtain an initial exposure image corresponding to each sub-region; for each sub-region, Determining an image of the same area as the sub-area in the corresponding initial exposure image as the exposure image of the sub-area.

可选的,所述摄像头的数量为M,且M为大于1的整数;Optionally, the number of the cameras is M, and M is an integer greater than 1;

所述处理器1110还用于:根据M和N的大小关系,确定每个摄像头对应的目标子区域;根据所述每个摄像头对应的目标子区域,确定每个摄像头对应的目标曝光参数;控制所有摄像头按照各自对应的目标曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;其中,每个摄像头对应S个目标子区域,每个摄像头对应S个目标曝光参数,且S为大于0的整数。The processor 1110 is further configured to: determine the target sub-area corresponding to each camera according to the size relationship between M and N; determine the target exposure parameter corresponding to each camera according to the target sub-area corresponding to each camera; All cameras respectively perform exposure processing on the preview image according to their corresponding target exposure parameters to obtain an initial exposure image corresponding to each sub-region; wherein, each camera corresponds to S target sub-regions, and each camera corresponds to S targets Exposure parameter, and S is an integer greater than 0.

可选的,所述处理器1110还用于:基于所述预览图像在空间平面的分布,将所述预览图像划分成N个子区域。Optionally, the processor 1110 is further configured to: divide the preview image into N subregions based on the distribution of the preview image on a spatial plane.

可选的,所述处理器1110还用于:对所述预览图像进行场景检测,获得场景检测结果;根据场景检测结果,将所述预览图像划分成N个子区域。Optionally, the processor 1110 is further configured to: perform scene detection on the preview image to obtain a scene detection result; divide the preview image into N subregions according to the scene detection result.

可选的,所述处理器1110还用于:对每个子区域进行中央重点测光,获得每个子区域的测光结果;根据所述每个子区域的测光结果,确定每个子区域的曝光参数。Optionally, the processor 1110 is further configured to: perform center-weighted photometry on each sub-region to obtain a photometry result of each sub-region; determine an exposure parameter of each sub-region according to the photometry result of each sub-region .

可选的,所述处理器1110还用于:基于所述预览图像中每个像素点的亮度值,将所述预览图像划分成N个子区域;其中,每个子区域对应一个亮度值区间。Optionally, the processor 1110 is further configured to: divide the preview image into N subregions based on the brightness value of each pixel in the preview image; wherein each subregion corresponds to a brightness value interval.

可选的,所述处理器1110还用于:获取所述预览图像中每个像素点的亮度值;将亮度值小于第一预设亮度值的所有像素点划分为第一子区域;将亮度值大于第二预设亮度值的所有像素点划分为第二子区域;将亮度值处于第一预设亮度值与第二预设亮度值之间的所有像素点划分为第三子区域。Optionally, the processor 1110 is further configured to: obtain the brightness value of each pixel in the preview image; divide all pixels whose brightness values are less than a first preset brightness value into a first sub-region; divide the brightness All pixels whose values are greater than the second preset brightness value are divided into the second sub-region; all pixels whose brightness value is between the first preset brightness value and the second preset brightness value are divided into the third sub-region.

可选的,所述处理器1110还用于:对每个子区域进行点测光,获得每个子区域的测光结果;根据所述每个子区域的测光结果,确定每个子区域的曝光参数。Optionally, the processor 1110 is further configured to: perform spot metering on each sub-region to obtain a photometry result of each sub-region; determine an exposure parameter of each sub-region according to the photometry result of each sub-region.

移动终端1100能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 1100 is capable of implementing various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.

本发明实施例的移动终端1100,通过获取摄像头采集的预览图像;将所述预览图像划分成N个子区域;获取每个子区域的曝光参数;基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;其中,N为大于1的整数。这样可以有效提升高动态范围图像的拍摄效果。The mobile terminal 1100 of the embodiment of the present invention obtains the preview image collected by the camera; divides the preview image into N sub-regions; obtains the exposure parameters of each sub-region; Exposure images corresponding to the regions; performing image synthesis processing on the exposure images corresponding to all sub-regions, and outputting high dynamic range images; wherein, N is an integer greater than 1. This can effectively improve the shooting effect of high dynamic range images.

应理解的是,本发明实施例中,射频单元1101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1110处理;另外,将上行的数据发送给基站。通常,射频单元1101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 1101 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 1110; Uplink data is sent to the base station. Generally, the radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块1102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 1102, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元1103可以将射频单元1101或网络模块1102接收的或者在存储器1109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1103还可以提供与移动终端1100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1103包括扬声器、蜂鸣器以及受话器等。The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as sound. Also, the audio output unit 1103 can also provide audio output related to a specific function performed by the mobile terminal 1100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.

输入单元1104用于接收音频或视频信号。输入单元1104可以包括图形处理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1106上。经图形处理器11041处理后的图像帧可以存储在存储器1109(或其它存储介质)中或者经由射频单元1101或网络模块1102进行发送。麦克风11042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1101发送到移动通信基站的格式输出。The input unit 1104 is used to receive audio or video signals. The input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 1106 . The image frames processed by the graphics processor 11041 may be stored in the memory 1109 (or other storage medium) or sent via the radio frequency unit 1101 or the network module 1102 . The microphone 11042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format transmittable to a mobile communication base station via the radio frequency unit 1101 for output in the case of a phone call mode.

移动终端1100还包括至少一种传感器1105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板11061的亮度,接近传感器可在移动终端1100移动到耳边时,关闭显示面板11061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 1100 also includes at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 11061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 1105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元1106用于显示由用户输入的信息或提供给用户的信息。显示单元1106可包括显示面板11061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板11061。The display unit 1106 is used to display information input by the user or information provided to the user. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元1107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1107包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板11071上或在触控面板11071附近的操作)。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1110,接收处理器1110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板11071。除了触控面板11071,用户输入单元1107还可以包括其他输入设备11072。具体地,其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1107 can be used to receive input number or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072 . The touch panel 11071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger and a stylus on the touch panel 11071 or near the touch panel 11071 operate). The touch panel 11071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 1110, receive the command sent by the processor 1110 and execute it. In addition, the touch panel 11071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 11071 , the user input unit 1107 may also include other input devices 11072 . Specifically, other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板11071可覆盖在显示面板11061上,当触控面板11071检测到在其上或附近的触摸操作后,传送给处理器1110以确定触摸事件的类型,随后处理器1110根据触摸事件的类型在显示面板11061上提供相应的视觉输出。虽然在图11中,触控面板11071与显示面板11061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板11071与显示面板11061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 11071 can be covered on the display panel 11061, and when the touch panel 11071 detects a touch operation on or near it, it will be sent to the processor 1110 to determine the type of the touch event, and then the processor 1110 will The type of event provides a corresponding visual output on the display panel 11061. Although in FIG. 11, the touch panel 11071 and the display panel 11061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 11071 and the display panel 11061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元1108为外部装置与移动终端1100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端1100内的一个或多个元件或者可以用于在移动终端1100和外部装置之间传输数据。The interface unit 1108 is an interface for connecting an external device to the mobile terminal 1100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 1108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1109 can be used to store software programs as well as various data. The memory 1109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 1109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器1110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器1109内的软件程序和/或模块,以及调用存储在存储器1109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器1110可包括一个或多个处理单元;优选的,处理器1110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。The processor 1110 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 1109, and calls data stored in the memory 1109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1110 .

移动终端1100还可以包括给各个部件供电的电源1111(比如电池),优选的,电源1111可以通过电源管理系统与处理器1110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 1100 can also include a power supply 1111 (such as a battery) for supplying power to various components. Preferably, the power supply 1111 can be logically connected to the processor 1110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,移动终端1100包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 1100 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器1110,存储器1109,存储在存储器1109上并可在所述处理器1110上运行的计算机程序,该计算机程序被处理器1110执行时实现上述高动态范围图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 1110, a memory 1109, a computer program stored in the memory 1109 and operable on the processor 1110, when the computer program is executed by the processor 1110 Each process of the above embodiment of the high dynamic range image capturing method can be realized, and the same technical effect can be achieved, so in order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述高动态范围图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned high dynamic range image capture method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.

Claims (20)

1.一种高动态范围图像拍摄方法,应用于包括摄像头的移动终端,其特征在于,包括:1. A high dynamic range image capturing method, applied to a mobile terminal comprising a camera, characterized in that, comprising: 获取摄像头采集的预览图像;Obtain the preview image collected by the camera; 将所述预览图像划分成N个子区域;Divide the preview image into N sub-regions; 获取每个子区域的曝光参数;Obtain the exposure parameters of each sub-region; 基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;determining an exposure image corresponding to each sub-area based on the exposure parameters corresponding to each sub-area; 将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;Perform image synthesis processing on the exposure images corresponding to all sub-regions, and output a high dynamic range image; 其中,N为大于1的整数。Wherein, N is an integer greater than 1. 2.根据权利要求1所述的方法,其特征在于,所述基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像的步骤,包括:2. The method according to claim 1, wherein the step of determining the exposure image corresponding to each sub-region based on the exposure parameters corresponding to each sub-region comprises: 按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;performing exposure processing on the preview image respectively according to the exposure parameters corresponding to each sub-area to obtain an initial exposure image corresponding to each sub-area; 对于每个子区域,将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像。For each sub-region, an image of the same region as the sub-region in the corresponding initial exposure image is determined as the exposure image of the sub-region. 3.根据权利要求2所述的方法,其特征在于,所述摄像头的数量为M,且M为大于1的整数;3. The method according to claim 2, wherein the number of the cameras is M, and M is an integer greater than 1; 所述按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像的步骤,包括:The step of performing exposure processing on the preview image respectively according to the exposure parameters corresponding to each sub-region to obtain an initial exposure image corresponding to each sub-region includes: 根据M和N的大小关系,确定每个摄像头对应的目标子区域;Determine the target sub-area corresponding to each camera according to the size relationship between M and N; 根据所述每个摄像头对应的目标子区域,确定每个摄像头对应的目标曝光参数;According to the target sub-area corresponding to each camera, determine the target exposure parameters corresponding to each camera; 控制所有摄像头按照各自对应的目标曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;Controlling all cameras to perform exposure processing on the preview image respectively according to their corresponding target exposure parameters, to obtain an initial exposure image corresponding to each sub-region; 其中,每个摄像头对应S个目标子区域,每个摄像头对应S个目标曝光参数,且S为大于0的整数。Wherein, each camera corresponds to S target sub-areas, each camera corresponds to S target exposure parameters, and S is an integer greater than 0. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述将所述预览图像划分成N个子区域的步骤,包括:4. The method according to any one of claims 1 to 3, wherein the step of dividing the preview image into N subregions comprises: 基于所述预览图像在空间平面的分布,将所述预览图像划分成N个子区域。Based on the distribution of the preview image on a spatial plane, divide the preview image into N sub-regions. 5.根据权利要求1至3中任一项所述的方法,其特征在于,所述将所述预览图像划分成N个子区域的步骤,包括:5. The method according to any one of claims 1 to 3, wherein the step of dividing the preview image into N sub-regions comprises: 对所述预览图像进行场景检测,获得场景检测结果;Scene detection is performed on the preview image to obtain a scene detection result; 根据场景检测结果,将所述预览图像划分成N个子区域。According to the scene detection result, the preview image is divided into N sub-regions. 6.根据权利要求4所述的方法,其特征在于,所述获取每个子区域的曝光参数的步骤,包括:6. The method according to claim 4, wherein the step of obtaining the exposure parameters of each sub-region comprises: 对每个子区域进行中央重点测光,获得每个子区域的测光结果;Perform center-weighted photometry on each sub-area to obtain the photometry result of each sub-area; 根据所述每个子区域的测光结果,确定每个子区域的曝光参数。According to the light metering result of each sub-area, the exposure parameter of each sub-area is determined. 7.根据权利要求1至3中任一项所述的方法,其特征在于,所述将所述预览图像划分成N个子区域的步骤,包括:7. The method according to any one of claims 1 to 3, wherein the step of dividing the preview image into N sub-regions comprises: 基于所述预览图像中每个像素点的亮度值,将所述预览图像划分成N个子区域;Divide the preview image into N sub-regions based on the brightness value of each pixel in the preview image; 其中,每个子区域对应一个亮度值区间。Wherein, each sub-region corresponds to a brightness value interval. 8.根据权利要求7所述的方法,其特征在于,所述基于所述预览图像中每个像素点的亮度值,将所述预览图像划分成N个子区域的步骤,包括:8. The method according to claim 7, wherein the step of dividing the preview image into N sub-regions based on the brightness value of each pixel in the preview image comprises: 获取所述预览图像中每个像素点的亮度值;Obtain the brightness value of each pixel in the preview image; 将亮度值小于第一预设亮度值的所有像素点划分为第一子区域;Divide all pixels whose luminance values are less than a first preset luminance value into first sub-regions; 将亮度值大于第二预设亮度值的所有像素点划分为第二子区域;dividing all pixels whose luminance values are greater than a second preset luminance value into second sub-regions; 将亮度值处于第一预设亮度值与第二预设亮度值之间的所有像素点划分为第三子区域。All pixels whose luminance values are between the first preset luminance value and the second preset luminance value are divided into a third sub-region. 9.根据权利要求7所述的方法,其特征在于,所述获取每个子区域的曝光参数的步骤,包括:9. The method according to claim 7, wherein the step of obtaining the exposure parameters of each sub-region comprises: 对每个子区域进行点测光,获得每个子区域的测光结果;Perform spot metering on each sub-area to obtain the photometry results of each sub-area; 根据所述每个子区域的测光结果,确定每个子区域的曝光参数。According to the light metering result of each sub-area, the exposure parameter of each sub-area is determined. 10.一种移动终端,包括摄像头,其特征在于,所述移动终端还包括:10. A mobile terminal, comprising a camera, characterized in that the mobile terminal also comprises: 第一获取模块,用于获取摄像头采集的预览图像;The first obtaining module is used to obtain the preview image collected by the camera; 划分模块,用于将所述预览图像划分成N个子区域;A division module, configured to divide the preview image into N sub-regions; 第二获取模块,用于获取每个子区域的曝光参数;The second obtaining module is used to obtain the exposure parameters of each sub-region; 确定模块,用于基于所述每个子区域对应的曝光参数,确定每个子区域对应的曝光图像;A determining module, configured to determine an exposure image corresponding to each sub-region based on the exposure parameters corresponding to each sub-region; 合成模块,用于将所有子区域对应的曝光图像进行图像合成处理,输出高动态范围图像;A synthesis module, configured to perform image synthesis processing on exposure images corresponding to all sub-regions, and output a high dynamic range image; 其中,N为大于1的整数。Wherein, N is an integer greater than 1. 11.根据权利要求10所述的移动终端,其特征在于,所述确定模块包括:11. The mobile terminal according to claim 10, wherein the determining module comprises: 曝光子模块,用于按照所述每个子区域对应的曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;The exposure sub-module is configured to respectively perform exposure processing on the preview image according to the exposure parameters corresponding to each sub-region, so as to obtain an initial exposure image corresponding to each sub-region; 第一确定子模块,用于对于每个子区域,将对应的初始曝光图像中与所述子区域相同区域的图像确定为所述子区域的曝光图像。The first determining sub-module is configured to, for each sub-region, determine an image of the same region as the sub-region in the corresponding initial exposure image as the exposure image of the sub-region. 12.根据权利要求11所述的移动终端,其特征在于,所述摄像头的数量为M,且M为大于1的整数;12. The mobile terminal according to claim 11, wherein the number of the cameras is M, and M is an integer greater than 1; 所述曝光子模块包括:The exposure submodule includes: 第一确定单元,用于根据M和N的大小关系,确定每个摄像头对应的目标子区域;The first determination unit is used to determine the target sub-area corresponding to each camera according to the size relationship between M and N; 第二确定单元,用于根据所述每个摄像头对应的目标子区域,确定每个摄像头对应的目标曝光参数;The second determining unit is configured to determine a target exposure parameter corresponding to each camera according to the target sub-area corresponding to each camera; 曝光单元,用于控制所有摄像头按照各自对应的目标曝光参数,分别对所述预览图像进行曝光处理,得到与每个子区域对应的初始曝光图像;an exposure unit, configured to control all the cameras to perform exposure processing on the preview image respectively according to their corresponding target exposure parameters, to obtain an initial exposure image corresponding to each sub-region; 其中,每个摄像头对应S个目标子区域,每个摄像头对应S个目标曝光参数,且S为大于0的整数。Wherein, each camera corresponds to S target sub-areas, each camera corresponds to S target exposure parameters, and S is an integer greater than 0. 13.根据权利要求10至12中任一项所述的移动终端,其特征在于,所述划分模块,具体用于基于所述预览图像在空间平面的分布,将所述预览图像划分成N个子区域。13. The mobile terminal according to any one of claims 10 to 12, wherein the division module is specifically configured to divide the preview image into N subsections based on the distribution of the preview image on a spatial plane. area. 14.根据权利要求10至12中任一项所述的移动终端,其特征在于,所述划分模块包括:14. The mobile terminal according to any one of claims 10 to 12, wherein the dividing module comprises: 检测子模块,用于对所述预览图像进行场景检测,获得场景检测结果;The detection sub-module is used to perform scene detection on the preview image to obtain a scene detection result; 第一划分子模块,用于根据场景检测结果,将所述预览图像划分成N个子区域。The first dividing sub-module is used to divide the preview image into N sub-regions according to the scene detection result. 15.根据权利要求13所述的移动终端,其特征在于,所述第二获取模块包括:15. The mobile terminal according to claim 13, wherein the second acquiring module comprises: 第一测光子模块,用于对每个子区域进行中央重点测光,获得每个子区域的测光结果;The first photometry sub-module is configured to perform center-weighted photometry on each sub-region, and obtain a photometry result of each sub-region; 第二确定子模块,用于根据所述每个子区域的测光结果,确定每个子区域的曝光参数。The second determination sub-module is configured to determine the exposure parameters of each sub-area according to the photometry results of each sub-area. 16.根据权利要求10至12中任一项所述的移动终端,其特征在于,所述划分模块,具体用于基于所述预览图像中每个像素点的亮度值,将所述预览图像划分成N个子区域;16. The mobile terminal according to any one of claims 10 to 12, wherein the dividing module is specifically configured to divide the preview image based on the brightness value of each pixel in the preview image into N sub-regions; 其中,每个子区域对应一个亮度值区间。Wherein, each sub-region corresponds to a brightness value interval. 17.根据权利要求16所述的移动终端,其特征在于,所述划分模块包括:17. The mobile terminal according to claim 16, wherein the dividing module comprises: 获取子模块,用于获取所述预览图像中每个像素点的亮度值;An acquisition submodule, configured to acquire the brightness value of each pixel in the preview image; 第二划分子模块,用于将亮度值小于第一预设亮度值的所有像素点划分为第一子区域;The second dividing sub-module is used to divide all pixels whose luminance value is less than the first preset luminance value into the first sub-region; 第三划分子模块,用于将亮度值大于第二预设亮度值的所有像素点划分为第二子区域;The third dividing sub-module is used to divide all pixels whose luminance value is greater than the second preset luminance value into the second sub-region; 第四划分子模块,用于将亮度值处于第一预设亮度值与第二预设亮度值之间的所有像素点划分为第三子区域。The fourth dividing sub-module is used to divide all pixels whose luminance values are between the first preset luminance value and the second preset luminance value into third sub-regions. 18.根据权利要求16所述的移动终端,其特征在于,所述第二获取模块包括:18. The mobile terminal according to claim 16, wherein the second acquiring module comprises: 第二测光子模块,用于对每个子区域进行点测光,获得每个子区域的测光结果;The second photometry sub-module is used to perform spot metering on each sub-area to obtain a photometry result of each sub-area; 第三确定子模块,用于根据所述每个子区域的测光结果,确定每个子区域的曝光参数。The third determination sub-module is configured to determine the exposure parameters of each sub-region according to the photometry result of each sub-region. 19.一种移动终端,其特征中在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至9中任一项所述的高动态范围图像拍摄方法的步骤。19. A mobile terminal, characterized in that it includes a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the following The steps of the high dynamic range image capturing method described in any one of claims 1 to 9. 20.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至9中任一项所述的高动态范围图像拍摄方法的步骤。20. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is realized. Steps of a high dynamic range image capture method.
CN201710953004.5A 2017-10-13 2017-10-13 A kind of high dynamic range images image pickup method and mobile terminal Pending CN107592471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710953004.5A CN107592471A (en) 2017-10-13 2017-10-13 A kind of high dynamic range images image pickup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710953004.5A CN107592471A (en) 2017-10-13 2017-10-13 A kind of high dynamic range images image pickup method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107592471A true CN107592471A (en) 2018-01-16

Family

ID=61053367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710953004.5A Pending CN107592471A (en) 2017-10-13 2017-10-13 A kind of high dynamic range images image pickup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107592471A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335272A (en) * 2018-01-31 2018-07-27 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of shooting picture
CN108377341A (en) * 2018-05-14 2018-08-07 Oppo广东移动通信有限公司 photographing method, device, terminal and storage medium
CN108540729A (en) * 2018-03-05 2018-09-14 维沃移动通信有限公司 Image processing method and mobile terminal
CN108900785A (en) * 2018-09-18 2018-11-27 Oppo广东移动通信有限公司 Exposure control method and device and electronic equipment
CN110233972A (en) * 2018-03-06 2019-09-13 福州瑞芯微电子股份有限公司 A kind of image capture method and device
CN110381263A (en) * 2019-08-20 2019-10-25 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN110581956A (en) * 2019-08-26 2019-12-17 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic device
CN111083389A (en) * 2019-12-27 2020-04-28 维沃移动通信有限公司 A method and apparatus for capturing images
CN111800580A (en) * 2019-04-08 2020-10-20 福州瑞芯微电子股份有限公司 High dynamic image synthesis method and storage medium
CN112040130A (en) * 2020-09-08 2020-12-04 Oppo(重庆)智能科技有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN112672060A (en) * 2020-12-29 2021-04-16 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN113099123A (en) * 2021-04-07 2021-07-09 中煤科工集团重庆研究院有限公司 High dynamic range video image acquisition method
CN113132644A (en) * 2019-12-31 2021-07-16 深圳市海思半导体有限公司 Method and equipment for generating high dynamic range image
CN113132646A (en) * 2021-03-30 2021-07-16 深圳市阿达视高新技术有限公司 High dynamic range image generation method and device, computer equipment and storage medium
CN114666497A (en) * 2022-02-28 2022-06-24 青岛海信移动通信技术股份有限公司 Imaging method, terminal device, storage medium, and program product
WO2024148968A1 (en) * 2023-01-11 2024-07-18 荣耀终端有限公司 Image preview method and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969534A (en) * 2009-07-27 2011-02-09 鸿富锦精密工业(深圳)有限公司 Method and system for realizing regional exposure of picture in photographic equipment
CN102122388A (en) * 2010-01-11 2011-07-13 三星电子株式会社 Apparatus and method for obtaining high dynamic range image
CN105611186A (en) * 2015-12-22 2016-05-25 北京奇虎科技有限公司 Exposure control method and exposure control system based on two cameras
CN106131449A (en) * 2016-07-27 2016-11-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN106657783A (en) * 2016-12-22 2017-05-10 努比亚技术有限公司 Image shooting device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969534A (en) * 2009-07-27 2011-02-09 鸿富锦精密工业(深圳)有限公司 Method and system for realizing regional exposure of picture in photographic equipment
CN102122388A (en) * 2010-01-11 2011-07-13 三星电子株式会社 Apparatus and method for obtaining high dynamic range image
CN105611186A (en) * 2015-12-22 2016-05-25 北京奇虎科技有限公司 Exposure control method and exposure control system based on two cameras
CN106131449A (en) * 2016-07-27 2016-11-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN106657783A (en) * 2016-12-22 2017-05-10 努比亚技术有限公司 Image shooting device and method

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335272A (en) * 2018-01-31 2018-07-27 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of shooting picture
CN108335272B (en) * 2018-01-31 2021-10-08 青岛海信移动通信技术股份有限公司 Method and device for shooting picture
CN108540729A (en) * 2018-03-05 2018-09-14 维沃移动通信有限公司 Image processing method and mobile terminal
CN110233972A (en) * 2018-03-06 2019-09-13 福州瑞芯微电子股份有限公司 A kind of image capture method and device
CN110233972B (en) * 2018-03-06 2021-06-18 瑞芯微电子股份有限公司 Camera shooting method and device
CN108377341A (en) * 2018-05-14 2018-08-07 Oppo广东移动通信有限公司 photographing method, device, terminal and storage medium
CN108900785A (en) * 2018-09-18 2018-11-27 Oppo广东移动通信有限公司 Exposure control method and device and electronic equipment
CN111800580A (en) * 2019-04-08 2020-10-20 福州瑞芯微电子股份有限公司 High dynamic image synthesis method and storage medium
CN110381263A (en) * 2019-08-20 2019-10-25 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN110581956A (en) * 2019-08-26 2019-12-17 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic device
CN111083389A (en) * 2019-12-27 2020-04-28 维沃移动通信有限公司 A method and apparatus for capturing images
CN111083389B (en) * 2019-12-27 2021-11-16 维沃移动通信有限公司 Method and device for shooting image
CN113132644A (en) * 2019-12-31 2021-07-16 深圳市海思半导体有限公司 Method and equipment for generating high dynamic range image
CN112040130A (en) * 2020-09-08 2020-12-04 Oppo(重庆)智能科技有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN112672060A (en) * 2020-12-29 2021-04-16 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN113132646A (en) * 2021-03-30 2021-07-16 深圳市阿达视高新技术有限公司 High dynamic range image generation method and device, computer equipment and storage medium
CN113132646B (en) * 2021-03-30 2021-12-10 深圳市阿达视高新技术有限公司 High dynamic range image generation method and device, computer equipment and storage medium
CN113099123A (en) * 2021-04-07 2021-07-09 中煤科工集团重庆研究院有限公司 High dynamic range video image acquisition method
CN114666497A (en) * 2022-02-28 2022-06-24 青岛海信移动通信技术股份有限公司 Imaging method, terminal device, storage medium, and program product
CN114666497B (en) * 2022-02-28 2024-03-15 青岛海信移动通信技术有限公司 Imaging method, terminal device and storage medium
WO2024148968A1 (en) * 2023-01-11 2024-07-18 荣耀终端有限公司 Image preview method and terminal device

Similar Documents

Publication Publication Date Title
CN107592471A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN107770438B (en) A kind of photographic method and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN107566739B (en) A camera method and mobile terminal
CN107566730B (en) A panoramic image shooting method and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107707827A (en) A kind of high-dynamics image image pickup method and mobile terminal
CN108924414B (en) A shooting method and terminal equipment
CN107580184A (en) A shooting method and mobile terminal
CN107483836B (en) A kind of image pickup method and mobile terminal
CN109218626B (en) Photographing method and terminal
CN107948505B (en) Panoramic shooting method and mobile terminal
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN108495029A (en) A kind of photographic method and mobile terminal
CN110213484B (en) A photographing method, terminal device and computer-readable storage medium
CN109104578B (en) An image processing method and mobile terminal
CN107623818B (en) Image exposure method and mobile terminal
CN107820022A (en) A kind of photographic method and mobile terminal
CN108718388B (en) Photographing method and mobile terminal
CN108449541A (en) A panoramic image shooting method and mobile terminal
CN107566749A (en) Image pickup method and mobile terminal
CN108513067A (en) A kind of filming control method and mobile terminal
CN108280817A (en) A kind of image processing method and mobile terminal
CN108616687B (en) A photographing method, device and mobile terminal
CN111131722A (en) Image processing method, electronic device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180116

RJ01 Rejection of invention patent application after publication