WO2020181483A1 - Camera control method and apparatus - Google Patents

Camera control method and apparatus Download PDF

Info

Publication number
WO2020181483A1
WO2020181483A1 PCT/CN2019/077789 CN2019077789W WO2020181483A1 WO 2020181483 A1 WO2020181483 A1 WO 2020181483A1 CN 2019077789 W CN2019077789 W CN 2019077789W WO 2020181483 A1 WO2020181483 A1 WO 2020181483A1
Authority
WO
WIPO (PCT)
Prior art keywords
exposure
brightness
value
exposure parameter
parameter
Prior art date
Application number
PCT/CN2019/077789
Other languages
French (fr)
Chinese (zh)
Inventor
俞利富
梁大奖
王浩伟
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/077789 priority Critical patent/WO2020181483A1/en
Priority to CN201980005410.6A priority patent/CN111316635B/en
Publication of WO2020181483A1 publication Critical patent/WO2020181483A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene

Definitions

  • the camera control method provided by the embodiments of the present invention can be applied to any device capable of implementing camera functions. It should be noted that the present invention may not limit the specific form of the device that realizes the camera function.
  • the device that implements the camera function may specifically be a camera, a mobile phone that implements the camera function, a tablet computer that implements the camera function, a pan-tilt camera, and a drone that implements the camera function.
  • FIG. 1 is a schematic flowchart of a camera control method provided by an embodiment of the present invention.
  • the execution subject of this embodiment may be a camera control device, and specifically may be a processor of the camera control device.
  • the method of this embodiment may include:
  • Step 103 Determine a brightness difference value according to the first exposure parameter and the second exposure parameter.
  • Step 402 Determine the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
  • the first exposure parameter can be adjusted by adjusting the target brightness. Further, because the adjustment of the target brightness is determined according to the first exposure parameter and the second exposure parameter, the adjustment of the target brightness can make the brightness of the image presented according to the adjusted first exposure parameter in the preview mode comparable to the shooting In the mode, the brightness of the images taken according to the second exposure parameter is consistent.
  • the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes at least one piece of code, and the at least one piece of code can be executed by a computer to control the The computer executes part or all of the steps of the camera control method in the foregoing method embodiments.

Abstract

Disclosed are a camera control method and apparatus. The method comprises: determining, according to a preset target brightness, a first exposure parameter of a camera in a preview mode (101); determining, according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user, a second exposure parameter of the camera in a photographing mode (102); determining, according to the first exposure parameter and the second exposure parameter, a brightness difference value (103); and controlling, according to the brightness difference value, the brightness of an image displayed in the preview mode (104). In the present invention, the brightness of an image displayed in a preview mode can be made consistent with the brightness of an image photographed in a photographing mode.

Description

相机控制方法及装置Camera control method and device 技术领域Technical field
本发明涉及相机领域,尤其涉及一种相机控制方法及装置。The invention relates to the field of cameras, in particular to a camera control method and device.
背景技术Background technique
随着社会的发展,相机的应用越来越广泛,例如手机、电脑、无人机等设备上均可以设置相机以进行图像采集。With the development of society, the application of cameras has become more and more extensive. For example, mobile phones, computers, drones and other devices can be equipped with cameras for image collection.
现有技术中,当相机工作在半自动挡模式时,用户可以对相机的部分曝光参数进行调整。具体的,在预览模式下,相机可以根据图像的目标亮度,选定一组与用户所调整的部分曝光参数无关的曝光参数(即曝光参数1),用于呈现图像。然而,在拍摄模式下,为了使得拍摄模式得到的图像与预览模式呈现的图像亮度一致,即,预览模式呈现的图像的亮度即为拍摄模式得到的图像的亮度,相机可以根据用户调整所调整的部分曝光参数以及曝光参数1对应的曝光值,调整其他曝光参数,得到曝光参数2,并使用曝光参数2拍摄图像。In the prior art, when the camera works in the semi-automatic mode, the user can adjust some of the camera's exposure parameters. Specifically, in the preview mode, the camera can select a set of exposure parameters that are not related to the part of the exposure parameters adjusted by the user according to the target brightness of the image (ie, exposure parameter 1) for presenting the image. However, in the shooting mode, in order to make the brightness of the image obtained in the shooting mode consistent with the image presented in the preview mode, that is, the brightness of the image presented in the preview mode is the brightness of the image obtained in the shooting mode, the camera can adjust the adjustment according to the user Part of the exposure parameters and the exposure value corresponding to the exposure parameter 1, adjust other exposure parameters to obtain the exposure parameter 2, and use the exposure parameter 2 to take an image.
但是,现有技术中,存在由于用户对部分曝光参数的调整不合理,而导致在拍摄模式下所使用的曝光参数,无法使得拍摄模式得到的图像与预览模式呈现的图像亮度一致的问题,即拍摄模式得到的图像与预览模式所呈现的图像的亮度不一致。However, in the prior art, there is a problem that the exposure parameters used in the shooting mode cannot make the image obtained in the shooting mode consistent with the brightness of the image presented in the preview mode due to the unreasonable adjustment of some exposure parameters by the user, that is, The brightness of the image obtained in the shooting mode and the image presented in the preview mode are not consistent.
发明内容Summary of the invention
本发明实施例提供一种相机控制方法及装置,用于解决现有技术中由于用户对部分曝光参数的调整不合理,而导致在拍摄模式下所使用的曝光参数,无法使得拍摄模式得到的图像与预览模式呈现的图像亮度一致的问题。The embodiments of the present invention provide a camera control method and device, which are used to solve the problem that the exposure parameters used in the shooting mode cannot make the image obtained in the shooting mode due to the unreasonable adjustment of some exposure parameters by the user in the prior art. The problem is consistent with the brightness of the image presented in the preview mode.
第一方面,本发明实施例提供一种相机控制方法,包括:In a first aspect, an embodiment of the present invention provides a camera control method, including:
根据预设的目标亮度,确定相机在预览模式下的第一曝光参数;Determine the first exposure parameter of the camera in preview mode according to the preset target brightness;
根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数;Determining the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user;
根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值;Determine a brightness difference value according to the first exposure parameter and the second exposure parameter;
根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度。According to the brightness difference value, the brightness of the image presented in the preview mode is controlled.
第二方面,本发明实施例提供一种相机控制装置,包括:处理器和存储器;In a second aspect, an embodiment of the present invention provides a camera control device, including: a processor and a memory;
所述存储器,用于存储程序代码;The memory is used to store program code;
所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
根据预设的目标亮度,确定相机在预览模式下的第一曝光参数;Determine the first exposure parameter of the camera in preview mode according to the preset target brightness;
根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数;Determining the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user;
根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值;Determine a brightness difference value according to the first exposure parameter and the second exposure parameter;
根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度。According to the brightness difference value, the brightness of the image presented in the preview mode is controlled.
第三方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包含至少一段代码,所述至少一段代码可由计算机执行,以控制所述计算机执行如上述第一方面任一项所述的相机控制方法。In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes at least one piece of code, the at least one piece of code can be executed by a computer to control all The computer executes the camera control method according to any one of the above-mentioned first aspects.
第四方面,本发明实施例提供一种计算机程序,当所述计算机程序被计算机执行时,用于实现如上述第一方面任一项所述的相机控制方法。In a fourth aspect, an embodiment of the present invention provides a computer program, when the computer program is executed by a computer, it is used to implement the camera control method according to any one of the foregoing first aspects.
本发明实施例提供的相机控制方法及装置,通过根据预设的目标亮度,确定相机在预览模式下的第一曝光参数,根据第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定相机在拍摄模式下的第二曝光参数,根据第一曝光参数和第二曝光参数,确定亮度差异值,并根据亮度差异值,控制在预览模式下所呈现的图像的亮度,由于亮度差异值可以表征根据第一曝光参数在预览模式下所呈现的图像的亮度,与根据第二曝光参数在拍摄模式下所拍摄图像的亮度之间的差异,因此根据亮度差异值,控制在预览模式下所呈现的图像的亮度,能够使预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度一致,避免了由于用户对部分曝光参数的调整不合理,而导致在拍摄模式下所使用的曝光参数,无法使得拍摄模式得到的图像与预览模式呈现的图像亮度一致的问题,使得用户可以通过预览模式所呈现的图像获知其对部分曝光参数调整后对图像的亮度所带来的影响,提高了用户体验。The camera control method and device provided by the embodiments of the present invention determine the first exposure parameter of the camera in preview mode according to the preset target brightness, and according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user, Determine the second exposure parameter of the camera in the shooting mode, determine the brightness difference value according to the first exposure parameter and the second exposure parameter, and control the brightness of the image presented in the preview mode according to the brightness difference value, due to the brightness difference value It can characterize the difference between the brightness of the image presented in the preview mode according to the first exposure parameter and the brightness of the image taken in the shooting mode according to the second exposure parameter, so according to the brightness difference value, control the difference in the preview mode The brightness of the presented image can make the brightness of the image presented in the preview mode consistent with the brightness of the image captured in the shooting mode, avoiding the unreasonable adjustment of some exposure parameters by the user, which may lead to the use in the shooting mode The problem that the brightness of the image obtained in the shooting mode cannot be consistent with the brightness of the image presented in the preview mode is caused by the exposure parameters of the camera, so that the user can know the impact on the brightness of the image after the adjustment of some exposure parameters through the image presented in the preview mode. Improve the user experience.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为本发明一实施例提供的相机控制方法的流程示意图;FIG. 1 is a schematic flowchart of a camera control method provided by an embodiment of the present invention;
图2为本发明另一实施例提供的相机控制方法的流程示意图;2 is a schematic flowchart of a camera control method provided by another embodiment of the present invention;
图3为本发明实施例提供的各个阶段的处理顺序示意图;3 is a schematic diagram of the processing sequence of various stages provided by an embodiment of the present invention;
图4为本发明又一实施例提供的相机控制方法的流程示意图;4 is a schematic flowchart of a camera control method provided by another embodiment of the present invention;
图5为本发明实施例提供的伽马线的示意图;FIG. 5 is a schematic diagram of a gamma line provided by an embodiment of the present invention;
图6为本发明又一实施例提供的相机控制方法的流程示意图;6 is a schematic flowchart of a camera control method according to another embodiment of the present invention;
图7为本发明实施例提供的一种相机控制装置。Fig. 7 is a camera control device provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本发明实施例提供的相机控制方法可以应用于任何能够实现相机功能的设备。需要说明的是,对于实现相机功能的设备的具体形式,本发明可以不作限定。可选的,该实现相机功能的设备具体可以为相机、实现相机功能的手机、实现相机功能的平板电脑、云台相机、实现相机功能的无人机等。The camera control method provided by the embodiments of the present invention can be applied to any device capable of implementing camera functions. It should be noted that the present invention may not limit the specific form of the device that realizes the camera function. Optionally, the device that implements the camera function may specifically be a camera, a mobile phone that implements the camera function, a tablet computer that implements the camera function, a pan-tilt camera, and a drone that implements the camera function.
本实施例提供的相机控制方法可以由相机控制装置执行,具体的,可以由相机控制装置的处理器执行。其中,该相机控制装置可以为通过软件和/或硬件称为实现相机功能的设备的部分或全部。The camera control method provided in this embodiment may be executed by a camera control device, specifically, it may be executed by a processor of the camera control device. Wherein, the camera control device may be part or all of a device that implements camera functions through software and/or hardware.
其中,相机可以包括预览模式和拍摄模式。相机在预览模式下是指相机可以呈现当前拍摄范围下的图像,但是并没有将所呈现的图像作为照片或者视频存储。预览模式下,用户可以获知当前能够被相机作为照片或视频进行 保存的图像,并输入拍摄指令。进一步的,用户输入拍摄指令之后,相机可以由预览模式切换至拍摄模式,并在拍摄模式下将当前拍摄范围下的图像作为照片或者视频存储。Among them, the camera may include a preview mode and a shooting mode. The camera in the preview mode means that the camera can present the image in the current shooting range, but it does not store the presented image as a photo or video. In the preview mode, the user can learn the current images that can be saved by the camera as photos or videos, and input shooting instructions. Further, after the user inputs a shooting instruction, the camera can switch from the preview mode to the shooting mode, and in the shooting mode, the image in the current shooting range is stored as a photo or video.
对于半自动挡模式,在正常的曝光范围内,预览模式下所呈现的图像与拍摄模式下所拍摄的图像的亮度可以保持一致,但是在拍摄模式的曝光参数对应的曝光值超过预览模式的曝光范围(以下,简称特殊情况)时,存在不一致的问题。这里,半自动挡模式可以是指允许用户对相机的部分曝光参数进行调整的模式。示例性的,相机的半自动挡模式可以包括:光圈优先模式(简称A档),使用者调整光圈大小、感光度,再由相机自动测光决定快门时间;快门优先模式(简称S档),使用者调整快门时间、感光度,再由相机自动测光决定光圈大小;程序自动模式(简称P档),使用者调整感光度,光圈和快门都由相机自动测光系统决定。For the semi-automatic mode, within the normal exposure range, the brightness of the image presented in the preview mode and the image captured in the shooting mode can be kept consistent, but the exposure value corresponding to the exposure parameter in the shooting mode exceeds the exposure range of the preview mode (Hereinafter, referred to as special cases), there are inconsistencies. Here, the semi-automatic mode may refer to a mode that allows the user to adjust part of the camera's exposure parameters. Exemplarily, the semi-automatic gear mode of the camera may include: aperture priority mode (abbreviated as A file), the user adjusts the aperture size and sensitivity, and then the camera automatically meters the shutter time; shutter priority mode (abbreviated as S file), use The user adjusts the shutter time and sensitivity, and then the camera automatically meters the aperture size; in the program automatic mode (referred to as P file), the user adjusts the sensitivity, and the aperture and shutter are determined by the camera's automatic metering system.
以S档为例,假设使用S档拍照时,正常曝光所用的拍摄模式的曝光参数为:光圈(即,F)值为2.8,快门时间为1/20秒,感光度(light sensibility ordinance,ISO)为800,但是用户此时根据自己的喜好,对快门时间进行调整,且调整后的快门时间为4秒,则由于用户将快门时间调大,曝光时间越长,进入相机的光线越多,因此根据预览模式的测光得到的亮度值(luminance value,LV),相机为了补偿快门时间上调的幅度,会将光圈和ISO调小,若光圈下调到最小值F值为10,且ISO下调到最小值100,但仍然补偿不了快门时间上调的幅度,则在拍摄模式下拍得的照片仍然是过曝光的。由此,存在预览模式下所呈现的图像曝光正常,而拍摄模式下所拍摄的图像过曝光,两者亮度不一致的问题。Taking S file as an example, assuming that when S file is used to take a picture, the exposure parameters of the shooting mode used for normal exposure are: the aperture (ie, F) value is 2.8, the shutter time is 1/20 second, and the light sensitivity ordinance, ISO ) Is 800, but the user adjusts the shutter time according to his own preferences at this time, and the adjusted shutter time is 4 seconds, because the user increases the shutter time, the longer the exposure time, the more light enters the camera. Therefore, according to the brightness value (LV) obtained by the metering in the preview mode, the camera will reduce the aperture and ISO to compensate for the upward adjustment of the shutter time. If the aperture is reduced to the minimum value of 10, and the ISO is reduced to The minimum value is 100, but still cannot compensate for the increase in the shutter time, the photos taken in the shooting mode are still overexposed. Therefore, there is a problem that the image presented in the preview mode is normally exposed, but the image taken in the shooting mode is overexposed, and the brightness of the two is inconsistent.
以S档为例,假设使用S档拍照时,正常曝光所用的拍摄模式的曝光参数为:F值为2.8,快门时间为2秒,ISO为800,但是用户此时根据自己的喜好,对快门时间进行调整,且调整后的快门时间为1/20秒,则由于用户将快门时间调小,曝光时间越短,进入相机的光线越少,因此根据预览模式的测光得到的LV,相机为了补偿快门时间下调的幅度,会将光圈和ISO调大,若光圈和ISO均调到最大值,但仍然补偿不了快门时间下调的幅度,则在拍摄模式下拍得的照片仍然是欠曝光的。由此,存在预览模式下所呈现的图像曝光正常,而拍摄模式下所拍摄的图像欠曝光,两者亮度不一致的问题。Taking the S file as an example, assuming that the S file is used to take pictures, the exposure parameters of the shooting mode used for normal exposure are: F value is 2.8, shutter time is 2 seconds, and ISO is 800. However, the user can adjust the shutter speed according to his own preferences. Adjust the time, and the adjusted shutter time is 1/20 second, then because the user adjusts the shutter time to a shorter time, the shorter the exposure time, the less light enters the camera. Therefore, according to the LV obtained by metering in the preview mode, the camera is To compensate for the decrease in the shutter time, the aperture and ISO will be increased. If the aperture and ISO are adjusted to the maximum value, but still cannot compensate for the decrease in the shutter time, the photos taken in shooting mode are still underexposed. Therefore, there is a problem that the image presented in the preview mode is normally exposed, but the image taken in the shooting mode is underexposed, and the brightness of the two is inconsistent.
以P档为例,假设使用P档拍照时,正常曝光所用的拍摄模式的曝光参数为:F值为2.8,快门时间为2秒,ISO为800,但是用户此时根据自己的喜好,对ISO将进行调整,且调整后的ISO为100,则由于用户将ISO调小,单位时间曝光量变小,因此根据预览模式的测光得到的LV,相机为了补偿ISO下调的幅度,会将光圈和快门时间调大,若光圈和快门时间均调到最大值,但仍然补偿不了ISO下调的幅度,则在拍摄模式下拍得的照片仍然是欠曝光的。由此,存在预览模式下所呈现的图像曝光正常,而拍摄模式下所拍摄的图像欠曝光,两者亮度不一致的问题。Take the P file as an example. If you use the P file to take pictures, the exposure parameters of the shooting mode used for normal exposure are: F value is 2.8, shutter time is 2 seconds, and ISO is 800. However, the user now chooses ISO according to his own preferences. Will be adjusted, and the adjusted ISO is 100, because the user adjusts the ISO to lower the exposure per unit time, so according to the LV obtained by the metering in the preview mode, the camera will adjust the aperture and shutter Increase the time. If the aperture and shutter time are adjusted to the maximum value, but still cannot compensate for the reduction in ISO, the photos taken in shooting mode are still underexposed. Therefore, there is a problem that the image presented in the preview mode is normally exposed, but the image taken in the shooting mode is underexposed, and the brightness of the two is inconsistent.
可以理解的是,在半自动拍摄模式下,存在由于使用者对于部分曝光参数的调整不合理时,相机对除该部分曝光参数之外的其他曝光参数的调整无法补偿该部分曝光参数的调整幅度(即,特殊情况下),而导致预览模式下所呈现的图像曝光正常,而拍摄模式下所拍摄的图像欠曝光或过曝光,两者亮度不一致的问题,在此不再一一例举。It is understandable that in the semi-automatic shooting mode, when the user adjusts some exposure parameters unreasonably, the camera's adjustment of other exposure parameters except this part of the exposure parameters cannot compensate for the adjustment range of this part of the exposure parameters ( That is, under special circumstances), the exposure of the image presented in the preview mode is normal, while the image captured in the shooting mode is under-exposed or over-exposed, and the brightness of the two is inconsistent, so I will not list them one by one here.
本发明实施例中,通过对预览模式下所呈现图像的亮度进行控制,使得半自动挡模式下,对于特殊情况,预览模式下所呈现的图像与拍摄模式下所拍摄的图像的亮度可以保持一致。In the embodiment of the present invention, by controlling the brightness of the image presented in the preview mode, the brightness of the image presented in the preview mode and the image captured in the shooting mode can be kept consistent in the semi-automatic gear mode for special circumstances.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
图1为本发明一实施例提供的相机控制方法的流程示意图,本实施例的执行主体可以为相机控制装置,具体可以为该相机控制装置的处理器。如图1所示,本实施例的方法可以包括:FIG. 1 is a schematic flowchart of a camera control method provided by an embodiment of the present invention. The execution subject of this embodiment may be a camera control device, and specifically may be a processor of the camera control device. As shown in Figure 1, the method of this embodiment may include:
步骤101,根据预设的目标亮度,确定相机在预览模式下的第一曝光参数。Step 101: Determine the first exposure parameter of the camera in the preview mode according to the preset target brightness.
本步骤中,目标亮度也可以称为标定曝光值。所述目标亮度可以理解为期望的图像亮度。这里,目标亮度可以与拍摄场景相关,即目标亮度可以根据当前的拍摄场景确定。示例性的,拍摄场景可以包括环境亮度、拍摄天气、拍摄时间、拍摄位置中的一种或多种。例如,当前的拍摄场景中拍摄天气为晴天,拍摄时间为中午,拍摄位置为室外时,目标亮度可以为亮度1,当前的拍摄场景中拍摄天气为阴天,拍摄时间为傍晚,拍摄位置为室外时,目标亮度可以为亮度2,亮度1可以大于亮度2。需要说明的是,对于目标亮度的 确定方式,本发明可以不作限定。In this step, the target brightness can also be referred to as the calibration exposure value. The target brightness can be understood as the desired image brightness. Here, the target brightness may be related to the shooting scene, that is, the target brightness may be determined according to the current shooting scene. Exemplarily, the shooting scene may include one or more of environmental brightness, shooting weather, shooting time, and shooting location. For example, the shooting weather in the current shooting scene is sunny, the shooting time is noon, and the shooting location is outdoor, the target brightness can be brightness 1. In the current shooting scene, the shooting weather is cloudy, the shooting time is evening, and the shooting location is outdoor The target brightness can be brightness 2, and brightness 1 can be greater than brightness 2. It should be noted that the method of determining the target brightness may not be limited in the present invention.
示例性的,可以根据预设的目标亮度以及自动曝光算法(Auto Exposure,AE)确定相机在预览模式下的第一曝光参数。可选的,可以由自动曝光算法确定曝光值,根据自动曝光算法确定的曝光值与目标亮度之间的差异确定相机的曝光值,并根据相机的曝光值确定曝光参数组合(即,第一曝光参数)。需要说明的是,对于相机在预览模式下根据预设的目标亮度确定第一曝光参数的具体方式,本发明可以不作限定。Exemplarily, the first exposure parameter of the camera in the preview mode may be determined according to the preset target brightness and an automatic exposure algorithm (Auto Exposure, AE). Optionally, the exposure value can be determined by an automatic exposure algorithm, the camera's exposure value can be determined according to the difference between the exposure value determined by the automatic exposure algorithm and the target brightness, and the exposure parameter combination can be determined according to the camera's exposure value (ie, the first exposure parameter). It should be noted that the specific manner in which the camera determines the first exposure parameter according to the preset target brightness in the preview mode may not be limited in the present invention.
步骤102,根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数。Step 102: Determine the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
本步骤中,第一曝光参数对应的曝光值可以理解为根据第一曝光参数可以得到的曝光值,具体可以为上述用于确定第一曝光参数的相机的曝光值。用户调整后的曝光参数可以为相机的全部曝光参数中的部分曝光参数,例如可以为光圈、快门和感光度中的快门。In this step, the exposure value corresponding to the first exposure parameter can be understood as the exposure value that can be obtained according to the first exposure parameter, and specifically can be the exposure value of the camera used to determine the first exposure parameter. The exposure parameter adjusted by the user may be a part of the exposure parameters of the camera, for example, may be the shutter in aperture, shutter, and sensitivity.
示例性的,可以根据所述第二曝光参数中包括所述用户调整后的曝光参数,并调整相机的全部曝光参数中除所述用户调整后的曝光参数之外的其他曝光参数,使得第二曝光参数对应的曝光值尽可能的达到所述第一曝光参数对应的曝光值的原则,确定所述第二曝光参数中的其他曝光参数,从而得到所述第二曝光参数。可以理解的是,所述第二曝光参数中包括所述用户调整后的曝光参数以及确定的所述其他曝光参数。需要说明的是,对于根据第一曝光参数对应的曝光值以及用户调整后的曝光参数确定的相机在拍摄模式下的第二曝光参数的具体方式,本发明可以不作限定。Exemplarily, according to the second exposure parameter including the user-adjusted exposure parameter, all exposure parameters of the camera other than the user-adjusted exposure parameter may be adjusted so that the second exposure parameter The exposure value corresponding to the exposure parameter reaches the exposure value corresponding to the first exposure parameter as much as possible, and other exposure parameters in the second exposure parameter are determined to obtain the second exposure parameter. It is understandable that the second exposure parameter includes the exposure parameter adjusted by the user and the other determined exposure parameter. It should be noted that the specific manner of the second exposure parameter of the camera in the shooting mode determined according to the exposure value corresponding to the first exposure parameter and the exposure parameter adjusted by the user may not be limited in the present invention.
其中,第二曝光参数例如可以为F值为10,快门时间为4秒,ISO为100。需要说明的是,本发明实施例中,快门可以包括快门时间或快门速度。Wherein, the second exposure parameter may be, for example, F value of 10, shutter time of 4 seconds, and ISO of 100. It should be noted that, in the embodiment of the present invention, the shutter may include shutter time or shutter speed.
步骤103,根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值。Step 103: Determine a brightness difference value according to the first exposure parameter and the second exposure parameter.
本步骤中,所述亮度差异值可以表征所述第一曝光参数对应的曝光值与所述第二曝光参数对应的曝光值之间的差异,任何能够表征该差异的确定亮度差异值的具体方式,均属于本发明实施例的保护范围。可选的,所述亮度差异值可以等于所述第一曝光参数对应的曝光值与所述第二曝光参数对应的曝光值之差(即,第一曝光参数对应的曝光值减去第二曝光参数对应的曝光 值所得到的结果),此时,在所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光时,所述亮度差异值可以小于0;在所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光时,所述亮度差异值可以大于0;或者,所述亮度差异值可以等于所述第二曝光参数对应的曝光值与所述第一曝光参数对应的曝光值之差(即,第二曝光参数对应的曝光值减去第一曝光参数对应的曝光值所得到的结果),此时,在所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光时,所述亮度差异值可以大于0;在所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光时,所述亮度差异值可以小于0。In this step, the brightness difference value may represent the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter, and any specific method for determining the brightness difference value that can characterize the difference , All belong to the protection scope of the embodiments of the present invention. Optionally, the brightness difference value may be equal to the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter (ie, the exposure value corresponding to the first exposure parameter minus the second exposure The result obtained by the exposure value corresponding to the parameter), at this time, when the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the brightness difference value may be less than 0; When the exposure value corresponding to the second exposure parameter is under-exposed compared to the exposure value corresponding to the first exposure parameter, the brightness difference value may be greater than 0; or, the brightness difference value may be equal to the second exposure parameter corresponding The difference between the exposure value of and the exposure value corresponding to the first exposure parameter (that is, the result of subtracting the exposure value corresponding to the first exposure parameter from the exposure value corresponding to the second exposure parameter). When the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the brightness difference value may be greater than 0; when the exposure value corresponding to the second exposure parameter corresponds to the first exposure parameter When the exposure value of is under-exposed, the brightness difference value can be less than 0.
可以理解的是,在使用者对部分曝光参数的调整合理时,相机对该部分曝光参数之外的其他曝光参数的调整能够补偿该部分曝光参数的调整幅度(即,非极端场景下),所述亮度差异值可以等于0,或者可以小于或等于一定阈值。在使用者对部分曝光参数的调整不合理时,相机对该部分曝光参数之外的其他曝光参数的调整无法补偿该部分曝光参数的调整幅度(即,极端场景下),所述亮度差异值可以大于该一定阈值,且使用者对部分曝光参数的调整不合理的程度越大,亮度差异值越大。It is understandable that when the user adjusts part of the exposure parameters reasonably, the camera can adjust the exposure parameters other than this part of the exposure parameters to compensate the adjustment range of the part of the exposure parameters (ie, in non-extreme scenes), so The brightness difference value may be equal to 0, or may be less than or equal to a certain threshold. When the user adjusts part of the exposure parameters unreasonably, the camera's adjustment of other exposure parameters other than this part of the exposure parameters cannot compensate for the adjustment range of the part of the exposure parameters (ie, in extreme scenes), and the brightness difference value may be Greater than the certain threshold, and the greater the degree of unreasonable adjustment of some exposure parameters by the user, the greater the brightness difference value.
步骤104,根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度。Step 104: Control the brightness of the image presented in the preview mode according to the brightness difference value.
本步骤中,由于所述亮度差异值可以表征根据所述第一曝光参数在预览模式下所呈现的图像的亮度,与根据所述第二曝光参数在拍摄模式下所拍摄图像的亮度之间的差异,因此根据所述亮度差异值,控制在预览模式下所呈现的图像的亮度,可以使得预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度一致。In this step, since the brightness difference value can represent the brightness of the image presented in the preview mode according to the first exposure parameter and the brightness of the image captured in the shooting mode according to the second exposure parameter. Therefore, according to the brightness difference value, controlling the brightness of the image presented in the preview mode can make the brightness of the image presented in the preview mode consistent with the brightness of the image captured in the shooting mode.
这里,所述预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度一致可以理解为:所述预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度相同,或者,所述预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度的差异(例如,差值的绝对值)小于或等于一定阈值。Here, the brightness of the image presented in the preview mode is consistent with the brightness of the image captured in the shooting mode can be understood as: the brightness of the image presented in the preview mode is the same as the brightness of the image captured in the shooting mode Or, the difference (for example, the absolute value of the difference) between the brightness of the image presented in the preview mode and the brightness of the image captured in the shooting mode is less than or equal to a certain threshold.
对于根据亮度差异值,控制在预览模式下所呈现的图像的亮度的具体方式举例,可以参考下述图2至图6所示实施例中的相关描述。需要说明的是, 任何根据所述亮度差异值,控制在预览模式下所呈现的图像的亮度,以使预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度一致的具体方式,均属于本发明实施例的保护范围。For an example of a specific method of controlling the brightness of the image presented in the preview mode according to the brightness difference value, reference may be made to the related description in the embodiments shown in FIGS. 2 to 6 below. It should be noted that any specific method for controlling the brightness of the image presented in the preview mode according to the brightness difference value so that the brightness of the image presented in the preview mode is consistent with the brightness of the image captured in the shooting mode , All belong to the protection scope of the embodiments of the present invention.
本实施例提供的相机控制方法,通过根据预设的目标亮度,确定相机在预览模式下的第一曝光参数,根据第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定相机在拍摄模式下的第二曝光参数,根据第一曝光参数和第二曝光参数,确定亮度差异值,并根据亮度差异值,控制在预览模式下所呈现的图像的亮度,由于亮度差异值可以表征根据第一曝光参数在预览模式下所呈现的图像的亮度,与根据第二曝光参数在拍摄模式下所拍摄图像的亮度之间的差异,因此根据亮度差异值,控制在预览模式下所呈现的图像的亮度,能够使预览模式下所呈现的图像的亮度与拍摄模式下所拍摄的图像的亮度一致,避免了由于用户对部分曝光参数的调整不合理,而导致在拍摄模式下所使用的曝光参数,无法使得拍摄模式得到的图像与预览模式呈现的图像亮度一致的问题,使得用户可以通过预览模式所呈现的图像获知其对部分曝光参数调整后对图像的亮度所带来的影响,提高了用户体验。The camera control method provided by this embodiment determines the camera's first exposure parameter in the preview mode according to the preset target brightness, and determines the camera's position according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user. The second exposure parameter in the shooting mode determines the brightness difference value according to the first exposure parameter and the second exposure parameter, and controls the brightness of the image presented in the preview mode according to the brightness difference value, because the brightness difference value can be characterized according to The difference between the brightness of the image presented by the first exposure parameter in the preview mode and the brightness of the image taken in the shooting mode according to the second exposure parameter, so according to the brightness difference value, the image presented in the preview mode is controlled The brightness can make the brightness of the image presented in the preview mode consistent with the brightness of the image captured in the shooting mode, avoiding the exposure parameters used in the shooting mode due to the unreasonable adjustment of some exposure parameters by the user , The problem that the brightness of the image obtained in the shooting mode cannot be consistent with the brightness of the image presented in the preview mode allows the user to know the impact on the brightness of the image after the adjustment of some exposure parameters through the image presented in the preview mode, which improves the user Experience.
图2为本发明另一实施例提供的相机控制方法的流程示意图。本实施例在图1所示实施例的基础上,主要描述了根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度的一种可选的实现方式。如图2所示,本实施例的方法可以包括:FIG. 2 is a schematic flowchart of a camera control method provided by another embodiment of the present invention. On the basis of the embodiment shown in FIG. 1, this embodiment mainly describes an optional implementation manner of controlling the brightness of the image presented in the preview mode according to the brightness difference value. As shown in Figure 2, the method of this embodiment may include:
步骤201,根据预设的目标亮度,确定相机在预览模式下的第一曝光参数。Step 201: Determine the first exposure parameter of the camera in the preview mode according to the preset target brightness.
需要说明的是,步骤201与步骤101类似,在此不再赘述。It should be noted that step 201 is similar to step 101 and will not be repeated here.
步骤202,根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数。Step 202: Determine the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
需要说明的是,步骤202与步骤102类似,在此不再赘述。It should be noted that step 202 is similar to step 102 and will not be repeated here.
步骤203,根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值。Step 203: Determine a brightness difference value according to the first exposure parameter and the second exposure parameter.
需要说明的是,步骤203与步骤103类似,在此不再赘述。It should be noted that step 203 is similar to step 103 and will not be repeated here.
步骤204,根据所述亮度差异值,确定数字增益值。Step 204: Determine a digital gain value according to the brightness difference value.
本步骤中,所述数字增益值(Dgain)可以用于实现对感光度的控制,即, 数字增益值可以作为感光度的控制参数。除数字增益值之外,模拟增益值(Again)也可以作为感光度的控制参数。In this step, the digital gain value (Dgain) can be used to control the sensitivity, that is, the digital gain value can be used as a control parameter of the sensitivity. In addition to the digital gain value, the analog gain value (Again) can also be used as a sensitivity control parameter.
具体的,可以根据所述第一曝光参数对应的曝光值与所述第二曝光参数对应的曝光值之间的差异越大,在所述预览模式下呈现图像之前,对所述图像的亮度值进行调整的幅度越大,以及所述第一曝光参数对应的曝光值与所述第二曝光参数对应的曝光值之间的差异越小,在所述预览模式下呈现图像之前,对所述图像的亮度值进行调整的幅度越小的第一调整目标确定数字增益值。Specifically, according to the greater the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter, the brightness value of the image may be determined before the image is presented in the preview mode. The greater the adjustment range, and the smaller the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter, the smaller the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter. The smaller the magnitude of the brightness value is adjusted, the first adjustment target determines the digital gain value.
示例性的,假设所述亮度差异值等于所述第二曝光参数对应的曝光值与所述第一曝光参数对应的曝光值之差,则在所述亮度差异值大于0时,所述数字增益值可以大于1,且所述数字增益值可以与所述亮度差异值正相关;在所述亮度差异值小于0时,所述数字增益值可以小于1,且所述数字增益值与所述亮度差异值的绝对值负相关。Exemplarily, assuming that the brightness difference value is equal to the difference between the exposure value corresponding to the second exposure parameter and the exposure value corresponding to the first exposure parameter, when the brightness difference value is greater than 0, the digital gain The value may be greater than 1, and the digital gain value may be positively correlated with the brightness difference value; when the brightness difference value is less than 0, the digital gain value may be less than 1, and the digital gain value and the brightness The absolute value of the difference value is negatively correlated.
示例性的,假设所述亮度差异值等于所述第一曝光参数对应的曝光值与所述第二曝光参数对应的曝光值之差,则在所述亮度差异值大于0时,所述数字增益值可以小于1,且所述数字增益值可以与所述亮度差异值负相关;在所述亮度差异值小于0时,所述数字增益值可以大于1,且所述数字增益值与所述亮度差异值的绝对值正相关。Exemplarily, assuming that the brightness difference value is equal to the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter, when the brightness difference value is greater than 0, the digital gain The value may be less than 1, and the digital gain value may be negatively correlated with the brightness difference value; when the brightness difference value is less than 0, the digital gain value may be greater than 1, and the digital gain value and the brightness The absolute value of the difference value is positively correlated.
需要说明的是,对于根据亮度差异值确定数字增益值的具体方式,本发明实施例可以不作限定,任何满足上述第一调整目标的确定数字增益值的具体确定方式,均属于本发明的保护范围。可选的,步骤204具体可以包括:根据所述亮度差异值以及预设的转换关系,确定数字增益值。这里,对于预设的转换关系的具体形式,本发明实施例可以不作限定,例如可以预设的公式,预设的表格等等。It should be noted that the specific method for determining the digital gain value according to the brightness difference value may not be limited in the embodiment of the present invention. Any specific method for determining the digital gain value that satisfies the first adjustment target mentioned above belongs to the protection scope of the present invention. . Optionally, step 204 may specifically include: determining a digital gain value according to the brightness difference value and a preset conversion relationship. Here, the specific form of the preset conversion relationship may not be limited in the embodiment of the present invention, for example, a preset formula, a preset table, and so on.
考虑到在所述数字增益值小于1时,可能存在图像的高光区域乘以数字增益值导致多个颜色通道不均衡,从而导致图像的色调偏移的问题,可选的,所述根据所述亮度差异值,确定数字增益值之前,还包括如下步骤:Considering that when the digital gain value is less than 1, there may be a problem that the highlight area of the image is multiplied by the digital gain value, which results in the imbalance of multiple color channels, thereby causing the hue shift of the image, optionally, according to the Before determining the brightness difference value, the digital gain value also includes the following steps:
根据所述亮度差异值,判断所述第二曝光参数对应的曝光值是否较所述第一曝光参数对应的曝光值过曝光;这里,所述第二曝光参数对应的曝光值是否较所述第一曝光参数对应的曝光值过曝光可以表示所述数字增益值大于 1。According to the brightness difference value, it is determined whether the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter; here, whether the exposure value corresponding to the second exposure parameter is higher than the first exposure parameter. Overexposure with an exposure value corresponding to an exposure parameter may indicate that the digital gain value is greater than one.
若所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,则执行所述根据所述亮度差异值,确定数字增益值的步骤。If the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the step of determining the digital gain value according to the brightness difference value is performed.
可选的,若所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光,则可以结束(即,在所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光的场景下,可以不根据亮度差异值控制在预览模式下所呈现的图像的亮度),或者,可以采用图4至图6所示实施例的方式控制在所述预览模式下所呈现的图像的亮度。这里,所述第二曝光参数对应的曝光值是否较所述第一曝光参数对应的曝光值欠曝光可以表示所述数字增益值小于1。Optionally, if the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, it may end (that is, the exposure value corresponding to the second exposure parameter is lower than the exposure value corresponding to the first exposure parameter). In a scene where the exposure value corresponding to an exposure parameter is under-exposed, the brightness of the image presented in the preview mode may not be controlled according to the brightness difference value), or it may be controlled in the manner shown in the embodiments shown in FIGS. 4 to 6 Describes the brightness of the image presented in preview mode. Here, whether the exposure value corresponding to the second exposure parameter is less than the exposure value corresponding to the first exposure parameter may indicate that the digital gain value is less than one.
步骤205,在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值。Step 205: Before presenting the image in the preview mode, adjust the brightness value of the image according to the digital gain value.
本步骤中,所述数字增益值可以用于在预览模式下呈现图像之前,对所述图像的亮度值进行调整。可选的,可以在目前已有处理阶段的基础上,新增一个处理阶段用于在预览模式下呈现图像之前,根据数字增益值对图像的亮度值进行调整;或者,也可以在预览模式下呈现图像之前,在目前已有处理阶段中增加根据数字增益值对图像的亮度值进行调整的处理。In this step, the digital gain value can be used to adjust the brightness value of the image before the image is presented in the preview mode. Optionally, on the basis of the existing processing stage, a new processing stage can be added to adjust the brightness value of the image according to the digital gain value before the image is presented in preview mode; or, it can also be in preview mode Before presenting the image, the process of adjusting the brightness value of the image according to the digital gain value is added to the existing processing stage.
进一步可选的,为了便于实现,在所述预览模式下呈现图像之前,根据所述数字增益值,在第一处理阶段中调整所述图像的亮度值;其中,所述第一处理阶段为所述相机在所述预览模式下,对测光区域得到的原始数据进行处理的所有阶段中允许设置数字增益值的一个阶段。示例性的,所述第一处理阶段可以为如下阶段中的任意一个:白平衡(white balance,WBC)阶段、色彩校正(color correction,CC)阶段、调整伽马(Gamma)线阶段、全域色调映射(global tone mapping,GTM)阶段和红绿蓝(RGB)颜色空间转换至YUV(也可以称为YCrCb)颜色空间(简称R2Y)阶段。其中,各个阶段之间的处理顺序例如可以如图3所示。Further optionally, for ease of implementation, before the image is presented in the preview mode, the brightness value of the image is adjusted in the first processing stage according to the digital gain value; wherein, the first processing stage is When the camera is in the preview mode, a digital gain value is allowed to be set in all stages of processing the raw data obtained from the light metering area. Exemplarily, the first processing stage may be any one of the following stages: white balance (WBC) stage, color correction (CC) stage, gamma line adjustment stage, global hue Mapping (global tone mapping, GTM) stage and red-green-blue (RGB) color space conversion to YUV (also called YCrCb) color space (referred to as R2Y) stage. Among them, the processing sequence between the various stages may be as shown in FIG. 3, for example.
本实施例提供的相机控制方法,通过根据预设的目标亮度,确定相机在预览模式下的第一曝光参数,根据第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定相机在拍摄模式下的第二曝光参数,根据第一曝光参数和第二曝光参数,确定亮度差异值,根据亮度差异值,确定数字增益值, 并在预览模式下呈现图像之前,根据数字增益值调整图像的亮度值,实现了根据亮度差异值,控制在预览模式下所呈现的图像的亮度,使得预览模式下所呈现的图像的亮度可以与拍摄模式下所拍摄的图像的亮度一致。The camera control method provided by this embodiment determines the camera's first exposure parameter in the preview mode according to the preset target brightness, and determines the camera's position according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user. The second exposure parameter in shooting mode determines the brightness difference value according to the first exposure parameter and the second exposure parameter, determines the digital gain value according to the brightness difference value, and adjusts the image according to the digital gain value before presenting the image in preview mode The brightness value of, realizes the control of the brightness of the image presented in the preview mode according to the brightness difference value, so that the brightness of the image presented in the preview mode can be consistent with the brightness of the image captured in the shooting mode.
图4为本发明又一实施例提供的相机控制方法的流程示意图。本实施例在图1所示实施例的基础上,主要描述了根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度的另一种可选的实现方式。如图4所示,本实施例的方法可以包括:4 is a schematic flowchart of a camera control method provided by another embodiment of the present invention. Based on the embodiment shown in FIG. 1, this embodiment mainly describes another optional implementation manner of controlling the brightness of the image presented in the preview mode according to the brightness difference value. As shown in Figure 4, the method of this embodiment may include:
步骤401,根据预设的目标亮度,确定相机在预览模式下的第一曝光参数。Step 401: Determine the first exposure parameter of the camera in the preview mode according to the preset target brightness.
需要说明的是,步骤401与步骤101类似,在此不再赘述。It should be noted that step 401 is similar to step 101 and will not be repeated here.
步骤402,根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数。Step 402: Determine the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
需要说明的是,步骤402与步骤102类似,在此不再赘述。It should be noted that step 402 is similar to step 102, and will not be repeated here.
步骤403,根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值。Step 403: Determine a brightness difference value according to the first exposure parameter and the second exposure parameter.
需要说明的是,步骤404与步骤101类似,在此不再赘述。It should be noted that step 404 is similar to step 101 and will not be repeated here.
步骤404,根据所述亮度差异值,确定档位信息。Step 404: Determine gear information according to the brightness difference value.
本步骤中,可选的,可以根据所述亮度差异值以及不同亮度差异值与档位信息的对应关系,确定所述档位信息。这里,不同亮度差异值与档位信息的对应关系中,亮度差异值的划分粒度可以根据设计需求灵活设计。可以理解的是,亮度差异值的划分粒度越粗,对应关系中的档位信息越少,实现越简单但精度越低;亮度差异值的划分粒度越细,对应关系中的档位信息越多,实现越复杂但精度越高。In this step, optionally, the gear information can be determined according to the brightness difference value and the corresponding relationship between different brightness difference values and gear information. Here, in the correspondence between different brightness difference values and gear information, the division granularity of the brightness difference values can be flexibly designed according to design requirements. It can be understood that the coarser the division granularity of the brightness difference value, the less the gear information in the corresponding relationship, the simpler the implementation but the lower the accuracy; the finer the division granularity of the brightness difference value, the more gear information in the correspondence relationship , The more complex the implementation but the higher the accuracy.
或者,可选的,可以根据所述亮度值以及预设的公式,确定所述档位信息。Or, optionally, the gear information can be determined according to the brightness value and a preset formula.
需要说明的是,对于档位信息的表示方式本发明可以不作限定。可选的,可以通过字母表示,例如a档、b档、c档等;或者,可以通过数值表示,例如1档、2档、3档等。It should be noted that the present invention may not limit the manner in which the gear information is expressed. Optionally, it can be represented by letters, such as a file, b file, c file, etc.; or, it can be represented by a numerical value, such as first file, second file, and third file.
其中,所述档位信息可以表示目标伽马线与相机的标准伽马线之间的关系。这里,标准伽马线可以是指相关技术中,为了使得相机对光线强弱变化 的反应接近人眼对于光线强弱变化的反应,而将相机的线性伽马线经过调整后得到的非线性伽马线。例如,假设档位信息x为a档,a档可以表示目标伽马线相比于标准伽马线欠曝1个档位,档位信息y为b档,b档可以表示目标伽马线相比于标准伽马线欠曝2个档位。其中,标准伽马线,相比于标准伽马线欠曝1个档位的伽马线,以及相比于标准伽马线欠曝2个档位的伽马线之间的关系,可以如图5所示。可以理解的是,相对于目标伽马线过曝或欠曝1个档位的伽马线与标准伽马线的具体关系,可以根据需求灵活设计,本发明对此可以不做限定。Wherein, the gear information may indicate the relationship between the target gamma line and the standard gamma line of the camera. Here, the standard gamma line can refer to the non-linear gamma line obtained by adjusting the linear gamma line of the camera in order to make the camera's response to changes in light intensity close to the response of the human eye to changes in light intensity. Horse line. For example, assuming that gear information x is gear a, gear a can indicate that the target gamma line is underexposed by 1 gear compared to the standard gamma line, gear information y is gear b, and gear b can indicate the target gamma line phase. Compared with the standard gamma line underexposure 2 gears. Among them, the relationship between the standard gamma line, the gamma line under-exposed by one gear compared to the standard gamma line, and the gamma line under-exposed by two gears compared to the standard gamma line, can be as Shown in Figure 5. It is understandable that the specific relationship between the gamma line and the standard gamma line of one gear with respect to the target gamma line overexposure or underexposure can be flexibly designed according to requirements, and the present invention may not limit this.
为了使得档位信息的表示与伽马线的表示方式一致,进一步可选的,在所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光时,所述档位信息为正数。此时,对应的伽马线可以为过曝*档,例如过曝1档(例如,可以表示为1EV gamma),又例如过曝2档(例如,可以表示为2EV gamma)。In order to make the representation of the gear information consistent with the representation of the gamma line, further optionally, when the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the gear The bit information is a positive number. At this time, the corresponding gamma line may be an overexposure* level, for example, overexposure 1 level (for example, can be expressed as 1EV gamma), or for example, overexposure 2 levels (for example, can be expressed as 2EV gamma).
为了使得档位信息的表示与伽马线的表示方式一致,进一步可选的,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光,所述档位信息为负数。此时,对应的伽马线可以为欠曝*档,例如欠曝1档(例如,可以表示为-1EV gamma),又例如欠曝2档(例如,可以表示为-2EV gamma)。In order to make the representation of the gear information consistent with the representation of the gamma line, it is further optional that the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information Is negative. At this time, the corresponding gamma line may be under-exposure*, for example, under-exposure 1 level (for example, can be expressed as -1EV gamma), or for example, under-exposure 2 levels (for example, can be expressed as -2EV gamma).
需要说明的是,在所述档位信息使用数值表示时,可以为整数(例如,1),也可以为非整数(例如,0.5),本发明对此可以不做限定。It should be noted that when the gear information is represented by a numerical value, it may be an integer (for example, 1) or a non-integer (for example, 0.5), and the present invention may not limit this.
步骤405,根据所述档位信息,确定曝光所使用的目标伽马线。Step 405: Determine the target gamma line used for exposure according to the gear information.
本步骤中,可选的,可以根据所述档位信息,实时生成曝光所使用的目标伽马线;或者,可选的,为了便于实现,可以在预设的伽马线集合中,选择与所述档位信息对应的伽马线作为所述目标伽马线。In this step, optionally, the target gamma line used for exposure can be generated in real time according to the gear information; or, optionally, for ease of implementation, it can be selected from the preset gamma line set. The gamma line corresponding to the gear information is used as the target gamma line.
为了简化伽马线集合的实现,所述伽马线集合中可以包括部分档位信息对应的伽马线,例如,可以只包括所有整数档位对应的伽马线,而不包括非整数档位对应的伽马线;或者,可以包括部分整数档位对应的伽马线,而不包括部分整数档位对应的伽马线以及非整数档位对应的伽马线。进一步可选的,步骤405具体可以包括:在预设的伽马线集合中,选择与所述档位信息对应的第一伽马线和第二伽马线;根据所述第一伽马线和所述第二伽马线,确定所述目标伽马线。可选的,可以根据所述第一伽马线和所述第二伽马线, 采用插值方式,确定所述目标伽马线。In order to simplify the implementation of the gamma line set, the gamma line set may include gamma lines corresponding to part of the gear information, for example, it may only include the gamma lines corresponding to all integer gears, but not non-integer gears. Corresponding gamma line; or, it may include the gamma line corresponding to some integer gears, but not the gamma line corresponding to some integer gears and the gamma line corresponding to non-integer gears. Further optionally, step 405 may specifically include: selecting a first gamma line and a second gamma line corresponding to the gear information from a preset gamma line set; and according to the first gamma line And the second gamma line to determine the target gamma line. Optionally, the target gamma line may be determined according to the first gamma line and the second gamma line in an interpolation manner.
步骤406,在预览模式呈现图像的过程中,使用所述目标伽马线进行曝光。Step 406: In the process of presenting the image in the preview mode, use the target gamma line to perform exposure.
这里,在预览模式呈现图像的过程中,使用目标伽马线进行曝光,可以实现通过伽马线的调整控制图像的亮度,从而使得预览模式下所呈现的图像的亮度可以与拍摄模式下所拍摄的图像的亮度一致。Here, in the process of presenting the image in the preview mode, the target gamma line is used for exposure, and the brightness of the image can be controlled through the adjustment of the gamma line, so that the brightness of the image presented in the preview mode can be the same as the brightness of the image taken in the shooting mode. The brightness of the image is consistent.
本实施例提供的相机控制方法,通过根据预设的目标亮度,确定相机在预览模式下的第一曝光参数,根据第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定相机在拍摄模式下的第二曝光参数,根据第一曝光参数和第二曝光参数,确定亮度差异值,根据亮度差异值确定档位信息,根据档位信息确定曝光所使用的目标伽马线,并在预览模式呈现图像的过程中,使用目标伽马线进行曝光,实现了根据亮度差异值,控制在预览模式下所呈现的图像的亮度,使得预览模式下所呈现的图像的亮度可以与拍摄模式下所拍摄的图像的亮度一致。The camera control method provided by this embodiment determines the camera's first exposure parameter in the preview mode according to the preset target brightness, and determines the camera's position according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user. The second exposure parameter in the shooting mode determines the brightness difference value according to the first exposure parameter and the second exposure parameter, determines the gear position information according to the brightness difference value, and determines the target gamma line used for exposure according to the gear position information. In the process of presenting the image in the preview mode, the target gamma line is used for exposure, and the brightness of the image presented in the preview mode is controlled according to the brightness difference value, so that the brightness of the image presented in the preview mode can be compared with that in the shooting mode. The brightness of the captured images is consistent.
图6为本发明又一实施例提供的相机控制方法的流程示意图。本实施例在图1所示实施例的基础上,主要描述了根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度的又一种可选的实现方式。如图6所示,本实施例的方法可以包括:FIG. 6 is a schematic flowchart of a camera control method provided by another embodiment of the present invention. On the basis of the embodiment shown in FIG. 1, this embodiment mainly describes another optional implementation manner of controlling the brightness of the image presented in the preview mode according to the brightness difference value. As shown in FIG. 6, the method of this embodiment may include:
步骤601,根据预设的目标亮度,确定相机在预览模式下的第一曝光参数。Step 601: Determine the first exposure parameter of the camera in the preview mode according to the preset target brightness.
需要说明的是,步骤601与步骤101类似,在此不再赘述。It should be noted that step 601 is similar to step 101 and will not be repeated here.
步骤602,根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数。Step 602: Determine the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
需要说明的是,步骤602与步骤102类似,在此不再赘述。It should be noted that step 602 is similar to step 102 and will not be repeated here.
步骤603,根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值。Step 603: Determine a brightness difference value according to the first exposure parameter and the second exposure parameter.
需要说明的是,步骤603与步骤101类似,在此不再赘述。It should be noted that step 603 is similar to step 101 and will not be repeated here.
步骤604,根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度。Step 604: Adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness.
本步骤中,由于目标亮度用于确定第一曝光参数,因此通过调整目标亮 度,可以调整第一曝光参数。进一步的,由于对目标亮度的调整是根据第一曝光参数和第二曝光参数确定,因此对目标亮度的调整可以使得预览模式下根据调整后的第一曝光参数所呈现的图像的亮度可以与拍摄模式下根据第二曝光参数所拍摄的图像的亮度一致。In this step, since the target brightness is used to determine the first exposure parameter, the first exposure parameter can be adjusted by adjusting the target brightness. Further, because the adjustment of the target brightness is determined according to the first exposure parameter and the second exposure parameter, the adjustment of the target brightness can make the brightness of the image presented according to the adjusted first exposure parameter in the preview mode comparable to the shooting In the mode, the brightness of the images taken according to the second exposure parameter is consistent.
具体的,可以根据在第二曝光参数对应的曝光值较第一曝光参数对应的曝光值过曝光时,将所述目标亮度值调大,并在第二曝光参数对应的曝光值较第一曝光参数对应的曝光值欠曝光时,将所述目标亮度值调小的第三调整目标,根据亮度差异值对目标亮度进行调整,得到调整后的目标亮度。Specifically, when the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the target brightness value may be adjusted to be larger, and the exposure value corresponding to the second exposure parameter is higher than the first exposure value. When the exposure value corresponding to the parameter is under-exposed, the target brightness value is adjusted to a lower third adjustment target, and the target brightness is adjusted according to the brightness difference value to obtain the adjusted target brightness.
需要说明的是,对于根据亮度差异值对目标亮度进行调整的具体方式,本发明实施例可以不作限定,任何满足上述第三调整目标的对目标亮度进行调整的具体确定方式,均属于本发明的保护范围。可选的,为了便于实现,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光;步骤604具体可以包括:将所述目标亮度与所述亮度差异值的绝对值之和,作为调整后的所述目标亮度。可选的,为了便于实现,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光;步骤604具体可以包括:将所述目标亮度与所述亮度差异值的绝对值之差,作为调整后的所述目标亮度。It should be noted that the specific method for adjusting the target brightness according to the brightness difference value may not be limited in the embodiment of the present invention. Any specific method for adjusting the target brightness that satisfies the third adjustment target mentioned above belongs to the present invention. protected range. Optionally, for ease of implementation, the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter; step 604 may specifically include: comparing the target brightness with the brightness difference value The sum of absolute values is used as the adjusted target brightness. Optionally, for ease of implementation, the exposure value corresponding to the second exposure parameter is less exposed than the exposure value corresponding to the first exposure parameter; step 604 may specifically include: comparing the target brightness with the brightness difference value The difference between the absolute values is used as the adjusted target brightness.
步骤605,根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数。Step 605: Adjust the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter.
本步骤中,由于所述第一曝光参数是根据目标亮度确定的,因此对目标亮度调整之后,可以相应调整第一曝光参数,得到调整后的第一曝光参数。并且,调整后的第一曝光参数对应的曝光值可以与第二曝光参数对应的曝光值一致,即调整后的第一曝光参数对应的曝光值可以与第二曝光参数对应的曝光值相同,或者,调整后的第一曝光参数对应的曝光值与第二曝光参数对应的曝光值的差值可以小于一定阈值。In this step, since the first exposure parameter is determined according to the target brightness, after adjusting the target brightness, the first exposure parameter can be adjusted accordingly to obtain the adjusted first exposure parameter. Moreover, the exposure value corresponding to the adjusted first exposure parameter may be the same as the exposure value corresponding to the second exposure parameter, that is, the exposure value corresponding to the adjusted first exposure parameter may be the same as the exposure value corresponding to the second exposure parameter, or The difference between the adjusted exposure value corresponding to the first exposure parameter and the second exposure parameter may be less than a certain threshold.
可选的,可以根据自动曝光算法确定的曝光值与调整后的目标亮度之间的差异,确定相机的曝光值,并根据相机的曝光值对第一曝光参数进行调整,得到调整后的第一曝光参数。Optionally, the camera's exposure value can be determined according to the difference between the exposure value determined by the automatic exposure algorithm and the adjusted target brightness, and the first exposure parameter can be adjusted according to the camera's exposure value to obtain the adjusted first Exposure parameters.
示例性的,可以对所述第一曝光参数中光圈、快门或感光度进行调整。例如,假设调整前的第一曝光参数为F值为2.8,快门时间为1/20秒,ISO为 800,且第二曝光参数对应的曝光值较第一曝光参数对应的曝光值过曝光,调整后的第一曝光参数为F值为2.8,快门时间为1/20秒,ISO为400。Exemplarily, the aperture, shutter, or sensitivity in the first exposure parameter may be adjusted. For example, if the first exposure parameter before adjustment is F value 2.8, shutter time is 1/20 second, ISO is 800, and the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, adjust The first exposure parameter after the F value is 2.8, the shutter time is 1/20 second, and the ISO is 400.
为了便于实现,可以对第一曝光参数中用于控制感光度的所述相机的传感器的增益值进行调整,得到调整后的第一曝光参数。即,调整前的第一曝光参数与调整后的第一曝光参数相比,传感器的增益值发生变化。这里,传感器的增益值可以包括数字增益值和/或模拟增益值。需要说明的是,由于本发明实施例中调整了传感器的增益值,而测光系统的测光值需要经过传感器确定,因此可能会降低测光系统的准确性。To facilitate implementation, the gain value of the sensor of the camera used for controlling the sensitivity of the first exposure parameter may be adjusted to obtain the adjusted first exposure parameter. That is, the gain value of the sensor changes compared with the first exposure parameter before adjustment and the first exposure parameter after adjustment. Here, the gain value of the sensor may include a digital gain value and/or an analog gain value. It should be noted that, since the gain value of the sensor is adjusted in the embodiment of the present invention, and the photometric value of the photometric system needs to be determined by the sensor, the accuracy of the photometric system may be reduced.
步骤606,在所述预览模式下呈现图像的过程中,根据调整后的所述第一曝光参数,在所述预览模式下进行曝光处理。Step 606: During the process of presenting the image in the preview mode, perform exposure processing in the preview mode according to the adjusted first exposure parameter.
本步骤中,由于调整后的所述第一曝光参数对应的曝光值可以与第二曝光参数对应的曝光值一致,因此根据调整后的第一曝光参数在预览模式所呈现的图像的亮度,可以与根据第二曝光参数在拍摄模式下所拍摄图像的亮度一致。In this step, since the exposure value corresponding to the adjusted first exposure parameter can be consistent with the exposure value corresponding to the second exposure parameter, the brightness of the image presented in the preview mode according to the adjusted first exposure parameter can be It is consistent with the brightness of the image captured in the shooting mode according to the second exposure parameter.
需要说明的是,本发明实施例可以不对第二曝光参数进行调整,即在拍摄模式下还是使用第二曝光参数进行曝光处理。It should be noted that, in the embodiment of the present invention, the second exposure parameter may not be adjusted, that is, the second exposure parameter is still used for exposure processing in the shooting mode.
本实施例提供的相机控制方法,通过根据预设的目标亮度,确定相机在预览模式下的第一曝光参数,根据第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定相机在拍摄模式下的第二曝光参数,根据第一曝光参数和第二曝光参数,确定亮度差异值,根据亮度差异值对目标亮度进行调整,得到调整后的目标亮度,根据调整后的目标亮度对第一曝光参数进行调整,得到调整后的第一曝光参数,并在预览模式下呈现图像的过程中,根据调整后的第一曝光参数,在预览模式下进行曝光处理,实现了根据亮度差异值,控制在预览模式下所呈现的图像的亮度,使得预览模式下所呈现的图像的亮度可以与拍摄模式下所拍摄的图像的亮度一致。The camera control method provided by this embodiment determines the camera's first exposure parameter in the preview mode according to the preset target brightness, and determines the camera's position according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user. The second exposure parameter in the shooting mode determines the brightness difference value according to the first exposure parameter and the second exposure parameter, and adjusts the target brightness according to the brightness difference value to obtain the adjusted target brightness. An exposure parameter is adjusted to obtain the adjusted first exposure parameter, and in the process of presenting the image in the preview mode, the exposure processing is performed in the preview mode according to the adjusted first exposure parameter to realize the brightness difference value, Control the brightness of the image presented in the preview mode, so that the brightness of the image presented in the preview mode can be consistent with the brightness of the image captured in the shooting mode.
本发明实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包含至少一段代码,所述至少一段代码可由计算机执行,以控制所述计算机执行上述各方法实施例中的相机控制方法的部分或全部步骤。The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes at least one piece of code, and the at least one piece of code can be executed by a computer to control the The computer executes part or all of the steps of the camera control method in the foregoing method embodiments.
本发明实施例提供一种计算机程序,当所述计算机程序被计算机执行时, 用于实现上述各方法实施例中的相机控制方法的部分或全部步骤。The embodiment of the present invention provides a computer program, when the computer program is executed by a computer, it is used to implement part or all of the steps of the camera control method in the foregoing method embodiments.
图7为本发明实施例提供的一种相机控制装置。如图7所示,该相机控制装置700可以包括:处理器701和存储器702;Fig. 7 is a camera control device provided by an embodiment of the present invention. As shown in FIG. 7, the camera control device 700 may include: a processor 701 and a memory 702;
所述存储器702,用于存储程序代码;The memory 702 is used to store program codes;
所述处理器701,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor 701 calls the program code, and when the program code is executed, is configured to perform the following operations:
根据预设的目标亮度,确定相机在预览模式下的第一曝光参数;Determine the first exposure parameter of the camera in preview mode according to the preset target brightness;
根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数;Determining the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user;
根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值;Determine a brightness difference value according to the first exposure parameter and the second exposure parameter;
根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度。According to the brightness difference value, the brightness of the image presented in the preview mode is controlled.
在一种可能的实现中,所述处理器701用于根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,具体包括:In a possible implementation, the processor 701 is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, which specifically includes:
根据所述亮度差异值,确定数字增益值;Determining a digital gain value according to the brightness difference value;
在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值。Before presenting the image in the preview mode, adjust the brightness value of the image according to the digital gain value.
在一种可能的实现中,所述处理器701用于根据所述亮度差异值,确定数字增益值,具体包括:In a possible implementation, the processor 701 is configured to determine a digital gain value according to the brightness difference value, which specifically includes:
根据所述亮度差异值以及预设的转换关系,确定数字增益值。The digital gain value is determined according to the brightness difference value and the preset conversion relationship.
在一种可能的实现中,所述处理器701用于根据所述亮度差异值,确定数字增益值之前,还用于:In a possible implementation, the processor 701 is further configured to: before determining the digital gain value according to the brightness difference value:
根据所述亮度差异值,判断所述第二曝光参数对应的曝光值是否较所述第一曝光参数对应的曝光值过曝光;According to the brightness difference value, determining whether the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter;
若所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,则执行所述根据所述亮度差异值,确定数字增益值的步骤。If the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the step of determining the digital gain value according to the brightness difference value is performed.
在一种可能的实现中,所述处理器701用于在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值,具体包括:In a possible implementation, the processor 701 is configured to adjust the brightness value of the image according to the digital gain value before presenting the image in the preview mode, which specifically includes:
在所述预览模式下呈现图像之前,根据所述数字增益值,在第一处理阶段中调整所述图像的亮度值;其中,所述第一处理阶段为所述相机在所述预览模式下,对测光区域得到的原始数据进行处理的所有阶段中允许设置数字 增益值的一个阶段。Before presenting the image in the preview mode, adjust the brightness value of the image in the first processing stage according to the digital gain value; wherein, in the first processing stage, the camera is in the preview mode, A stage that allows setting of digital gain value among all stages of processing the raw data obtained from the metering area.
在一种可能的实现中,所述处理器701用于根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,具体包括:In a possible implementation, the processor 701 is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, which specifically includes:
根据所述亮度差异值,确定档位信息;Determining gear information according to the brightness difference value;
根据所述档位信息,确定曝光所使用的目标伽马线;According to the gear information, determine the target gamma line used for exposure;
在预览模式呈现图像的过程中,使用所述目标伽马线进行曝光。In the process of presenting the image in the preview mode, the target gamma line is used for exposure.
在一种可能的实现中,所述处理器701用于根据所述档位信息,确定曝光所使用的目标伽马线,具体包括:In a possible implementation, the processor 701 is configured to determine the target gamma line used for exposure according to the gear information, which specifically includes:
在预设的伽马线集合中,选择与所述档位信息对应的伽马线作为所述目标伽马线。In the preset gamma line set, the gamma line corresponding to the gear information is selected as the target gamma line.
在一种可能的实现中,所述处理器701用于根据所述档位信息,确定曝光所使用的目标伽马线,具体包括:In a possible implementation, the processor 701 is configured to determine the target gamma line used for exposure according to the gear information, which specifically includes:
在预设的伽马线集合中,选择与所述档位信息对应的第一伽马线和第二伽马线;In the preset gamma line set, select the first gamma line and the second gamma line corresponding to the gear information;
根据所述第一伽马线和所述第二伽马线,确定所述目标伽马线。The target gamma line is determined according to the first gamma line and the second gamma line.
在一种可能的实现中,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,所述档位信息为正数。In a possible implementation, the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a positive number.
在一种可能的实现中,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光,所述档位信息为负数。In a possible implementation, the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number.
在一种可能的实现中,所述处理器701用于根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,具体包括:In a possible implementation, the processor 701 is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, which specifically includes:
根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度;Adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness;
根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数;Adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter;
在所述预览模式下呈现图像的过程中,根据调整后的所述第一曝光参数,在所述预览模式下进行曝光处理。During the process of presenting the image in the preview mode, exposure processing is performed in the preview mode according to the adjusted first exposure parameter.
在一种可能的实现中,所述处理器701用于根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数,具体包括:In a possible implementation, the processor 701 is configured to adjust the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter, which specifically includes:
根据调整后的所述目标亮度,对所述第一曝光参数中所述相机的传感器 的增益值进行调整,得到调整后的所述第一曝光参数。According to the adjusted target brightness, the gain value of the sensor of the camera in the first exposure parameter is adjusted to obtain the adjusted first exposure parameter.
在一种可能的实现中,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光;In a possible implementation, the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter;
所述处理器701用于根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度,具体包括:The processor 701 is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, which specifically includes:
将所述目标亮度与所述亮度差异值的绝对值之和,作为调整后的所述目标亮度。The sum of the absolute value of the target brightness and the brightness difference value is used as the adjusted target brightness.
在一种可能的实现中,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光;In a possible implementation, the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter;
所述处理器701用于根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度,具体包括:The processor 701 is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, which specifically includes:
将所述目标亮度与所述亮度差异值的绝对值之差,作为调整后的所述目标亮度。The difference between the target brightness and the absolute value of the brightness difference value is used as the adjusted target brightness.
本实施例提供的相机控制装置,可以用于执行本发明上述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The camera control device provided in this embodiment can be used to implement the technical solutions of the foregoing method embodiments of the present invention, and its implementation principles and technical effects are similar, and will not be repeated here.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention range.

Claims (30)

  1. 一种相机控制方法,其特征在于,包括:A camera control method, characterized by comprising:
    根据预设的目标亮度,确定相机在预览模式下的第一曝光参数;Determine the first exposure parameter of the camera in preview mode according to the preset target brightness;
    根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数;Determining the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user;
    根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值;Determine a brightness difference value according to the first exposure parameter and the second exposure parameter;
    根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度。According to the brightness difference value, the brightness of the image presented in the preview mode is controlled.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,包括:The method according to claim 1, wherein the controlling the brightness of the image presented in the preview mode according to the brightness difference value comprises:
    根据所述亮度差异值,确定数字增益值;Determining a digital gain value according to the brightness difference value;
    在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值。Before presenting the image in the preview mode, adjust the brightness value of the image according to the digital gain value.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述亮度差异值,确定数字增益值,包括:The method according to claim 2, wherein the determining a digital gain value according to the brightness difference value comprises:
    根据所述亮度差异值以及预设的转换关系,确定数字增益值。The digital gain value is determined according to the brightness difference value and the preset conversion relationship.
  4. 根据权利要求2或3所述的方法,其特征在于,所述根据所述亮度差异值,确定数字增益值之前,还包括:The method according to claim 2 or 3, wherein before determining the digital gain value according to the brightness difference value, the method further comprises:
    根据所述亮度差异值,判断所述第二曝光参数对应的曝光值是否较所述第一曝光参数对应的曝光值过曝光;According to the brightness difference value, determining whether the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter;
    若所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,则执行所述根据所述亮度差异值,确定数字增益值的步骤。If the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the step of determining the digital gain value according to the brightness difference value is performed.
  5. 根据权利要求4所述的方法,其特征在于,所述在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值,包括:The method according to claim 4, wherein before the image is presented in the preview mode, adjusting the brightness value of the image according to the digital gain value comprises:
    在所述预览模式下呈现图像之前,根据所述数字增益值,在第一处理阶段中调整所述图像的亮度值;其中,所述第一处理阶段为所述相机在所述预览模式下,对测光区域得到的原始数据进行处理的所有阶段中允许设置数字增益值的一个阶段。Before presenting the image in the preview mode, adjust the brightness value of the image in the first processing stage according to the digital gain value; wherein, in the first processing stage, the camera is in the preview mode, A stage that allows setting of digital gain value among all stages of processing the raw data obtained from the metering area.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,包括:The method according to claim 1, wherein the controlling the brightness of the image presented in the preview mode according to the brightness difference value comprises:
    根据所述亮度差异值,确定档位信息;Determining gear information according to the brightness difference value;
    根据所述档位信息,确定曝光所使用的目标伽马线;According to the gear information, determine the target gamma line used for exposure;
    在预览模式呈现图像的过程中,使用所述目标伽马线进行曝光。In the process of presenting the image in the preview mode, the target gamma line is used for exposure.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述档位信息,确定曝光所使用的目标伽马线,包括:The method according to claim 6, wherein the determining the target gamma line used for exposure according to the gear information comprises:
    在预设的伽马线集合中,选择与所述档位信息对应的伽马线作为所述目标伽马线。In the preset gamma line set, the gamma line corresponding to the gear information is selected as the target gamma line.
  8. 根据权利要求6所述的方法,其特征在于,所述根据所述档位信息,确定曝光所使用的目标伽马线,包括:The method according to claim 6, wherein the determining the target gamma line used for exposure according to the gear information comprises:
    在预设的伽马线集合中,选择与所述档位信息对应的第一伽马线和第二伽马线;In the preset gamma line set, select the first gamma line and the second gamma line corresponding to the gear information;
    根据所述第一伽马线和所述第二伽马线,确定所述目标伽马线。The target gamma line is determined according to the first gamma line and the second gamma line.
  9. 根据权利要求6-8任一项所述的方法,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,所述档位信息为正数。The method according to any one of claims 6-8, wherein the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a positive number .
  10. 根据权利要求6-8任一项所述的方法,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光,所述档位信息为负数。The method according to any one of claims 6-8, wherein the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number.
  11. 根据权利要求1所述的方法,其特征在于,所述根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,包括:The method according to claim 1, wherein the controlling the brightness of the image presented in the preview mode according to the brightness difference value comprises:
    根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度;Adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness;
    根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数;Adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter;
    在所述预览模式下呈现图像的过程中,根据调整后的所述第一曝光参数,在所述预览模式下进行曝光处理。During the process of presenting the image in the preview mode, exposure processing is performed in the preview mode according to the adjusted first exposure parameter.
  12. 根据权利要求11所述的方法,其特征在于,所述根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数,包括:11. The method according to claim 11, wherein the adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter comprises:
    根据调整后的所述目标亮度,对所述第一曝光参数中所述相机的传感器的增益值进行调整,得到调整后的所述第一曝光参数。According to the adjusted target brightness, the gain value of the sensor of the camera in the first exposure parameter is adjusted to obtain the adjusted first exposure parameter.
  13. 根据权利要求11或12所述的方法,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光;The method according to claim 11 or 12, wherein the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter;
    所述根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度,包括:The adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness includes:
    将所述目标亮度与所述亮度差异值的绝对值之和,作为调整后的所述目标亮度。The sum of the absolute value of the target brightness and the brightness difference value is used as the adjusted target brightness.
  14. 根据权利要求11或12所述的方法,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光;The method according to claim 11 or 12, wherein the exposure value corresponding to the second exposure parameter is under-exposed than the exposure value corresponding to the first exposure parameter;
    所述根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度,包括:The adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness includes:
    将所述目标亮度与所述亮度差异值的绝对值之差,作为调整后的所述目标亮度。The difference between the target brightness and the absolute value of the brightness difference value is used as the adjusted target brightness.
  15. 一种相机控制装置,其特征在于,包括:处理器和存储器;A camera control device, characterized by comprising: a processor and a memory;
    所述存储器,用于存储程序代码;The memory is used to store program code;
    所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
    根据预设的目标亮度,确定相机在预览模式下的第一曝光参数;Determine the first exposure parameter of the camera in preview mode according to the preset target brightness;
    根据所述第一曝光参数对应的曝光值以及用户设定的曝光调整参数,确定所述相机在拍摄模式下的第二曝光参数;Determining the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user;
    根据所述第一曝光参数和所述第二曝光参数,确定亮度差异值;Determine a brightness difference value according to the first exposure parameter and the second exposure parameter;
    根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度。According to the brightness difference value, the brightness of the image presented in the preview mode is controlled.
  16. 根据权利要求15所述的装置,其特征在于,所述处理器用于根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,具体包括:The device according to claim 15, wherein the processor is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, which specifically comprises:
    根据所述亮度差异值,确定数字增益值;Determining a digital gain value according to the brightness difference value;
    在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值。Before presenting the image in the preview mode, adjust the brightness value of the image according to the digital gain value.
  17. 根据权利要求16所述的装置,其特征在于,所述处理器用于根据所述亮度差异值,确定数字增益值,具体包括:The device according to claim 16, wherein the processor is configured to determine a digital gain value according to the brightness difference value, which specifically comprises:
    根据所述亮度差异值以及预设的转换关系,确定数字增益值。The digital gain value is determined according to the brightness difference value and the preset conversion relationship.
  18. 根据权利要求16或17所述的装置,其特征在于,所述处理器用于 根据所述亮度差异值,确定数字增益值之前,还用于:The device according to claim 16 or 17, wherein the processor is further configured to: before determining the digital gain value according to the brightness difference value:
    根据所述亮度差异值,判断所述第二曝光参数对应的曝光值是否较所述第一曝光参数对应的曝光值过曝光;According to the brightness difference value, determining whether the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter;
    若所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,则执行所述根据所述亮度差异值,确定数字增益值的步骤。If the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, the step of determining the digital gain value according to the brightness difference value is performed.
  19. 根据权利要求18所述的装置,其特征在于,所述处理器用于在所述预览模式下呈现图像之前,根据所述数字增益值,调整所述图像的亮度值,具体包括:The apparatus according to claim 18, wherein the processor is configured to adjust the brightness value of the image according to the digital gain value before presenting the image in the preview mode, specifically comprising:
    在所述预览模式下呈现图像之前,根据所述数字增益值,在第一处理阶段中调整所述图像的亮度值;其中,所述第一处理阶段为所述相机在所述预览模式下,对测光区域得到的原始数据进行处理的所有阶段中允许设置数字增益值的一个阶段。Before presenting the image in the preview mode, adjust the brightness value of the image in the first processing stage according to the digital gain value; wherein, in the first processing stage, the camera is in the preview mode, A stage that allows setting of digital gain value among all stages of processing the raw data obtained from the metering area.
  20. 根据权利要求15所述的装置,其特征在于,所述处理器用于根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,具体包括:The device according to claim 15, wherein the processor is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, which specifically comprises:
    根据所述亮度差异值,确定档位信息;Determining gear information according to the brightness difference value;
    根据所述档位信息,确定曝光所使用的目标伽马线;According to the gear information, determine the target gamma line used for exposure;
    在预览模式呈现图像的过程中,使用所述目标伽马线进行曝光。In the process of presenting the image in the preview mode, the target gamma line is used for exposure.
  21. 根据权利要求20所述的装置,其特征在于,所述处理器用于根据所述档位信息,确定曝光所使用的目标伽马线,具体包括:The device according to claim 20, wherein the processor is configured to determine the target gamma line used for exposure according to the gear information, which specifically comprises:
    在预设的伽马线集合中,选择与所述档位信息对应的伽马线作为所述目标伽马线。In the preset gamma line set, the gamma line corresponding to the gear information is selected as the target gamma line.
  22. 根据权利要求20所述的装置,其特征在于,所述处理器用于根据所述档位信息,确定曝光所使用的目标伽马线,具体包括:The device according to claim 20, wherein the processor is configured to determine the target gamma line used for exposure according to the gear information, which specifically comprises:
    在预设的伽马线集合中,选择与所述档位信息对应的第一伽马线和第二伽马线;In the preset gamma line set, select the first gamma line and the second gamma line corresponding to the gear information;
    根据所述第一伽马线和所述第二伽马线,确定所述目标伽马线。The target gamma line is determined according to the first gamma line and the second gamma line.
  23. 根据权利要求20-22任一项所述的装置,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光,所述档位信息为正数。The device according to any one of claims 20-22, wherein the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a positive number .
  24. 根据权利要求20-22任一项所述的装置,其特征在于,所述第二曝 光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光,所述档位信息为负数。The device according to any one of claims 20-22, wherein the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number.
  25. 根据权利要求15所述的装置,其特征在于,所述处理器用于根据所述亮度差异值,控制在所述预览模式下所呈现的图像的亮度,具体包括:The device according to claim 15, wherein the processor is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, which specifically comprises:
    根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度;Adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness;
    根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数;Adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter;
    在所述预览模式下呈现图像的过程中,根据调整后的所述第一曝光参数,在所述预览模式下进行曝光处理。During the process of presenting the image in the preview mode, exposure processing is performed in the preview mode according to the adjusted first exposure parameter.
  26. 根据权利要求25所述的装置,其特征在于,所述处理器用于根据调整后的所述目标亮度,对所述第一曝光参数进行调整,得到调整后的所述第一曝光参数,具体包括:The device according to claim 25, wherein the processor is configured to adjust the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter, which specifically includes :
    根据调整后的所述目标亮度,对所述第一曝光参数中所述相机的传感器的增益值进行调整,得到调整后的所述第一曝光参数。According to the adjusted target brightness, the gain value of the sensor of the camera in the first exposure parameter is adjusted to obtain the adjusted first exposure parameter.
  27. 根据权利要求25或26所述的装置,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值过曝光;The device according to claim 25 or 26, wherein the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter;
    所述处理器用于根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度,具体包括:The processor is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, which specifically includes:
    将所述目标亮度与所述亮度差异值的绝对值之和,作为调整后的所述目标亮度。The sum of the absolute value of the target brightness and the brightness difference value is used as the adjusted target brightness.
  28. 根据权利要求25或26所述的装置,其特征在于,所述第二曝光参数对应的曝光值较所述第一曝光参数对应的曝光值欠曝光;The device according to claim 25 or 26, wherein the exposure value corresponding to the second exposure parameter is under-exposed than the exposure value corresponding to the first exposure parameter;
    所述处理器用于根据所述亮度差异值,对所述目标亮度进行调整,得到调整后的所述目标亮度,具体包括:The processor is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, which specifically includes:
    将所述目标亮度与所述亮度差异值的绝对值之差,作为调整后的所述目标亮度。The difference between the target brightness and the absolute value of the brightness difference value is used as the adjusted target brightness.
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包含至少一段代码,所述至少一段代码可由计算机执行,以控制所述计算机执行如权利要求1-14任一项所述的相机 控制方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes at least one piece of code, and the at least one piece of code can be executed by a computer to control the computer to execute The camera control method described in any one of 1-14 is required.
  30. 一种计算机程序,其特征在于,当所述计算机程序被计算机执行时,用于实现如权利要求1-14任一项所述的相机控制方法。A computer program, characterized in that, when the computer program is executed by a computer, it is used to implement the camera control method according to any one of claims 1-14.
PCT/CN2019/077789 2019-03-12 2019-03-12 Camera control method and apparatus WO2020181483A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/077789 WO2020181483A1 (en) 2019-03-12 2019-03-12 Camera control method and apparatus
CN201980005410.6A CN111316635B (en) 2019-03-12 2019-03-12 Camera control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/077789 WO2020181483A1 (en) 2019-03-12 2019-03-12 Camera control method and apparatus

Publications (1)

Publication Number Publication Date
WO2020181483A1 true WO2020181483A1 (en) 2020-09-17

Family

ID=71157765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077789 WO2020181483A1 (en) 2019-03-12 2019-03-12 Camera control method and apparatus

Country Status (2)

Country Link
CN (1) CN111316635B (en)
WO (1) WO2020181483A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422715A (en) * 2022-01-17 2022-04-29 苏州中科全象智能科技有限公司 Autonomous adjusting method and device for line laser camera

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970462A (en) * 2020-08-20 2020-11-20 Oppo(重庆)智能科技有限公司 Exposure processing method, exposure processing apparatus, electronic device, and computer-readable storage medium
CN112312024A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Photographing processing method and device and storage medium
CN112468738A (en) * 2020-11-25 2021-03-09 上海摩象网络科技有限公司 Image display method, image display device, electronic device, and storage medium
CN116996762B (en) * 2023-03-29 2024-04-16 荣耀终端有限公司 Automatic exposure method, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020196357A1 (en) * 2001-06-21 2002-12-26 Battles Amy E. Modeless digital still camera using touch-sensitive shutter button
CN101621628A (en) * 2008-06-02 2010-01-06 卡西欧计算机株式会社 Photographic apparatus, setting method of photography conditions, and recording medium
CN101651775A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Image capture device and exposure method thereof
JP2010068046A (en) * 2008-09-08 2010-03-25 Olympus Imaging Corp Imaging apparatus
CN102645816A (en) * 2011-02-16 2012-08-22 佳能企业股份有限公司 Exposure parameter correcting method and imaging device
CN103416051A (en) * 2011-03-04 2013-11-27 富士胶片株式会社 Photography device and display control method
CN105144689A (en) * 2013-04-26 2015-12-09 富士胶片株式会社 Image capture device and image display method

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1249985C (en) * 2001-08-21 2006-04-05 徐明景 Picture treatment method and apparatus capable of regulating light-sensitive characteristic curve
TWI286263B (en) * 2005-02-14 2007-09-01 Asia Optical Co Inc Method for adjusting exposure system and image shooting device using the same
JP4580838B2 (en) * 2005-07-29 2010-11-17 オリンパスイメージング株式会社 Electronic image stabilization device
JP2007189481A (en) * 2006-01-13 2007-07-26 Olympus Imaging Corp Digital single-lens reflex camera
JP4218723B2 (en) * 2006-10-19 2009-02-04 ソニー株式会社 Image processing apparatus, imaging apparatus, image processing method, and program
JP4614143B2 (en) * 2008-01-18 2011-01-19 カシオ計算機株式会社 Imaging apparatus and program thereof
KR101817653B1 (en) * 2011-09-30 2018-01-12 삼성전자주식회사 Digital photographing apparatus, method for controlling the same, and computer-readable storage medium
JP2013088446A (en) * 2011-10-13 2013-05-13 Panasonic Corp Imaging apparatus
KR101864829B1 (en) * 2012-05-30 2018-07-04 삼성전자주식회사 Photographing apparatus, method for controlling the same, and computer-readable recording medium
US9313397B2 (en) * 2014-05-30 2016-04-12 Apple Inc. Realtime capture exposure adjust gestures
CN104301624B (en) * 2014-10-30 2018-04-03 青岛海信移动通信技术股份有限公司 A kind of image taking brightness control method and device
JP6486093B2 (en) * 2014-12-17 2019-03-20 キヤノン株式会社 Imaging device, control method thereof, and program
JP6727880B2 (en) * 2016-03-30 2020-07-22 オリンパス株式会社 Imaging device and imaging method
CN108322663B (en) * 2018-05-14 2021-05-07 Oppo广东移动通信有限公司 Photographing method, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020196357A1 (en) * 2001-06-21 2002-12-26 Battles Amy E. Modeless digital still camera using touch-sensitive shutter button
CN101621628A (en) * 2008-06-02 2010-01-06 卡西欧计算机株式会社 Photographic apparatus, setting method of photography conditions, and recording medium
CN101651775A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Image capture device and exposure method thereof
JP2010068046A (en) * 2008-09-08 2010-03-25 Olympus Imaging Corp Imaging apparatus
CN102645816A (en) * 2011-02-16 2012-08-22 佳能企业股份有限公司 Exposure parameter correcting method and imaging device
CN103416051A (en) * 2011-03-04 2013-11-27 富士胶片株式会社 Photography device and display control method
CN105144689A (en) * 2013-04-26 2015-12-09 富士胶片株式会社 Image capture device and image display method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422715A (en) * 2022-01-17 2022-04-29 苏州中科全象智能科技有限公司 Autonomous adjusting method and device for line laser camera

Also Published As

Publication number Publication date
CN111316635B (en) 2022-01-25
CN111316635A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
WO2020181483A1 (en) Camera control method and apparatus
US10412296B2 (en) Camera using preview image to select exposure
EP1689164B1 (en) Method and device for creating enhanced picture by means of several consecutive exposures
JP6259185B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6005915B2 (en) Adaptive automatic exposure control method
JP2017112461A (en) Imaging device and control method, program thereof, and storage medium
CN101019416A (en) Imaging apparatus
JP2001311980A (en) Exposure controller
JP6685188B2 (en) Imaging device, image processing device, control method thereof, and program
JP4999871B2 (en) Imaging apparatus and control method thereof
JP2017212532A (en) Image processing apparatus
JP2017112462A (en) Imaging device and control method, program therefor and storage medium
JP7156302B2 (en) Image processing device, image processing method, program
CN117014733B (en) Shooting correction method, device and equipment
US9674455B1 (en) Programmable manual mode for digital cameras
JP2017130836A (en) Image processing apparatus, image processing method, and program
JP5335964B2 (en) Imaging apparatus and control method thereof
JP2012090041A (en) Image processing device, method, and program
JP2001218103A (en) Electronic camera
US7920168B2 (en) Systems and methods of customizing a color palette on a digital camera
JP2007243556A (en) Imaging apparatus, image processing method, and image processing program
JP2003259231A (en) Automatic exposure controller and program thereof
JP6703787B2 (en) Imaging device, control method thereof, program, and storage medium
JP6561432B2 (en) Exposure calculation device, exposure control device, and camera
CN111897609A (en) Method for automatically adjusting optimal picture quality of display to display photographic picture

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19919011

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19919011

Country of ref document: EP

Kind code of ref document: A1