[go: up one dir, main page]

CN111970501A - Pure color scene AE color processing method and device, electronic equipment and storage medium - Google Patents

Pure color scene AE color processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111970501A
CN111970501A CN202010837446.5A CN202010837446A CN111970501A CN 111970501 A CN111970501 A CN 111970501A CN 202010837446 A CN202010837446 A CN 202010837446A CN 111970501 A CN111970501 A CN 111970501A
Authority
CN
China
Prior art keywords
image
pure
data
ratio
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010837446.5A
Other languages
Chinese (zh)
Inventor
焦涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN202010837446.5A priority Critical patent/CN111970501A/en
Publication of CN111970501A publication Critical patent/CN111970501A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

本发明公开了纯色场景AE色彩处理方法,包括如下步骤:获取图像的原始数据,根据原始数据计算得到RGB数据以及亮度值,所述RGB数据包括R数据、G数据以及B数据;根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值,否则,根据亮度值处理为自动曝光目标值。本发明通过识别图像是否为纯色图像,并在图像是纯色图像的情况下,调用该纯色场景的彩色量作为处理自动曝光目标值的基础,替代现有技术所运用的亮度值,可以有效改善现有技术中纯色场景的图片亮度偏高、色彩信息丢失、用户体验差的问题。

Figure 202010837446

The invention discloses an AE color processing method for a pure color scene. The data determines whether the image is one of a pure red image, a pure green image, and a pure blue image, and if so, according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the B data corresponding to the pure blue image The automatic exposure target value is obtained by processing, otherwise, it is processed as the automatic exposure target value according to the brightness value. By identifying whether the image is a solid-color image, and in the case of a solid-color image, the present invention calls the color volume of the solid-color scene as the basis for processing the automatic exposure target value, and replaces the brightness value used in the prior art, thereby effectively improving the image quality. There are technical problems such as high brightness, loss of color information, and poor user experience in pure color scenes.

Figure 202010837446

Description

纯色场景AE色彩处理方法、装置、电子设备及存储介质Solid color scene AE color processing method, device, electronic device and storage medium

技术领域technical field

本发明涉及图像处理技术领域,尤其涉及纯色场景AE色彩处理方法、装置、电子设备及存储介质。The present invention relates to the technical field of image processing, and in particular, to a method, device, electronic device and storage medium for AE color processing of solid color scenes.

背景技术Background technique

智能相机是当今智能终端最广泛使用的一种配置。实际上就是感光元件把光信号转换成电信号,供支持其技术的相关处理算法接收并处理。整个信号的处理形成一个流。相同的摄像机传感元件采集的信号输出经过不同的处理算法后会形成不同的图像处理效果。Smart cameras are the most widely used configuration of today's smart terminals. In fact, it is the photosensitive element that converts the optical signal into an electrical signal, which is received and processed by the relevant processing algorithms that support its technology. The processing of the entire signal forms a stream. The signal output collected by the same camera sensor element will form different image processing effects after different processing algorithms.

当前主流手机内都有集成主控芯片,内置有摄像机图像处理算法,具体可大致分为AE(自动曝光),AWB(自动白平衡),AF(自动对焦),sharpness(清晰度)/denoise(去噪)算法等。Currently mainstream mobile phones have integrated main control chips with built-in camera image processing algorithms, which can be roughly divided into AE (auto exposure), AWB (auto white balance), AF (auto focus), sharpness (sharpness)/denoise ( denoising) algorithm, etc.

当前的AE处理流程包括通过摄像机传感元件采集色彩图像,从中获取其亮度参数,从而计算到亮度目标值,AE算法则是根据该亮度目标值进行统计收敛计算。这种做法对于大多数场景都有很好的覆盖性,但是对于大面积的纯色场景就会显示出局限性,往往体现出的亮度不符合人眼主观需求,变得过亮或者过暗。例如图片的亮度值是130,像素值为245,现有的方式是将130的数值用AE算法计算,得到的AE目标值是偏大的,导致这个场景所生成的图片的亮度比实际人眼所见的要高,损失色彩细节,降低了用户体验。The current AE processing flow includes collecting a color image through the camera sensor element, obtaining its brightness parameter from it, and then calculating the brightness target value. The AE algorithm performs statistical convergence calculation based on the brightness target value. This approach has good coverage for most scenes, but it will show limitations for large-area solid-color scenes, and the brightness often reflected does not meet the subjective needs of the human eye, becoming too bright or too dark. For example, the brightness value of the picture is 130 and the pixel value is 245. The existing method is to calculate the value of 130 with the AE algorithm, and the obtained AE target value is too large, resulting in the brightness of the picture generated by this scene than the actual human eye. Seen is higher, loses color detail, and degrades the user experience.

发明内容SUMMARY OF THE INVENTION

为了克服现有技术的不足,本发明的目的之一在于提供纯色场景AE色彩处理方法,其能解决现有技术中图片色彩损失大,用户体验差的问题。In order to overcome the deficiencies of the prior art, one of the objectives of the present invention is to provide a method for processing AE color of a solid color scene, which can solve the problems of large color loss of pictures and poor user experience in the prior art.

本发明的目的之二在于提供纯色场景AE色彩处理装置,其能解决现有技术中图片色彩损失大,用户体验差的问题。The second purpose of the present invention is to provide a pure color scene AE color processing device, which can solve the problems of large color loss of pictures and poor user experience in the prior art.

本发明的目的之三在于提供一种电子设备,其能解决现有技术中图片色彩损失大,用户体验差的问题。The third object of the present invention is to provide an electronic device, which can solve the problems of large color loss of pictures and poor user experience in the prior art.

本发明的目的之四在于提供一种存储介质,其能解决现有技术中图片色彩损失大,用户体验差的问题。The fourth purpose of the present invention is to provide a storage medium, which can solve the problems of large color loss of pictures and poor user experience in the prior art.

本发明的目的之一采用以下技术方案实现:One of the objects of the present invention adopts the following technical solutions to realize:

纯色场景AE色彩处理方法,包括如下步骤:The AE color processing method for solid color scenes includes the following steps:

获取图像的原始数据,根据原始数据计算得到RGB数据以及亮度值,所述RGB数据包括R数据、G数据以及B数据;Obtain the original data of the image, calculate and obtain RGB data and luminance value according to the original data, and described RGB data includes R data, G data and B data;

根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值,否则,根据亮度值处理为自动曝光目标值。According to the RGB data, determine whether the image is one of a pure red image, a pure green image, and a pure blue image, and if so, according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the pure blue image The corresponding B data is processed to obtain the automatic exposure target value, otherwise, it is processed as the automatic exposure target value according to the brightness value.

优选的,“根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种”具体为:Preferably, "judging whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data" is specifically:

计算R数据与G数据的第一比值,以及B数据与G数据的第二比值,根据第一比值和第二比值判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种。Calculate the first ratio of the R data to the G data, and the second ratio of the B data to the G data, and determine whether the image is one of a pure red image, a pure green image, and a pure blue image according to the first ratio and the second ratio. kind.

优选的,当第一比值大于第一阈值,且第二比值小于第二阈值,则定义图像为纯红图像;当第一比值大于第一阈值,且第二比值大于第二阈值,则定于图像为纯蓝图像;当第一比值小于第一阈值,且第二比值小于第二阈值,则定义图像为纯绿图像。Preferably, when the first ratio is greater than the first threshold and the second ratio is less than the second threshold, the image is defined as a pure red image; when the first ratio is greater than the first threshold and the second ratio is greater than the second threshold, the image is defined as The image is a pure blue image; when the first ratio is less than the first threshold and the second ratio is less than the second threshold, the image is defined as a pure green image.

优选的,获取图像的原始数据之后,还执行如下步骤:Preferably, after acquiring the original data of the image, the following steps are also performed:

将图像以预设尺寸分割为若干个目标区域,并获取每一个目标区域对应的RGB数据以及亮度值;Divide the image into several target areas with a preset size, and obtain the RGB data and brightness value corresponding to each target area;

“根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值”具体为“根据每一个目标区域对应的所述RGB数据判断所述该目标区域是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到该目标区域的自动曝光目标值”。"According to the RGB data, determine whether the image is one of a pure red image, a pure green image, and a pure blue image, and if so, according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the pure blue image The B data corresponding to the image is processed to obtain the automatic exposure target value" is specifically "judging whether the target area is one of a pure red image, a pure green image, and a pure blue image according to the RGB data corresponding to each target area, If so, the automatic exposure target value of the target area is obtained by processing according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the B data corresponding to the pure blue image.

优选的,所述预设尺寸为200*150。Preferably, the preset size is 200*150.

本发明的目的之二采用以下技术方案实现:The second purpose of the present invention adopts the following technical solutions to realize:

一种纯色场景AE色彩处理装置,包括如下单元:An AE color processing device for a solid color scene, comprising the following units:

数据获取单元:被配置于获取图像的原始数据,根据原始数据计算得到RGB数据以及亮度值,所述RGB数据包括R数据、G数据以及B数据;Data acquisition unit: be configured to acquire the original data of the image, and obtain RGB data and brightness value by calculating according to the original data, and the RGB data includes R data, G data and B data;

处理判断单元:被配置于根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值,否则,根据亮度值处理为自动曝光目标值。Processing and judgment unit: configured to judge whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data, and if so, according to the R data corresponding to the pure red image or the pure green image. The G data or the B data corresponding to the pure blue image is processed to obtain the automatic exposure target value, otherwise, the automatic exposure target value is processed according to the brightness value.

优选的,处理判断单元中,“根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种”具体为:Preferably, in the processing and judging unit, "judging whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data" is specifically:

计算R数据与G数据的第一比值,以及B数据与G数据的第二比值,根据第一比值和第二比值判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种。Calculate the first ratio of the R data to the G data, and the second ratio of the B data to the G data, and determine whether the image is one of a pure red image, a pure green image, and a pure blue image according to the first ratio and the second ratio. kind.

优选的,当第一比值大于第一阈值,且第二比值小于第二阈值,则定义图像为纯红图像;当第一比值大于第一阈值,且第二比值大于第二阈值,则定于图像为纯蓝图像;当第一比值小于第一阈值,且第二比值小于第二阈值,则定义图像为纯绿图像。Preferably, when the first ratio is greater than the first threshold and the second ratio is less than the second threshold, the image is defined as a pure red image; when the first ratio is greater than the first threshold and the second ratio is greater than the second threshold, the image is defined as The image is a pure blue image; when the first ratio is less than the first threshold and the second ratio is less than the second threshold, the image is defined as a pure green image.

本发明的目的之三采用以下技术方案实现:The third purpose of the present invention adopts the following technical solutions to realize:

一种电子设备,其上设有存储器、处理器以及存储在存储器中并可被处理器执行的计算机可读程序,其特征在于,所述计算机可读程序被处理器执行时,实现如本发明所述的纯色场景AE色彩处理方法。An electronic device provided with a memory, a processor, and a computer-readable program stored in the memory and executed by the processor, characterized in that, when the computer-readable program is executed by the processor, the invention can be implemented as described in the present invention. The AE color processing method for the solid color scene.

本发明的目的之四采用以下技术方案实现:The fourth purpose of the present invention adopts the following technical solutions to realize:

一种存储介质,其上存储有可被处理器执行的计算机可读程序,其特征在于,所述计算机可读程序被处理器执行时,实现如本发明所述的纯色场景AE色彩处理方法。A storage medium on which a computer-readable program executable by a processor is stored, characterized in that when the computer-readable program is executed by the processor, the AE color processing method for a solid color scene according to the present invention is implemented.

相比现有技术,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:

本发明通过识别图像是否为纯色图像,并在图像是纯色图像的情况下,调用该纯色场景的彩色量作为处理自动曝光目标值的基础,替代现有技术所运用的亮度值,可以有效改善现有技术中纯色场景的图片亮度偏高、色彩信息丢失、用户体验差的问题。By identifying whether the image is a solid-color image, and in the case of a solid-color image, the present invention calls the color volume of the solid-color scene as the basis for processing the automatic exposure target value, instead of the brightness value used in the prior art, and can effectively improve the image quality. There are technical problems such as high brightness, loss of color information, and poor user experience in pure color scenes.

附图说明Description of drawings

图1为本发明的纯色场景AE色彩处理方法的流程图。FIG. 1 is a flowchart of a method for processing AE color of a solid color scene according to the present invention.

具体实施方式Detailed ways

下面,结合附图以及具体实施方式,对本发明做进一步描述:Below, in conjunction with accompanying drawing and specific embodiment, the present invention is further described:

实施例一Example 1

如图1所示,本发明提供一种纯色场景AE色彩处理方法,具体包括如下步骤:As shown in FIG. 1 , the present invention provides a method for processing AE color of solid color scene, which specifically includes the following steps:

S1:获取图像的原始数据;S1: Get the original data of the image;

S2:根据原始数据计算得到RGB数据以及亮度值,所述RGB数据包括R数据、G数据以及B数据;S2: Calculate and obtain RGB data and a luminance value according to the original data, where the RGB data includes R data, G data and B data;

S3:根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值,否则,根据亮度值处理为自动曝光目标值。S3: Determine whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data, and if so, according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the pure blue image The B data corresponding to the blue image is processed to obtain the automatic exposure target value, otherwise, the automatic exposure target value is processed according to the brightness value.

具体的,在S3步骤中,判断图像是否为纯红图像、纯绿图像、纯蓝图像中的一种的方式是计算R数据与G数据的第一比值,以及B数据与G数据的第二比值,根据第一比值和第二比值判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种。Specifically, in step S3, the way of judging whether the image is one of the pure red image, the pure green image, and the pure blue image is to calculate the first ratio between the R data and the G data, and the second ratio between the B data and the G data. A ratio, according to the first ratio and the second ratio to determine whether the image is one of a pure red image, a pure green image, and a pure blue image.

作为优选的实施方式,当第一比值大于第一阈值,且第二比值小于第二阈值,则定义图像为纯红图像;当第一比值大于第一阈值,且第二比值大于第二阈值,则定于图像为纯蓝图像;当第一比值小于第一阈值,且第二比值小于第二阈值,则定义图像为纯绿图像。第一阈值的数值例如设定为250。As a preferred embodiment, when the first ratio is greater than the first threshold and the second ratio is less than the second threshold, the image is defined as a pure red image; when the first ratio is greater than the first threshold and the second ratio is greater than the second threshold, Then the image is determined as a pure blue image; when the first ratio is less than the first threshold, and the second ratio is less than the second threshold, the image is defined as a pure green image. The numerical value of the first threshold is set to 250, for example.

作为优选的实施方式,在S1与S2之间还包括如下步骤:将图像以预设尺寸分割为若干个目标区域,并获取每一个目标区域对应的RGB数据以及亮度值。其中,所述预设尺寸优选为200*150。所述预设尺寸的单位为pixel(像素)数量,单位为个,As a preferred embodiment, the following steps are further included between S1 and S2: dividing the image into several target areas with a preset size, and acquiring RGB data and luminance values corresponding to each target area. Wherein, the preset size is preferably 200*150. The unit of the preset size is the number of pixels (pixels), and the unit is pieces,

“根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值”具体为“根据每一个目标区域对应的所述RGB数据判断所述该目标区域是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到该目标区域的自动曝光目标值”。"According to the RGB data, determine whether the image is one of a pure red image, a pure green image, and a pure blue image, and if so, according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the pure blue image The B data corresponding to the image is processed to obtain the automatic exposure target value" is specifically "judging whether the target area is one of a pure red image, a pure green image, and a pure blue image according to the RGB data corresponding to each target area, If so, the automatic exposure target value of the target area is obtained by processing according to the R data corresponding to the pure red image or the G data corresponding to the pure green image or the B data corresponding to the pure blue image.

通过识别图像是否为纯色图像,并在图像是纯色图像的情况下,调用该纯色场景的彩色量作为处理自动曝光目标值的基础,替代现有技术所运用的亮度值,可以有效改善现有技术中纯色场景的图片亮度偏高、色彩信息丢失、用户体验差的问题。By identifying whether the image is a solid-color image, and when the image is a solid-color image, calling the color amount of the solid-color scene as the basis for processing the automatic exposure target value, instead of the brightness value used in the prior art, the prior art can be effectively improved. In the solid color scene, the picture brightness is too high, the color information is lost, and the user experience is poor.

实施例二Embodiment 2

本实施例提供一种纯色场景AE色彩处理装置,包括如下单元:This embodiment provides an AE color processing device for a solid color scene, including the following units:

数据获取单元:被配置于获取图像的原始数据,根据原始数据计算得到RGB数据以及亮度值,所述RGB数据包括R数据、G数据以及B数据;Data acquisition unit: be configured to acquire the original data of the image, and obtain RGB data and brightness value by calculating according to the original data, and the RGB data includes R data, G data and B data;

处理判断单元:被配置于根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种,若是则根据与纯红图像对应的R数据或者纯绿图像对应的G数据或者纯蓝图像对应的B数据处理得到自动曝光目标值,否则,根据亮度值处理为自动曝光目标值。Processing and judgment unit: configured to judge whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data, and if so, according to the R data corresponding to the pure red image or the pure green image. The G data or the B data corresponding to the pure blue image is processed to obtain the automatic exposure target value, otherwise, the automatic exposure target value is processed according to the brightness value.

处理判断单元中,“根据所述RGB数据判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种”具体为:In the processing and judging unit, "judging whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data" is specifically:

计算R数据与G数据的第一比值,以及B数据与G数据的第二比值,根据第一比值和第二比值判断所述图像是否为纯红图像、纯绿图像、纯蓝图像中的一种。当第一比值大于第一阈值,且第二比值小于第二阈值,则定义图像为纯红图像;当第一比值大于第一阈值,且第二比值大于第二阈值,则定于图像为纯蓝图像;当第一比值小于第一阈值,且第二比值小于第二阈值,则定义图像为纯绿图像。Calculate the first ratio of the R data to the G data, and the second ratio of the B data to the G data, and determine whether the image is one of a pure red image, a pure green image, and a pure blue image according to the first ratio and the second ratio. kind. When the first ratio is greater than the first threshold and the second ratio is less than the second threshold, the image is defined as a pure red image; when the first ratio is greater than the first threshold and the second ratio is greater than the second threshold, the image is determined to be pure red Blue image; when the first ratio is less than the first threshold, and the second ratio is less than the second threshold, the image is defined as a pure green image.

实施例三Embodiment 3

本实施例提供一种电子设备,其上设有存储器、处理器以及存储在存储器中并可被处理器执行的计算机可读程序,其特征在于,所述计算机可读程序被处理器执行时,实现本发明所述的纯色场景AE色彩处理方法。This embodiment provides an electronic device, which is provided with a memory, a processor, and a computer-readable program stored in the memory and executed by the processor, characterized in that, when the computer-readable program is executed by the processor, The AE color processing method of the solid color scene according to the present invention is realized.

实施例四Embodiment 4

本实施例提供一种存储介质,其上存储有可被处理器执行的计算机可读程序,其特征在于,所述计算机可读程序被处理器执行时,实现如本发明任一项所述的纯色场景AE色彩处理方法。This embodiment provides a storage medium on which a computer-readable program executable by a processor is stored, characterized in that, when the computer-readable program is executed by the processor, the computer-readable program as described in any one of the present invention is implemented. Solid color scene AE color processing method.

对本领域的技术人员来说,可根据以上描述的技术方案以及构思,做出其它各种相应的改变以及形变,而所有的这些改变以及形变都应该属于本发明权利要求的保护范围之内。For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims (10)

1. The AE color processing method for the pure color scene is characterized by comprising the following steps of:
acquiring original data of an image, and calculating RGB data and brightness values according to the original data, wherein the RGB data comprises R data, G data and B data;
and judging whether the image is one of a pure red image, a pure green image and a pure blue image according to the RGB data, if so, processing according to R data corresponding to the pure red image or G data corresponding to the pure green image or B data corresponding to the pure blue image to obtain an automatic exposure target value, and otherwise, processing according to a brightness value to obtain the automatic exposure target value.
2. The AE color processing method for a solid color scene of claim 1, wherein the specific step of determining whether the image is one of a pure red image, a pure green image and a pure blue image according to the RGB data is:
and calculating a first ratio of the R data to the G data and a second ratio of the B data to the G data, and judging whether the image is one of a pure red image, a pure green image and a pure blue image according to the first ratio and the second ratio.
3. The AE color processing method for a solid color scene of claim 2, wherein when the first ratio is greater than the first threshold and the second ratio is less than the second threshold, the image is defined as a solid red image; when the first ratio is larger than the first threshold value and the second ratio is larger than the second threshold value, determining that the image is a pure blue image; and when the first ratio is smaller than the first threshold value and the second ratio is smaller than the second threshold value, defining the image as a pure green image.
4. The AE color processing method for solid color scenes according to claim 1, characterized in that after acquiring the raw data of the image, the following steps are further performed:
dividing the image into a plurality of target areas according to a preset size, and acquiring RGB data and a brightness value corresponding to each target area;
"determine whether the image is one of a pure red image, a pure green image, and a pure blue image according to the RGB data, if so, process the R data corresponding to the pure red image or the G data corresponding to the pure green image or the B data corresponding to the pure blue image to obtain an automatic exposure target value," specifically "determine whether the target region is one of a pure red image, a pure green image, and a pure blue image according to the RGB data corresponding to each target region, and if so, process the G data corresponding to the pure green image or the B data corresponding to the pure blue image to obtain an automatic exposure target value of the target region.
5. The AE color processing method for a solid color scene of claim 4, wherein the predetermined size is 200 x 150.
6. An AE color processing device of a pure color scene is characterized by comprising the following units:
a data acquisition unit: the method comprises the steps that original data configured for obtaining an image are calculated according to the original data to obtain RGB data and brightness values, wherein the RGB data comprise R data, G data and B data;
a processing judgment unit: the system is configured to judge whether the image is one of a pure red image, a pure green image and a pure blue image according to the RGB data, if so, the system is processed according to R data corresponding to the pure red image or G data corresponding to the pure green image or B data corresponding to the pure blue image to obtain an automatic exposure target value, otherwise, the system is processed into the automatic exposure target value according to a brightness value.
7. The AE color processing apparatus for a solid color scene according to claim 6, wherein the processing and determining unit is configured to determine whether the image is one of a pure red image, a pure green image and a pure blue image according to the RGB data by:
and calculating a first ratio of the R data to the G data and a second ratio of the B data to the G data, and judging whether the image is one of a pure red image, a pure green image and a pure blue image according to the first ratio and the second ratio.
8. The AE color processing apparatus for a solid color scene of claim 7, wherein when the first ratio is greater than the first threshold and the second ratio is less than the second threshold, the image is defined as a solid red image; when the first ratio is larger than the first threshold value and the second ratio is larger than the second threshold value, determining that the image is a pure blue image; and when the first ratio is smaller than the first threshold value and the second ratio is smaller than the second threshold value, defining the image as a pure green image.
9. An electronic device having a memory, a processor, and a computer readable program stored in the memory and executable by the processor, wherein the computer readable program, when executed by the processor, implements the AE color processing method for a solid color scene according to any one of claims 1-5.
10. A storage medium having a computer readable program stored thereon that is executable by a processor, wherein the computer readable program, when executed by the processor, implements the AE color processing method for a solid color scene according to any one of claims 1-5.
CN202010837446.5A 2020-08-19 2020-08-19 Pure color scene AE color processing method and device, electronic equipment and storage medium Pending CN111970501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010837446.5A CN111970501A (en) 2020-08-19 2020-08-19 Pure color scene AE color processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010837446.5A CN111970501A (en) 2020-08-19 2020-08-19 Pure color scene AE color processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111970501A true CN111970501A (en) 2020-11-20

Family

ID=73388880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010837446.5A Pending CN111970501A (en) 2020-08-19 2020-08-19 Pure color scene AE color processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111970501A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473035A (en) * 2021-07-23 2021-10-01 北京字节跳动网络技术有限公司 Ambient brightness determination method and device and electronic equipment
CN114025095A (en) * 2021-11-10 2022-02-08 维沃移动通信有限公司 Brightness adjusting method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013048319A (en) * 2011-08-29 2013-03-07 Ricoh Co Ltd Imaging apparatus, imaging method and imaging program
CN107438162A (en) * 2017-07-31 2017-12-05 努比亚技术有限公司 The method of adjustment and device of a kind of acquisition parameters

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013048319A (en) * 2011-08-29 2013-03-07 Ricoh Co Ltd Imaging apparatus, imaging method and imaging program
CN107438162A (en) * 2017-07-31 2017-12-05 努比亚技术有限公司 The method of adjustment and device of a kind of acquisition parameters

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473035A (en) * 2021-07-23 2021-10-01 北京字节跳动网络技术有限公司 Ambient brightness determination method and device and electronic equipment
CN114025095A (en) * 2021-11-10 2022-02-08 维沃移动通信有限公司 Brightness adjusting method and device and electronic equipment
CN114025095B (en) * 2021-11-10 2024-07-02 维沃移动通信有限公司 Brightness adjustment method, device and electronic device

Similar Documents

Publication Publication Date Title
CN111028189B (en) Image processing method, device, storage medium and electronic equipment
CN107888840B (en) High dynamic range image acquisition method and device
CN108335279B (en) Image fusion and HDR imaging
WO2019148912A1 (en) Image processing method, apparatus, electronic device and storage medium
WO2019183813A1 (en) Image capture method and device
US9934438B2 (en) Scene recognition method and apparatus
CN109829859B (en) Image processing method and terminal equipment
CN100553301C (en) Brightness Correction Method
JP6615917B2 (en) Real-time video enhancement method, terminal, and non-transitory computer-readable storage medium
CN112788251B (en) Image brightness processing method and device, and image processing method and device
WO2018223394A1 (en) Method and apparatus for photographing image
CN105635565A (en) Shooting method and equipment
CN110445986B (en) Image processing method, image processing device, storage medium and electronic equipment
CN103516984A (en) Method and device for intelligently switching HDR mode of camera
US11496694B2 (en) Dual sensor imaging system and imaging method thereof
CN110740266B (en) Image frame selection method and device, storage medium and electronic equipment
CN110047060A (en) Image processing method, device, storage medium and electronic device
CN114374793A (en) Exposure control method, device, equipment and storage medium
WO2022151852A1 (en) Image processing method, apparatus, and system, electronic device, and storage medium
CN114511461A (en) Image processing method, electronic device, and computer-readable storage medium
CN111970501A (en) Pure color scene AE color processing method and device, electronic equipment and storage medium
CN106488080A (en) Method and apparatus for high dynamic range dynamic noise reduction in digital imaging
CN112488933A (en) Video detail enhancement method and device, mobile terminal and storage medium
CN108520036B (en) Image selection method and device, storage medium and electronic equipment
CN111885371A (en) Image occlusion detection method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination