[go: up one dir, main page]

CN106060422B - Image exposure method and mobile terminal - Google Patents

Image exposure method and mobile terminal Download PDF

Info

Publication number
CN106060422B
CN106060422B CN201610533216.3A CN201610533216A CN106060422B CN 106060422 B CN106060422 B CN 106060422B CN 201610533216 A CN201610533216 A CN 201610533216A CN 106060422 B CN106060422 B CN 106060422B
Authority
CN
China
Prior art keywords
image
exposure
numbered frame
frame image
odd
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.)
Active
Application number
CN201610533216.3A
Other languages
Chinese (zh)
Other versions
CN106060422A (en
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 CN201610533216.3A priority Critical patent/CN106060422B/en
Publication of CN106060422A publication Critical patent/CN106060422A/en
Application granted granted Critical
Publication of CN106060422B publication Critical patent/CN106060422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Landscapes

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

Abstract

The present invention provides a kind of image exposure method and mobile terminals, first frame image is obtained the method comprise the steps that exposing with the first exposure parameter, it is exposed with the second exposure parameter and obtains the second frame image, wherein the first frame image and the second frame image are the image of camera continuous acquisition;According to predetermined local viewfinder range, the topography being overlapped in the second frame image with local viewfinder range is obtained;The first frame image and the topography are merged, generated a preview image.The image exposure scheme provided through the invention, the exposure effect that can only treat some region in exposure image are adjusted, therefore are able to ascend the quality of captured exposure image.

Description

一种图像曝光方法及移动终端Image exposure method and mobile terminal

技术领域technical field

本发明涉及图像处理技术领域,尤其是涉及一种图像曝光方法及移动终端。The present invention relates to the technical field of image processing, and in particular, to an image exposure method and a mobile terminal.

背景技术Background technique

在图像的拍摄或取景显示时,控制摄像头按照适当的曝光补偿进行合理曝光是得到高质量的图像的至关重要的条件。目前的移动终端大都支持手动调节曝光,手动调节曝光可以通过以下方式完成:用户通过点击设定按钮触发移动终端在屏幕上显示曝光条,用户通过滑动曝光条中的游标,即可对图像拍摄时的曝光补偿进行设置,达到调节曝光效果的目的。During image shooting or framing display, controlling the camera to perform reasonable exposure according to appropriate exposure compensation is a crucial condition for obtaining high-quality images. Most of the current mobile terminals support manual exposure adjustment. Manual exposure adjustment can be done in the following ways: the user clicks the setting button to trigger the mobile terminal to display the exposure bar on the screen, and the user slides the cursor in the exposure bar to adjust the exposure when the image is captured. Set the exposure compensation to achieve the purpose of adjusting the exposure effect.

目前,移动终端在对图像进行曝光处理时,均是对图像整体进行相同曝光补偿处理,也就是说,若用户想要调节图像中某个区域的曝光效果,则该图像中其它区域也会被调整为相同的曝光效果。例如:在对某图像进行手动曝光处理时,为提升图像中暗处的图像亮度而将曝光补偿值调高,那么,最终曝光出的图像暗处的区域亮度虽能够得到提升,但是未曝光补偿前亮度比较高的区域则会出现过曝光的情况。At present, when the mobile terminal performs exposure processing on the image, the same exposure compensation processing is performed on the entire image. That is to say, if the user wants to adjust the exposure effect of a certain area in the image, other areas in the image will also be affected. Adjust for the same exposure effect. For example: when performing manual exposure processing on an image, the exposure compensation value is increased in order to increase the brightness of the dark part of the image. Then, although the brightness of the dark part of the final exposed image can be improved, the exposure compensation is not used. Areas with high front brightness will be overexposed.

可见,现有的图像曝光方案,因无法仅调节待曝光图像中某个区域的曝光效果,故无法获得出高质量的曝光图像。It can be seen that the existing image exposure scheme cannot obtain a high-quality exposure image because it cannot only adjust the exposure effect of a certain area in the image to be exposed.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种图像曝光方法及移动终端,以解决现有的图像处理方案中存在的因无法仅调节待曝光图像中某个区域的曝光效果而导致的无法获得出高质量的曝光图像的问题。Embodiments of the present invention provide an image exposure method and a mobile terminal, so as to solve the inability to obtain high-quality exposed images in the existing image processing solutions due to the inability to only adjust the exposure effect of a certain area in the image to be exposed. The problem.

第一方面,本发明实施例提供了一种图像曝光方法,所述方法包括:以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像,其中,所述第一帧图像和第二帧图像为摄像头连续采集的图像;根据预先确定的局部取景范围,获取所述第二帧图像中与局部取景范围重合的局部图像;对所述第一帧图像和所述局部图像进行合并,生成预览图像。In a first aspect, an embodiment of the present invention provides an image exposure method, the method includes: exposing with a first exposure parameter to obtain a first frame of image, and exposing with a second exposure parameter to obtain a second frame of image, wherein the first frame of image The first frame of image and the second frame of image are images continuously collected by the camera; according to the predetermined local framing range, obtain the partial image in the second frame of image that overlaps with the local framing range; Partial images are merged to generate preview images.

第二方面,本发明实施例还提供了一种移动终端,所述移动终端包括:第一图像获取模块,用于以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像,其中,所述第一帧图像和第二帧图像为摄像头连续采集的图像;局部图像获取模块,用于根据预先确定的局部取景范围,获取所述第二帧图像中与局部取景范围重合的局部图像;合并模块,用于对所述第一帧图像和所述局部图像进行合并,生成预览图像。In a second aspect, an embodiment of the present invention further provides a mobile terminal, the mobile terminal includes: a first image acquisition module, configured to obtain a first frame of image by exposure with a first exposure parameter, and obtain a first frame of image by exposure with a second exposure parameter Two frames of images, wherein the first frame of images and the second frame of images are images continuously collected by the camera; the partial image acquisition module is configured to acquire, according to a predetermined local viewing range, the second frame of images and the partial viewfinder Partial images with overlapping ranges; a merging module, configured to combine the first frame image and the partial image to generate a preview image.

本发明实施例提供的图像曝光方法及移动终端,以不同曝光参数获得连续采集的两帧图像,并将其中一帧图像中的局部图像提取出来与另一帧图像进行合并生成预览图像。由于获得的这两帧图像是在不同曝光参数下拍摄得到的因此曝光效果不同,相应地合并生成的预览图像中合并入的局部图像的曝光效果与图像中其他的区域的曝光效果则不同,从而实现了仅对待曝光图像中某个区域的曝光效果进行调节的目的,故能够提升所拍摄曝光图像的质量。In the image exposure method and mobile terminal provided by the embodiments of the present invention, two consecutively collected images are obtained with different exposure parameters, and a partial image in one frame is extracted and merged with another frame to generate a preview image. Since the two frames of images obtained are shot under different exposure parameters, the exposure effects are different, and the exposure effects of the partial images merged in the corresponding merged preview image are different from the exposure effects of other areas in the image. The purpose of adjusting only the exposure effect of a certain area in the to-be-exposed image is realized, so the quality of the shot exposure image can be improved.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

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

图1是本发明实施例一的一种图像曝光方法的步骤流程图;1 is a flow chart of steps of an image exposure method according to Embodiment 1 of the present invention;

图2是本发明实施例二的一种图像曝光方法的步骤流程图;2 is a flow chart of steps of an image exposure method according to Embodiment 2 of the present invention;

图3是本发明实施例三的一种移动终端的结构框图;3 is a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention;

图4是本发明实施例四的一种移动终端的结构框图;4 is a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention;

图5是本发明实施例五的一种移动终端的结构框图;5 is a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention;

图6是本发明实施例六的一种移动终端的结构框图。FIG. 6 is a structural block diagram of a mobile terminal according to Embodiment 6 of the present invention.

具体实施方式Detailed ways

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

实施例一Example 1

参照图1,示出了本发明实施例一的一种图像曝光方法的流程图。Referring to FIG. 1 , a flowchart of an image exposure method according to Embodiment 1 of the present invention is shown.

本发明实施例的图像曝光方法包括以下步骤:The image exposure method of the embodiment of the present invention includes the following steps:

步骤S101:以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像。Step S101 : exposing with a first exposure parameter to obtain a first frame of image, and exposing with a second exposure parameter to obtain a second frame of image.

其中,第一帧图像和第二帧图像为摄像头连续采集的图像。由于这两种图像为摄像头连续采集的图像,因此图像中的对象几乎无差异。摄像头所采集的图像可以是在后台通过拍照的方式得到,也可以是已在预览界面中预览显示的图像。The first frame of images and the second frame of images are images continuously collected by the camera. Since the two images are captured continuously by the camera, there is little difference in the objects in the images. The image collected by the camera may be obtained by taking pictures in the background, or may be an image that has been previewed and displayed in the preview interface.

需要说明的是,第一曝光参数、第二曝光参数可以由用户预先设定,也可以由移动终端依据摄像头采集到在该第一帧图像、第二帧图像前面的图像分析得到。It should be noted that, the first exposure parameter and the second exposure parameter may be preset by the user, or may be obtained by the mobile terminal according to the analysis of the images in front of the first frame image and the second frame image collected by the camera.

步骤S102:根据预先确定的局部取景范围,获取第二帧图像中与局部取景范围重合的局部图像。Step S102: Acquire a partial image that overlaps with the local viewing range in the second frame of images according to the predetermined partial viewing range.

其中,局部取景范围可以由用户手动划定,也可以由移动终端依据待拍摄图像中各区域的明暗程度自动确定,还可以由移动终端依据待拍摄图像中的拍摄主体确定局部取景范围。The local framing range may be manually defined by the user, or automatically determined by the mobile terminal according to the brightness of each area in the to-be-shot image, or may be determined by the mobile terminal according to the subject in the to-be-shot image.

例如:待拍摄图像的拍摄主体为一棵树,背景为草地和蓝天。移动终端可以自动识别拍摄主体,将待拍摄图像中的树确定为拍摄主体,将树所在区域确定为局部取景范围。那么,在获取局部图像时,第二帧图像中树所在区域即为与局部取景范围重合的局部图像。For example: the subject of the image to be captured is a tree, and the background is grass and blue sky. The mobile terminal can automatically identify the shooting subject, determine the tree in the image to be shot as the shooting subject, and determine the area where the tree is located as the local framing range. Then, when the partial image is acquired, the area where the tree is located in the second frame of image is the partial image that overlaps with the partial framing range.

步骤S103:对第一帧图像和局部图像进行合并,生成预览图像。Step S103: Combine the first frame image and the partial image to generate a preview image.

在进行合并时,可以确定第一帧图像中与局部取景范围重合的第一局部图像;采用从第二帧图像中提取出的局部图像替换第一帧中的第一局部图像即可完成合并操作,生成预览图像。所生成的预览图像中局部图像可显示出与其他区域不同的曝光效果。When merging, the first partial image in the first frame image that overlaps with the local viewing range can be determined; the merging operation can be completed by replacing the first partial image in the first frame with the partial image extracted from the second frame image , to generate a preview image. The partial image in the generated preview image can show different exposure effects from other areas.

例如:第一帧图像的曝光效果为A效果,第二帧图像的曝光效果为B效果,将第二帧图像中的与局部取景范围重合的局部图像合并入第一帧图像后,所合并成的预览图像中局部图像的曝光效果则为B,其他区域的曝光效果则为A,因此,预览图像中局部图像可显示出与其他区域不同的曝光效果。For example, the exposure effect of the first frame image is the A effect, and the exposure effect of the second frame image is the B effect. The exposure effect of the partial image in the preview image is B, and the exposure effect of other areas is A. Therefore, the partial image in the preview image can show different exposure effects from other areas.

本发明实施例提供的图像曝光方法,以不同曝光参数获得连续采集的两帧图像,并将其中一帧图像中的局部图像提取出来与另一帧图像进行合并生成预览图像。由于获得的这两帧图像是在不同曝光参数下得到的因此曝光效果不同,相应地合并生成的预览图像中合并入的局部图像的曝光效果与图像中其他的区域的曝光效果则不同,从而实现了仅对待曝光图像中某个区域的曝光效果进行调节的目的,故能够提升所拍摄曝光图像的质量。In the image exposure method provided by the embodiment of the present invention, two frames of images collected continuously are obtained with different exposure parameters, and a partial image in one frame of image is extracted and merged with another frame of image to generate a preview image. Since the two frames of images obtained are obtained under different exposure parameters, the exposure effects are different, and the exposure effects of the partial images merged in the corresponding merged preview image are different from those of other areas in the image. For the purpose of adjusting only the exposure effect of a certain area in the image to be exposed, the quality of the captured exposure image can be improved.

实施例二Embodiment 2

参照图2,示出了本发明实施例二的一种图像曝光方法的流程图。Referring to FIG. 2 , a flowchart of an image exposure method according to Embodiment 2 of the present invention is shown.

本发明实施例的图像曝光方法包括以下步骤:The image exposure method of the embodiment of the present invention includes the following steps:

步骤S201:移动终端确定局部取景范围。Step S201 : the mobile terminal determines a local framing range.

图像曝光前确定局部取景范围、以及目标曝光效果是两个必要条件。目标曝光效果可以在确定局部取景范围之后,由用户进行设置具体设置方式在参照步骤S204中的相关说明即可。确定局部取景范围时,可以采用如下方式中的任意一种:Determining the local framing range and target exposure effect before image exposure are two necessary conditions. The target exposure effect can be set by the user after the local framing range is determined, and the specific setting method can be referred to the relevant description in step S204. When determining the local framing range, you can use any of the following methods:

第一种:移动终端将预览界面中满足设定条件的区域确定为局部取景范围。The first type: the mobile terminal determines the area in the preview interface that meets the set condition as the local framing range.

其中,满足设定条件的区域可以是图像中拍摄主体所占的区域,也可以是图像中亮度低于第一预设阈值的区域,还可以是图像中亮度高于第二预设阈值的区域。The area that satisfies the set condition may be the area occupied by the subject in the image, the area in the image whose brightness is lower than the first preset threshold, or the area in the image whose brightness is higher than the second preset threshold .

第二种:移动终端接收用户对局部取景范围的第一设置操作,依据第一设置操作确定局部取景范围。The second type: the mobile terminal receives the user's first setting operation for the local viewfinder range, and determines the local viewfinder range according to the first setting operation.

用户在预览界面中可以手动划定一个范围,移动终端将用户手动划定的范围确定为局部取景范围。The user can manually delimit a range in the preview interface, and the mobile terminal determines the range manually delimited by the user as the local framing range.

第三种:移动终端将预览界面中满足设定条件的区域确定为局部取景范围,并在预览界面中标定确定的局部取景范围;并接收用户对标定的局部取景范围的调整操作,将调整后的区域确定为局部取景范围。The third type: the mobile terminal determines the area in the preview interface that meets the set conditions as the local framing range, and calibrates the determined local framing range in the preview interface; and receives the user's adjustment operation on the calibrated local framing range, and will The area of is determined as the local framing range.

第三种方式为自动与手动结合的方式,移动终端首先自动确定一个局部取景范围,并将确定的该范围在预览画面中进行标定。当标定出的局部取景范围不满足用户需求时,用户可以对标定的范围手动进行调整直至满足自身需求,移动终端则将用户调整后的区域确定为局部取景范围。The third method is a combination of automatic and manual methods. The mobile terminal first automatically determines a local framing range, and calibrates the determined range in the preview screen. When the calibrated local framing range does not meet the user's needs, the user can manually adjust the calibrated range until it meets his own needs, and the mobile terminal determines the user-adjusted area as the local framing range.

步骤S202:移动终端获取摄像头连续采集的第一奇数帧图像和第一偶数帧图像。Step S202: The mobile terminal acquires the first odd-numbered frame image and the first even-numbered frame image continuously collected by the camera.

其中,采集包括拍照和预览显示两种情况,摄像头所采集的图像可以是在后台通过拍照的方式得到,也可以是已在预览界面中预览显示的图像。Wherein, the acquisition includes two situations of taking pictures and previewing and displaying. The images collected by the camera can be obtained by taking pictures in the background, or can be the images that have been previewed and displayed in the preview interface.

步骤S203:移动终端对第一奇数帧图像进行自动曝光计算,得到第一曝光参数。Step S203: The mobile terminal performs automatic exposure calculation on the first odd-numbered frame image to obtain a first exposure parameter.

一种优选的对第一奇数帧图像进行自动曝光计算,得到第一曝光参数的的方式如下:A preferred method of performing automatic exposure calculation on the first odd-numbered frame image to obtain the first exposure parameter is as follows:

S1:确定第一奇数帧图像的第一亮度值,以及自动曝光对应的目标亮度值。S1: Determine the first brightness value of the first odd-numbered frame image and the target brightness value corresponding to the automatic exposure.

由于不同图像中各像素点的亮度,因此,每帧图像的亮度值也不同。图像亮度值的确定参加相关技术即可,本发明实施例中对此不作具体限制。例如:可以通过将图像中个像素点的亮度值求平均,将所得平均值确定为图像对应的亮度值。Due to the brightness of each pixel in different images, the brightness value of each frame of image is also different. The determination of the brightness value of the image may be performed in the related art, which is not specifically limited in the embodiment of the present invention. For example, by averaging the brightness values of the pixels in the image, the obtained average value can be determined as the brightness value corresponding to the image.

移动终端对图像进行自动曝光时会依据待拍摄图像亮度、以及当前环境亮度自动确定目标亮度值。When the mobile terminal automatically exposes the image, it will automatically determine the target brightness value according to the brightness of the image to be shot and the brightness of the current environment.

S2:通过对第一亮度值以及目标亮度值进行计算,得到第一曝光参数。S2: Obtain the first exposure parameter by calculating the first brightness value and the target brightness value.

之所以对图像进行曝光处理,目的是要获得亮度值与目标亮度值相同的图像,而为了得到这样的图像则需要移动终端按照一定的曝光参数对待拍摄图像进行曝光才可能实现。因此,本步骤中需要依据第一亮度值以及目标亮度值计算得到第一曝光参数,作为采集下一帧奇数帧图像时的曝光参数。The purpose of exposing the image is to obtain an image with the same brightness value as the target brightness value. In order to obtain such an image, the mobile terminal needs to expose the image to be captured according to certain exposure parameters. Therefore, in this step, it is necessary to calculate and obtain the first exposure parameter according to the first brightness value and the target brightness value, which is used as the exposure parameter when the next odd-numbered frame image is collected.

步骤S204:移动终端依据用户的第一曝光调节操作对第一偶数帧图像进行曝光计算,得到第二曝光参数。Step S204 : the mobile terminal performs exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation to obtain a second exposure parameter.

曝光调节操作包括:亮度调节、曝光补偿条件等操作,通过曝光调节可以调节移动终端在拍摄图像时的曝光参数,使最终拍摄的图像的曝光效果接近或达成用户目标曝光效果。Exposure adjustment operations include: brightness adjustment, exposure compensation conditions, etc. Through exposure adjustment, the exposure parameters of the mobile terminal when capturing images can be adjusted, so that the exposure effect of the final captured image is close to or achieves the user's target exposure effect.

用户在进行曝光调节操作时,可以在移动终端的预览界面上通过点击特定按钮指示移动终端在预览界面中显示曝光条,用户通过曝光条中游标的滑动操作来调节曝光补偿值、或者目标亮度值。When the user is performing the exposure adjustment operation, he can instruct the mobile terminal to display the exposure bar in the preview interface by clicking a specific button on the preview interface of the mobile terminal, and the user can adjust the exposure compensation value or the target brightness value by sliding the cursor in the exposure bar. .

当然,也可以不显示曝光条,用户在预览界面上通过手指上下滑动,即可进行曝光补偿值的调节。例如:用户向上滑动手指,根据滑动距离的大小,依次映射为曝光补偿0到曝光补偿+4;用户向下滑动手指,同样根据距离的多少,依次映射为曝光补偿0到曝光补偿-4。还可以提供用户曝光补偿值选项,用户通过选择选择即可进行曝光补偿值的选择操作。Of course, the exposure bar may not be displayed, and the user can adjust the exposure compensation value by sliding his finger up and down on the preview interface. For example, if the user slides his finger up, according to the size of the sliding distance, it is mapped to exposure compensation 0 to exposure compensation +4 in turn; when the user slides his finger down, it is also mapped to exposure compensation 0 to exposure compensation -4 according to the distance. A user exposure compensation value option can also be provided, and the user can select an exposure compensation value by selecting and selecting.

一种优选的依据用户的第一曝光调节操作对第一偶数帧图像进行曝光计算,得到第二曝光参数的方式如下:A preferred method of performing exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation, and obtaining the second exposure parameter is as follows:

S1:依据用户的第一曝光调节操作确定目标曝光亮度。S1: Determine the target exposure brightness according to the user's first exposure adjustment operation.

当用户的第一曝光调节操作为对曝光补偿值的调整操作时,移动终端通过曝光补偿值可以计算得到目标曝光亮度。而当用户的第一曝光调节操作为对目标亮度值的调整操作时,移动终端则可直接将用户调整的目标亮度值确定为目标曝光亮度。When the user's first exposure adjustment operation is an adjustment operation on the exposure compensation value, the mobile terminal can obtain the target exposure brightness by calculating the exposure compensation value. When the user's first exposure adjustment operation is an adjustment operation on the target brightness value, the mobile terminal may directly determine the target brightness value adjusted by the user as the target exposure brightness.

S2:确定第一偶数帧图像的第二亮度值。S2: Determine the second brightness value of the first even-numbered frame image.

与确定第一奇数帧图像的第一亮度值采用相应的方式,即可确定第一偶数帧图像的第二亮度值。The second brightness value of the first even-numbered frame image can be determined by adopting a corresponding manner to determine the first brightness value of the first odd-numbered frame image.

S3:通过对第二亮度值以及目标曝光亮度进行计算,得到第二曝光参数。S3: Obtain a second exposure parameter by calculating the second brightness value and the target exposure brightness.

需要说明的是,步骤S201至步骤S203中是以通过前一帧图像的亮度值、以及目标亮度值确定当前待曝光的图像的曝光参数的方式为例进行的说明。在具体实现过程中,曝光参数并不局限于通过移动终端确定,也可以由用户根据实际需求进行预先设定。相应地,移动终端以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,则可直接获取用户预设的第一曝光参数,获取用户预设的第二曝光参数后,控制摄像头分别以获取的曝光参数拍摄相应帧图像。It should be noted that, steps S201 to S203 are described by taking the method of determining the exposure parameter of the image currently to be exposed by the brightness value of the previous frame image and the target brightness value as an example. In the specific implementation process, the exposure parameters are not limited to be determined by the mobile terminal, and can also be preset by the user according to actual needs. Correspondingly, the mobile terminal obtains the first frame of image by exposure with the first exposure parameter, and before obtaining the second frame of image by exposure with the second exposure parameter, it can directly obtain the first exposure parameter preset by the user, and obtain the second frame image preset by the user. After the exposure parameters are set, the cameras are controlled to shoot corresponding frame images respectively with the obtained exposure parameters.

步骤S205:移动终端以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像。Step S205 : the mobile terminal obtains the first frame of image by exposure with the first exposure parameter, and obtains the second frame of image by exposure with the second exposure parameter.

其中,第一帧图像和第二帧图像为摄像头连续采集的图像。本发明实施例中第一帧图像即第二奇数帧图像,第二帧图像即第二偶数帧图像。The first frame of images and the second frame of images are images continuously collected by the camera. In the embodiment of the present invention, the first frame image is the second odd frame image, and the second frame image is the second even frame image.

本发明实施例中,将摄像头采集到的奇数帧图像与偶数帧图像分离进行处理。对每帧奇数帧图像进行曝光时,均采用通过对前一帧奇数帧图像分析得到的曝光参数对图像进行曝光;对每帧偶数帧图像进行曝光时,均采用通过对前一帧偶数帧图像分析得到的曝光参数对图像进行曝光。In the embodiment of the present invention, the odd-numbered frame images and the even-numbered frame images collected by the camera are separated for processing. When exposing each odd-numbered frame image, the exposure parameters obtained by analyzing the previous odd-numbered frame image are used to expose the image; when exposing each even-numbered frame image, the image is exposed by using the exposure parameters obtained by analyzing the previous odd-numbered frame image; Expose the image by analyzing the exposure parameters obtained.

步骤S206:移动终端根据预先确定的局部取景范围,获取第二帧图像中与局部取景范围重合的局部图像。Step S206: The mobile terminal acquires, according to the predetermined local framing range, a partial image in the second frame of image that overlaps with the local framing range.

本步骤中即获取第二偶数帧图像中与局部取景范围重合的局部图像。In this step, the partial image in the second even-numbered frame image that overlaps with the partial framing range is acquired.

步骤S207:移动终端对第一帧图像和局部图像进行合并,生成预览图像。Step S207: The mobile terminal combines the first frame image and the partial image to generate a preview image.

在进行合并时,确定第一帧图像中与局部取景范围重合的第一局部图像;利用从第二帧图像中提取出的局部图像替换第一帧中的第一局部图像以替换后的第一帧图像为预览图像,所生成的预览图像中局部图像可显示出与其他区域不同的曝光效果。When merging, determine the first partial image in the first frame image that coincides with the partial viewing range; use the partial image extracted from the second frame image to replace the first partial image in the first frame with the replaced first partial image The frame image is a preview image, and the partial image in the generated preview image can show different exposure effects from other areas.

当生成预览图像后,若所生成的预览图像的曝光效果不满足用户需求,用户可以进行第二曝光调节操作,重新调整曝光效果。用户进行第二曝光调节操作与第一曝光调节操作类似,可以通过调整曝光补偿值来调整曝光效果,也可以通过调整目标亮度值来调整曝光效果。用户进行第二曝光调节操作的具体方式,参见步骤S203中所述的用户进行第一曝光调节操作的相关说明即可,本发明实施例中对此不作具体限制。After the preview image is generated, if the exposure effect of the generated preview image does not meet the user's requirement, the user can perform a second exposure adjustment operation to re-adjust the exposure effect. The second exposure adjustment operation performed by the user is similar to the first exposure adjustment operation. The exposure effect can be adjusted by adjusting the exposure compensation value, and the exposure effect can also be adjusted by adjusting the target brightness value. For the specific manner in which the user performs the second exposure adjustment operation, refer to the relevant description of the user performing the first exposure adjustment operation described in step S203, which is not specifically limited in the embodiment of the present invention.

步骤S208:移动终端对第一帧图像进行自动曝光计算,得到第三曝光参数。Step S208: The mobile terminal performs automatic exposure calculation on the first frame of image to obtain a third exposure parameter.

移动终端对第一帧图像进行自动曝光计算得到第三曝光参数的具体方式,参见移动终端对第一奇数帧图像进行自动曝光计算得到第一曝光参数的相关说明即可,本发明实施例中对此不作具体限定。For the specific method of obtaining the third exposure parameter by the mobile terminal performing automatic exposure calculation on the first frame of image, please refer to the relevant description of the mobile terminal performing automatic exposure calculation on the first odd-numbered frame image to obtain the first exposure parameter. This is not specifically limited.

本步骤中之所以对第一帧图像即第二奇数帧图像进行自动曝光计算得到第三曝光参数,目的是采用第三曝光参数对第三奇数帧图像进行曝光处理,使拍摄图像更加接近用户预设的曝光效果。In this step, the first frame image, that is, the second odd frame image, is automatically exposed to calculate the third exposure parameter. set exposure effect.

需要说明的是,步骤S208并不局限于在步骤S207之后执行,可以在获得第一帧图像后的任一时刻执行,当然也可以与步骤S207并行执行。It should be noted that, step S208 is not limited to be executed after step S207, and can be executed at any time after the first frame of image is obtained, and of course, it can also be executed in parallel with step S207.

步骤S209:移动终端依据用户的第二曝光调节操作对第二帧图像进行曝光计算,得到第四曝光参数。Step S209: The mobile terminal performs exposure calculation on the second frame of image according to the user's second exposure adjustment operation to obtain a fourth exposure parameter.

计算第四曝光参数时,移动终端可以依据用户的第二曝光调节操作确定第二目标曝光亮度,同时确定第二帧图像即第二偶数帧图像的第三亮度值,通过对第三亮度值以及第二目标曝光亮度进行计算,得到第四曝光参数。When calculating the fourth exposure parameter, the mobile terminal may determine the second target exposure brightness according to the user's second exposure adjustment operation, and at the same time determine the third brightness value of the second frame image, that is, the second even-numbered frame image. The second target exposure brightness is calculated to obtain a fourth exposure parameter.

本步骤中之所以对第二帧图像即第二偶数帧图像进行曝光计算得到第四曝光参数,目的是采用第四曝光参数对第三偶数帧图像进行曝光处理,使拍摄图像更加接近用户预设的曝光效果。In this step, the second frame image, that is, the second even-numbered frame image, is subjected to exposure calculation to obtain the fourth exposure parameter. exposure effect.

步骤S209并不局限于在步骤S208之后执行,可以在获得第二帧图像后的任一时刻执行,当然也可以与步骤S207、步骤S208并行执行。Step S209 is not limited to be executed after step S208, and can be executed at any time after the second frame of image is obtained, and of course, it can also be executed in parallel with step S207 and step S208.

步骤S210:移动终端以第三曝光参数曝光获得第三奇数帧图像,以第四曝光参数曝光获得第三偶数帧图像。Step S210 : the mobile terminal obtains a third odd-numbered frame image by exposing with a third exposure parameter, and obtains a third even-numbered frame image by exposing with a fourth exposure parameter.

其中,第三奇数帧图像和第三偶数帧图像为摄像头连续采集的图像。The third odd-numbered frame image and the third even-numbered frame image are images continuously collected by the camera.

步骤S211:移动终端根据预先确定的局部取景范围,获取第三偶数帧图像中与局部取景范围重合的局部图像。Step S211 : the mobile terminal acquires, according to the predetermined local framing range, a partial image that overlaps with the local framing range in the third even-numbered frame image.

其中,局部取景范围可以与步骤S204中确定的局部取景范围相同,也可以不同。当移动终端执行完步骤S207中生成的预览图像后,用户不仅可以通过第二曝光调节操作调整曝光效果,还可以调整局部取景范围,移动终端则需要重新确定局部取景范围。因此,若用户调整了局部取景范围,则本步骤中确定的局部取景范围与步骤S204中确定的局部取景范围将不同;反之,则相同。The local framing range may be the same as or different from the local framing range determined in step S204. After the mobile terminal executes the preview image generated in step S207, the user can not only adjust the exposure effect through the second exposure adjustment operation, but also adjust the local framing range, and the mobile terminal needs to re-determine the local framing range. Therefore, if the user adjusts the local framing range, the local framing range determined in this step and the local framing range determined in step S204 will be different; otherwise, they are the same.

步骤S212:移动终端对第三奇数帧图像和第三偶数帧图像中的局部图像进行合并,生成预览图像。Step S212: The mobile terminal combines the third odd-numbered frame image and the partial images in the third even-numbered frame image to generate a preview image.

在进行合并时,可以确定第三帧图像中与局部取景范围重合的第二局部图像;采用从第三偶数帧图像中提取出的局部图像替换第三奇数帧中的第二局部图像即可完成合并操作,生成预览图像,所生成的预览图像中局部图像可显示出与其他区域不同的曝光效果。When merging, the second partial image in the third frame image that overlaps with the partial viewing range can be determined; the partial image extracted from the third even-numbered frame image can be used to replace the second partial image in the third odd-numbered frame. The merge operation generates a preview image, and the partial image in the generated preview image can show different exposure effects from other areas.

本发明实施例中仅是以生成两帧预览图像为例对本发明实施例的图像曝光方法进行说明,在具体实现过程中,若生成的预览图像不满足用户需求,则可以重复执行步骤S208至步骤S212生成第三帧预览图像、第四帧预览图像等。In the embodiment of the present invention, the image exposure method in the embodiment of the present invention is only described by taking the generation of two frames of preview images as an example. During the specific implementation process, if the generated preview image does not meet the user's requirements, steps S208 to S208 to S208 may be executed repeatedly. S212 generates a third frame preview image, a fourth frame preview image, and the like.

本发明实施例提供的图像曝光方法,以不同曝光参数获得连续采集的两帧图像,并将其中一帧图像中的局部图像提取出来与另一帧图像进行合并生成预览图像。由于获得的这两帧图像是在不同曝光参数下得到的因此曝光效果不同,相应地合并生成的预览图像中合并入的局部图像的曝光效果与图像中其他的区域的曝光效果则不同,从而实现了仅对待曝光图像中某个区域的曝光效果进行调节的目的,故能够提升所拍摄曝光图像的质量。In the image exposure method provided by the embodiment of the present invention, two frames of images collected continuously are obtained with different exposure parameters, and a partial image in one frame of image is extracted and merged with another frame of image to generate a preview image. Since the two frames of images obtained are obtained under different exposure parameters, the exposure effects are different, and the exposure effects of the partial images merged in the corresponding merged preview image are different from those of other areas in the image. For the purpose of adjusting only the exposure effect of a certain area in the image to be exposed, the quality of the captured exposure image can be improved.

实施例三Embodiment 3

参照图3,示出了本发明实施例三的一种移动终端的结构框图。Referring to FIG. 3 , a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention is shown.

本发明实施例的移动终端包括:第一图像获取模块301,用于以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像,其中,所述第一帧图像和第二帧图像为摄像头连续采集的图像;局部图像获取模块302,用于根据预先确定的局部取景范围,获取所述第二帧图像中与局部取景范围重合的局部图像;合并模块303,用于对所述第一帧图像和所述局部图像进行合并,生成预览图像。The mobile terminal in this embodiment of the present invention includes: a first image acquisition module 301, configured to obtain a first frame of image by exposure with a first exposure parameter, and obtain a second frame of image by exposure with a second exposure parameter, wherein the first frame of image and the second frame image are images continuously collected by the camera; the partial image acquisition module 302 is used to obtain the partial image that overlaps with the local viewing range in the second frame image according to the predetermined local viewing range; the merging module 303 is used for A preview image is generated by merging the first frame image and the partial image.

本发明实施例的移动终端在进行图像曝光时,以不同曝光参数获得连续采集的两帧图像,并将其中一帧图像中的局部图像提取出来与另一帧图像进行合并生成预览图像。由于获得的这两帧图像是在不同曝光参数下得到的因此曝光效果不同,相应地合并生成的预览图像中合并入的局部图像的曝光效果与图像中其他的区域的曝光效果则不同,从而实现了仅对待曝光图像中某个区域的曝光效果进行调节的目的,故能够提升所拍摄曝光图像的质量。When exposing images, the mobile terminal according to the embodiment of the present invention obtains two frames of images continuously collected with different exposure parameters, and extracts a partial image from one frame of images and merges them with another frame of images to generate a preview image. Since the two frames of images obtained are obtained under different exposure parameters, the exposure effects are different, and the exposure effects of the partial images merged in the corresponding merged preview image are different from those of other areas in the image. For the purpose of adjusting only the exposure effect of a certain area in the image to be exposed, the quality of the captured exposure image can be improved.

实施例四Embodiment 4

参照图4,示出了本发明实施例四的一种移动终端的结构框图。Referring to FIG. 4 , a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention is shown.

本发明实施例的移动终端是对实施例三中的移动终端的进一步优化,优化后的移动终端包括:第一图像获取模块401,用于以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像,其中,所述第一帧图像和第二帧图像为摄像头连续采集的图像;局部图像获取模块402,用于根据预先确定的局部取景范围,获取所述第二帧图像中与局部取景范围重合的局部图像;合并模块403,用于对所述第一帧图像和所述局部图像进行合并,生成预览图像。The mobile terminal in the embodiment of the present invention is a further optimization of the mobile terminal in the third embodiment. The optimized mobile terminal includes: a first image acquisition module 401, configured to obtain a first frame of image by exposure with a first exposure parameter; Exposure with two exposure parameters to obtain a second frame of image, wherein the first frame of image and the second frame of image are images continuously collected by a camera; the local image acquisition module 402 is configured to acquire the first frame of image according to a predetermined local framing range. A partial image in the two frames of images that overlaps with the partial viewing range; the merging module 403 is configured to combine the first frame image and the partial image to generate a preview image.

优选地,所述移动终端还包括:第二图像获取模块404,用于在所述第一图像获取模块401以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,获取摄像头连续采集的第一奇数帧图像和第一偶数帧图像;第一曝光参数确定模块405,用于对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数;第二曝光参数确定模块406,用于依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数。Preferably, the mobile terminal further comprises: a second image acquisition module 404, configured to obtain a first frame image by exposure with a first exposure parameter in the first image acquisition module 401, and obtain a second frame by exposure with a second exposure parameter Before the image, the first odd-numbered frame image and the first even-numbered frame image continuously collected by the camera are acquired; the first exposure parameter determination module 405 is configured to perform automatic exposure calculation on the first odd-numbered frame image to obtain the first exposure parameter; The second exposure parameter determination module 406 is configured to perform exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation to obtain a second exposure parameter.

优选地,所述移动终端还包括:第一参数获取模块407,用于在所述第一图像获取模块401以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,获取用户预设的第一曝光参数;第二参数获取模块408,用于获取用户预设的第二曝光参数。Preferably, the mobile terminal further includes: a first parameter acquisition module 407, configured to obtain a first frame image by exposure with a first exposure parameter in the first image acquisition module 401, and obtain a second frame by exposure with a second exposure parameter Before the image, obtain the first exposure parameter preset by the user; the second parameter obtaining module 408 is configured to obtain the second exposure parameter preset by the user.

优选地,所述移动终端还包括:第三曝光参数确定模块409,用于在所述第一图像获取模块401以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之后,对所述第一帧图像进行自动曝光计算,得到第三曝光参数;第四曝光参数确定模块410,用于依据用户的第二曝光调节操作对所述第二帧图像进行曝光计算,得到第四曝光参数。Preferably, the mobile terminal further includes: a third exposure parameter determination module 409, configured to obtain the first frame image by exposure with the first exposure parameter in the first image obtaining module 401, and obtain the second frame image by exposure with the second exposure parameter After framing the image, perform automatic exposure calculation on the first frame image to obtain a third exposure parameter; the fourth exposure parameter determination module 410 is configured to perform exposure calculation on the second frame image according to the user's second exposure adjustment operation , the fourth exposure parameter is obtained.

优选地,所述移动终端还包括:第三图像获取模块411,用于在所述合并模块403生成预览图像后,以第三曝光参数曝光获得第三奇数帧图像,以第四曝光参数曝光获得第三偶数帧图像,其中,所述第三奇数帧图像和第三偶数帧图像为摄像头连续采集的图像;第二局部图像获取模块412,用于根据预先确定的局部取景范围,获取所述第三偶数帧图像中与局部取景范围重合的局部图像;第二合并模块413,用于对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像。Preferably, the mobile terminal further includes: a third image acquisition module 411, configured to obtain a third odd-numbered frame image by exposure with a third exposure parameter after the merging module 403 generates a preview image, and obtain a third odd-numbered frame image by exposure with a fourth exposure parameter The third even-numbered frame image, wherein the third odd-numbered frame image and the third even-numbered frame image are images continuously collected by the camera; the second partial image acquisition module 412 is configured to obtain the The partial images in the three even-numbered frame images that overlap with the partial viewing range; the second merging module 413 is configured to combine the third odd-numbered frame images and the partial images in the third even-numbered frame images to generate a preview image.

优选地,所述移动终端还包括:第一范围确定模块414,用于在所述第二图像获取模块404获取摄像头连续拍摄的第一奇数帧图像和第一偶数帧图像之前,将预览界面中满足设定条件的区域确定为局部取景范围;或者,第二范围确定模块415,用于接收用户对局部取景范围的第一设置操作,依据所述第一设置操作确定局部取景范围;或者,第三范围确定模块416,用于将预览界面中满足设定条件的区域确定为局部取景范围,并在预览界面中标定确定的所述局部取景范围,接收用户对标定的所述局部取景范围的调整操作,将调整后的区域确定为局部取景范围。Preferably, the mobile terminal further includes: a first range determination module 414, configured to, before the second image acquisition module 404 acquires the first odd-numbered frame image and the first even-numbered frame image continuously shot by the camera, set the image in the preview interface The area that satisfies the setting condition is determined as the local viewfinder range; or, the second range determination module 415 is configured to receive the user's first setting operation on the local viewfinder range, and determine the local viewfinder range according to the first setting operation; The three-range determination module 416 is configured to determine the area that satisfies the set conditions in the preview interface as the local viewfinder range, calibrate the determined local viewfinder range in the preview interface, and receive the user's adjustment to the calibrated local viewfinder range operation to determine the adjusted area as the local framing range.

优选地,所述第一曝光参数确定模块405包括:亮度值确定子模块4051,用于确定所述第一奇数帧图像的第一亮度值,以及自动曝光对应的目标亮度值;计算子模块4052,用于通过对所述第一亮度值以及所述目标亮度值进行计算,得到第一曝光参数。Preferably, the first exposure parameter determination module 405 includes: a brightness value determination sub-module 4051 for determining a first brightness value of the first odd-numbered frame image and a target brightness value corresponding to automatic exposure; a calculation sub-module 4052 , which is used to obtain the first exposure parameter by calculating the first brightness value and the target brightness value.

优选地,所述第二曝光参数确定模块406包括:亮度值确定子模块4061,用于依据用户的第一曝光调节操作确定目标曝光亮度,确定第一偶数帧图像的第二亮度值;计算子模块4062,用于通过对所述第二亮度值以及所述目标曝光亮度进行计算,得到第二曝光参数。Preferably, the second exposure parameter determination module 406 includes: a brightness value determination sub-module 4061, configured to determine the target exposure brightness according to the user's first exposure adjustment operation, and determine the second brightness value of the first even-numbered frame image; Module 4062, configured to obtain a second exposure parameter by calculating the second brightness value and the target exposure brightness.

优选地,所述合并模块403包括:局部图像确定子模块,用于确定所述第一帧图像中与所述局部取景范围重合的第一局部图像;提取子模块,用于利用所述第二帧图像中提取出的局部图像替换第一帧图像中的第一局部图像;预览图像确定子模块,用于以替换后的第一帧图像为预览图像。Preferably, the merging module 403 includes: a partial image determination sub-module for determining a first partial image in the first frame of images that coincides with the partial viewing range; an extraction sub-module for using the second partial image The partial image extracted from the frame image replaces the first partial image in the first frame image; the preview image determination submodule is used for taking the replaced first frame image as the preview image.

本发明实施例的移动终端用于实现前述实施例一、实施例二中相应的图像曝光方法,并具有与方法实施例相应的有益效果,在此不再赘述。The mobile terminal according to the embodiment of the present invention is used to implement the corresponding image exposure methods in the first embodiment and the second embodiment, and has the beneficial effects corresponding to the method embodiments, which will not be repeated here.

实施例五Embodiment 5

参照图5,示出了本发明实施例五的移动终端的结构框图。Referring to FIG. 5 , a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention is shown.

本发明实施例的移动终端700包括:至少一个处理器701、存储器702、至少一个网络接口704和用户接口703。移动终端700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统705。The mobile terminal 700 in the embodiment of the present invention includes: at least one processor 701 , a memory 702 , at least one network interface 704 and a user interface 703 . The various components in the mobile terminal 700 are coupled together by a bus system 705 . It can be understood that the bus system 705 is used to implement the connection communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 705 in FIG. 5 .

其中,用户接口703可以包括显示器、键盘或者点击设备例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the user interface 703 may include a display, a keyboard or a pointing device such as a mouse, a trackball, a touch pad or a touch screen, and the like.

可以理解,本发明实施例中的存储器702可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRam bus RAM,DRRAM)。本发明实施例描述的系统和方法的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 702 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRam bus RAM, DRRAM). The memory 702 of the systems and methods described in embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

在一些实施方式中,存储器702存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统7021和应用程序7022。In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set of them: an operating system 7021 and applications 7022 .

其中,操作系统7021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序7022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序7022中。The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 7022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program 7022 .

在本发明实施例中,通过调用存储器702存储的程序或指令,具体的,可以是应用程序7022中存储的程序或指令,处理器701用于以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像,其中,所述第一帧图像和第二帧图像为摄像头连续采集的图像;根据预先确定的局部取景范围,获取所述第二帧图像中与局部取景范围重合的局部图像;对所述第一帧图像和所述局部图像进行合并,生成预览图像。In this embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application program 7022, the processor 701 is configured to expose the first frame image with the first exposure parameter to obtain the first frame of image. Exposure with the second exposure parameter to obtain a second frame of image, wherein the first frame of image and the second frame of image are images continuously collected by a camera; according to a predetermined local framing range, the second frame of image and the local framing are obtained. Partial images with overlapping ranges; combine the first frame image and the partial image to generate a preview image.

上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701 . The processor 701 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in the form of software. The above-mentioned processor 701 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other possible Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processing (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本发明实施例中所述功能的模块(例如过程、函数等)来实现本发明实施例中所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present invention. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

可选地,所述处理器701还用于:在以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,获取摄像头连续采集的第一奇数帧图像和第一偶数帧图像;对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数;依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数。Optionally, the processor 701 is further configured to: obtain the first odd-numbered frame images continuously collected by the camera before obtaining the first frame of image by exposure with the first exposure parameter, and before obtaining the second frame of image by exposure with the second exposure parameter. the first even-numbered frame image; perform automatic exposure calculation on the first odd-numbered frame image to obtain a first exposure parameter; perform exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation to obtain a second exposure parameter .

优选地,所述处理器701还用于:在以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,获取用户预设的第一曝光参数;获取用户预设的第二曝光参数。Preferably, the processor 701 is further configured to: obtain a first exposure parameter preset by a user before obtaining a first frame of image by exposure with a first exposure parameter, and obtain a first exposure parameter preset by a user before obtaining a second frame of image by exposure with a second exposure parameter; Preset second exposure parameters.

优选地,所述处理器701还用于:在以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之后,对所述第一帧图像进行自动曝光计算,得到第三曝光参数;依据用户的第二曝光调节操作对所述第二帧图像进行曝光计算,得到第四曝光参数。Preferably, the processor 701 is further configured to: perform automatic exposure calculation on the first frame of image after exposure with a first exposure parameter to obtain a first frame of image, and after exposure with a second exposure parameter to obtain a second frame of image, Obtain a third exposure parameter; perform exposure calculation on the second frame of image according to the user's second exposure adjustment operation to obtain a fourth exposure parameter.

优选地,所述处理器701还用于:在生成预览图像后,以第三曝光参数曝光获得第三奇数帧图像,以第四曝光参数曝光获得第三偶数帧图像,其中,所述第三奇数帧图像和第三偶数帧图像为摄像头连续采集的图像;根据预先确定的局部取景范围,获取所述第三偶数帧图像中与局部取景范围重合的局部图像;对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像。Preferably, the processor 701 is further configured to: after the preview image is generated, obtain a third odd-numbered frame image by exposure with a third exposure parameter, and obtain a third even-numbered frame image by exposure with a fourth exposure parameter, wherein the third The odd-numbered frame image and the third even-numbered frame image are images continuously collected by the camera; according to the predetermined local viewing range, obtain the partial image in the third even-numbered frame image that overlaps with the local viewing range; Combine with the partial image in the third even-numbered frame image to generate a preview image.

优选地,所述处理器701还用于:在获取摄像头连续拍摄的第一奇数帧图像和第一偶数帧图像之前,将预览界面中满足设定条件的区域确定为局部取景范围;或者,接收用户对局部取景范围的第一设置操作,依据所述第一设置操作确定局部取景范围;或者,将预览界面中满足设定条件的区域确定为局部取景范围,并在预览界面中标定确定的所述局部取景范围;接收用户对标定的所述局部取景范围的调整操作,将调整后的区域确定为局部取景范围。Preferably, the processor 701 is further configured to: before acquiring the first odd-numbered frame image and the first even-numbered frame image continuously shot by the camera, determine the area in the preview interface that satisfies the set condition as the local framing range; or, receive For the first setting operation of the local framing range by the user, the local framing range is determined according to the first setting operation; or, the area that satisfies the setting conditions in the preview interface is determined as the local framing range, and the determined all framing range is calibrated in the preview interface. The local framing range is received; the user's adjustment operation on the calibrated local framing range is received, and the adjusted area is determined as the local framing range.

优选地,所述处理器701对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数时,具体用于:确定所述第一奇数帧图像的第一亮度值,以及自动曝光对应的目标亮度值;通过对所述第一亮度值以及所述目标亮度值进行计算,得到第一曝光参数。Preferably, the processor 701 performs automatic exposure calculation on the first odd-numbered frame image, and when obtaining the first exposure parameter, the processor 701 is specifically used to: determine the first brightness value of the first odd-numbered frame image, and the corresponding automatic exposure The first exposure parameter is obtained by calculating the first brightness value and the target brightness value.

优选地,所述处理器701依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数时,具体用于:依据用户的第一曝光调节操作确定目标曝光亮度,确定第一偶数帧图像的第二亮度值;通过对所述第二亮度值以及所述目标曝光亮度进行计算,得到第二曝光参数。Preferably, when the processor 701 performs exposure calculation on the first even-numbered frame images according to the user's first exposure adjustment operation, and obtains the second exposure parameter, the processor 701 is specifically used for: determining the target exposure according to the user's first exposure adjustment operation brightness, and determine the second brightness value of the first even-numbered frame image; and obtain the second exposure parameter by calculating the second brightness value and the target exposure brightness.

优选地,所述处理器701对所述第一帧图像和所述局部图像进行合并,生成预览图像时,具体用于:确定所述第一帧图像中与所述局部取景范围重合的第一局部图像;利用所述第二帧图像中提取出的局部图像替换第一帧图像中的第一局部图像;以替换后的第一帧图像为预览图像。Preferably, when the processor 701 combines the first frame image and the partial image to generate a preview image, the processor 701 is specifically configured to: determine a first frame of image that overlaps with the partial viewing range in the first frame image. A partial image; the partial image extracted from the second frame image is used to replace the first partial image in the first frame image; and the replaced first frame image is used as a preview image.

移动终端700能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 700 can implement each process implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, details are not repeated here.

本发明实施例的移动终端,以不同曝光参数获得连续采集的两帧图像,并将其中一帧图像中的局部图像提取出来与另一帧图像进行合并生成预览图像。由于获得的这两帧图像是在不同曝光参数下得到的因此曝光效果不同,相应地合并生成的预览图像中合并入的局部图像的曝光效果与图像中其他的区域的曝光效果则不同,从而实现了仅对待曝光图像中某个区域的曝光效果进行调节的目的,故能够提升所拍摄曝光图像的质量。In the mobile terminal of the embodiment of the present invention, two frames of images collected continuously are obtained with different exposure parameters, and a partial image in one frame of image is extracted and merged with another frame of image to generate a preview image. Since the two frames of images obtained are obtained under different exposure parameters, the exposure effects are different, and the exposure effects of the partial images merged in the corresponding merged preview image are different from those of other areas in the image. For the purpose of adjusting only the exposure effect of a certain area in the image to be exposed, the quality of the captured exposure image can be improved.

实施例六Embodiment 6

参照图6,示出了本发明实施例六的移动终端的结构框图。Referring to FIG. 6 , a structural block diagram of a mobile terminal according to Embodiment 6 of the present invention is shown.

本发明实施例中的移动终端可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图6中的移动终端包括射频(RadioFrequency,RF)电路810、存储器820、输入单元830、显示单元840、处理器860、音频电路870、WiFi(WirelessFidelity)模块880和电源890。The mobile terminal in FIG. 6 includes a radio frequency (RF) circuit 810 , a memory 820 , an input unit 830 , a display unit 840 , a processor 860 , an audio circuit 870 , a WiFi (Wireless Fidelity) module 880 and a power supply 890 .

其中,输入单元830可用于接收用户输入的数字或字符信息,以及产生与移动终端800的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元830可以包括触控面板8301。触控面板8301,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8301上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板8301可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器860,并能接收处理器860发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8301。除了触控面板8301,输入单元830还可以包括其他输入设备8302,其他输入设备8302可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 830 can be used to receive numerical or character information input by the user, and generate signal input related to user setting and function control of the mobile terminal 800 . Specifically, in this embodiment of the present invention, the input unit 830 may include a touch panel 8301 . The touch panel 8301, also known as a touch screen, can collect the user's touch operations on or near it (such as the user's operations on the touch panel 8301 using any suitable objects or accessories such as a finger, a stylus, etc.) The specified program drives the corresponding connection device. Optionally, the touch panel 8301 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 then sends it to the touch controller. To the processor 860, and can receive the commands sent by the processor 860 and execute them. In addition, the touch panel 8301 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 8301, the input unit 830 may also include other input devices 8302, and the other input devices 8302 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元840可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元840可包括显示面板8401,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8401。The display unit 840 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 840 may include a display panel 8401, and optionally, the display panel 8401 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板8301可以覆盖显示面板8401,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器860以确定触摸事件的类型,随后处理器860根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 8301 can cover the display panel 8401 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is transmitted to the processor 860 to determine the type of the touch event, and then the processor The 860 provides corresponding visual output on the touch display depending on the type of touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch screen includes the application program interface display area and the commonly used controls display area. The arrangement of the application program interface display area and the common control display area is not limited, and may be an arrangement that can distinguish the two display areas, such as up-down arrangement, left-right arrangement, or the like. The application program interface display area can be used to display the interface of the application program. Each interface may contain at least one application icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface that does not contain any content. The commonly used control display area is used to display controls with high usage rate, such as setting buttons, interface numbers, scroll bars, phonebook icons and other application icons.

其中处理器860是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器8201内的软件程序和/或模块,以及调用存储在第二存储器8202内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器860可包括一个或多个处理单元。The processor 860 is the control center of the mobile terminal, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the first memory 8201, and calling the software programs and/or modules stored in the second memory 8202, perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. Optionally, processor 860 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器8201内的软件程序和/或模块和/或该第二存储器8202内的数据,处理器860用于以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像,其中,所述第一帧图像和第二帧图像为摄像头连续采集的图像;根据预先确定的局部取景范围,获取所述第二帧图像中与局部取景范围重合的局部图像;对所述第一帧图像和所述局部图像进行合并,生成预览图像。In this embodiment of the present invention, by calling and storing software programs and/or modules in the first memory 8201 and/or data in the second memory 8202, the processor 860 is configured to expose the first frame with the first exposure parameter to obtain the first frame The second frame of image is obtained by exposing the image with the second exposure parameter, wherein the first frame of image and the second frame of image are images continuously collected by the camera; A partial image that overlaps with the partial viewing range; the first frame image and the partial image are combined to generate a preview image.

可选地,所述处理器860还用于:在以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,获取摄像头连续采集的第一奇数帧图像和第一偶数帧图像;对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数;依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数。Optionally, the processor 860 is further configured to: acquire the first odd-numbered frame images and images of the first odd-numbered frames continuously collected by the camera before obtaining the first frame of image by exposure with the first exposure parameter, and before obtaining the second frame of image by exposure with the second exposure parameter. the first even-numbered frame image; perform automatic exposure calculation on the first odd-numbered frame image to obtain a first exposure parameter; perform exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation to obtain a second exposure parameter .

优选地,所述处理器860还用于:在以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之前,获取用户预设的第一曝光参数;获取用户预设的第二曝光参数。Preferably, the processor 860 is further configured to: obtain the first exposure parameter preset by the user before obtaining the first frame of image by exposure with the first exposure parameter, and obtain the first exposure parameter preset by the user before obtaining the second frame of image by exposure with the second exposure parameter; Preset second exposure parameters.

优选地,所述处理器860还用于:在以第一曝光参数曝光获得第一帧图像,以第二曝光参数曝光获得第二帧图像之后,对所述第一帧图像进行自动曝光计算,得到第三曝光参数;依据用户的第二曝光调节操作对所述第二帧图像进行曝光计算,得到第四曝光参数。Preferably, the processor 860 is further configured to: perform automatic exposure calculation on the first frame of image after exposure with the first exposure parameter to obtain the first frame of image, and after exposure with the second exposure parameter to obtain the second frame of image, Obtain a third exposure parameter; perform exposure calculation on the second frame of image according to the user's second exposure adjustment operation to obtain a fourth exposure parameter.

优选地,所述处理器860还用于:在生成预览图像后,以第三曝光参数曝光获得第三奇数帧图像,以第四曝光参数曝光获得第三偶数帧图像,其中,所述第三奇数帧图像和第三偶数帧图像为摄像头连续采集的图像;根据预先确定的局部取景范围,获取所述第三偶数帧图像中与局部取景范围重合的局部图像;对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像。Preferably, the processor 860 is further configured to: after the preview image is generated, obtain a third odd-numbered frame image by exposure with a third exposure parameter, and obtain a third even-numbered frame image by exposure with a fourth exposure parameter, wherein the third The odd-numbered frame image and the third even-numbered frame image are images continuously collected by the camera; according to the predetermined local viewing range, obtain the partial image in the third even-numbered frame image that overlaps with the local viewing range; Combine with the partial image in the third even-numbered frame image to generate a preview image.

优选地,所述处理器860还用于:在获取摄像头连续拍摄的第一奇数帧图像和第一偶数帧图像之前,将预览界面中满足设定条件的区域确定为局部取景范围;或者,接收用户对局部取景范围的第一设置操作,依据所述第一设置操作确定局部取景范围;或者,将预览界面中满足设定条件的区域确定为局部取景范围,并在预览界面中标定确定的所述局部取景范围;接收用户对标定的所述局部取景范围的调整操作,将调整后的区域确定为局部取景范围。Preferably, the processor 860 is further configured to: before acquiring the first odd-numbered frame image and the first even-numbered frame image continuously shot by the camera, determine the area in the preview interface that satisfies the set condition as the local framing range; or, receive For the first setting operation of the local framing range by the user, the local framing range is determined according to the first setting operation; or, the area that satisfies the setting conditions in the preview interface is determined as the local framing range, and the determined all framing range is calibrated in the preview interface. The local framing range is received; the user's adjustment operation on the calibrated local framing range is received, and the adjusted area is determined as the local framing range.

优选地,所述处理器860对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数时,具体用于:确定所述第一奇数帧图像的第一亮度值,以及自动曝光对应的目标亮度值;通过对所述第一亮度值以及所述目标亮度值进行计算,得到第一曝光参数。Preferably, when the processor 860 performs automatic exposure calculation on the first odd-numbered frame image, and obtains the first exposure parameter, the processor 860 is specifically used for: determining the first brightness value of the first odd-numbered frame image, and the corresponding automatic exposure The first exposure parameter is obtained by calculating the first brightness value and the target brightness value.

优选地,所述处理器860依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数时,具体用于:依据用户的第一曝光调节操作确定目标曝光亮度,确定第一偶数帧图像的第二亮度值;通过对所述第二亮度值以及所述目标曝光亮度进行计算,得到第二曝光参数。Preferably, when the processor 860 performs exposure calculation on the first even-numbered frame images according to the user's first exposure adjustment operation, and obtains the second exposure parameter, the processor 860 is specifically used for: determining the target exposure according to the user's first exposure adjustment operation brightness, and determine the second brightness value of the first even-numbered frame image; and obtain the second exposure parameter by calculating the second brightness value and the target exposure brightness.

优选地,所述处理器860对所述第一帧图像和所述局部图像进行合并,生成预览图像时,具体用于:确定所述第一帧图像中与所述局部取景范围重合的第一局部图像;利用所述第二帧图像中提取出的局部图像替换第一帧图像中的第一局部图像;以替换后的第一帧图像为预览图像。Preferably, when the processor 860 combines the first frame image and the partial image to generate a preview image, the processor 860 is specifically configured to: determine the first frame image in the first frame image that coincides with the partial viewing range. A partial image; the partial image extracted from the second frame image is used to replace the first partial image in the first frame image; and the replaced first frame image is used as a preview image.

本发明实施例的移动终端进行图像曝光是,以不同曝光参数获得连续采集的两帧图像,并将其中一帧图像中的局部图像提取出来与另一帧图像进行合并生成预览图像。由于获得的这两帧图像是在不同曝光参数下得到的因此曝光效果不同,相应地合并生成的预览图像中合并入的局部图像的曝光效果与图像中其他的区域的曝光效果则不同,从而实现了仅对待曝光图像中某个区域的曝光效果进行调节的目的,故能够提升所拍摄曝光图像的质量。The image exposure performed by the mobile terminal according to the embodiment of the present invention is to obtain two consecutively collected images with different exposure parameters, and extract a partial image from one frame of the image and combine it with another frame of image to generate a preview image. Since the two frames of images obtained are obtained under different exposure parameters, the exposure effects are different, and the exposure effects of the partial images merged in the corresponding merged preview image are different from those of other areas in the image. For the purpose of adjusting only the exposure effect of a certain area in the image to be exposed, the quality of the captured exposure image can be improved.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.

在此提供的图像曝光方案不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造具有本发明方案的系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The image exposure schemes provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct a system having the aspects of the present invention is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域普通技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those of ordinary skill in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的图像曝光方案中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the image exposure scheme according to embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (12)

1.一种图像曝光方法,其特征在于,所述方法包括:1. An image exposure method, characterized in that the method comprises: 以第一曝光参数曝光获得第二奇数帧图像,以第二曝光参数曝光获得第二偶数帧图像,其中,所述第二奇数帧图像和第二偶数帧图像为摄像头连续采集的图像;Exposure with the first exposure parameter to obtain a second odd-numbered frame image, and exposure with the second exposure parameter to obtain a second even-numbered frame image, wherein the second odd-numbered frame image and the second even-numbered frame image are images continuously collected by the camera; 根据预先确定的局部取景范围,获取所述第二偶数帧图像中与局部取景范围重合的局部图像;Acquiring, according to the predetermined local framing range, a partial image that overlaps with the local framing range in the second even-numbered frame image; 对所述第二奇数帧图像和所述局部图像进行合并,生成预览图像;Merging the second odd-numbered frame image and the partial image to generate a preview image; 其中,在以第一曝光参数曝光获得第二奇数帧图像,以第二曝光参数曝光获得第二偶数帧图像之前,还包括:Wherein, before exposing with the first exposure parameter to obtain the second odd-numbered frame image, and exposing with the second exposure parameter to obtain the second even-numbered frame image, the method further includes: 获取摄像头连续采集的第一奇数帧图像和第一偶数帧图像;Obtain the first odd-numbered frame image and the first even-numbered frame image continuously collected by the camera; 对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数;performing automatic exposure calculation on the first odd-numbered frame images to obtain a first exposure parameter; 依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数;Performing exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation to obtain a second exposure parameter; 其中,所述对所述第二奇数帧图像和所述局部图像进行合并,生成预览图像包括:Wherein, generating the preview image by merging the second odd-numbered frame image and the partial image includes: 确定所述第二奇数帧图像中与所述局部取景范围重合的第一局部图像;determining a first partial image in the second odd-numbered frame image that coincides with the partial viewing range; 利用所述第二偶数帧图像中提取出的局部图像替换第二奇数帧图像中的第一局部图像;Replace the first partial image in the second odd-numbered frame image with the partial image extracted from the second even-numbered frame image; 以替换后的第二奇数帧图像为预览图像。Take the second odd-numbered frame image after replacement as the preview image. 2.根据权利要求1所述的方法,其特征在于,以第一曝光参数曝光获得第二奇数帧图像,以第二曝光参数曝光获得第二偶数帧图像之后,还包括:2 . The method according to claim 1 , wherein the second odd-numbered frame image is obtained by exposing with the first exposure parameter, and after the second even-numbered frame image is obtained by exposing with the second exposure parameter, the method further comprises: 3 . 对所述第二奇数帧图像进行自动曝光计算,得到第三曝光参数;Perform automatic exposure calculation on the second odd-numbered frame image to obtain a third exposure parameter; 依据用户的第二曝光调节操作对所述第二偶数帧图像进行曝光计算,得到第四曝光参数。Exposure calculation is performed on the second even-numbered frame image according to the user's second exposure adjustment operation to obtain a fourth exposure parameter. 3.根据权利要求2所述的方法,其特征在于,在生成预览图像后,还包括:3. The method according to claim 2, characterized in that, after generating the preview image, further comprising: 以第三曝光参数曝光获得第三奇数帧图像,以第四曝光参数曝光获得第三偶数帧图像,其中,所述第三奇数帧图像和第三偶数帧图像为摄像头连续采集的图像;Exposure with a third exposure parameter to obtain a third odd-numbered frame image, and exposure with a fourth exposure parameter to obtain a third even-numbered frame image, wherein the third odd-numbered frame image and the third even-numbered frame image are images continuously collected by the camera; 根据预先确定的局部取景范围,获取所述第三偶数帧图像中与局部取景范围重合的局部图像;According to the predetermined local framing range, obtain a partial image that overlaps with the local framing range in the third even-numbered frame image; 对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像;Merging the third odd-numbered frame image and the partial images in the third even-numbered frame image to generate a preview image; 其中,所述对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像包括:The generating a preview image by merging the third odd-numbered frame image and the partial images in the third even-numbered frame image includes: 确定所述第三奇数帧图像中与所述局部取景范围重合的第一局部图像;determining a first partial image in the third odd-numbered frame image that coincides with the partial viewing range; 利用所述第三偶数帧图像中提取出的局部图像替换第三奇数帧图像中的第一局部图像;Replace the first partial image in the third odd-numbered frame image with the partial image extracted from the third even-numbered frame image; 以替换后的第三奇数帧图像为预览图像。Take the replaced third odd-numbered frame image as the preview image. 4.根据权利要求1所述的方法,其特征在于,在获取摄像头连续拍摄的第一奇数帧图像和第一偶数帧图像之前,还包括:4. The method according to claim 1, wherein before acquiring the first odd-numbered frame image and the first even-numbered frame image continuously shot by the camera, further comprising: 将预览界面中满足设定条件的区域确定为局部取景范围;或者,Determine the area in the preview interface that meets the set conditions as the local framing range; or, 接收用户对局部取景范围的第一设置操作,依据所述第一设置操作确定局部取景范围;或者,Receive a user's first setting operation on the local framing range, and determine the local framing range according to the first setting operation; or, 将预览界面中满足设定条件的区域确定为局部取景范围,并在预览界面中标定确定的所述局部取景范围;接收用户对标定的所述局部取景范围的调整操作,将调整后的区域确定为局部取景范围。Determine the area that satisfies the setting conditions in the preview interface as the local viewfinder range, and calibrate the determined local viewfinder range in the preview interface; receive the user's adjustment operation on the calibrated local viewfinder range, and determine the adjusted area For the local viewfinder range. 5.根据权利要求1所述的方法,其特征在于,对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数的步骤,包括:5. The method according to claim 1, wherein the step of performing automatic exposure calculation on the first odd-numbered frame images to obtain the first exposure parameter comprises: 确定所述第一奇数帧图像的第一亮度值,以及自动曝光对应的目标亮度值;determining the first brightness value of the first odd-numbered frame image, and the target brightness value corresponding to automatic exposure; 通过对所述第一亮度值以及所述目标亮度值进行计算,得到第一曝光参数。The first exposure parameter is obtained by calculating the first brightness value and the target brightness value. 6.根据权利要求1所述的方法,其特征在于,依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数的步骤,包括:6. The method according to claim 1, wherein the step of performing exposure calculation on the first even-numbered frame image according to a user's first exposure adjustment operation to obtain the second exposure parameter comprises: 依据用户的第一曝光调节操作确定目标曝光亮度;determining the target exposure brightness according to the user's first exposure adjustment operation; 确定第一偶数帧图像的第二亮度值;determining the second brightness value of the first even-numbered frame image; 通过对所述第二亮度值以及所述目标曝光亮度进行计算,得到第二曝光参数。The second exposure parameter is obtained by calculating the second brightness value and the target exposure brightness. 7.一种移动终端,其特征在于,所述移动终端包括:7. A mobile terminal, wherein the mobile terminal comprises: 第一图像获取模块,用于以第一曝光参数曝光获得第二奇数帧图像,以第二曝光参数曝光获得第二偶数帧图像,其中,所述第二奇数帧图像和第二偶数帧图像为摄像头连续采集的图像;A first image acquisition module, configured to obtain a second odd-numbered frame image by exposure with a first exposure parameter, and obtain a second even-numbered frame image by exposure with a second exposure parameter, wherein the second odd-numbered frame image and the second even-numbered frame image are: Images captured by the camera continuously; 局部图像获取模块,用于根据预先确定的局部取景范围,获取所述第二偶数帧图像中与局部取景范围重合的局部图像;a local image acquisition module, configured to acquire, according to a predetermined local framing range, a local image that overlaps with the local framing range in the second even-numbered frame image; 合并模块,用于对所述第二奇数帧图像和所述局部图像进行合并,生成预览图像;a merging module for merging the second odd-numbered frame image and the partial image to generate a preview image; 还包括:Also includes: 第二图像获取模块,用于在所述第一图像获取模块以第一曝光参数曝光获得第二奇数帧图像,以第二曝光参数曝光获得第二偶数帧图像之前,获取摄像头连续采集的第一奇数帧图像和第一偶数帧图像;The second image acquisition module is configured to acquire the first image continuously collected by the camera before the first image acquisition module obtains the second odd-numbered frame image by exposure with the first exposure parameter, and obtains the second even-numbered frame image by exposure with the second exposure parameter. The odd-numbered frame image and the first even-numbered frame image; 第一曝光参数确定模块,用于对所述第一奇数帧图像进行自动曝光计算,得到第一曝光参数;a first exposure parameter determination module, configured to perform automatic exposure calculation on the first odd-numbered frame images to obtain a first exposure parameter; 第二曝光参数确定模块,用于依据用户的第一曝光调节操作对所述第一偶数帧图像进行曝光计算,得到第二曝光参数;A second exposure parameter determination module, configured to perform exposure calculation on the first even-numbered frame image according to the user's first exposure adjustment operation, to obtain a second exposure parameter; 其中,所述合并模块包括:Wherein, the merging module includes: 局部图像确定子模块,用于确定所述第二奇数帧图像中与所述局部取景范围重合的第一局部图像;a partial image determination submodule, configured to determine a first partial image in the second odd-numbered frame image that overlaps with the partial viewing range; 提取子模块,用于利用所述第二偶数帧图像中提取出的局部图像替换第二奇数帧图像中的第一局部图像;Extraction submodule for replacing the first partial image in the second odd frame image with the partial image extracted from the second even frame image; 预览图像确定子模块,用于以替换后的第二奇数帧图像为预览图像。The preview image determination submodule is used for taking the second odd-numbered frame image after replacement as the preview image. 8.根据权利要求7所述的移动终端,其特征在于,所述移动终端还包括:8. The mobile terminal according to claim 7, wherein the mobile terminal further comprises: 第三曝光参数确定模块,用于在所述第一图像获取模块以第一曝光参数曝光获得第二奇数帧图像,以第二曝光参数曝光获得第二偶数帧图像之后,对所述第二奇数帧图像进行自动曝光计算,得到第三曝光参数;The third exposure parameter determination module is configured to, after the first image acquisition module obtains a second odd-numbered frame image by exposing with the first exposure parameter, and obtains a second even-numbered frame image by exposing with the second exposure parameter, analyze the second odd-numbered frame image by exposure with the second exposure parameter. The frame image is subjected to automatic exposure calculation to obtain the third exposure parameter; 第四曝光参数确定模块,用于依据用户的第二曝光调节操作对所述第二偶数帧图像进行曝光计算,得到第四曝光参数。The fourth exposure parameter determination module is configured to perform exposure calculation on the second even-numbered frame images according to the user's second exposure adjustment operation to obtain fourth exposure parameters. 9.根据权利要求8所述的移动终端,其特征在于,所述移动终端还包括:9. The mobile terminal according to claim 8, wherein the mobile terminal further comprises: 第三图像获取模块,用于在所述合并模块生成预览图像后,以第三曝光参数曝光获得第三奇数帧图像,以第四曝光参数曝光获得第三偶数帧图像,其中,所述第三奇数帧图像和第三偶数帧图像为摄像头连续采集的图像;A third image acquisition module, configured to obtain a third odd-numbered frame image by exposure with a third exposure parameter, and obtain a third even-numbered frame image by exposure with a fourth exposure parameter after the merging module generates the preview image, wherein the third The odd-numbered frame images and the third even-numbered frame images are images continuously collected by the camera; 第二局部图像获取模块,用于根据预先确定的局部取景范围,获取所述第三偶数帧图像中与局部取景范围重合的局部图像;a second partial image acquisition module, configured to acquire, according to a predetermined local framing range, a partial image that overlaps with the local framing range in the third even-numbered frame image; 第二合并模块,用于对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像;a second merging module, configured to merge the third odd-numbered frame image and the partial images in the third even-numbered frame image to generate a preview image; 其中,所述对所述第三奇数帧图像和所述第三偶数帧图像中的局部图像进行合并,生成预览图像包括:The generating a preview image by merging the third odd-numbered frame image and the partial images in the third even-numbered frame image includes: 确定所述第三奇数帧图像中与所述局部取景范围重合的第一局部图像;determining a first partial image in the third odd-numbered frame image that coincides with the partial viewing range; 利用所述第三偶数帧图像中提取出的局部图像替换第三奇数帧图像中的第一局部图像;Replace the first partial image in the third odd-numbered frame image with the partial image extracted from the third even-numbered frame image; 以替换后的第三奇数帧图像为预览图像。Take the replaced third odd-numbered frame image as the preview image. 10.根据权利要求7所述的移动终端,其特征在于,所述移动终端还包括:10. The mobile terminal according to claim 7, wherein the mobile terminal further comprises: 第一范围确定模块,用于在所述第二图像获取模块获取摄像头连续拍摄的第一奇数帧图像和第一偶数帧图像之前,将预览界面中满足设定条件的区域确定为局部取景范围;或者,a first range determination module, configured to determine an area that satisfies the set condition in the preview interface as a local framing range before the second image acquisition module acquires the first odd-numbered frame image and the first even-numbered frame image continuously shot by the camera; or, 第二范围确定模块,用于接收用户对局部取景范围的第一设置操作,依据所述第一设置操作确定局部取景范围;或者,The second range determination module is configured to receive a user's first setting operation on the local framing range, and determine the local framing range according to the first setting operation; or, 第三范围确定模块,用于将预览界面中满足设定条件的区域确定为局部取景范围,并在预览界面中标定确定的所述局部取景范围;接收用户对标定的所述局部取景范围的调整操作,将调整后的区域确定为局部取景范围。The third range determination module is used to determine the area in the preview interface that satisfies the set condition as the local viewfinder range, and calibrate the determined local viewfinder range in the preview interface; receive the user's adjustment to the calibrated local viewfinder range operation to determine the adjusted area as the local framing range. 11.根据权利要求7所述的移动终端,其特征在于,所述第一曝光参数确定模块包括:11. The mobile terminal according to claim 7, wherein the first exposure parameter determination module comprises: 亮度值确定子模块,用于确定所述第一奇数帧图像的第一亮度值,以及自动曝光对应的目标亮度值;a brightness value determination submodule, configured to determine the first brightness value of the first odd-numbered frame image and the target brightness value corresponding to automatic exposure; 计算子模块,用于通过对所述第一亮度值以及所述目标亮度值进行计算,得到第一曝光参数。The calculation sub-module is configured to obtain a first exposure parameter by calculating the first brightness value and the target brightness value. 12.根据权利要求7所述的移动终端,其特征在于,所述第二曝光参数确定模块包括:12. The mobile terminal according to claim 7, wherein the second exposure parameter determination module comprises: 亮度值确定子模块,用于依据用户的第一曝光调节操作确定目标曝光亮度;确定第一偶数帧图像的第二亮度值;a brightness value determination sub-module, configured to determine the target exposure brightness according to the user's first exposure adjustment operation; determine the second brightness value of the first even-numbered frame image; 计算子模块,用于通过对所述第二亮度值以及所述目标曝光亮度进行计算,得到第二曝光参数。The calculation sub-module is configured to obtain a second exposure parameter by calculating the second brightness value and the target exposure brightness.
CN201610533216.3A 2016-07-06 2016-07-06 Image exposure method and mobile terminal Active CN106060422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610533216.3A CN106060422B (en) 2016-07-06 2016-07-06 Image exposure method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610533216.3A CN106060422B (en) 2016-07-06 2016-07-06 Image exposure method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106060422A CN106060422A (en) 2016-10-26
CN106060422B true CN106060422B (en) 2019-02-22

Family

ID=57185638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610533216.3A Active CN106060422B (en) 2016-07-06 2016-07-06 Image exposure method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106060422B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851090B (en) * 2016-12-20 2019-06-28 Oppo广东移动通信有限公司 Image processing method and device, control method and device, imaging device and electronic device
JP6923754B2 (en) 2017-06-09 2021-08-25 華為技術有限公司Huawei Technologies Co.,Ltd. Image capture method and equipment
CN111526300A (en) * 2017-08-17 2020-08-11 吴彬 Video shooting method capable of obtaining clear image quality
CN107395997A (en) * 2017-08-18 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107592469B (en) * 2017-10-23 2021-01-05 努比亚技术有限公司 Exposure value adjusting method, mobile terminal and readable storage medium
CN107872631B (en) * 2017-12-06 2020-05-19 Oppo广东移动通信有限公司 Image shooting method and device based on double cameras and mobile terminal
CN108234880B (en) * 2018-02-02 2020-11-24 成都西纬科技有限公司 Image enhancement method and device
CN112399091B (en) * 2020-10-26 2023-01-20 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN112511749A (en) * 2020-11-30 2021-03-16 上海摩象网络科技有限公司 Automatic exposure control method and device for target object and electronic equipment
CN113382169B (en) * 2021-06-18 2023-05-09 荣耀终端有限公司 A photographing method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909150A (en) * 2009-06-03 2010-12-08 索尼公司 Imaging device and imaging control method
CN103685973A (en) * 2013-12-26 2014-03-26 浙江宇视科技有限公司 Local area exposure adjustment method and device based on encoder
CN103873780A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Video capture method and electronic equipment
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN105100637A (en) * 2015-08-31 2015-11-25 联想(北京)有限公司 Image processing method and electronic equipment
CN105245784A (en) * 2014-06-26 2016-01-13 深圳锐取信息技术股份有限公司 Shooting processing method and shooting processing device for projection region in multimedia classroom

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8995783B2 (en) * 2012-09-19 2015-03-31 Qualcomm Incorporation System for photograph enhancement by user controlled local image enhancement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909150A (en) * 2009-06-03 2010-12-08 索尼公司 Imaging device and imaging control method
CN103873780A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Video capture method and electronic equipment
CN103685973A (en) * 2013-12-26 2014-03-26 浙江宇视科技有限公司 Local area exposure adjustment method and device based on encoder
CN105245784A (en) * 2014-06-26 2016-01-13 深圳锐取信息技术股份有限公司 Shooting processing method and shooting processing device for projection region in multimedia classroom
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN105100637A (en) * 2015-08-31 2015-11-25 联想(北京)有限公司 Image processing method and electronic equipment

Also Published As

Publication number Publication date
CN106060422A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106060422B (en) Image exposure method and mobile terminal
CN106060406B (en) A kind of photographing method and mobile terminal
CN106131449B (en) A kind of photographic method and mobile terminal
CN107172346B (en) Virtualization method and mobile terminal
CN106161967B (en) Backlight scene panoramic shooting method and mobile terminal
CN107454330B (en) Image processing method, mobile terminal and computer-readable storage medium
CN105827754B (en) A method for generating a high dynamic range image and a mobile terminal
CN106231178B (en) Selfie method and mobile terminal
CN106657793B (en) An image processing method and mobile terminal
CN105872148A (en) Method and mobile terminal for generating high dynamic range images
CN105959564B (en) A kind of photographic method and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
CN106060386A (en) Preview image generation method and mobile terminal
CN106791357A (en) A kind of image pickup method and mobile terminal
CN107147837A (en) A shooting parameter setting method and mobile terminal
CN107483821B (en) Image processing method and mobile terminal
US9509733B2 (en) Program, communication apparatus and control method
CN106506962A (en) Image processing method and mobile terminal
CN106331484B (en) Focusing method and mobile terminal
CN106231187A (en) A kind of method shooting image and mobile terminal
CN106101544A (en) A kind of image processing method and mobile terminal
CN107454331A (en) A shooting mode switching method and mobile terminal
CN107592458B (en) Shooting method and mobile terminal
CN107360375B (en) Shooting method and mobile terminal
CN106993091A (en) A kind of image weakening method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant