[go: up one dir, main page]

CN110930372B - An image processing method, electronic device, and computer-readable storage medium - Google Patents

An image processing method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN110930372B
CN110930372B CN201911076445.7A CN201911076445A CN110930372B CN 110930372 B CN110930372 B CN 110930372B CN 201911076445 A CN201911076445 A CN 201911076445A CN 110930372 B CN110930372 B CN 110930372B
Authority
CN
China
Prior art keywords
image
images
light source
color band
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.)
Active
Application number
CN201911076445.7A
Other languages
Chinese (zh)
Other versions
CN110930372A (en
Inventor
盛玉娇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911076445.7A priority Critical patent/CN110930372B/en
Publication of CN110930372A publication Critical patent/CN110930372A/en
Application granted granted Critical
Publication of CN110930372B publication Critical patent/CN110930372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

本发明实施例提供一种图像处理方法、电子设备及计算机可读存储介质,其中,所述图像处理方法包括:获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;若所述光源类别为人造光源,对所述P张图像进行色带检测;若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;输出消除色带后的图像。根据本发明实施例的图像处理方法,可根据获取的光源类别信息确定光源类别,以确定摄像头获取的图像是否需要进行色带检测和消除,不仅简化了色带检测的过程,同时降低了误检的可能性,提高了图像处理速度。

Figure 201911076445

An embodiment of the present invention provides an image processing method, an electronic device, and a computer-readable storage medium, wherein the image processing method includes: acquiring continuous P images in a target scene collected by a camera, where P is a positive integer; The light source category under the target scene, the light source category includes natural light source and artificial light source; if the light source category is artificial light source, perform color band detection on the P images; if detected from the P images The color band is to perform color band elimination processing on the P images; output the image after the color band is eliminated. According to the image processing method of the embodiment of the present invention, the light source type can be determined according to the acquired light source type information to determine whether the image acquired by the camera needs to be detected and eliminated, which not only simplifies the color band detection process, but also reduces false detection Possibility to improve image processing speed.

Figure 201911076445

Description

一种图像处理方法、电子设备及计算机可读存储介质An image processing method, electronic device, and computer-readable storage medium

技术领域technical field

本发明实施例涉及图像处理技术领域,尤其涉及一种图像处理方法、电子设备及计算机可读存储介质。Embodiments of the present invention relate to the technical field of image processing, and in particular, to an image processing method, electronic equipment, and a computer-readable storage medium.

背景技术Background technique

目前,电子设备使用的摄像头的CMOS(Complementary Metal OxideSemiconductor,即互补金属氧化物半导体)是逐行曝光的,由此,在不同的拍照环境下,由于不同频率的光源,电子设备拍摄到的画面中将出现banding(色带)现象,这严重影响了电子设备的成像画质。At present, the CMOS (Complementary Metal Oxide Semiconductor) of the camera used in electronic equipment is exposed line by line. Therefore, in different photographing environments, due to light sources of different frequencies, the images captured by electronic equipment There will be banding (ribbon) phenomenon, which seriously affects the image quality of electronic equipment.

针对banding(色带)现象,现有的解决方案主要集中在色带检测和色带消除过程。但是现有的解决方案存在着色带检测过程繁琐、检测精度不高,图像处理速度慢等缺点。For banding (ribbon) phenomena, existing solutions mainly focus on the process of banding detection and banding elimination. However, the existing solutions have disadvantages such as cumbersome color band detection process, low detection accuracy, and slow image processing speed.

发明内容Contents of the invention

本发明实施例提供一种图像处理方法、电子设备及计算机可读存储介质,以解决现有技术中色带检测过程繁琐、检测效果差、图像处理速度慢的问题。Embodiments of the present invention provide an image processing method, electronic equipment, and a computer-readable storage medium to solve the problems in the prior art of cumbersome color band detection process, poor detection effect, and slow image processing speed.

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,本发明实施例提供了一种图像处理方法,包括:In a first aspect, an embodiment of the present invention provides an image processing method, including:

获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;Obtain consecutive P images of the target scene collected by the camera, where P is a positive integer;

识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;identifying a light source category in the target scene, where the light source category includes natural light sources and artificial light sources;

若所述光源类别为人造光源,对所述P张图像进行色带检测;If the light source category is an artificial light source, perform color band detection on the P images;

若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;If a color band is detected from the P images, performing color band elimination processing on the P images;

输出消除色带后的图像。Output the image with the color band removed.

第二方面,本发明实施例提供了一种电子设备,包括:In a second aspect, an embodiment of the present invention provides an electronic device, including:

获取模块,用于获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;The obtaining module is used to obtain continuous P images under the target scene collected by the camera, where P is a positive integer;

识别模块,用于识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;An identification module, configured to identify the category of light sources in the target scene, where the categories of light sources include natural light sources and artificial light sources;

色带检测模块,用于若所述光源类别为人造光源,对所述P张图像进行色带检测;A color band detection module, configured to perform color band detection on the P images if the light source type is an artificial light source;

色带消除模块,用于若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;A color band elimination module, configured to perform color band elimination processing on the P images if a color band is detected from the P images;

图像输出模块,用于输出消除色带后的图像。The image output module is used for outputting the image after removing the color band.

第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的图像处理方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When implementing the steps of the image processing method as described above.

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

在本发明实施例中,在进行色带检测前先根据获取的光源类别信息确定光源类别,以确定摄像头获取的图像是否需要进行色带检测和消除,不仅简化了色带检测的过程,同时降低了误检的可能性,提高了图像处理速度。In the embodiment of the present invention, before performing the color band detection, the light source category is determined according to the obtained light source category information to determine whether the image acquired by the camera needs to be detected and eliminated, which not only simplifies the process of color band detection, but also reduces the The possibility of false detection is reduced, and the image processing speed is improved.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1为本发明实施例提供的一种图像处理方法的流程示意图之一;FIG. 1 is one of the schematic flow charts of an image processing method provided by an embodiment of the present invention;

图2为本发明实施例提供的视网膜大脑皮层理论的示意图;Fig. 2 is a schematic diagram of the retinal cerebral cortex theory provided by the embodiment of the present invention;

图3为本发明实施例提供的目标色带消除模型的示意图;3 is a schematic diagram of a target color band elimination model provided by an embodiment of the present invention;

图4为本发明实施例提供的一种电子设备的结构示意图之一;FIG. 4 is one of the structural schematic diagrams of an electronic device provided by an embodiment of the present invention;

图5为本发明实施例提供的一种电子设备的结构示意图之二;FIG. 5 is the second structural schematic diagram of an electronic device provided by an embodiment of the present invention;

图6为本发明实施例提供的一种电子设备的结构示意图之三。FIG. 6 is a third structural schematic diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

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

本申请的说明书和权利要求书中的术语“包括”以及它的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。此外,说明书以及权利要求中使用“和/或”表示所连接对象的至少其中之一,例如A和/或B,表示包含单独A,单独B,以及A和B都存在三种情况。The term "comprising" and any variations thereof in the description and claims of this application are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device comprising a series of steps or units is not necessarily limited to the explicit instead of those steps or elements explicitly listed, other steps or elements not explicitly listed or inherent to the process, method, product or apparatus may be included. In addition, the use of "and/or" in the description and claims means at least one of the connected objects, such as A and/or B, means that there are three situations including A alone, B alone, and both A and B.

在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

请参考图1,图1为本发明实施例提供的一种图像处理方法的流程示意图。如图1所示,本发明实施例的图像处理方法包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of an image processing method provided by an embodiment of the present invention. As shown in Figure 1, the image processing method of the embodiment of the present invention includes the following steps:

(1)步骤101:获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数。(1) Step 101: Acquire consecutive P images of the target scene captured by the camera, where P is a positive integer.

具体来说,在步骤101中,电子设备的摄像头包括各种传感器以及其他组件,通过电子设备的摄像头可以采集得到目标场景下的连续的多张图像,此处的连续的多张图像为在时间上连续的多张图像,一张图像也即一帧图像。Specifically, in step 101, the camera of the electronic device includes various sensors and other components. Through the camera of the electronic device, multiple continuous images of the target scene can be collected, where the continuous multiple images are at time Multiple consecutive images, one image is also one frame of image.

(2)步骤102,识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源。(2) Step 102, identifying the type of light source in the target scene, where the type of light source includes natural light source and artificial light source.

在步骤102中,摄像头的拍摄画面即目标场景,在该目标场景下,光源的类别可能是自然光源,例如太阳等,也可能是人造光源,例如日光灯、白炽灯等。In step 102, the image captured by the camera is the target scene. In the target scene, the light source may be a natural light source, such as the sun, or an artificial light source, such as a fluorescent lamp or an incandescent lamp.

在本发明实施例中,步骤102中识别目标场景下的光源类别的步骤具体可以包括:In the embodiment of the present invention, the step of identifying the light source category in the target scene in step 102 may specifically include:

步骤1021:采用摄像头的颜色传感器获取颜色信息;Step 1021: Obtain color information by using the color sensor of the camera;

步骤1022:根据所述颜色信息,确定光源信息,所述光源信息包括显色指数和相关色温中的至少之一;Step 1022: Determine light source information according to the color information, and the light source information includes at least one of color rendering index and correlated color temperature;

步骤1023:根据所述光源信息,确定所述目标场景下的光源类别。Step 1023: Determine the type of light source in the target scene according to the light source information.

更具体地说,摄像头在拍摄连续的图像的同时,利用摄像头的颜色传感器获取当前目标场景下的颜色信息,然后根据颜色传感器获取的颜色信息确定光源信息,该光源信息包括显色指数(CRI)和相关色温(CCT)中的至少之一。More specifically, while the camera is shooting continuous images, it uses the color sensor of the camera to obtain the color information of the current target scene, and then determines the light source information according to the color information obtained by the color sensor. The light source information includes color rendering index (CRI) and at least one of correlated color temperature (CCT).

较优的,为了提高识别光源类别的准确度,本发明实施例中,可以采用光源估计模型进行识别,也就是说,在得到所述光源信息后,可以采用该光源估计模型对采集到的光源信息进行估计,从而确定该目标场景下的光源类别是自然光源还是人造光源。其中,光源估计模型可以是K近邻模型或卷积神经网络模型,通过预先构建模型并对其进行光源类别识别训练,可以使光源估计模型能够对光源类别进行估计,其具体学习训练过程为现有技术,在此不再赘述。可以知道,光源估计模型的训练学习越充分、其估计的准确度也就越高。而且,同时利用显色指数(CRI)和相关色温(CCT)两个数据信息对光源类型进行估计也可以提高其估计的准确度。通过摄像头自动获取显色指数(CRI)和/或相关色温(CCT),可以实现光源类别的自动识别,提升用户的体验度。Preferably, in order to improve the accuracy of identifying the light source category, in the embodiment of the present invention, the light source estimation model can be used for identification, that is, after the light source information is obtained, the light source estimation model can be used to analyze the collected light source Information is estimated to determine whether the light source category in the target scene is a natural light source or an artificial light source. Among them, the light source estimation model can be a K-nearest neighbor model or a convolutional neural network model. By pre-constructing the model and performing light source category recognition training on it, the light source estimation model can be used to estimate the light source category. The specific learning and training process is the existing technology, which will not be repeated here. It can be known that the more sufficient the training and learning of the light source estimation model is, the higher the estimation accuracy will be. Moreover, using the color rendering index (CRI) and correlated color temperature (CCT) data information to estimate the light source type can also improve the accuracy of the estimation. Automatically obtain the color rendering index (CRI) and/or correlated color temperature (CCT) through the camera, which can realize the automatic identification of the light source category and improve the user experience.

在本发明的另一些实施例中,步骤102中识别目标场景下的光源类别还可以通过以下方式:In other embodiments of the present invention, the identification of the light source category under the target scene in step 102 may also be performed in the following manner:

电子设备直接接收用于确定光源类别的输入,也就是说,在摄像头拍摄连续的图像的同时,电子设备提供光源类别的选项,选项可以包括自然光源选项和人造光源选项,当电子设备接收到选择自然光源选项的输入时,即可确定光源类别为自然光源,当电子设备接收到选择人造光源选项的输入时,即可确定光源类别为人造光源。通过这样的方式,可以增加人为的干预,节省电子设备的运算处理。The electronic device directly receives the input for determining the type of light source, that is, while the camera captures continuous images, the electronic device provides options for the type of light source. The options may include natural light source options and artificial light source options. When the electronic device receives the selection When the natural light source option is input, the light source category can be determined as natural light source, and when the electronic device receives an input for selecting the artificial light source option, it can be determined that the light source category is artificial light source. In this way, human intervention can be increased, and computing processing of electronic equipment can be saved.

(3)步骤103:若所述光源类别不是自然光源,对获取的P张图像进行色带检测,判断从P张图像中是否检测到色带。(3) Step 103: If the type of light source is not a natural light source, perform color band detection on the acquired P images, and judge whether a color band is detected from the P images.

进一步地,基于摄像头CMOS的逐行曝光的原理可知,图像各行之间的曝光时间相同,对于与COMS曝光时间不匹配的频率的光源,每行获取到的亮度不一致,由此拍摄出来的图像发生banding现象,banding现象即图像中存在色带,band即色带、条带。可以发现,banding产生的两个必备条件是:CMOS的逐行曝光原理以及与COMS曝光时间不匹配的频率的人造光源。也就是说,当只有自然光源时,拍摄到的图像中不会出现banding现象。因此,当步骤102的结果显示光源类别不是自然光源时,摄像头拍摄到的图像可能存在色带,所以在这种情况下,为提高用户体验度,需要检测图像是否有色带。Furthermore, based on the principle of CMOS progressive exposure of the camera, it can be known that the exposure time between the lines of the image is the same, and for the light source with a frequency that does not match the exposure time of the CMOS, the brightness obtained by each line is inconsistent, and the image captured by this is inconsistent. The phenomenon of banding, the phenomenon of banding means that there are color bands in the image, and band means color bands and bands. It can be found that the two necessary conditions for banding are: the progressive exposure principle of CMOS and the artificial light source with a frequency that does not match the exposure time of CMOS. That is to say, when there is only natural light source, there will be no banding phenomenon in the captured image. Therefore, when the result of step 102 shows that the light source type is not a natural light source, there may be color bands in the image captured by the camera, so in this case, in order to improve user experience, it is necessary to detect whether the image has color bands.

根据以上分析,若光源类别为人造光源,则对获取的连续的P张图像进行色带检测。具体的,上述步骤103可以包括:According to the above analysis, if the light source type is an artificial light source, the color band detection is performed on the acquired P consecutive images. Specifically, the above step 103 may include:

步骤1031:根据所述P张图像,得到目标检测图像;Step 1031: Obtain a target detection image according to the P images;

步骤1032:将目标检测图像输入到目标色带检测模型中检测是否有色带。Step 1032: Input the target detection image into the target color band detection model to detect whether there is a color band.

其中,目标色带检测模型用于检测图像中是否有色带,在本发明的一些具体实施例中,目标色带检测模型具体可以为卷积神经网络模型,由于目标色带检测模型需要预先训练学习,因此,在步骤1032之前,还可以包括如下步骤:Wherein, the target color band detection model is used to detect whether there is a color band in the image. In some specific embodiments of the present invention, the target color band detection model can specifically be a convolutional neural network model. Since the target color band detection model requires pre-training learning , therefore, before step 1032, the following steps may also be included:

首先,获取用于训练的S个图像样本,S个图像样本包括以人造光源作为光源的图像和以自然光源作为光源的图像,每个图像样本包括连续的M张图像,其中,S、M均为正整数,且S=M;当然,图像样本越多,训练的效果也就越好,目标色带检测模型的检测准确度也就越高。First, obtain S image samples for training. The S image samples include images with artificial light sources as light sources and images with natural light sources as light sources. Each image sample includes M consecutive images, where S and M are is a positive integer, and S=M; of course, the more image samples, the better the training effect, and the higher the detection accuracy of the target color band detection model.

然后,将每个图像样本中的每一帧图像与另外一帧图像进行差分计算,即像素的时间差分计算,例如,每个图像样本包括连续的6张图像,分别为X1,X2,X3,X4,X5,X6,可以用X2-X1,X4-X3,X6-X5进行差分计算,也可以用X6-X4,X5-X3,X4-X2,X3-X1进行差分计算,还可以用X6-X5,X5-X4,X4-X3,X3-X2,X2-X1进行差分计算,只要是每个图像样本中的任意两张图像均可进行差分计算,但要确保每一张图像均进行过差分计算。Then, perform difference calculation between each frame of image in each image sample and another frame of image, that is, time difference calculation of pixels, for example, each image sample includes 6 consecutive images, which are respectively X 1 , X 2 , X 3 , X 4 , X 5 , X 6 , X 2 -X 1 , X 4 -X 3 , X 6 -X 5 can be used for differential calculation, or X 6 -X 4 , X 5 -X 3 , X 4 -X 2 , X 3 -X 1 for differential calculation, and X 6 -X 5 , X 5 -X 4 , X 4 -X 3 , X 3 -X 2 , X 2 -X 1 for differential calculation , as long as any two images in each image sample can be differentially calculated, but it must be ensured that each image has been differentially calculated.

接着,将经差分计算后得到的多张帧差图像进行图像融合,最终得到目标样本图像,可以确定,S个图像样本最终将得到S张RGB的目标样本图像。Next, image fusion is performed on the multiple frame difference images obtained after difference calculation to finally obtain a target sample image. It can be determined that S image samples will eventually obtain S RGB target sample images.

在上述图像融合过程中,由于图像融合可能存在一些瑕疵,因此,可选的,在图像融合之后,还可以进一步对融合后的图像进行图像预处理,例如白化处理、调整大小、变形等等,从而获得一张处理结果较好的目标样本图像,有利于提高目标色带检测模型的检测准确度。In the above image fusion process, since there may be some flaws in the image fusion, optionally, after the image fusion, image preprocessing can be further performed on the fused image, such as whitening processing, resizing, deformation, etc., In this way, a target sample image with a better processing result can be obtained, which is conducive to improving the detection accuracy of the target color band detection model.

最后,构建卷积神经网络模型,利用得到的S张目标样本图像对卷积神经网络模型进行训练,使其不断学习检测色带,以得到可以用于检测色带的卷积神经网络模型,即目标色带检测模型。Finally, construct a convolutional neural network model, use the obtained S target sample images to train the convolutional neural network model, so that it can continuously learn to detect color bands, so as to obtain a convolutional neural network model that can be used to detect color bands, namely Object Ribbon Detection Model.

采用训练学习后的卷积神经网络模型对图像进行色带检测,可以有效提高检测的准确度以及检测效率。Using the trained and learned convolutional neural network model to detect color bands in images can effectively improve the accuracy and efficiency of detection.

进一步的,上述步骤1031具体可以包括如下步骤:Further, the above step 1031 may specifically include the following steps:

从获取的P张图像中每间隔目标时长选取连续的M帧图像,间隔的目标时长可以设为5s、6s等数值,其中,P、M均为正整数,并且M≤P;Select consecutive M frames of images from the acquired P images at each interval of the target duration, and the interval target duration can be set to a value such as 5s, 6s, etc., wherein P and M are positive integers, and M≤P;

对选取的M帧图像中的每一帧图像与其余任意一帧图像进行差分计算,即像素的时间差分计算,例如,每个图像样本包括连续的6帧图像,分别为X1,X2,X3,X4,X5,X6,可以用X2-X1,X4-X3,X6-X5进行差分计算,也可以用X6-X4,X5-X3,X4-X2,X3-X1进行差分计算,还可以用X6-X5,X5-X4,X4-X3,X3-X2,X2-X1进行差分计算,只要是每个图像样本中的任意两帧图像均可进行差分计算,但要确保每一帧图像均进行过差分计算;也就是说,可以从P张图像中选取一部分图像进行上述的差分计算过程,也可以使用全部P张图像进行上述的差分计算过程;Calculate the difference between each frame of the selected M frames of images and any other frame of images, that is, calculate the time difference of pixels. For example, each image sample includes 6 consecutive frames of images, which are respectively X 1 , X 2 , X 3 , X 4 , X 5 , X 6 , X 2 -X 1 , X 4 -X 3 , X 6 -X 5 can be used for differential calculation, or X 6 -X 4 , X 5 -X 3 , X 4 -X 2 , X 3 -X 1 for differential calculation, and X 6 -X 5 , X 5 -X 4 , X 4 -X 3 , X 3 -X 2 , X 2 -X 1 for differential calculation , as long as any two frames of images in each image sample can be differentially calculated, but it must be ensured that each frame of image has been differentially calculated; that is, a part of the images can be selected from the P images for the above differential calculation process, or use all P images to perform the above-mentioned difference calculation process;

再将经差分计算后得到的多张帧差图像进行图像融合,最终得到目标检测图像。Then, image fusion is performed on multiple frame difference images obtained after difference calculation, and finally a target detection image is obtained.

在上述图像融合过程中,由于图像融合可能存在一些瑕疵,因此,可选的,在图像融合之后,还可以进一步对融合后的图像进行图像预处理,例如白化处理、调整大小、变形等等,从而获得一张处理结果较好的目标检测图像,有利于提高目标色带检测模型的检测准确度。In the above image fusion process, since there may be some flaws in the image fusion, optionally, after the image fusion, image preprocessing can be further performed on the fused image, such as whitening processing, resizing, deformation, etc., In this way, a target detection image with better processing results can be obtained, which is conducive to improving the detection accuracy of the target color band detection model.

较优的,上述对P张图像进行图像处理得到目标检测图像的步骤应与上述目标色带检测模型训练时得到目标样本图像的步骤保持一致,以提高色带检测的准确度。Preferably, the above-mentioned step of performing image processing on the P images to obtain the target detection image should be consistent with the above-mentioned step of obtaining the target sample image during the training of the target color band detection model, so as to improve the accuracy of the color band detection.

(4)步骤104:若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理。(4) Step 104: If color bands are detected from the P images, perform color band removal processing on the P images.

也就是说或,在经过步骤1032后,若目标检测图像检测到有色带,则需要对摄像头拍摄的P张图像进行色带消除。具体来说,步骤104可以包括:That is to say or, after step 1032, if a color band is detected in the target detection image, it is necessary to eliminate the color band on the P images captured by the camera. Specifically, step 104 may include:

步骤1041:将P张图像输入到目标色带消除模型中,消除P张图像中的色带。Step 1041: Input the P images into the target color band elimination model, and eliminate the color bands in the P images.

在本发明的一些具体实施例中,目标色带消除模型具体可以为卷积神经网络模型,由于目标色带消除模型需要预先训练学习,因此,在步骤1041之前,还包括如下步骤:In some specific embodiments of the present invention, the target color band elimination model can specifically be a convolutional neural network model. Since the target color band elimination model requires pre-training and learning, the following steps are also included before step 1041:

首先,获取同一场景下有色带的图像样本和没有色带的图像样本,获取的方法可以通过控制光源的手段,也即在人造光源的场景下拍摄得到有色带的图像样本,然后将该场景的光源替换为自然光源,从而拍摄得到没有色带的图像样本(相当于色带消除后的图像样本);当然,获取的图像样本越多,训练的效果也就越好,目标色带消除模型的消除效果也就越好。First, obtain image samples with color bands and image samples without color bands in the same scene. The method of acquisition can be by means of controlling the light source, that is, to obtain image samples with color bands in the scene of artificial light source, and then the scene The light source is replaced with a natural light source, so as to obtain image samples without color bands (equivalent to image samples after color band elimination); of course, the more image samples acquired, the better the training effect, and the target color band elimination model The better the elimination effect.

然后,基于Retinex理论(即视网膜大脑皮层理论),构建卷积神经网络模型,利用获取的一一对应的有色带的图像样本和没有色带的图像样本对卷积神经网络进行色带消除训练,得到用于消除色带的卷积神经网络模型,即目标色带消除模型。Then, based on the Retinex theory (i.e., retinal cerebral cortex theory), construct a convolutional neural network model, and use the obtained one-to-one corresponding image samples with color bands and image samples without color bands to perform color band elimination training on the convolutional neural network, Obtain the convolutional neural network model for eliminating color bands, that is, the target color band removal model.

请参考图2,图2为本发明实施例提供的Retinex理论的示意图。如图2所示,Retinex理论认为,一幅图像可以表示成反射分量R和照明分量L的乘积,即可表示为下式的形式:Please refer to FIG. 2 , which is a schematic diagram of the Retinex theory provided by the embodiment of the present invention. As shown in Figure 2, the Retinex theory believes that an image can be expressed as the product of the reflection component R and the illumination component L, which can be expressed in the form of the following formula:

I=R x LI = R x L

其中,R为反射分量,反应物体本身的颜色特性,对应图像中的高频部分,L为照度分量,反应环境的亮度,对应图像中的低频部分。Among them, R is the reflection component, which reflects the color characteristics of the object itself, corresponding to the high-frequency part in the image, and L is the illuminance component, which reflects the brightness of the environment, and corresponds to the low-frequency part in the image.

而banding的产生正是由于环境亮度变化造成的,因此,如果能够对照度分量L进行修正,从原始图像S中估计出L,就可以计算出一个较好的R,从而消除色带,改善图像的视觉效果。在处理中,通常将图像转至对数域,即从而将乘积关系转换为和的关系:The generation of banding is caused by the change of ambient brightness. Therefore, if the illuminance component L can be corrected and estimated from the original image S, a better R can be calculated, thereby eliminating the color band and improving the image. visual effects. In processing, the image is usually transferred to the logarithmic domain, i.e. the product relation is thus transformed into a sum relation:

log(I)=log(R)+log(L);log(I)=log(R)+log(L);

log(R)=log(I)-log(L)。log(R)=log(I)-log(L).

因此,Retinex理论的核心就是从原始图像I中估测L,并去除L。结合深度学习的方法,需要训练得到一个卷积神经网络模型,该卷积神经网络模型的输入为原始图像I,使用时,I经过卷积神经网络模型网络计算得到修正后的L,通过以上的公式计算,得到最终的结果R。考虑到时间成本,这一过程可以利用小图进行,由于原图像I保留了大量的原始图像信息,因此还原出的R依然能够保持清晰的画质。Therefore, the core of Retinex theory is to estimate L from the original image I and remove L. Combined with the method of deep learning, a convolutional neural network model needs to be trained. The input of the convolutional neural network model is the original image I. When used, I is calculated by the convolutional neural network model network to obtain the corrected L. Through the above The formula is calculated to obtain the final result R. Considering the time cost, this process can be carried out using small images. Since the original image I retains a large amount of original image information, the restored R can still maintain a clear image quality.

由此,本发明实施例的目标色带消除模型采用基于Retinex理论构建的卷积神经网络模型,利用获取的一一对应的有色带的图像样本和没有色带的图像样本对卷积神经网络进行色带消除训练,便可得到用于消除色带的卷积神经网络模型。Therefore, the target color band elimination model in the embodiment of the present invention adopts a convolutional neural network model based on the Retinex theory, and uses the obtained one-to-one corresponding image samples with color bands and image samples without color bands to carry out the convolutional neural network. Ribbon elimination training, the convolutional neural network model for eliminating ribbons can be obtained.

请参考图3,图3为本发明实施例提供的目标色带消除模型的示意图。如图3所示,输入为原图像I,F(x)表示的是下采样过程,由卷积层、采样层等组成,F-1(x)是F(x)的逆过程,为上采样过程,同样由卷积层和采样层等构成。通过该目标色带消除模型,最终得到增强后的图像R,也即色带消除后的图像。Please refer to FIG. 3 , which is a schematic diagram of a target color band elimination model provided by an embodiment of the present invention. As shown in Figure 3, the input is the original image I, F(x) represents the downsampling process, which is composed of convolutional layer and sampling layer, etc., F -1 (x) is the inverse process of F(x), which is the upper The sampling process is also composed of convolutional layers and sampling layers. Through the target color band elimination model, an enhanced image R is finally obtained, that is, an image after color band elimination.

(5)步骤105:输出消除色带后的图像。(5) Step 105: output the image after removing the color band.

摄像头采集的P张图像在经过目标色带检测模型检测出色带、并利用色带消除模型将色带消除等步骤后,即可输出消除色带后的图像。这样,输出的图像清晰,可提高用户的拍摄体验。After the P images collected by the camera are detected by the target color band detection model, and the color band is eliminated by the color band elimination model, the image after the color band is eliminated can be output. In this way, the output image is clear, which can improve the shooting experience of the user.

在本发明实施例中,电子设备在进行色带检测前先根据获取的光源类别信息确定光源类别,从而确定摄像头获取的图像是否需要进行色带检测和消除,不仅简化了色带检测的过程,同时降低了误检的可能性,提高了图像处理速度;在色带检测和色带消除过程中,通过获取预先训练学习好的目标色带检测模型和目标色带消除模型来对摄像头采集的图像进行快速地色带检测和色带消除,色带检测准确度高,色带消除效果好,显著提高了电子设备的图像处理和输出速度,提升了电子设备用户的体验。In the embodiment of the present invention, the electronic device first determines the light source type according to the obtained light source type information before performing color band detection, so as to determine whether the image acquired by the camera needs to be detected and eliminated, which not only simplifies the process of color band detection, At the same time, the possibility of false detection is reduced, and the image processing speed is improved; in the process of color band detection and color band elimination, the images collected by the camera are processed by obtaining the pre-trained and learned target color band detection model and target color band elimination model Fast color band detection and color band elimination are performed, the color band detection accuracy is high, and the color band elimination effect is good, the image processing and output speed of the electronic device are significantly improved, and the user experience of the electronic device is improved.

本发明另一实施例提供了一种图像处理方法,所述图像处理方法可以包括以下步骤:Another embodiment of the present invention provides an image processing method, and the image processing method may include the following steps:

步骤201:获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;Step 201: Acquire consecutive P images of the target scene captured by the camera, where P is a positive integer;

步骤202:获取所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;Step 202: Obtain the light source category in the target scene, the light source category includes natural light source and artificial light source;

步骤203:输出所述光源类别为自然光源的图像。Step 203: Output an image in which the light source type is natural light source.

在本实施例中,步骤201和步骤202的具体实施过程见上一实施例,在此不再赘述。在目标场景的光源类别为自然光源时,根据上一实施例的分析可知,P张图像中将不存在色带,因此,在这种情况下,可以直接输出光源类别为自然光源的图像。例如,若所述光源类别为自然光源,输出所述P张图像。本发明实施例通过判断目标场景的光源类别为自然光源还是人工光源,即可知道是否需要对拍摄的图像进行色带检测,并且在光源类别为自然光源时直接输出拍摄的图像,避免了对每一张拍摄的图像都进行色带检测的繁琐步骤,提高了图像输出速度,提升了用户体验。In this embodiment, the specific implementation process of step 201 and step 202 can be seen in the previous embodiment, and will not be repeated here. When the light source type of the target scene is a natural light source, according to the analysis of the previous embodiment, there will be no color bands in the P images. Therefore, in this case, an image whose light source type is a natural light source can be directly output. For example, if the light source category is a natural light source, output the P images. In the embodiment of the present invention, by judging whether the light source type of the target scene is a natural light source or an artificial light source, it is possible to know whether to perform color band detection on the captured image, and directly output the captured image when the light source type is a natural light source, avoiding the need for each The cumbersome steps of color band detection are performed for each captured image, which increases the image output speed and improves user experience.

本发明再一实施例提供了一种图像处理方法,所述图像处理方法可以包括以下步骤:Another embodiment of the present invention provides an image processing method, and the image processing method may include the following steps:

步骤301:获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;Step 301: Acquire consecutive P images of the target scene captured by the camera, where P is a positive integer;

步骤302:识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;Step 302: Identify the light source category in the target scene, the light source category includes natural light source and artificial light source;

步骤303:若所述光源类别不是自然光源,对获取的P张图像进行色带检测,判断从P张图像中是否检测到色带;Step 303: If the type of light source is not a natural light source, perform color band detection on the acquired P images, and determine whether a color band is detected from the P images;

步骤304:输出未检测到色带的图像。Step 304: Outputting an image in which no color band is detected.

上述步骤301、步骤302以及步骤303的具体实施过程见实施例一,在此不再赘述。本发明实施例中,在未检测到色带时,可以直接输出未检测到色带的图像。本发明实施例通过目标色带检测模型对拍摄的图像进行色带检测,并且在未检测到色带时直接输出图像,避免了对每一张拍摄的图像都进行色带消除的繁琐步骤,提高了图像输出速度,提升了用户体验。The specific implementation process of the above step 301, step 302 and step 303 can be seen in the first embodiment, and will not be repeated here. In the embodiment of the present invention, when the color band is not detected, the image in which the color band is not detected may be directly output. The embodiment of the present invention uses the target color band detection model to detect the color band of the captured image, and directly outputs the image when the color band is not detected, avoiding the cumbersome steps of eliminating the color band for each captured image, and improving The image output speed is improved, and the user experience is improved.

请参考图4,图4为本发明又一实施例提供的一种电子设备,该电子设备400包括:Please refer to FIG. 4. FIG. 4 is an electronic device provided in another embodiment of the present invention. The electronic device 400 includes:

获取模块401,用于获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;An acquisition module 401, configured to acquire continuous P images under the target scene collected by the camera, wherein P is a positive integer;

识别模块402,用于识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;An identification module 402, configured to identify the type of light source in the target scene, where the type of light source includes natural light source and artificial light source;

色带检测模块403,用于若所述光源类别为人造光源,对所述P张图像进行色带检测,判断从所述P张图像中是否检测到色带;A color band detection module 403, configured to perform color band detection on the P images if the type of the light source is an artificial light source, and determine whether a color band is detected from the P images;

色带消除模块404,用于若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;A color band elimination module 404, configured to perform color band elimination processing on the P images if a color band is detected from the P images;

图像输出模块405,用于输出消除色带后的图像。The image output module 405 is configured to output the image after removing the color band.

可选的,所述识别模块402包括:Optionally, the identification module 402 includes:

颜色信息采集子模块,用于采用所述摄像头的颜色传感器获取颜色信息;A color information acquisition sub-module, configured to acquire color information by using the color sensor of the camera;

光源信息采集子模块,用于根据所述颜色信息,确定光源信息,所述光源信息包括显色指数和相关色温中的至少一项;The light source information collection sub-module is configured to determine light source information according to the color information, and the light source information includes at least one of a color rendering index and a correlated color temperature;

光源类别确定子模块,用于根据所述光源信息,确定所述目标场景下的光源类别。The light source category determining submodule is configured to determine the light source category in the target scene according to the light source information.

可选的,所述图像输出模块还用于输出所述P张图像中所述光源类别为自然光源的图像。Optionally, the image output module is further configured to output an image in which the light source type is a natural light source among the P images.

可选的,所述色带检测模块403包括:Optionally, the ribbon detection module 403 includes:

色带检测图像样本获取子模块,用于获取S个图像样本,S个图像样本包括以人造光源作为光源的图像和以自然光源作为光源的图像,每个图像样本包括连续的M张图像,其中,M=P;The color band detection image sample acquisition submodule is used to acquire S image samples, the S image samples include images with artificial light sources as light sources and images with natural light sources as light sources, and each image sample includes continuous M images, wherein , M=P;

帧差计算子模块,用于将每个图像样本中的每一张图像与另外一张图像进行差分计算,将经差分计算后得到的多张帧差图像进行图像融合,得到目标样本图像;The frame difference calculation sub-module is used to calculate the difference between each image in each image sample and another image, and perform image fusion on the multiple frame difference images obtained after the difference calculation to obtain the target sample image;

色带检测模型训练子模块,用于建立卷积神经网络模型,利用所述目标样本图像对所述卷积神经网络模型进行色带检测训练,得到目标色带检测模型;The color band detection model training submodule is used to establish a convolutional neural network model, and uses the target sample image to perform color band detection training on the convolutional neural network model to obtain a target color band detection model;

检测图像处理子模块,用于根据所述P张图像,得到目标检测图像;The detection image processing submodule is used to obtain a target detection image according to the P images;

色带检测子模块,用于将所述目标检测图像输入到所述目标色带检测模型中检测是否有色带。The color band detection sub-module is used to input the target detection image into the target color band detection model to detect whether there is a color band.

可选的,所述检测图像处理子模块包括:Optionally, the detection image processing submodule includes:

帧差计算单元,用于将所述P张图像中的每一张图像与另外一张图像进行差分计算,得到多张帧差图像;A frame difference calculation unit, configured to calculate the difference between each of the P images and another image to obtain multiple frame difference images;

图像融合单元,用于对所述多张帧差图像进行图像融合,得到所述目标检测图像。An image fusion unit, configured to perform image fusion on the plurality of frame difference images to obtain the target detection image.

可选的,所述色带消除模块404包括:Optionally, the ribbon elimination module 404 includes:

色带消除图像样本获取子模块,用于获取同一场景下有色带的图像样本和没有色带的图像样本;The color band elimination image sample acquisition submodule is used to acquire image samples with color bands and image samples without color bands in the same scene;

色带消除模型训练子模块,用于建立卷积神经网络模型,利用所述有色带的图像样本和所述没有色带的图像样本对所述卷积神经网络进行色带消除训练,得到目标色带消除模型;The color band elimination model training submodule is used to establish a convolutional neural network model, and uses the image samples with color bands and the image samples without color bands to perform color band elimination training on the convolutional neural network to obtain the target color band. with elimination model;

色带消除子模块,用于将所述P张图像输入到所述目标色带消除模型中,消除所述P张图像中的色带。The color band elimination sub-module is configured to input the P images into the target color band elimination model, and eliminate the color bands in the P images.

在本发明实施例中,电子设备400在进行色带检测前先根据获取的光源类别信息确定光源类别,从而确定摄像头获取的图像是否需要进行色带检测和消除,不仅简化了色带检测的过程,同时降低了误检的可能性,提高了图像处理速度;在色带检测和色带消除过程中,通过获取事先训练学习好的目标色带检测模型和目标色带消除模型来对摄像头采集的图像进行快速地色带检测和色带消除,从而提高了电子设备的图像处理和输出速度,提升了电子设备用户的体验。In the embodiment of the present invention, the electronic device 400 first determines the light source type according to the obtained light source type information before performing color band detection, so as to determine whether the image captured by the camera needs to be detected and eliminated, which not only simplifies the process of color band detection , while reducing the possibility of false detection and improving the image processing speed; in the process of color band detection and color band elimination, the image collected by the camera is analyzed by obtaining the target color band detection model and the target color band elimination model that have been trained and learned in advance. Rapid color band detection and color band elimination are performed on the image, thereby improving the image processing and output speed of the electronic device, and improving the user experience of the electronic device.

请参考图5,图5为本发明另一实施例的电子设备的结构示意图,该电子设备50包括但不限于:射频单元51、网络模块52、音频输出单元53、输入单元54、传感器55、显示单元56、用户输入单元57、接口单元58、存储器59、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present invention. The electronic device 50 includes but is not limited to: a radio frequency unit 51, a network module 52, an audio output unit 53, an input unit 54, a sensor 55, Display unit 56 , user input unit 57 , interface unit 58 , memory 59 , processor 510 , power supply 511 and other components. Those skilled in the art can understand that the structure of the electronic device shown in Figure 5 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, electronic devices include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted electronic devices, wearable devices, and pedometers.

处理器510,用于:Processor 510, for:

获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;Obtain consecutive P images of the target scene collected by the camera, where P is a positive integer;

识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;identifying a light source category in the target scene, where the light source category includes natural light sources and artificial light sources;

若所述光源类别为人造光源,对所述P张图像进行色带检测;If the light source category is an artificial light source, perform color band detection on the P images;

若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;If a color band is detected from the P images, performing color band elimination processing on the P images;

输出消除色带后的图像。Output the image with the color band removed.

在本发明实施例中,在进行色带检测前先根据获取的光源类别信息确定光源类别,以确定摄像头获取的图像是否需要进行色带检测和消除,不仅简化了色带检测的过程,同时降低了误检的可能性,提高了图像处理速度。In the embodiment of the present invention, before performing the color band detection, the light source category is determined according to the obtained light source category information to determine whether the image acquired by the camera needs to be detected and eliminated, which not only simplifies the process of color band detection, but also reduces the The possibility of false detection is reduced, and the image processing speed is improved.

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

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

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

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

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

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

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

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

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

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

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

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

另外,电子设备50包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 50 includes some functional modules not shown, which will not be repeated here.

请参考图6,图6为本发明又一实施例的电子设备的结构示意图,该电子设备60包括:处理器61和存储器62。在本发明实施例中,电子设备60还包括:存储在存储器62上并可在处理器61上运行的计算机程序,计算机程序被处理器611执行时可以实现上述任一图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present invention. The electronic device 60 includes: a processor 61 and a memory 62 . In this embodiment of the present invention, the electronic device 60 further includes: a computer program stored in the memory 62 and operable on the processor 61. When the computer program is executed by the processor 611, it can implement each of the above-mentioned image processing method embodiments. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述任一图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of any of the above-mentioned image processing method embodiments is implemented, and can To achieve the same technical effect, in order to avoid repetition, no more details are given here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

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

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

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

Claims (12)

1.一种图像处理方法,应用于电子设备,其特征在于,所述方法包括:1. A kind of image processing method, is applied to electronic equipment, is characterized in that, described method comprises: 获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;Obtain consecutive P images of the target scene collected by the camera, where P is a positive integer; 识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;identifying a light source category in the target scene, where the light source category includes natural light sources and artificial light sources; 若所述光源类别为人造光源,对所述P张图像进行色带检测;If the light source category is an artificial light source, perform color band detection on the P images; 若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;If a color band is detected from the P images, performing color band elimination processing on the P images; 输出消除色带后的图像;Output the image after removing the color band; 所述若所述光源类别为人造光源,对所述P张图像进行色带检测的步骤包括:If the type of the light source is an artificial light source, the step of performing color band detection on the P images includes: 根据所述P张图像,得到目标检测图像;Obtain a target detection image according to the P images; 将所述目标检测图像输入到目标色带检测模型中检测是否有色带;The target detection image is input into the target color band detection model to detect whether there is a color band; 将所述目标检测图像输入到目标色带检测模型前,还包括:Before the target detection image is input to the target ribbon detection model, it also includes: 获取S个图像样本,S个图像样本包括以人造光源作为光源的图像和以自然光源作为光源的图像,每个图像样本包括连续的M张图像,从获取的所述P张图像中每间隔目标时长选取所述连续的M张图像,其中,P、M均为正整数,并且M≤P;Acquire S image samples, the S image samples include images using artificial light sources as light sources and images using natural light sources as light sources, each image sample includes consecutive M images, and each interval of the target from the acquired P images The duration is selected from the M consecutive images, where P and M are both positive integers, and M≤P; 将每个图像样本中的每一张图像与另外一张图像进行差分计算,将经差分计算后得到的多张帧差图像进行图像融合,得到目标样本图像;performing difference calculation between each image in each image sample and another image, and performing image fusion on multiple frame difference images obtained after the difference calculation to obtain a target sample image; 建立卷积神经网络模型,利用所述目标样本图像对所述卷积神经网络模型进行色带检测训练,得到所述目标色带检测模型。A convolutional neural network model is established, and the color band detection training is performed on the convolutional neural network model by using the target sample image to obtain the target color band detection model. 2.根据权利要求1所述的图像处理方法,其特征在于,所述识别所述目标场景下的光源类别的步骤包括:2. The image processing method according to claim 1, wherein the step of identifying the category of the light source under the target scene comprises: 采用所述摄像头的颜色传感器获取颜色信息;Obtain color information by using the color sensor of the camera; 根据所述颜色信息,确定光源信息,所述光源信息包括显色指数和相关色温中的至少一项;Determine light source information according to the color information, where the light source information includes at least one of a color rendering index and a correlated color temperature; 根据所述光源信息,确定所述目标场景下的光源类别。According to the light source information, determine a light source category in the target scene. 3.根据权利要求1所述的图像处理方法,其特征在于,所述识别所述目标场景下的光源类别之后,所述方法还包括:3. The image processing method according to claim 1, characterized in that, after identifying the light source category under the target scene, the method further comprises: 若所述光源类别为自然光源,输出所述P张图像。If the light source category is a natural light source, output the P images. 4.根据权利要求1所述的图像处理方法,其特征在于,所述根据所述P张图像,得到目标检测图像的步骤包括:4. The image processing method according to claim 1, wherein the step of obtaining the target detection image according to the P images comprises: 将所述P张图像中的每一张图像与另外一张图像进行差分计算,得到多张帧差图像;Perform difference calculation between each of the P images and another image to obtain multiple frame difference images; 对所述多张帧差图像进行图像融合,得到目标检测图像。Image fusion is performed on the multiple frame difference images to obtain a target detection image. 5.根据权利要求1所述的图像处理方法,其特征在于,所述若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理的步骤包括:5. The image processing method according to claim 1, wherein if a color band is detected from the P images, the step of performing color band elimination processing on the P images comprises: 将所述P张图像输入到目标色带消除模型中,消除所述P张图像中的色带;Input the P images into the target color band elimination model, and eliminate the color bands in the P images; 将所述P张图像输入到目标色带消除模型前,还包括:Before the P images are input to the target color band elimination model, it also includes: 获取同一场景下有色带的图像样本和没有色带的图像样本;Obtain image samples with color bands and image samples without color bands in the same scene; 建立基于视网膜大脑皮层理论的卷积神经网络模型,利用所述有色带的图像样本和所述没有色带的图像样本对所述卷积神经网络进行色带消除训练,得到所述目标色带消除模型。Establish a convolutional neural network model based on retinal cerebral cortex theory, use the image samples with color bands and the image samples without color bands to perform color band elimination training on the convolutional neural network, and obtain the target color band elimination Model. 6.一种电子设备,其特征在于,包括:6. An electronic device, characterized in that it comprises: 获取模块,用于获取摄像头采集的目标场景下的连续的P张图像,其中P为正整数;The obtaining module is used to obtain continuous P images under the target scene collected by the camera, wherein P is a positive integer; 识别模块,用于识别所述目标场景下的光源类别,所述光源类别包括自然光源和人造光源;An identification module, configured to identify the category of light sources in the target scene, where the categories of light sources include natural light sources and artificial light sources; 色带检测模块,用于若所述光源类别为人造光源,对所述P张图像进行色带检测;A color band detection module, configured to perform color band detection on the P images if the light source type is an artificial light source; 色带消除模块,用于若从所述P张图像中检测到色带,对所述P张图像进行色带消除处理;A color band elimination module, configured to perform color band elimination processing on the P images if a color band is detected from the P images; 图像输出模块,用于输出消除色带后的图像;Image output module, for outputting the image after removing the color band; 所述色带检测模块包括:The ribbon detection module includes: 色带检测图像样本获取子模块,用于获取S个图像样本,S个图像样本包括以人造光源作为光源的图像和以自然光源作为光源的图像,每个图像样本包括连续的M张图像,从获取的所述P张图像中每间隔目标时长选取所述连续的M张图像,其中,P、M均为正整数,并且M≤P;The color band detection image sample acquisition submodule is used to acquire S image samples, the S image samples include images with artificial light sources as light sources and images with natural light sources as light sources, and each image sample includes continuous M images, from Selecting the M continuous images for each target time interval among the acquired P images, where P and M are both positive integers, and M≤P; 帧差计算子模块,用于将每个图像样本中的每一张图像与另外一张图像进行差分计算,将经差分计算后得到的多张帧差图像进行图像融合,得到目标样本图像;The frame difference calculation sub-module is used to calculate the difference between each image in each image sample and another image, and perform image fusion on the multiple frame difference images obtained after the difference calculation to obtain the target sample image; 色带检测模型训练子模块,用于建立卷积神经网络模型,利用所述目标样本图像对所述卷积神经网络模型进行色带检测训练,得到目标色带检测模型;The color band detection model training submodule is used to establish a convolutional neural network model, and uses the target sample image to perform color band detection training on the convolutional neural network model to obtain a target color band detection model; 检测图像处理子模块,用于根据所述P张图像,得到目标检测图像;The detection image processing submodule is used to obtain a target detection image according to the P images; 色带检测子模块,用于将所述目标检测图像输入到所述目标色带检测模型中检测是否有色带。The color band detection sub-module is used to input the target detection image into the target color band detection model to detect whether there is a color band. 7.根据权利要求6所述的电子设备,其特征在于,所述识别模块包括:7. The electronic device according to claim 6, wherein the identification module comprises: 颜色信息采集子模块,用于采用所述摄像头的颜色传感器获取颜色信息;A color information acquisition sub-module, configured to acquire color information by using the color sensor of the camera; 光源信息采集子模块,用于根据所述颜色信息,确定光源信息,所述光源信息包括显色指数和相关色温中的至少一项;The light source information collection sub-module is configured to determine light source information according to the color information, and the light source information includes at least one of a color rendering index and a correlated color temperature; 光源类别确定子模块,用于根据所述光源信息,确定所述目标场景下的光源类别。The light source category determining submodule is configured to determine the light source category in the target scene according to the light source information. 8.根据权利要求6所述的电子设备,其特征在于,所述图像输出模块还用于输出所述P张图像中所述光源类别为自然光源的图像。8 . The electronic device according to claim 6 , wherein the image output module is further configured to output an image in which the light source type is a natural light source among the P images. 9.根据权利要求6所述的电子设备,其特征在于,所述检测图像处理子模块包括:9. The electronic device according to claim 6, wherein the detection image processing submodule comprises: 帧差计算单元,用于将所述P张图像中的每一张图像与另外一张图像进行差分计算,得到多张帧差图像;A frame difference calculation unit, configured to calculate the difference between each of the P images and another image to obtain multiple frame difference images; 图像融合单元,用于对所述多张帧差图像进行图像融合,得到所述目标检测图像。An image fusion unit, configured to perform image fusion on the plurality of frame difference images to obtain the target detection image. 10.根据权利要求6所述的电子设备,其特征在于,所述色带消除模块包括:10. The electronic device according to claim 6, wherein the color band elimination module comprises: 色带消除图像样本获取子模块,用于获取同一场景下有色带的图像样本和没有色带的图像样本;The color band elimination image sample acquisition submodule is used to acquire image samples with color bands and image samples without color bands in the same scene; 色带消除模型训练子模块,用于建立基于视网膜大脑皮层理论的卷积神经网络模型,利用所述有色带的图像样本和所述没有色带的图像样本对所述卷积神经网络进行色带消除训练,得到目标色带消除模型;The color band elimination model training submodule is used to establish a convolutional neural network model based on the retinal cerebral cortex theory, and uses the image samples with color bands and the image samples without color bands to perform color banding on the convolutional neural network Eliminate the training to get the target ribbon elimination model; 色带消除子模块,用于将所述P张图像输入到所述目标色带消除模型中,消除所述P张图像中的色带。The color band elimination sub-module is configured to input the P images into the target color band elimination model, and eliminate the color bands in the P images. 11.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的图像处理方法的步骤。11. An electronic device, characterized by comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the The steps of the image processing method described in any one of 1 to 5 are required. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的图像处理方法的步骤。12. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the image according to any one of claims 1 to 5 is realized The steps of the processing method.
CN201911076445.7A 2019-11-06 2019-11-06 An image processing method, electronic device, and computer-readable storage medium Active CN110930372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911076445.7A CN110930372B (en) 2019-11-06 2019-11-06 An image processing method, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911076445.7A CN110930372B (en) 2019-11-06 2019-11-06 An image processing method, electronic device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110930372A CN110930372A (en) 2020-03-27
CN110930372B true CN110930372B (en) 2023-04-25

Family

ID=69853292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911076445.7A Active CN110930372B (en) 2019-11-06 2019-11-06 An image processing method, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110930372B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596344B (en) * 2021-07-26 2023-10-24 艾酷软件技术(上海)有限公司 Shooting processing method, shooting processing device, electronic equipment and readable storage medium
CN113920024A (en) * 2021-09-30 2022-01-11 珠海全志科技股份有限公司 Method for eliminating image color band, computer device and computer readable storage medium
CN115514901B (en) * 2022-09-09 2024-10-25 维沃移动通信有限公司 Exposure time adjusting method and circuit thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7084907B2 (en) * 2001-01-15 2006-08-01 Nikon Corporation Image-capturing device
CN1245018C (en) * 2002-12-17 2006-03-08 北京中星微电子有限公司 Method for eliminating scintilltion of moving picture
CN108322723B (en) * 2018-02-06 2020-01-24 深圳创维-Rgb电子有限公司 A color distortion compensation method, device and TV
CN109671037B (en) * 2018-12-27 2022-09-06 中国科学技术大学 Light source identification method and system for visible light communication

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Guarnieri, G., et al..Image-splitting techniques for a dual-layer high dynamic range LCD display.Journal of Electronic Imaging.2008,第17卷(第4期),全文. *
肖泉 等.有效消除光晕现象和颜色保持的彩色图像增强算法.计算机辅助设计与图形学学报.2011,第22卷(第8期),全文. *

Also Published As

Publication number Publication date
CN110930372A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN107817939B (en) Image processing method and mobile terminal
CN107835364A (en) One kind is taken pictures householder method and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN108989672B (en) A shooting method and mobile terminal
CN108234882B (en) Image blurring method and mobile terminal
CN107909583B (en) Image processing method and device and terminal
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN110807405A (en) A detection method and electronic device for a candid camera device
CN108182271B (en) Photographing method, terminal and computer readable storage medium
CN107749046B (en) Image processing method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN110557575A (en) method for eliminating glare and electronic equipment
JP7467667B2 (en) Detection result output method, electronic device and medium
CN110930372B (en) An image processing method, electronic device, and computer-readable storage medium
CN107895352A (en) A kind of image processing method and mobile terminal
CN108881617A (en) A display switching method and mobile terminal
CN108462826A (en) A kind of method and mobile terminal of auxiliary photo-taking
CN107888833A (en) A kind of image capturing method and mobile terminal
CN107864336A (en) A kind of image processing method, mobile terminal
CN108040209A (en) A kind of image pickup method and mobile terminal
CN108962187A (en) Screen luminance adjustment method and mobile terminal
CN108174081B (en) A shooting method and mobile terminal
CN108984145A (en) A kind of brightness adjusting method and electronic equipment
CN111310677A (en) A fingerprint image processing method and electronic device
CN108932505B (en) Image processing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant