[go: up one dir, main page]

CN106096588A - The processing method of a kind of view data, device and mobile terminal - Google Patents

The processing method of a kind of view data, device and mobile terminal Download PDF

Info

Publication number
CN106096588A
CN106096588A CN201610530732.0A CN201610530732A CN106096588A CN 106096588 A CN106096588 A CN 106096588A CN 201610530732 A CN201610530732 A CN 201610530732A CN 106096588 A CN106096588 A CN 106096588A
Authority
CN
China
Prior art keywords
image data
skin color
human body
color value
target
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
CN201610530732.0A
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.)
Beijing Qihoo Technology Co Ltd
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qiku Internet Technology Shenzhen 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 Beijing Qihoo Technology Co Ltd, Qiku Internet Technology Shenzhen Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610530732.0A priority Critical patent/CN106096588A/en
Publication of CN106096588A publication Critical patent/CN106096588A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/162Detection; Localisation; Normalisation using pixel segmentation or colour matching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明实施例提供了一种图像数据的处理方法、装置和移动终端,该方法包括:获取摄像头采集的原始图像数据;在所述原始图像数据中识别出人体图像数据;在所述人体图像数据中检测归属于人体部位的肤色图像数据;根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。本发明实施例使得输入的肤色可趋向、甚至达到目标肤色,解决了肤色受到图像处理的控制,整体稳定性差,导致肤色在各种环境下,表现各异的问题,输出稳定、一致的肤色,同时,缩短图像处理的调试周期。

Embodiments of the present invention provide an image data processing method, device, and mobile terminal. The method includes: acquiring original image data collected by a camera; identifying human body image data in the original image data; identifying human body image data in the human body image data Detecting skin color image data belonging to human body parts; setting a target skin color value for the human body part according to the characteristic information of the human body image data; performing normalization processing on the skin color image data according to the target skin color value, Obtain target image data. The embodiment of the present invention enables the input skin color to tend to or even reach the target skin color, solves the problem that the skin color is controlled by image processing, and the overall stability is poor, resulting in different performances of the skin color in various environments, and the output is stable and consistent. At the same time, the debugging cycle of image processing is shortened.

Description

一种图像数据的处理方法、装置和移动终端Image data processing method, device and mobile terminal

技术领域technical field

本发明涉及通信的技术领域,特别是涉及一种图像数据的处理方法、一种图像数据的处理装置和一种移动终端。The present invention relates to the technical field of communication, in particular to an image data processing method, an image data processing device and a mobile terminal.

背景技术Background technique

随着移动通信技术的快速发展,如手机、平板电脑等移动终端已经广泛应用在学习、娱乐、工作等方面,在人们的日常生活中扮演着越来越重要的角色。With the rapid development of mobile communication technology, mobile terminals such as mobile phones and tablet computers have been widely used in learning, entertainment, work, etc., and play an increasingly important role in people's daily life.

在移动终端中通常配置有摄像头,而由于移动终端相对于照相机,具有携带方便等特性,因此,许多用户习惯使用移动终端进行拍照。The mobile terminal is usually equipped with a camera, and because the mobile terminal is more convenient to carry than the camera, many users are accustomed to using the mobile terminal to take pictures.

在诸如自拍、合照等情景下,用户会对人进行拍照,由于拍照的过程中会进行各种图像处理,这些图像处理的调试周期长,同时,肤色还受到图像处理的控制,整体稳定性差,导致肤色在各种环境下,表现各异。In situations such as self-portraits and group photos, users will take photos of people. Since various image processing will be performed during the photo-taking process, the debugging cycle of these image processing is long. At the same time, the skin color is also controlled by image processing, and the overall stability is poor. Causes skin color to behave differently in various environments.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种图像数据的处理方法和相应的一种图像数据的处理装置、一种移动终端。In view of the above problems, the present invention is proposed to provide an image data processing method, a corresponding image data processing device, and a mobile terminal that overcome the above problems or at least partially solve the above problems.

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

获取摄像头采集的原始图像数据;Obtain the original image data collected by the camera;

在所述原始图像数据中识别出人体图像数据;identifying human body image data in the raw image data;

在所述人体图像数据中检测归属于人体部位的肤色图像数据;Detecting skin color image data belonging to human body parts in the human body image data;

根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;setting a target skin color value for the human body part according to the characteristic information of the human body image data;

根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。performing normalization processing on the skin color image data according to the target skin color value to obtain target image data.

第二方面,本发明实施例中提供了一种图像数据的处理装置,包括:In a second aspect, an image data processing device is provided in an embodiment of the present invention, including:

原始图像数据获取模块,用于获取摄像头采集的原始图像数据;The original image data acquisition module is used to obtain the original image data collected by the camera;

人体图像数据识别模块,用于在所述原始图像数据中识别出人体图像数据;A human body image data identification module, configured to identify the human body image data in the original image data;

肤色图像数据检测模块,用于在所述人体图像数据中检测归属于人体部位的肤色图像数据;A skin color image data detection module, configured to detect skin color image data belonging to human body parts in the human body image data;

目标肤色颜色值设置模块,用于根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;A target skin color value setting module, configured to set a target skin color value for the human body part according to the characteristic information of the human body image data;

归一化处理模块,用于根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。A normalization processing module, configured to perform normalization processing on the skin color image data according to the target skin color value to obtain target image data.

第三方面,本发明实施例提供了一种移动终端,该移动终端具有实现上述第一方面中图像数据的处理行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal has a function of implementing the image data processing behavior in the above first aspect. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

在一个可能的设计中,移动终端的结构中包括处理器和存储器,所述存储器用于存储支持收发装置执行上述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。所述移动终端还可以包括通信接口,用于移动终端与其他设备或通信网络通信。In a possible design, the structure of the mobile terminal includes a processor and a memory, the memory is used to store a program that supports the transceiver device to execute the above method, and the processor is configured to execute the program stored in the memory . The mobile terminal may also include a communication interface for the mobile terminal to communicate with other devices or a communication network.

其中,所述存储器用于存储获取摄像头采集的原始图像数据的指令,在所述原始图像数据中识别出人体图像数据的指令,在所述人体图像数据中检测归属于人体部位的肤色图像数据的指令,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的指令,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的指令;Wherein, the memory is used to store the instruction for acquiring the original image data collected by the camera, the instruction for identifying the human body image data in the original image data, and the detection of the skin color image data belonging to the human body parts in the human body image data An instruction, an instruction of setting a target skin color value for the human body part according to the characteristic information of the human body image data, performing normalization processing on the skin color image data according to the target skin color value, and obtaining an instruction of the target image data;

所述处理器用于:The processor is used to:

依据所述获取摄像头采集的原始图像数据的指令,获取摄像头采集的原始图像数据;Acquire the original image data collected by the camera according to the instruction for obtaining the original image data collected by the camera;

依据所述在所述原始图像数据中识别出人体图像数据指令,在所述原始图像数据中识别出人体图像数据;identifying human body image data in the original image data according to the instruction for identifying human body image data in the original image data;

依据所述在所述人体图像数据中检测归属于人体部位的肤色图像数据指令,在所述人体图像数据中检测归属于人体部位的肤色图像数据;According to the instruction of detecting skin color image data belonging to human body parts in the human body image data, detecting skin color image data belonging to human body parts in the human body image data;

依据所述根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的指令,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;According to the instruction of setting a target skin color value for the human body part according to the characteristic information of the human body image data, set a target skin color value for the human body part according to the characteristic information of the human body image data;

依据所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的指令,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。According to the instruction of normalizing the skin color image data according to the target skin color value to obtain the target image data, normalizing the skin color image data according to the target skin color value to obtain the target image data.

本发明提供的方案,用户可以使用移动终端,获取摄像头采集的原始图像数据,从原始图像数据识别出人体图像数据,进而检测归宿与人体部位的肤色图像数据,基于人体图像数据的特征信息对人体部位设置目标肤色颜色值,根据目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据,使得输入的肤色可趋向、甚至达到目标肤色,解决了肤色受到图像处理的控制,整体稳定性差,导致肤色在各种环境下,表现各异的问题,输出稳定、一致的肤色,同时,缩短图像处理的调试周期。According to the solution provided by the present invention, the user can use the mobile terminal to obtain the original image data collected by the camera, identify the human body image data from the original image data, and then detect the destination and the skin color image data of the human body parts, and analyze the human body based on the characteristic information of the human body image data. The target skin color value is set in the part, and the skin color image data is normalized according to the target skin color value to obtain the target image data, so that the input skin color can tend to or even reach the target skin color, and the skin color is controlled by image processing. The overall stability is poor, which leads to the problem that skin color behaves differently in various environments, and the output is stable and consistent skin color. At the same time, the debugging cycle of image processing is shortened.

本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present invention will be more clearly understood in the description of the following embodiments.

附图说明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 shows a flow chart of the steps of an embodiment of a method for processing image data according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的另一种图像数据的处理方法实施例的步骤流程图;FIG. 2 shows a flow chart of the steps of another image data processing method embodiment according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的一种图像数据的处理装置实施例的结构框图;Fig. 3 shows a structural block diagram of an embodiment of an image data processing device according to an embodiment of the present invention;

图4示出了根据本发明一个实施例的另一种图像数据的处理装置实施例的结构框图;以及FIG. 4 shows a structural block diagram of another image data processing device embodiment according to an embodiment of the present invention; and

图5示出了根据本发明一个实施例的与移动终端相关的手机的部分结构的框图。Fig. 5 shows a block diagram of a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

参照图1,示出了根据本发明一个实施例的一种图像数据的处理方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of an embodiment of a method for processing image data according to an embodiment of the present invention, which may specifically include the following steps:

步骤101,获取摄像头采集的原始图像数据。Step 101, acquire raw image data collected by a camera.

在具体实现中,本发明实施例可以应用在移动终端中,例如,手机、平板电脑、个人数字助理、穿戴设备(如眼镜、手表等)等等。In a specific implementation, the embodiments of the present invention can be applied in mobile terminals, for example, mobile phones, tablet computers, personal digital assistants, wearable devices (such as glasses, watches, etc.) and the like.

这些移动终端的操作系统可以包括Android(安卓)、IOS、Windows Phone、Windows等等。The operating systems of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows, and the like.

在本发明实施例中,在移动终端中可以配置摄像头camera。In the embodiment of the present invention, a camera may be configured in the mobile terminal.

这些摄像头可以配置在移动终端的前部(又称前置摄像头),也可以配置在移动终端的背部(又称后置摄像头),此外,该摄像头的数量可以是单个、也可以是两个或两个以上,如双摄像头,等等,本发明实施例对此也不加以限制。These cameras can be configured on the front of the mobile terminal (also known as the front camera), and can also be configured on the back of the mobile terminal (also known as the rear camera). In addition, the number of the cameras can be single, or two or There are more than two cameras, such as dual cameras, etc., which is not limited in this embodiment of the present invention.

在一个示例中,摄像头可以包括镜头Lens、基座Holder、红外滤波片IR、图像感应处理器Sensor、电路板等部件。In an example, the camera may include components such as a lens, a base Holder, an infrared filter IR, an image sensing processor Sensor, and a circuit board.

其中,图像感应处理器Sensor是一种半导体芯片,其表面包含有几十万到几百万不等的光电二极管,光电二极管收到光照射时,可以产生电荷。Among them, the image sensing processor Sensor is a semiconductor chip, and its surface contains photodiodes ranging from hundreds of thousands to several million. When the photodiodes are irradiated by light, they can generate charges.

图像感应处理器Sensor可以将光线转换为电信号,再通过内部的DA(数模转换)转换为数字信号,图像感应处理器Sensor所在的平面为图像数据的成像平面。The image sensing processor Sensor can convert light into an electrical signal, and then convert it into a digital signal through the internal DA (digital-to-analog conversion). The plane where the image sensing processor Sensor is located is the imaging plane of the image data.

在实际应用中,景物(SCENE)通过摄像头的镜头Lens生成的光学图像投射到图像感应处理器Sensor表面上,然后转为电信号,经过A/D(模数转换)转换后变为数字图像信号,由数字信号处理芯片DSP或编码库中对数字图像信号进行压缩并转化为特定的图像文件格式,通过数据总线传输到移动终端的处理器(Central Processing Unit,CPU)进行处理,则可以在移动终端的屏幕显示了。In practical applications, the optical image generated by the scene (SCENE) through the lens Lens of the camera is projected onto the surface of the image sensor processor Sensor, and then converted into an electrical signal, and then converted into a digital image signal by A/D (analog-to-digital conversion) , the digital image signal is compressed and converted into a specific image file format by the digital signal processing chip DSP or an encoding library, and is transmitted to the processor (Central Processing Unit, CPU) of the mobile terminal through the data bus for processing, then it can be processed on the mobile terminal The terminal screen is displayed.

步骤102,在所述原始图像数据中识别出人体图像数据。Step 102, identifying human body image data in the original image data.

所谓人体图像数据,是指在原始图像数据中表征人的图像数据。The so-called human body image data refers to image data representing a person in the original image data.

在自拍等情景中,一般是对一个人进行拍照,因此,在原始图像数据中可以识别一个人体图像数据;在合照等情景中,一般是对多个人进行拍照,因此,在原始图像数据中可以识别多个人体图像数据。In scenarios such as self-portraits, one person is generally photographed, so one human body image data can be identified in the original image data; Identify multiple human body image data.

在具体实现中,可以通过如下的一种或多种方式检测人体图像数据:In a specific implementation, human body image data may be detected in one or more of the following ways:

1、基于模板或轮廓的检测方法1. Template or contour-based detection methods

基于模板或轮廓的检测方法主要使用模板匹配和模板分类的方法来检测人体图像数据。Template or contour-based detection methods mainly use template matching and template classification methods to detect human body image data.

在一个示例中,可以在不同层级的模板匹配过程中应用人体的轮廓特征来选择候选的目标,将人体通常呈现的形状外观作为人体目标模板,根据距离变换的形状匹配方法从粗到细进行匹配。然后,再使用径向基函数来验证候选的目标。In one example, the contour features of the human body can be used in the template matching process at different levels to select candidate targets, and the shape appearance that the human body usually presents is used as the human target template, and the shape matching method based on distance transformation is used for matching from coarse to fine . Then, radial basis functions are used to validate the candidate targets.

2、基于运动信息的检测方法2. Detection method based on motion information

基于运动信息的检测方法是利用人体运动的周期性来检测图像数据中的人,一般适用于检测运动的行人。The detection method based on motion information uses the periodicity of human motion to detect people in image data, and is generally suitable for detecting moving pedestrians.

在一个示例中,利用人行走时腿部呈周期性的运动特征,从图像序列中识别出人,首先将图像数据分割成子图像数据并对像素聚类,然后在连续的图像数据中匹配对应的类并跟踪各类,基于类行状特征的时间变化,用快速多项式分类器估计来初步选择可能属于人腿部的类,最后通过神经网络对提取的属于腿部的类进行训练,从而判断是否存在人。In one example, a person is recognized from an image sequence by using the periodic movement characteristics of the legs when a person walks. First, the image data is divided into sub-image data and the pixels are clustered, and then the corresponding sub-image data are matched in the continuous image data. Classes and track various types, based on the time changes of class-like features, use fast polynomial classifier estimation to initially select the classes that may belong to human legs, and finally use the neural network to train the extracted classes that belong to legs, so as to judge whether there are people.

3、基于滑动窗口的检测方法3. Detection method based on sliding window

基于滑动窗口的检测方法通过固定大小的检测窗口在图像数据中滑动搜索,这些窗口被分类器分类为有人和无人两类。The detection method based on the sliding window searches through the fixed-size detection window slidingly in the image data, and these windows are classified into two types by the classifier: people and people.

在一个示例中,滑动窗口的检测方法可以分为两个阶段,第一个阶段是训练阶段,第二个阶段是检测阶段。In one example, the sliding window detection method can be divided into two stages, the first stage is a training stage, and the second stage is a detection stage.

在训练阶段,首先建立训练样本,包括正样本和负样本,正样本就是包括人体的图像区域,负样本就是不包括人体的图像区域。然后从正样本和负样本中提取特征,该特征一般以特征向量的形式表示。最后训练分类器,该分类器用于将正样本的特征向量和负样本的特征向量区分开来。In the training phase, the training samples are first established, including positive samples and negative samples. The positive samples are the image areas that include the human body, and the negative samples are the image areas that do not include the human body. Features are then extracted from the positive and negative samples, which are generally represented in the form of feature vectors. Finally, a classifier is trained, which is used to distinguish the feature vectors of positive samples from the feature vectors of negative samples.

在检测阶段,由于图像数据中人的尺度大小是不定的,而滑动窗口的大小一般是一定的,为了让尺度小的人和尺度大的人都可以检测出来,可以建立带检测图像数据的图像金字塔,使用固定大小的滑动窗口在金字塔各个层级上滑动,每滑动到一个位置就将这个窗口中提取的图像特征输入分类器中进行分类。分类器输出这个窗口是否包含人的信息。当所有位置和层级都已经被滑动窗口扫描过后,各个层级中位置相近的窗口检测到的人很可能是同一个人,为了确定最终人体的位置,进行窗口融合将相邻的窗口合并成一个窗口。In the detection stage, since the size of the person in the image data is uncertain, and the size of the sliding window is generally fixed, in order to allow both small-scale people and large-scale people to be detected, an image with detected image data can be created Pyramid, use a fixed-size sliding window to slide on each level of the pyramid, and input the image features extracted in this window into the classifier for classification every time it slides to a position. The classifier outputs information about whether this window contains a person. When all positions and levels have been scanned by the sliding window, the person detected by the windows with similar positions in each level is likely to be the same person. In order to determine the final position of the human body, window fusion is performed to merge adjacent windows into one window.

4、基于部件或局部形状的检测方法4. Detection method based on part or local shape

基于不为或者局部形状的方法依靠检测人体的不为或者局部形状,然后再联合这些特征根据人体模型的几何限定来确定最终人体的位置。Methods based on inanimate or partial shape rely on detecting the inanimate or partial shape of the human body, and then combine these features to determine the final human body position according to the geometric constraints of the human body model.

当然,上述人体检测只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他人体检测,本发明实施例对此不加以限制。另外,除了上述人体检测外,本领域技术人员还可以根据实际需要采用其它人体检测,本发明实施例对此也不加以限制。Certainly, the above-mentioned human body detection is only an example, and other human body detections may be set according to actual conditions when implementing the embodiment of the present invention, which is not limited in the embodiment of the present invention. In addition, in addition to the above human body detection, those skilled in the art may also use other human body detection according to actual needs, which is not limited in the embodiment of the present invention.

步骤103,在所述人体图像数据中检测归属于人体部位的肤色图像数据。Step 103, detecting skin color image data belonging to human body parts in the human body image data.

在具体实现中,人体包括多个部位,如脸部、头部、手臂、小腿,等等。In a specific implementation, a human body includes multiple parts, such as a face, a head, an arm, a calf, and the like.

在拍照时,这些人体部位的部分皮肤通常会裸露,直接显示在图像数据中,例如,用户在自拍时,脸部通常会占据较大的区域。When taking a photo, parts of the skin of these body parts are usually exposed and directly displayed in the image data, for example, when a user takes a selfie, the face usually occupies a large area.

因此,在本发明实施例中,可以通过HOG(Histogram of Oriented Gradient,方向梯度直方图)算法、深度图像学习等方式在人体图像数据中检测人体部位所在的部位图像数据,在该图像区域中进行肤色检测,获得肤色图像数据。Therefore, in the embodiment of the present invention, the part image data where the part of the human body is located can be detected in the human body image data by means of HOG (Histogram of Oriented Gradient, histogram of oriented gradient) algorithm, depth image learning, etc. Skin color detection to obtain skin color image data.

以脸部为例,可以在原始图像数据中进行人脸检测,获得人脸图像数据,在该人脸图像数据中识别肤色图像数据。Taking the face as an example, the face detection can be performed in the original image data to obtain the face image data, and the skin color image data can be identified in the face image data.

所谓人脸检测,可以指从图像数据标定出人脸的位置和尺寸。The so-called face detection can refer to the position and size of the face from the image data.

在Android中,提供了一个直接在位图上进行脸部检测的方法,这两个API(Application Programming Interface,应用程序编程接口)分别是android.media.FaceDetector和android.media.FaceDetector.Face。In Android, a method of directly performing face detection on a bitmap is provided, and the two APIs (Application Programming Interface, application programming interface) are android.media.FaceDetector and android.media.FaceDetector.Face respectively.

具体而言,扩展基类ImageView,成为MyImageView,而进行检测的包含人脸的位图文件一般是565格式,以保证API正常工作。Specifically, the base class ImageView is extended to become MyImageView, and the bitmap file containing the face to be detected is generally in 565 format to ensure the normal operation of the API.

被检测出来的人脸需要一个置信测度(confidence measure),这个措施定义在android.media.FaceDetector.Face.CONFIDENCE_THRESHOLD。The detected face needs a confidence measure, which is defined in android.media.FaceDetector.Face.CONFIDENCE_THRESHOLD.

其中,setFace()可以将FaceDetector对象实例化,同时调用findFaces,结果存放在faces里,人脸的中点转移到MyImageView。Among them, setFace() can instantiate the FaceDetector object, call findFaces at the same time, store the result in faces, and transfer the midpoint of the face to MyImageView.

接下来,在MyImageView中添加setDisplayPoints()方法,用来在被检测出的人脸上标记渲染。Next, add the setDisplayPoints() method in MyImageView to mark the detected faces for rendering.

而API返回其他有用的信息,例如,同时会返回如eyesDistance,pose,以及confidence,则可以通过eyesDistance来定位眼睛的中心位置。While the API returns other useful information, for example, eyesDistance, pose, and confidence will be returned at the same time, and the center of the eyes can be located by eyesDistance.

所谓肤色检测,是在图像数据中选取对应于人体皮肤像素的过程。The so-called skin color detection is the process of selecting pixels corresponding to human skin in the image data.

根据有没有涉及成像过程,可以将肤色检测划分出如下两种类型:According to whether the imaging process is involved, skin color detection can be divided into the following two types:

1、基于统计的肤色检测1. Statistics-based skin color detection

基于统计的肤色检测的主要步骤包括颜色空间变换和肤色建模。The main steps of statistics-based skin color detection include color space transformation and skin color modeling.

选择颜色空间本身就是选择肤色检测的最基本特征表示。肤色建模是关于肤色知识的计算机表示,通常通过训练样本集建立肤色模型进行肤色检测,根据不同应用可以将肤色建模分为静态和动态两类。Choosing the color space itself is choosing the most basic feature representation for skin color detection. Skin color modeling is a computer representation of skin color knowledge. Usually, a skin color model is established through a training sample set for skin color detection. According to different applications, skin color modeling can be divided into static and dynamic categories.

其中,对于颜色空间,肤色在颜色空间的分布相当集中,但会受到照明和人种的很大影响,为了减少肤色受照明强度影响,通常将颜色空间从RGB转换成亮度与色度分类的某个颜色空间,比如YCbCr或者HSV,然后放弃亮度。Among them, for the color space, the distribution of skin color in the color space is quite concentrated, but it will be greatly affected by lighting and race. In order to reduce the impact of skin color on lighting intensity, the color space is usually converted from RGB to a certain classification of brightness and chroma. a color space, such as YCbCr or HSV, and then discard brightness.

对于静态的肤色建模,可以通过肤色范围、高斯密度函数估计和直方图统计等方式建立肤色模型,这三者分别对应阈值化、参数化和非参数化的方法。For static skin color modeling, the skin color model can be established by means of skin color range, Gaussian density function estimation and histogram statistics, which correspond to thresholding, parametric and non-parametric methods respectively.

对于动态的肤色建模,可以通过将肤色模型参数调节到适应某幅静态图像,或者,针对序列图像、能适应成像条件随时间的变化等方式建立肤色模型。For dynamic skin color modeling, the skin color model can be established by adjusting the parameters of the skin color model to adapt to a certain static image, or for sequence images, which can adapt to changes in imaging conditions over time.

2、基于物理的肤色检测2. Physically based skin color detection

在复杂照明条件下,比如图像中肤色在高光区或阴影区中,为了从成像机理上克服光照对图像的不理影响,在肤色检测时,考虑光线与皮肤的相互作用,考虑皮肤波普特性,这种考虑了电磁辐射与皮肤相互物理作用的肤色检测技术称为基于物理的肤色检测。Under complex lighting conditions, such as the skin color in the image in the highlight area or shadow area, in order to overcome the irrelevant influence of light on the image from the imaging mechanism, the interaction between light and skin and the pop characteristics of the skin should be considered when detecting skin color , this kind of skin color detection technology that considers the physical interaction between electromagnetic radiation and skin is called physically-based skin color detection.

在一种基于物理的肤色检测方式中,可以通过皮肤反射的物理模型进行肤色检测,例如,双色反射模型可以根据非均匀电介质的反射特性,模拟不透明的非均匀电介质物体反射过程,以进行肤色检测。In a physically-based skin color detection method, skin color detection can be performed through a physical model of skin reflection. For example, a two-color reflection model can simulate the reflection process of an opaque non-uniform dielectric object according to the reflection characteristics of the non-uniform dielectric for skin color detection. .

当然,上述部位检测、肤色检测只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他部位检测、肤色检测,本发明实施例对此不加以限制。另外,除了上述部位检测、肤色检测外,本领域技术人员还可以根据实际需要采用其它部位检测、肤色检测,本发明实施例对此也不加以限制。Of course, the above part detection and skin color detection are just examples. When implementing the embodiment of the present invention, other part detection and skin color detection can be set according to the actual situation, which is not limited in the embodiment of the present invention. In addition, in addition to the above part detection and skin color detection, those skilled in the art may also use other part detection and skin color detection according to actual needs, which is not limited in the embodiment of the present invention.

步骤104,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值。Step 104, setting a target skin color value for the human body part according to the characteristic information of the human body image data.

在实际应用中,不同特征的人的肤色一般有不同的特点。In practical applications, the skin color of people with different characteristics generally has different characteristics.

例如,黄种人的肤色一般偏黄、白种人的肤色一般偏白、黑种人的肤色一般偏黑。For example, the skin color of yellow people is generally yellowish, the skin color of white people is generally white, and the skin color of black people is generally dark.

又例如,对于黄种人,从儿童、少年、青年、中年、老年等阶段,肤色的颜色一般会逐渐加深。For another example, for people of the yellow race, the color of the skin color will generally gradually deepen from the stages of childhood, juvenile, youth, middle age, and old age.

又例如,对于黄种人,男性的肤色一般比女性的肤色要深。For another example, for the yellow race, the skin color of men is generally darker than that of women.

此外,这些人的不同人体部位,肤色会略有不同,比如,对于黄种人,女性的脸部的肤色通常要比手臂要白。In addition, different body parts of these people have slightly different skin colors. For example, for people of yellow race, the skin color of women's faces is usually lighter than that of their arms.

以RGB颜色空间为例,目标肤色颜色值中,R(红)值一般大于G(绿)值,G(绿)值一般大于B(蓝)值,如老年对应的目标肤色颜色值为(215,177,141)、中年对应的目标肤色颜色值为(249,217,204)、少年对应的目标肤色颜色值为(253,227,204)等等。Taking the RGB color space as an example, in the target skin color value, the R (red) value is generally greater than the G (green) value, and the G (green) value is generally greater than the B (blue) value. For example, the target skin color value corresponding to old age is (215 , 177, 141), the target skin color value corresponding to the middle age is (249, 217, 204), the target skin color value corresponding to the teenager is (253, 227, 204) and so on.

因此,针对不同特征的人的部位,可以设置目标肤色颜色值,并建立人的特征信息、人体部位与目标肤色颜色值之间的映射关系。Therefore, for parts of people with different characteristics, the target skin color value can be set, and the mapping relationship between the person's feature information, human body parts and the target skin color value can be established.

在人体图像数据中检测人体部位所在的部位图像数据之后,可以依据该映射关系查询人体部位对应的目标肤色颜色值。After detecting the part image data where the human body part is located in the human body image data, the target skin color value corresponding to the human body part can be queried according to the mapping relationship.

在一个示例中,可以识别人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息。In an example, one or more characteristic information of age information, gender information, and race information of the human body image data may be identified.

基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。Query the target skin color value corresponding to the human body part based on one or more characteristic information in age information, gender information, and race information.

当然,上述特征信息只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他特征信息,本发明实施例对此不加以限制。另外,除了上述特征信息外,本领域技术人员还可以根据实际需要采用其它特征信息,本发明实施例对此也不加以限制。Of course, the above feature information is only an example, and other feature information may be set according to actual conditions when implementing the embodiment of the present invention, which is not limited in the embodiment of the present invention. In addition, in addition to the above feature information, those skilled in the art may also use other feature information according to actual needs, which is not limited in this embodiment of the present invention.

步骤105,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。Step 105: Perform normalization processing on the skin color image data according to the target skin color value to obtain target image data.

通过目标肤色颜色值与肤色图像数据进行归一化处理,可以让输入的肤色图像数据的肤色趋向、甚至达到目标肤色颜色值,输出稳定、一致的肤色。By performing normalization processing on the target skin color value and the skin color image data, the skin color of the input skin color image data can be tended to or even reach the target skin color value, and a stable and consistent skin color can be output.

在实际应用中,可以通过一定的选取规则,在肤色图像数据中选择特征肤色图像数据;根据目标肤色颜色值对特征肤色图像数据进行归一化处理,获得目标图像数据。In practical applications, the characteristic skin color image data can be selected from the skin color image data through certain selection rules; the characteristic skin color image data can be normalized according to the target skin color value to obtain the target image data.

例如,可以根据亮度和/或曝光度选择特征肤色图像数据,筛除一些亮度不均匀、过曝的肤色图像数据,保留亮度均匀、没有过曝的肤色图像数据。For example, characteristic skin color image data can be selected according to brightness and/or exposure, some skin color image data with uneven brightness and overexposure can be screened out, and skin color image data with uniform brightness and no overexposure can be retained.

具体而言,可以通过直方图统计等方式统计肤色图像数据的亮度和/或曝光度。Specifically, the brightness and/or exposure of the skin color image data may be counted by means of histogram statistics or the like.

从肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。Select image data whose brightness is within a preset brightness range and/or whose exposure is less than a preset exposure threshold from the skin color image data as characteristic skin color image data.

当然,除了选取部分肤色图像数据进行归一化处理,还可以对全部肤色图像数据进行归一化处理,本发明实施例对此不加以限制。Of course, in addition to selecting part of the skin color image data for normalization processing, it is also possible to perform normalization processing for all skin color image data, which is not limited in this embodiment of the present invention.

在本发明的一个实施例中,步骤105可以包括如下子步骤:In one embodiment of the present invention, step 105 may include the following sub-steps:

子步骤S11,针对每个部位图像数据,统计所述部位图像数据中的原始肤色颜色值;Sub-step S11, for each part image data, count the original skin color value in the part image data;

在具体实现中,可以获取肤色图像数据中各像素点的像素颜色值,如RGB值,计算像素颜色值的平均值,作为原始肤色颜色值。In a specific implementation, the pixel color values, such as RGB values, of each pixel in the skin color image data can be obtained, and the average value of the pixel color values can be calculated as the original skin color value.

子步骤S12,采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;Sub-step S12, using the original skin color value and the target skin color value to calculate a normalization coefficient;

在具体实现中,可以基于计算目标肤色颜色值计算归一化系数,以此调整原始肤色颜色值。In a specific implementation, the normalization coefficient may be calculated based on the calculated target skin color value, so as to adjust the original skin color value.

在本发明实施例的一个示例中,子步骤S12可以包括如下子步骤:In an example of an embodiment of the present invention, substep S12 may include the following substeps:

子步骤S121,计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;Sub-step S121, calculating the ratio between the target skin color value and the original skin color value to obtain a color adjustment ratio;

以RGB颜色空间为例,假设目标肤色颜色值为(Rsample,Gsample,Bsample),摄像头输入的肤色图像数据的原始肤色颜色值为(Rinput,Ginput,Binput),那么,颜色调整比例为(Rratio,Gratio,Bratio):Taking the RGB color space as an example, assuming that the target skin color value is (R sample , G sample , B sample ), and the original skin color value of the skin color image data input by the camera is (R input , G input , B input ), then the color The adjustment ratio is (R ratio , G ratio , B ratio ):

Rratio=Rsample/Rinput R ratio =R sample /R input

Gratio=Gsample/Ginput G ratio = G sample /G input

Bratio=Bsample/Binput B ratio =B sample /B input

子步骤S122,将所述肤色图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合。Sub-step S122: Multiply the pixel color value of each pixel in the skin color image data by the adjustment ratio to obtain a set of pixel color values.

子步骤S123,从像素颜色值集合中选取目标像素颜色值。Sub-step S123, selecting the target pixel color value from the pixel color value set.

在具体实现中,可以从像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。In a specific implementation, the pixel color value with the largest value may be selected from the set of pixel color values as the target pixel color value.

当然,除了选取值最大的像素颜色值之外,还可以选取其他像素颜色值作为目标像素颜色值,本发明实施例对此不加以限制。Of course, in addition to selecting the pixel color value with the largest value, other pixel color values may also be selected as the target pixel color value, which is not limited in this embodiment of the present invention.

以RGB颜色空间为例,假设调整比例为(Rratio,Gratio,Bratio),那么,将(Rratio,Gratio,Bratio)与肤色图像数据的每一个像素点进行乘积,得到R(0,1,2,...,n),G(0,1,2,..,.n),B(0,1,2,...,n),其中n为整数。Taking the RGB color space as an example, assuming that the adjustment ratio is (R ratio , G ratio , B ratio ), then multiply (R ratio , G ratio , B ratio ) with each pixel of the skin color image data to obtain R ( 0,1,2,...,n) , G (0,1,2,...,.n) , B (0,1,2,...,n) , where n is an integer.

统计R(0,1,2,...n),G(0,1,2,...n),B(0,1,2,...n)中最大值RGBmax作为目标像素颜色值。Statistics R (0, 1, 2, ... n), G (0, 1, 2, ... n), B (0, 1, 2, ... n) in the maximum RGB max as the target pixel color value.

子步骤S124,采用颜色调整比例和所述目标像素颜色值计算归一化系数。Sub-step S124, using the color adjustment ratio and the target pixel color value to calculate a normalization coefficient.

在具体实现中,可以计算预设的颜色阈值与目标像素颜色值之间的比值,作为像素颜色比例,计算颜色调整比例与像素颜色比例之间的乘积,获得归一化系数。In a specific implementation, the ratio between the preset color threshold and the target pixel color value may be calculated as the pixel color ratio, and the product of the color adjustment ratio and the pixel color ratio may be calculated to obtain a normalization coefficient.

以RGB颜色空间为例,假设调整比例为(Rratio,Gratio,Bratio),目标像素颜色值为RGBmax,则归一化系数为:Taking the RGB color space as an example, assuming that the adjustment ratio is (R ratio , G ratio , B ratio ) and the target pixel color value is RGB max , the normalization coefficient is:

Rratio*255/RGBmax R ratio *255/RGB max

Gratio*255/RGBmax G ratio *255/RGB max

Bratio*255/RGBmax B ratio *255/RGB max

子步骤S13,在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;Sub-step S13, adjusting on the basis of the original skin color value with the normalization coefficient to obtain a normalized skin color value;

子步骤S14,在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。Sub-step S14, in the original image data, adjust the skin color image data with the normalized skin color value to obtain target image data.

在本发明实施例中,在原始肤色颜色值的基础上可以按照归一化系数进行调整,输出归一化肤色颜色值。In the embodiment of the present invention, the original skin color value can be adjusted according to the normalization coefficient to output the normalized skin color value.

以RGB颜色空间为例,假设原始肤色颜色值为(Rinput,Ginput,Binput)、归一化系数为(Rratio*255/RGBmax,Gratio*255/RGBmax,Bratio*255/RGBmax),则输出的归一化肤色颜色值(Rfinal,Gfinal,Bfinal)为:Taking the RGB color space as an example, assume that the original skin color value is (R input , G input , B input ), and the normalization coefficient is (R ratio *255/RGB max , G ratio *255/RGB max , B ratio *255 /RGB max ), then the output normalized skin color value (R final , G final , B final ) is:

Rfinal=Rinput*Rratio*255/RGBmaxR final =R input *R ratio *255/RGB max ;

Gfinal=Ginput*Gratio*255/RGBmaxG final = G input *G ratio *255/RGB max ;

Bfinal=Binput*Bratio*255/RGBmaxB final = B input *B ratio *255/RGB max ;

目前,在移动终端的摄像头模块中,会在AEC(Automatic Exposure Control,自动曝光控制)以及AWB(Automatic white balance,自动白平衡)稳定后,通过AEC的曝光索引(index)值,以及AWB输出的色温值(CCT),去动态计算当前场景应该使用的色彩还原(colorcorrection)和饱和度(color enhancement)参数。At present, in the camera module of the mobile terminal, after the AEC (Automatic Exposure Control, automatic exposure control) and AWB (Automatic white balance, automatic white balance) are stabilized, the exposure index (index) value of the AEC and the AWB output Color temperature value (CCT), to dynamically calculate the color restoration (colorcorrection) and saturation (color enhancement) parameters that should be used in the current scene.

由此就产生了问题,例如,在不同角度,不同的曝光,以及不同的AWB输出,即使AWB的差异不大,最终使用的色彩还原以及饱和度参数会不一致,导致出来的图像肤色不一致,即使是同一个人测试,在不同角度,不同光源情况下,肤色差异也比较大。This creates problems, for example, at different angles, different exposures, and different AWB outputs, even if the difference in AWB is not large, the final color reproduction and saturation parameters used will be inconsistent, resulting in inconsistent skin color in the image, even if It is tested by the same person, and the skin color difference is relatively large under different angles and different light sources.

同时,在不同色温(暖色屏,冷色屏等)的移动终端的屏幕上显示出来更是形态各异。At the same time, the screens of mobile terminals with different color temperatures (warm color screens, cool color screens, etc.) display different forms.

因此,用户体验极为不好,同时现有的可调参数,以及调试方法,调试周期很长,并且很难达到预期的效果。Therefore, the user experience is extremely bad, and at the same time, the existing adjustable parameters and debugging methods have a very long debugging cycle, and it is difficult to achieve the desired effect.

本发明提供的方案,用户可以使用移动终端,获取摄像头采集的原始图像数据,从原始图像数据识别出人体图像数据,进而检测归宿与人体部位的肤色图像数据,基于人体图像数据的特征信息对人体部位设置目标肤色颜色值,根据目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据,使得输入的肤色可趋向、甚至达到目标肤色,解决了肤色受到图像处理的控制,整体稳定性差,导致肤色在各种环境下,表现各异的问题,输出稳定、一致的肤色,同时,缩短图像处理的调试周期。According to the solution provided by the present invention, the user can use the mobile terminal to obtain the original image data collected by the camera, identify the human body image data from the original image data, and then detect the destination and the skin color image data of the human body parts, and analyze the human body based on the characteristic information of the human body image data. The target skin color value is set in the part, and the skin color image data is normalized according to the target skin color value to obtain the target image data, so that the input skin color can tend to or even reach the target skin color, and the skin color is controlled by image processing. The overall stability is poor, which leads to the problem that skin color behaves differently in various environments, and the output is stable and consistent skin color. At the same time, the debugging cycle of image processing is shortened.

参照图2,示出了根据本发明一个实施例的一种图像数据的处理方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of an embodiment of a method for processing image data according to an embodiment of the present invention, which may specifically include the following steps:

步骤201,获取摄像头采集的原始图像数据。Step 201, acquire raw image data collected by a camera.

步骤202,对所述原始图像数据进行图像处理。Step 202, performing image processing on the original image data.

在本发明实施例中,若摄像头采集到图像数据,则可以进行ISP(Image SignalProcessing,图形信号处理)处理。In the embodiment of the present invention, if the image data is collected by the camera, ISP (Image Signal Processing, image signal processing) processing may be performed.

其中,图像处理包括如下的至少一种:Wherein, image processing includes at least one of the following:

1、自动曝光控制1. Automatic Exposure Control

曝光是用来计算从景物到达相机的光通量大小的物理量。图像传感器只有获得正确的曝光,才能得到高质量的照片。曝光过度,图像看起来太亮曝光不足,则图像看起来太暗。到达传感器的光通量的大小主要由两方面因素决定:曝光时间的长短以及光圈的大小。Exposure is a physical quantity used to calculate the luminous flux from the scene to the camera. The image sensor can only get high-quality photos if it gets the correct exposure. Overexpose and the image looks too bright Underexpose and the image looks too dark. The amount of luminous flux reaching the sensor is mainly determined by two factors: the length of exposure time and the size of the aperture.

利用光圈进行自动曝光,主要根据所拍摄的场景来控制光圈大小,使得进光量维持在一定范围内。通过光圈进行曝光控制的成本比较高。The aperture is used for automatic exposure, and the size of the aperture is mainly controlled according to the scene being shot, so that the amount of light entering is maintained within a certain range. The cost of exposure control through the aperture is relatively high.

自动曝光控制算法方法通常有两种:There are usually two methods of automatic exposure control algorithm:

一种方法是使用参照亮度值,将图像均匀分成许多的子图像,每一块子图像的亮度被用来设置参照亮度值,这个亮度值可以通过设置快门的速度来获得。One method is to use a reference brightness value to evenly divide the image into many sub-images, and the brightness of each sub-image is used to set a reference brightness value, which can be obtained by setting the shutter speed.

另外一种方法是,通过研究不同光照条件下的亮度与曝光值之间的关系来进行曝光控制。Another method is to control exposure by studying the relationship between brightness and exposure value under different lighting conditions.

2、白平衡调整2. White balance adjustment

白平衡也可以理解为在任意色温条件下,摄像头所拍摄的标准白色经过电路的调整,使之成像后仍然为白色。White balance can also be understood as under any color temperature condition, the standard white captured by the camera is adjusted by the circuit so that it is still white after imaging.

自动白平衡是基于假设场景的色彩的平均值落在一个特定的范围内,如果测量得到结果偏离该范围,则调整对应参数,校正直到其均值落入指定范围。该处理过程可能基于YUV空间,也可能基于RGB空间来进行。对于Sensor来说,通常的处理方式是通过校正R/B增益,使得UV值落在一个指定的范围内。从而实现自动白平衡。Automatic white balance is based on the assumption that the average value of the color of the scene falls within a specific range. If the measured result deviates from this range, the corresponding parameters will be adjusted until the average value falls within the specified range. The processing may be based on YUV space or RGB space. For Sensor, the usual processing method is to correct the R/B gain so that the UV value falls within a specified range. This enables automatic white balance.

3、色彩还原处理3. Color restoration processing

人眼对色彩的识别,是基于人眼对光线存在三种不同的感应单元,不同的感应单元对不同波段的光有不同的响应曲线的原理,通过大脑的合成得到色彩的感知。一般来说,可以通俗的用RGB三基色的概念来理解颜色的分解和合成。The human eye's recognition of color is based on the principle that the human eye has three different sensing units for light, and different sensing units have different response curves to different bands of light. The perception of color is obtained through the synthesis of the brain. Generally speaking, the concept of RGB three primary colors can be used to understand the decomposition and synthesis of colors.

理论上,如果人眼和sensor(传感器)对光谱的色光的响应,在光谱上的体现的话,基本上对三色光的响应,相互之间不会发生影响,没有所谓的交叉效应。但是,实际情况并没有如此理想,人眼的三色感应系统对光谱的响应情况,是RGB的响应并不是完全独立的。Theoretically, if the human eye and sensor (sensor) respond to the color light of the spectrum, if it is reflected in the spectrum, basically the response to the three color lights will not affect each other, and there is no so-called cross effect. However, the actual situation is not so ideal. The response of the three-color sensing system of the human eye to the spectrum is that the response of RGB is not completely independent.

在RGB各分量上与人眼对光谱的响应通常是有偏差的,当然就需要对其进行校正。不光是在交叉效应上,同样对色彩各分量的响应强度也需要校正,通常的做法是通过一个色彩校正矩阵对颜色进行一次校正。There is usually a deviation between the RGB components and the human eye's response to the spectrum, and of course it needs to be corrected. Not only the cross effect, but also the response intensity of each color component needs to be corrected. The usual method is to correct the color once through a color correction matrix.

该色彩校正的运算通常是由sensor模块集成或后端的ISP完成,通过修改相关寄存器得到正确的校正结果。其中,由于颜色空间从RGB到YUV的转换也是通过一个3*3的变换矩阵来实现的,所以有时候这两个矩阵在ISP处理的过程中会合并在一起,通过一次矩阵运算操作完成色彩的校正和颜色空间的转换。The color correction operation is usually completed by the sensor module integration or the back-end ISP, and the correct correction result can be obtained by modifying the relevant registers. Among them, since the conversion of the color space from RGB to YUV is also realized through a 3*3 transformation matrix, sometimes these two matrices will be merged together in the process of ISP processing, and the color transformation can be completed through one matrix operation. Correction and conversion of color spaces.

4、色彩增强处理4. Color enhancement processing

在具体实现中,可以通过调节饱和度等方式增强图像数据的色彩表现。In a specific implementation, the color performance of the image data may be enhanced by adjusting saturation and the like.

所谓的饱和度,指的其实是色彩的纯度,纯度越高,表现越鲜明,纯度较低,表现则较黯淡。The so-called saturation actually refers to the purity of the color. The higher the purity, the brighter the performance, and the lower the purity, the duller the performance.

由于液晶每个象素由红、绿、蓝(RGB)子象素组成,背光通过液晶分子后依靠RGB象素组合成任意颜色光。如果RGB三原色越鲜艳,那么显示器可以表示的颜色范围就越广。如果显示器三原色不鲜艳,那这台显示器所能显示的颜色范围就比较窄,因为其无法显示比三原色更鲜艳的颜色。因此,提高色彩饱和度的方法是提高背光光谱和三原色的纯度。Since each pixel of the liquid crystal is composed of red, green, and blue (RGB) sub-pixels, the backlight passes through the liquid crystal molecules and relies on the RGB pixels to combine into light of any color. The more vivid the RGB primary colors, the wider the range of colors that the display can represent. If the three primary colors of the display are not bright, the color range that the display can display is relatively narrow, because it cannot display more vivid colors than the three primary colors. Therefore, the way to increase color saturation is to increase the purity of the backlight spectrum and the three primary colors.

5、去噪处理5. Denoising processing

在图像数据的采集和传输过程中,图像数据质量经常受到各种噪声的影响而下降。During the acquisition and transmission of image data, the quality of image data is often affected by various noises and degrades.

例如,在图像传感器获取图像数据时的噪声污染,由于这时候的数据量较少,噪声直接影响后面的插值算法,并使图像的细节无法体现,既影响图像的插值效果,也影响人的视觉感受。For example, noise pollution when the image sensor acquires image data, due to the small amount of data at this time, the noise directly affects the subsequent interpolation algorithm, and makes the details of the image unable to be reflected, which not only affects the interpolation effect of the image, but also affects human vision feel.

因此在图像处理中噪声的去除是一项非常重要的环节。Therefore, the removal of noise is a very important link in image processing.

去噪处理的方式,通常是对周围的点取均值来替代原先的值,这种做法并不增加信息量,类似于一个模糊算法。The way of denoising processing is usually to take the mean value of the surrounding points to replace the original value. This method does not increase the amount of information, similar to a fuzzy algorithm.

在检测时,可以通过亮度和颜色综合作为标准来判定噪点,采用插值算法做补偿,对于sensor固有的坏点,噪点,采用屏蔽的方式抛弃其数据等等。During detection, the noise can be judged by combining the brightness and color as the standard, and the interpolation algorithm can be used for compensation. For the inherent bad pixels and noise of the sensor, the data can be discarded by masking and so on.

当然,上述图像处理只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他图像处理,如频闪抑制,本发明实施例对此不加以限制。另外,除了上述图像处理外,本领域技术人员还可以根据实际需要采用其它图像处理,本发明实施例对此也不加以限制。Of course, the above image processing is only an example. When implementing the embodiment of the present invention, other image processing, such as flicker suppression, may be set according to the actual situation, which is not limited in the embodiment of the present invention. In addition, in addition to the above image processing, those skilled in the art may also use other image processing according to actual needs, which is not limited in this embodiment of the present invention.

步骤203,在所述原始图像数据中识别出人体图像数据。Step 203, identifying human body image data in the original image data.

步骤204,在所述人体图像数据中检测归属于人体部位的肤色图像数据。Step 204, detecting skin color image data belonging to human body parts in the human body image data.

步骤205,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值。Step 205, setting a target skin color value for the human body part according to the characteristic information of the human body image data.

步骤206,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。Step 206: Perform normalization processing on the skin color image data according to the target skin color value to obtain target image data.

在本发明实施例中,可以从图像处理之后的原始图像数据中识别出人体图像数据,根据图像处理之后人体图像数据的特征信息针对人体部位设置目标肤色颜色值,根据目标肤色颜色值对图像处理之后肤色图像数据进行归一化处理,获得目标图像数据。In the embodiment of the present invention, the human body image data can be identified from the original image data after image processing, the target skin color value is set for human body parts according to the feature information of the human body image data after image processing, and the image is processed according to the target skin color value. Then the skin color image data is normalized to obtain the target image data.

对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图3,示出了根据本发明一个实施例的一种图像数据的处理装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 3 , it shows a structural block diagram of an embodiment of an image data processing device according to an embodiment of the present invention, which may specifically include the following modules:

原始图像数据获取模块301,用于获取摄像头采集的原始图像数据;Raw image data acquisition module 301, used to acquire the original image data collected by the camera;

人体图像数据识别模块302,用于在所述原始图像数据中识别出人体图像数据;A human body image data identification module 302, configured to identify the human body image data in the original image data;

肤色图像数据检测模块303,用于在所述人体图像数据中检测归属于人体部位的肤色图像数据;A skin color image data detection module 303, configured to detect skin color image data belonging to human body parts in the human body image data;

目标肤色颜色值设置模块304,用于根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;A target skin color value setting module 304, configured to set a target skin color value for the human body part according to the characteristic information of the human body image data;

归一化处理模块305,用于根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。A normalization processing module 305, configured to perform normalization processing on the skin color image data according to the target skin color value to obtain target image data.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

在所述肤色图像数据中选择特征肤色图像数据;Selecting characteristic skin color image data in the skin color image data;

根据所述目标肤色颜色值对所述特征肤色图像数据进行归一化处理,获得目标图像数据。Perform normalization processing on the characteristic skin color image data according to the target skin color value to obtain target image data.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

统计所述肤色图像数据的亮度和/或曝光度;Count the brightness and/or exposure of the skin color image data;

从所述肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。Select image data whose brightness is within a preset brightness range and/or whose exposure is less than a preset exposure threshold from the skin color image data as characteristic skin color image data.

在本发明的一个实施例中,所述目标肤色颜色值设置模块304还可以用于:In one embodiment of the present invention, the target skin color value setting module 304 can also be used for:

识别所述人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息;Identifying one or more characteristic information in the age information, gender information, and race information of the human body image data;

基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。Query the target skin color value corresponding to the human body part based on one or more characteristic information in age information, gender information, and race information.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

针对每个肤色图像数据,统计所述部位图像数据中的原始肤色颜色值;For each skin color image data, count the original skin color value in the part image data;

采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;calculating a normalization coefficient by using the original skin color value and the target skin color value;

在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;On the basis of the original skin color value, adjust with the normalization coefficient to obtain a normalized skin color value;

在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。In the original image data, the skin color image data is adjusted with the normalized skin color value to obtain target image data.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

获取所述肤色图像数据中各像素点的像素颜色值;Obtain the pixel color value of each pixel in the skin color image data;

计算所述像素颜色值的平均值,作为原始肤色颜色值。Calculate the average value of the pixel color values as the original skin color value.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;calculating the ratio between the target skin color value and the original skin color value to obtain a color adjustment ratio;

将所述部位图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合;multiplying the pixel color value of each pixel in the part image data by the adjustment ratio to obtain a set of pixel color values;

从所述像素颜色值集合中选取目标像素颜色值;selecting a target pixel color value from the set of pixel color values;

采用所述颜色调整比例和所述目标像素颜色值计算归一化系数。A normalization coefficient is calculated by using the color adjustment ratio and the target pixel color value.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

从所述像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。From the set of pixel color values, select the pixel color value with the largest value as the target pixel color value.

在本发明的一个实施例中,所述归一化处理模块305还可以用于:In one embodiment of the present invention, the normalization processing module 305 can also be used for:

计算预设的颜色阈值与所述目标像素颜色值之间的比值,作为像素颜色比例;calculating the ratio between the preset color threshold and the target pixel color value as the pixel color ratio;

计算所述颜色调整比例与所述像素颜色比例之间的乘积,获得归一化系数。Calculate the product of the color adjustment ratio and the pixel color ratio to obtain a normalization coefficient.

参照图4,示出了根据本发明一个实施例的另一种图像数据的处理装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of another image data processing device embodiment according to an embodiment of the present invention, which may specifically include the following modules:

原始图像数据获取模块401,用于获取摄像头采集的原始图像数据;Raw image data acquisition module 401, used to acquire the original image data collected by the camera;

图像处理模块402,用于对所述原始图像数据进行图像处理;An image processing module 402, configured to perform image processing on the original image data;

人体图像数据识别模块403,用于在所述原始图像数据中识别出人体图像数据;A human body image data identification module 403, configured to identify the human body image data in the original image data;

肤色图像数据检测模块404,用于在所述人体图像数据中检测归属于人体部位的肤色图像数据;A skin color image data detection module 404, configured to detect skin color image data belonging to human body parts in the human body image data;

目标肤色颜色值设置模块405,用于根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;A target skin color value setting module 405, configured to set a target skin color value for the human body part according to the characteristic information of the human body image data;

归一化处理模块406,用于根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。A normalization processing module 406, configured to perform normalization processing on the skin color image data according to the target skin color value to obtain target image data.

在具体实现中,所述图像处理包括如下的至少一种:In a specific implementation, the image processing includes at least one of the following:

自动曝光控制、白平衡调整、色彩还原处理、色彩增强处理、去噪处理。Automatic exposure control, white balance adjustment, color restoration processing, color enhancement processing, denoising processing.

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

本发明实施例还提供了移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point ofSales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present invention also provides a mobile terminal. As shown in FIG. 5 , for convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the terminal as a mobile phone as an example:

图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. 5, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (wireless fidelity, WiFi) module 570, a processor 580 , and power supply 590 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:

RF电路510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将设计上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 510 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, the processor 580 processes it; in addition, it sends the designed uplink data to the base station. Generally, the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 510 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 520 . The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 520 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.

输入单元530可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 530 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532 . The touch panel 531, 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 531 or near the touch panel 531). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 531 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 to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 531 , the input unit 530 may also include other input devices 532 . Specifically, other input devices 532 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.

显示单元540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元540可包括显示面板541,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。The display unit 540 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541. Optionally, the display panel 541 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. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near it, it transmits to the processor 580 to determine the type of the touch event, and then the processor 580 determines the type of the touch event according to the touch event. The type provides a corresponding visual output on the display panel 541 . Although in FIG. 5 , the touch panel 531 and the display panel 541 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板541和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 541 and/or when the mobile phone is moved to the ear. or backlight. 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 stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

音频电路560、扬声器561,传声器562可提供用户与手机之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一手机,或者将音频数据输出至存储器520以便进一步处理。The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the mobile phone. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the loudspeaker 561, and the loudspeaker 561 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 580, and then sent to another mobile phone through the RF circuit 510, or the audio data is output to the memory 520 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 570, which provides users with wireless broadband Internet access. Although Fig. 5 shows a WiFi module 570, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.

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

手机还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 590 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 580 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.

在本发明实施例中,该终端所包括的处理器580还具有以下功能:In the embodiment of the present invention, the processor 580 included in the terminal also has the following functions:

获取摄像头采集的原始图像数据;Obtain the original image data collected by the camera;

在所述原始图像数据中识别出人体图像数据;identifying human body image data in the raw image data;

在所述人体图像数据中检测归属于人体部位的肤色图像数据;Detecting skin color image data belonging to human body parts in the human body image data;

根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;setting a target skin color value for the human body part according to the characteristic information of the human body image data;

根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。performing normalization processing on the skin color image data according to the target skin color value to obtain target image data.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

在所述肤色图像数据中选择特征肤色图像数据;Selecting characteristic skin color image data in the skin color image data;

根据所述目标肤色颜色值对所述特征肤色图像数据进行归一化处理,获得目标图像数据。Perform normalization processing on the characteristic skin color image data according to the target skin color value to obtain target image data.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

统计所述肤色图像数据的亮度和/或曝光度;Count the brightness and/or exposure of the skin color image data;

从所述肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。Select image data whose brightness is within a preset brightness range and/or whose exposure is less than a preset exposure threshold from the skin color image data as characteristic skin color image data.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

识别所述人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息;Identifying one or more characteristic information in the age information, gender information, and race information of the human body image data;

基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。Query the target skin color value corresponding to the human body part based on one or more characteristic information in age information, gender information, and race information.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

针对每个肤色图像数据,统计所述部位图像数据中的原始肤色颜色值;For each skin color image data, count the original skin color value in the part image data;

采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;calculating a normalization coefficient by using the original skin color value and the target skin color value;

在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;On the basis of the original skin color value, adjust with the normalization coefficient to obtain a normalized skin color value;

在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。In the original image data, the skin color image data is adjusted with the normalized skin color value to obtain target image data.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

获取所述肤色图像数据中各像素点的像素颜色值;Obtain the pixel color value of each pixel in the skin color image data;

计算所述像素颜色值的平均值,作为原始肤色颜色值。Calculate the average value of the pixel color values as the original skin color value.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;calculating the ratio between the target skin color value and the original skin color value to obtain a color adjustment ratio;

将所述部位图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合;multiplying the pixel color value of each pixel in the part image data by the adjustment ratio to obtain a set of pixel color values;

从所述像素颜色值集合中选取目标像素颜色值;selecting a target pixel color value from the set of pixel color values;

采用所述颜色调整比例和所述目标像素颜色值计算归一化系数。A normalization coefficient is calculated by using the color adjustment ratio and the target pixel color value.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

从所述像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。From the set of pixel color values, select the pixel color value with the largest value as the target pixel color value.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

计算预设的颜色阈值与所述目标像素颜色值之间的比值,作为像素颜色比例;calculating the ratio between the preset color threshold and the target pixel color value as the pixel color ratio;

计算所述颜色调整比例与所述像素颜色比例之间的乘积,获得归一化系数。Calculate the product of the color adjustment ratio and the pixel color ratio to obtain a normalization coefficient.

可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:

对所述原始图像数据进行图像处理;performing image processing on the original image data;

其中,所述图像处理包括如下的至少一种:Wherein, the image processing includes at least one of the following:

自动曝光控制、白平衡调整、色彩还原处理、色彩增强处理、去噪处理。Automatic exposure control, white balance adjustment, color restoration processing, color enhancement processing, denoising processing.

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

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

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

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage The medium can be read-only memory, magnetic or optical disk, etc.

以上对本发明所提供的一种移动终端进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The mobile terminal provided by the present invention has been introduced in detail above. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. In summary, , the contents of this specification should not be construed as limiting the present invention.

本发明实施例公开了A1、一种图像数据的处理方法,包括:获取摄像头采集的原始图像数据;在所述原始图像数据中识别出人体图像数据;在所述人体图像数据中检测归属于人体部位的肤色图像数据;根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。A2、如A1所述的方法,所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的步骤包括:在所述肤色图像数据中选择特征肤色图像数据;根据所述目标肤色颜色值对所述特征肤色图像数据进行归一化处理,获得目标图像数据。A3、如A2所述的方法,所述在所述肤色图像数据中选择特征肤色图像数据的步骤包括:统计所述肤色图像数据的亮度和/或曝光度;从所述肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。A4、如A1或A2或A3所述的方法,所述根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的步骤包括:识别所述人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息;基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。A5、如A1或A2或A3所述的方法,所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的步骤包括:针对每个肤色图像数据,统计所述部位图像数据中的原始肤色颜色值;采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。A6、如A5所述的方法,所述统计所述肤色图像数据中的原始肤色颜色值的步骤包括:获取所述肤色图像数据中各像素点的像素颜色值;计算所述像素颜色值的平均值,作为原始肤色颜色值。A7、如A5所述的方法,所述采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数的步骤包括:计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;将所述部位图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合;从所述像素颜色值集合中选取目标像素颜色值;采用所述颜色调整比例和所述目标像素颜色值计算归一化系数。A8、如A7所述的方法,所述从所述像素颜色值集合中选取目标像素颜色值的步骤包括:从所述像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。A9、如A7所述的方法,所述采用所述颜色调整比例和所述目标像素颜色值计算归一化系数的步骤包括:计算预设的颜色阈值与所述目标像素颜色值之间的比值,作为像素颜色比例;计算所述颜色调整比例与所述像素颜色比例之间的乘积,获得归一化系数。A10、如A1-A9任一项所述的方法,在所述从所述原始图像数据识别出人体图像数据的步骤之前,所述方法还包括:对所述原始图像数据进行图像处理;其中,所述图像处理包括如下的至少一种:自动曝光控制、白平衡调整、色彩还原处理、色彩增强处理、去噪处理。The embodiment of the present invention discloses A1. A method for processing image data, including: acquiring original image data collected by a camera; identifying human body image data in the original image data; detecting human body image data in the human body image data The skin color image data of the part; setting the target skin color value for the human body part according to the characteristic information of the human body image data; performing normalization processing on the skin color image data according to the target skin color value to obtain the target image data. A2. The method as described in A1, wherein the skin color image data is normalized according to the target skin color value, and the step of obtaining the target image data includes: selecting characteristic skin color image data in the skin color image data ; performing normalization processing on the characteristic skin color image data according to the target skin color value to obtain target image data. A3, the method as described in A2, the step of selecting characteristic skin color image data in the skin color image data includes: counting the brightness and/or exposure of the skin color image data; selecting brightness from the skin color image data Image data within a preset brightness range and/or exposure less than a preset exposure threshold is used as characteristic skin color image data. A4. The method as described in A1 or A2 or A3, the step of setting the target skin color value for the human body part according to the characteristic information of the human body image data includes: identifying the age information and gender information of the human body image data 1. One or more characteristic information in the ethnic information; query the target skin color value corresponding to the human body part based on one or more characteristic information in the age information, gender information, and ethnic information. A5, the method as described in A1 or A2 or A3, said skin color image data is normalized according to said target skin color value, and the step of obtaining target image data includes: for each skin color image data, statistics The original skin color value in the part image data; using the original skin color value and the target skin color value to calculate a normalization coefficient; on the basis of the original skin color value with the normalization coefficient adjusting to obtain a normalized skin color value; in the original image data, adjusting the skin color image data with the normalized skin color value to obtain target image data. A6, the method as described in A5, the step of counting the original skin color value in the skin color image data includes: obtaining the pixel color value of each pixel in the skin color image data; calculating the average of the pixel color values value, as the original skin color value. A7. The method as described in A5, the step of calculating the normalization coefficient by using the original skin color value and the target skin color value includes: calculating the difference between the target skin color value and the original skin color value to obtain the color adjustment ratio; multiply the pixel color value of each pixel in the part image data by the adjustment ratio to obtain a pixel color value set; select the target pixel color value from the pixel color value set; The color adjustment ratio and the target pixel color value calculate a normalization coefficient. A8. The method as described in A7, the step of selecting the target pixel color value from the pixel color value set includes: selecting the pixel color value with the largest value from the pixel color value set as the target pixel color value. A9, the method as described in A7, the step of calculating the normalization coefficient by using the color adjustment ratio and the target pixel color value includes: calculating the ratio between the preset color threshold and the target pixel color value , as a pixel color ratio; calculate the product of the color adjustment ratio and the pixel color ratio to obtain a normalization coefficient. A10. The method according to any one of A1-A9, before the step of identifying human body image data from the original image data, the method further includes: performing image processing on the original image data; wherein, The image processing includes at least one of the following: automatic exposure control, white balance adjustment, color restoration processing, color enhancement processing, and noise removal processing.

本发明实施还公开了B11、一种图像数据的处理装置,包括:原始图像数据获取模块,用于获取摄像头采集的原始图像数据;人体图像数据识别模块,用于在所述原始图像数据中识别出人体图像数据;肤色图像数据检测模块,用于在所述人体图像数据中检测归属于人体部位的肤色图像数据;目标肤色颜色值设置模块,用于根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;归一化处理模块,用于根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。B12、如B11所述的装置,所述归一化处理模块还用于:在所述肤色图像数据中选择特征肤色图像数据;根据所述目标肤色颜色值对所述特征肤色图像数据进行归一化处理,获得目标图像数据。B13、如B12所述的装置,所述归一化处理模块还用于:统计所述肤色图像数据的亮度和/或曝光度;从所述肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。B14、如B11或B12或B13所述的装置,所述目标肤色颜色值设置模块还用于:识别所述人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息;基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。B15、如B11或B12或B13所述的装置,所述归一化处理模块还用于:针对每个肤色图像数据,统计所述部位图像数据中的原始肤色颜色值;采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。B16、如B15所述的装置,所述归一化处理模块还用于:获取所述肤色图像数据中各像素点的像素颜色值;计算所述像素颜色值的平均值,作为原始肤色颜色值。B17、如B15所述的装置,所述归一化处理模块还用于:计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;将所述部位图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合;从所述像素颜色值集合中选取目标像素颜色值;采用所述颜色调整比例和所述目标像素颜色值计算归一化系数。B18、如B17所述的装置,所述归一化处理模块还用于:从所述像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。B19、如B17所述的装置,所述归一化处理模块还用于:计算预设的颜色阈值与所述目标像素颜色值之间的比值,作为像素颜色比例;计算所述颜色调整比例与所述像素颜色比例之间的乘积,获得归一化系数。B20、如B11-B19任一项所述的装置,还包括:图像处理模块,用于对所述原始图像数据进行图像处理;其中,所述图像处理包括如下的至少一种:自动曝光控制、白平衡调整、色彩还原处理、色彩增强处理、去噪处理。The implementation of the present invention also discloses B11, an image data processing device, including: an original image data acquisition module, used to acquire the original image data collected by the camera; a human body image data recognition module, used to identify Human body image data; skin color image data detection module, used to detect skin color image data belonging to human body parts in the human body image data; target skin color value setting module, used to target all skin color values according to the characteristic information of the human body image data The target skin color value is set for the human body part; the normalization processing module is used to perform normalization processing on the skin color image data according to the target skin color value to obtain target image data. B12, the device as described in B11, the normalization processing module is also used for: selecting characteristic skin color image data in the skin color image data; normalizing the characteristic skin color image data according to the target skin color value process to obtain the target image data. B13, the device as described in B12, the normalization processing module is also used to: count the brightness and/or exposure of the skin color image data; select the brightness from the skin color image data in the preset brightness interval and /or image data whose exposure is less than a preset exposure threshold is used as characteristic skin color image data. B14, the device as described in B11 or B12 or B13, the target skin color value setting module is also used to: identify one or more characteristic information in the age information, gender information, and race information of the human body image data ; Query the target skin color value corresponding to the human body part based on one or more characteristic information in age information, gender information, and race information. B15, the device as described in B11 or B12 or B13, the normalization processing module is also used for: for each skin color image data, count the original skin color value in the part image data; adopt the original skin color value and the target skin color value to calculate a normalization coefficient; on the basis of the original skin color value, adjust with the normalization coefficient to obtain a normalized skin color value; in the original image data, adjusting the skin color image data with the normalized skin color value to obtain target image data. B16, the device as described in B15, the normalization processing module is also used to: obtain the pixel color value of each pixel in the skin color image data; calculate the average value of the pixel color value as the original skin color value . B17, the device as described in B15, the normalization processing module is also used to: calculate the ratio between the target skin color value and the original skin color value to obtain a color adjustment ratio; Multiply the pixel color value of each pixel in the pixel by the adjustment ratio to obtain a pixel color value set; select the target pixel color value from the pixel color value set; use the color adjustment ratio and the target pixel color value to calculate the return Unification coefficient. B18. The device according to B17, wherein the normalization processing module is further configured to: select the pixel color value with the largest value from the set of pixel color values as the target pixel color value. B19, the device as described in B17, the normalization processing module is also used to: calculate the ratio between the preset color threshold and the target pixel color value as the pixel color ratio; calculate the color adjustment ratio and The product between the pixel color scales to obtain the normalization coefficient. B20. The device according to any one of B11-B19, further comprising: an image processing module configured to perform image processing on the raw image data; wherein the image processing includes at least one of the following: automatic exposure control, White balance adjustment, color restoration processing, color enhancement processing, denoising processing.

本发明实施例还公开了C21、一种移动终端,包括:存储器和处理器;其中,所述存储器用于存储获取摄像头采集的原始图像数据的指令,在所述原始图像数据中识别出人体图像数据的指令,在所述人体图像数据中检测归属于人体部位的肤色图像数据的指令,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的指令,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的指令;所述处理器用于:依据所述获取摄像头采集的原始图像数据的指令,获取摄像头采集的原始图像数据;依据所述在所述原始图像数据中识别出人体图像数据指令,在所述原始图像数据中识别出人体图像数据;依据所述在所述人体图像数据中检测归属于人体部位的肤色图像数据指令,在所述人体图像数据中检测归属于人体部位的肤色图像数据;依据所述根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的指令,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;依据所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的指令,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。C22、如C21所述的移动终端,所述处理器还用于:在所述肤色图像数据中选择特征肤色图像数据;根据所述目标肤色颜色值对所述特征肤色图像数据进行归一化处理,获得目标图像数据。C23、如C22所述的移动终端,所述处理器还用于:统计所述肤色图像数据的亮度和/或曝光度;从所述肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。C24、如C21或C22或C23所述的移动终端,所述处理器还用于:识别所述人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息;基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。C25、如C21或C22或C23所述的移动终端,所述处理器还用于:针对每个肤色图像数据,统计所述部位图像数据中的原始肤色颜色值;采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。C26、如C25所述的移动终端,所述处理器还用于:获取所述肤色图像数据中各像素点的像素颜色值;计算所述像素颜色值的平均值,作为原始肤色颜色值。C27、如C25所述的移动终端,所述处理器还用于:计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;将所述部位图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合;从所述像素颜色值集合中选取目标像素颜色值;采用所述颜色调整比例和所述目标像素颜色值计算归一化系数。C28、如C27所述的移动终端,所述处理器还用于:从所述像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。C29、如C27所述的移动终端,所述处理器还用于:计算预设的颜色阈值与所述目标像素颜色值之间的比值,作为像素颜色比例;计算所述颜色调整比例与所述像素颜色比例之间的乘积,获得归一化系数。C30、如C21-C29任一项所述的移动终端,所述存储器还用于存储对所述原始图像数据进行图像处理的指令;所述处理器还用于:依据所述对所述原始图像数据进行图像处理的指令,对所述原始图像数据进行图像处理;其中,所述图像处理包括如下的至少一种:自动曝光控制、白平衡调整、色彩还原处理、色彩增强处理、去噪处理。The embodiment of the present invention also discloses C21, a mobile terminal, including: a memory and a processor; wherein, the memory is used to store instructions for acquiring the original image data collected by the camera, and the human body image is identified in the original image data Instructions for data, an instruction for detecting skin color image data belonging to human body parts in the human body image data, an instruction for setting a target skin color value for the human body part according to the characteristic information of the human body image data, and an instruction for setting a target skin color value according to the target skin color The color value is used to normalize the skin color image data to obtain an instruction for target image data; the processor is used to: obtain the original image data collected by the camera according to the instruction for obtaining the original image data collected by the camera; according to the instruction for obtaining the original image data collected by the camera According to the instruction of identifying human body image data in the original image data, the human body image data is identified in the original image data; according to the instruction of detecting skin color image data belonging to parts of the human body in the human body image data, in Detecting skin color image data belonging to human body parts in the human body image data; according to the instruction of setting a target skin color value for the human body parts according to the characteristic information of the human body image data, according to the characteristic information of the human body image data Set a target skin color value for the human body part; perform normalization processing on the skin color image data according to the target skin color value to obtain the target image data, and set the target skin color value according to the target skin color value. The skin color image data is normalized to obtain the target image data. C22. The mobile terminal as described in C21, the processor is further configured to: select characteristic skin color image data in the skin color image data; perform normalization processing on the characteristic skin color image data according to the target skin color value , to obtain the target image data. C23. The mobile terminal as described in C22, the processor is further configured to: count the brightness and/or exposure of the skin color image data; select the brightness from the skin color image data within a preset brightness range and/or Image data whose exposure is less than a preset exposure threshold is used as characteristic skin color image data. C24. The mobile terminal as described in C21 or C22 or C23, the processor is also used to: identify one or more characteristic information in the age information, gender information, and race information of the human body image data; information, gender information, and race information to query the target skin color value corresponding to the human body part. C25, the mobile terminal as described in C21 or C22 or C23, the processor is also used to: for each skin color image data, count the original skin color value in the part image data; use the original skin color value and Calculate a normalization coefficient for the target skin color value; adjust with the normalization coefficient on the basis of the original skin color value to obtain a normalized skin color value; in the original image data, the The normalized skin color value is used to adjust the skin color image data to obtain target image data. C26. The mobile terminal as described in C25, wherein the processor is further configured to: acquire pixel color values of each pixel in the skin color image data; calculate an average value of the pixel color values as the original skin color value. C27. The mobile terminal as described in C25, the processor is further configured to: calculate the ratio between the target skin color value and the original skin color value to obtain a color adjustment ratio; Multiplying the pixel color value of the pixel point by the adjustment ratio to obtain a pixel color value set; selecting a target pixel color value from the pixel color value set; calculating normalization by using the color adjustment ratio and the target pixel color value coefficient. C28. The mobile terminal according to C27, wherein the processor is further configured to: select a pixel color value with the largest value from the set of pixel color values as the target pixel color value. C29. The mobile terminal as described in C27, the processor is further configured to: calculate a ratio between a preset color threshold and the target pixel color value as a pixel color ratio; calculate the color adjustment ratio and the The product between the pixel color scales to obtain the normalization factor. C30. The mobile terminal according to any one of C21-C29, the memory is also used to store instructions for performing image processing on the original image data; the processor is also used to: according to the An instruction for performing image processing on the data, performing image processing on the original image data; wherein, the image processing includes at least one of the following: automatic exposure control, white balance adjustment, color restoration processing, color enhancement processing, and denoising processing.

Claims (10)

1.一种图像数据的处理方法,包括:1. A method for processing image data, comprising: 获取摄像头采集的原始图像数据;Obtain the original image data collected by the camera; 在所述原始图像数据中识别出人体图像数据;identifying human body image data in the raw image data; 在所述人体图像数据中检测归属于人体部位的肤色图像数据;Detecting skin color image data belonging to human body parts in the human body image data; 根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;setting a target skin color value for the human body part according to the characteristic information of the human body image data; 根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。performing normalization processing on the skin color image data according to the target skin color value to obtain target image data. 2.如权利要求1所述的方法,其特征在于,所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的步骤包括:2. The method according to claim 1, wherein said skin color image data is normalized according to said target skin color value, and the step of obtaining target image data comprises: 在所述肤色图像数据中选择特征肤色图像数据;Selecting characteristic skin color image data in the skin color image data; 根据所述目标肤色颜色值对所述特征肤色图像数据进行归一化处理,获得目标图像数据。Perform normalization processing on the characteristic skin color image data according to the target skin color value to obtain target image data. 3.如权利要求2所述的方法,其特征在于,所述在所述肤色图像数据中选择特征肤色图像数据的步骤包括:3. The method according to claim 2, wherein the step of selecting characteristic skin color image data in the skin color image data comprises: 统计所述肤色图像数据的亮度和/或曝光度;Count the brightness and/or exposure of the skin color image data; 从所述肤色图像数据中选取亮度在预设的亮度区间和/或曝光度小于预设的曝光阈值的图像数据,作为特征肤色图像数据。Select image data whose brightness is within a preset brightness range and/or whose exposure is less than a preset exposure threshold from the skin color image data as characteristic skin color image data. 4.如权利要求1或2或3所述的方法,其特征在于,所述根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的步骤包括:4. The method according to claim 1 or 2 or 3, wherein the step of setting the target skin color value for the human body part according to the feature information of the human body image data comprises: 识别所述人体图像数据的年龄信息、性别信息、人种信息中的一种或多种特征信息;Identifying one or more characteristic information in the age information, gender information, and race information of the human body image data; 基于年龄信息、性别信息、人种信息中的一种或多种特征信息查询人体部位对应的目标肤色颜色值。Query the target skin color value corresponding to the human body part based on one or more characteristic information in age information, gender information, and race information. 5.如权利要求1或2或3所述的方法,其特征在于,所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的步骤包括:5. the method as claimed in claim 1 or 2 or 3, is characterized in that, described skin color image data is carried out normalization process according to described target skin color value, the step of obtaining target image data comprises: 针对每个肤色图像数据,统计所述部位图像数据中的原始肤色颜色值;For each skin color image data, count the original skin color value in the part image data; 采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数;calculating a normalization coefficient by using the original skin color value and the target skin color value; 在所述原始肤色颜色值的基础上以所述归一化系数进行调整,获得归一化肤色颜色值;On the basis of the original skin color value, adjust with the normalization coefficient to obtain a normalized skin color value; 在所述原始图像数据中,以所述归一化肤色颜色值调整所述肤色图像数据,获得目标图像数据。In the original image data, the skin color image data is adjusted with the normalized skin color value to obtain target image data. 6.如权利要求5所述的方法,其特征在于,所述统计所述肤色图像数据中的原始肤色颜色值的步骤包括:6. method as claimed in claim 5, is characterized in that, the step of the original skin color value in described statistics described skin color image data comprises: 获取所述肤色图像数据中各像素点的像素颜色值;Obtain the pixel color value of each pixel in the skin color image data; 计算所述像素颜色值的平均值,作为原始肤色颜色值。Calculate the average value of the pixel color values as the original skin color value. 7.如权利要求5所述的方法,其特征在于,所述采用所述原始肤色颜色值与所述目标肤色颜色值计算归一化系数的步骤包括:7. The method according to claim 5, wherein the step of calculating a normalization coefficient using the original skin color value and the target skin color value comprises: 计算所述目标肤色颜色值与所述原始肤色颜色值之间的比值,获得颜色调整比例;calculating the ratio between the target skin color value and the original skin color value to obtain a color adjustment ratio; 将所述部位图像数据中各像素点的像素颜色值乘以所述调整比例,获得像素颜色值集合;multiplying the pixel color value of each pixel in the part image data by the adjustment ratio to obtain a set of pixel color values; 从所述像素颜色值集合中选取目标像素颜色值;selecting a target pixel color value from the set of pixel color values; 采用所述颜色调整比例和所述目标像素颜色值计算归一化系数。A normalization coefficient is calculated by using the color adjustment ratio and the target pixel color value. 8.如权利要求7所述的方法,其特征在于,所述从所述像素颜色值集合中选取目标像素颜色值的步骤包括:8. The method according to claim 7, wherein the step of selecting a target pixel color value from the set of pixel color values comprises: 从所述像素颜色值集合中,选取值最大的像素颜色值,作为目标像素颜色值。From the set of pixel color values, select the pixel color value with the largest value as the target pixel color value. 9.一种图像数据的处理装置,包括:9. A processing device for image data, comprising: 原始图像数据获取模块,用于获取摄像头采集的原始图像数据;The original image data acquisition module is used to obtain the original image data collected by the camera; 人体图像数据识别模块,用于在所述原始图像数据中识别出人体图像数据;A human body image data identification module, configured to identify the human body image data in the original image data; 肤色图像数据检测模块,用于在所述人体图像数据中检测归属于人体部位的肤色图像数据;A skin color image data detection module, configured to detect skin color image data belonging to human body parts in the human body image data; 目标肤色颜色值设置模块,用于根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;A target skin color value setting module, configured to set a target skin color value for the human body part according to the characteristic information of the human body image data; 归一化处理模块,用于根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。A normalization processing module, configured to perform normalization processing on the skin color image data according to the target skin color value to obtain target image data. 10.一种移动终端,包括:10. A mobile terminal, comprising: 存储器和处理器;memory and processor; 其中,所述存储器用于存储获取摄像头采集的原始图像数据的指令,在所述原始图像数据中识别出人体图像数据的指令,在所述人体图像数据中检测归属于人体部位的肤色图像数据的指令,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的指令,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的指令;Wherein, the memory is used to store the instruction for acquiring the original image data collected by the camera, the instruction for identifying the human body image data in the original image data, and the detection of the skin color image data belonging to the human body parts in the human body image data An instruction, an instruction of setting a target skin color value for the human body part according to the characteristic information of the human body image data, performing normalization processing on the skin color image data according to the target skin color value, and obtaining an instruction of the target image data; 所述处理器用于:The processor is used to: 依据所述获取摄像头采集的原始图像数据的指令,获取摄像头采集的原始图像数据;Acquire the original image data collected by the camera according to the instruction for obtaining the original image data collected by the camera; 依据所述在所述原始图像数据中识别出人体图像数据指令,在所述原始图像数据中识别出人体图像数据;identifying human body image data in the original image data according to the instruction for identifying human body image data in the original image data; 依据所述在所述人体图像数据中检测归属于人体部位的肤色图像数据指令,在所述人体图像数据中检测归属于人体部位的肤色图像数据;According to the instruction of detecting skin color image data belonging to human body parts in the human body image data, detecting skin color image data belonging to human body parts in the human body image data; 依据所述根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值的指令,根据所述人体图像数据的特征信息针对所述人体部位设置目标肤色颜色值;According to the instruction of setting a target skin color value for the human body part according to the characteristic information of the human body image data, set a target skin color value for the human body part according to the characteristic information of the human body image data; 依据所述根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据的指令,根据所述目标肤色颜色值对所述肤色图像数据进行归一化处理,获得目标图像数据。According to the instruction of normalizing the skin color image data according to the target skin color value to obtain the target image data, normalizing the skin color image data according to the target skin color value to obtain the target image data.
CN201610530732.0A 2016-07-06 2016-07-06 The processing method of a kind of view data, device and mobile terminal Pending CN106096588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610530732.0A CN106096588A (en) 2016-07-06 2016-07-06 The processing method of a kind of view data, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610530732.0A CN106096588A (en) 2016-07-06 2016-07-06 The processing method of a kind of view data, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN106096588A true CN106096588A (en) 2016-11-09

Family

ID=57212994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610530732.0A Pending CN106096588A (en) 2016-07-06 2016-07-06 The processing method of a kind of view data, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106096588A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066400A (en) * 2016-12-13 2017-08-18 深圳众思科技有限公司 Signal processing method, device and the electronic equipment of electronic equipment
CN107248183A (en) * 2017-05-09 2017-10-13 深圳市金立通信设备有限公司 A kind of method and terminal for adjusting edit object color
CN107609554A (en) * 2017-09-12 2018-01-19 海信(山东)冰箱有限公司 The method and device of food materials in a kind of identification refrigerator
CN107730446A (en) * 2017-10-31 2018-02-23 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN107862657A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN107862274A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Beautifying method, device, electronic device and computer-readable storage medium
CN108960201A (en) * 2018-08-01 2018-12-07 西南石油大学 A kind of expression recognition method extracted based on face key point and sparse expression is classified
CN109300164A (en) * 2017-07-25 2019-02-01 丽宝大数据股份有限公司 Skin basement hue judgment method and electronic device
WO2019052449A1 (en) * 2017-09-14 2019-03-21 广州市百果园信息技术有限公司 Skin color recognition method and apparatus, and storage medium
CN109727216A (en) * 2018-12-28 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN110012277A (en) * 2019-04-09 2019-07-12 成都品果科技有限公司 A kind of auto white balance method and device for portrait image
CN110060205A (en) * 2019-05-08 2019-07-26 北京迈格威科技有限公司 Image processing method and device, storage medium and electronic equipment
CN110599554A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Method and device for identifying face skin color, storage medium and electronic device
CN111062876A (en) * 2018-10-17 2020-04-24 北京地平线机器人技术研发有限公司 Method and device for correcting model training and image correction and electronic equipment
CN111967550A (en) * 2020-07-30 2020-11-20 内蒙古智诚物联股份有限公司 Non-contact temperature detector based on artificial intelligence and detection method thereof
CN112581380A (en) * 2019-09-30 2021-03-30 北京金山云网络技术有限公司 Image color enhancement method and device and server
CN114331892A (en) * 2021-12-29 2022-04-12 上海肤焕科技有限公司 Skin color adjusting method and device
CN114904271A (en) * 2022-05-13 2022-08-16 网易(杭州)网络有限公司 Color gradient map generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060222217A1 (en) * 2005-03-31 2006-10-05 Fuji Photo Film Co., Ltd. Method, apparatus, and program for discriminating faces
CN101964874A (en) * 2009-07-23 2011-02-02 卡西欧计算机株式会社 Image processing apparatus and image processing method
CN103065290A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Device and method for correcting skin color in photo
CN103985098A (en) * 2014-05-27 2014-08-13 广州商景网络科技有限公司 Method and system for removing highlight of certificate image
CN104796683A (en) * 2014-01-22 2015-07-22 中兴通讯股份有限公司 Image color calibration method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060222217A1 (en) * 2005-03-31 2006-10-05 Fuji Photo Film Co., Ltd. Method, apparatus, and program for discriminating faces
CN101964874A (en) * 2009-07-23 2011-02-02 卡西欧计算机株式会社 Image processing apparatus and image processing method
CN103065290A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Device and method for correcting skin color in photo
CN104796683A (en) * 2014-01-22 2015-07-22 中兴通讯股份有限公司 Image color calibration method and system
CN103985098A (en) * 2014-05-27 2014-08-13 广州商景网络科技有限公司 Method and system for removing highlight of certificate image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周宝根: "《Photoshop的应用与图像色彩处理》", 31 July 1998 *
赵明华等: ""基于肤色分割、数学形态学和几何方法的人脸检测"", 《四川大学学报(自然科学版)》 *

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066400A (en) * 2016-12-13 2017-08-18 深圳众思科技有限公司 Signal processing method, device and the electronic equipment of electronic equipment
CN107248183A (en) * 2017-05-09 2017-10-13 深圳市金立通信设备有限公司 A kind of method and terminal for adjusting edit object color
CN109300164A (en) * 2017-07-25 2019-02-01 丽宝大数据股份有限公司 Skin basement hue judgment method and electronic device
CN107609554A (en) * 2017-09-12 2018-01-19 海信(山东)冰箱有限公司 The method and device of food materials in a kind of identification refrigerator
WO2019052449A1 (en) * 2017-09-14 2019-03-21 广州市百果园信息技术有限公司 Skin color recognition method and apparatus, and storage medium
US11348365B2 (en) 2017-09-14 2022-05-31 Bigo Technology Pte. Ltd. Skin color identification method, skin color identification apparatus and storage medium
CN107730446A (en) * 2017-10-31 2018-02-23 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN107862657A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN107862274A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Beautifying method, device, electronic device and computer-readable storage medium
CN107730446B (en) * 2017-10-31 2022-02-18 Oppo广东移动通信有限公司 Image processing method, image processing device, computer equipment and computer readable storage medium
CN108960201A (en) * 2018-08-01 2018-12-07 西南石油大学 A kind of expression recognition method extracted based on face key point and sparse expression is classified
CN111062876B (en) * 2018-10-17 2023-08-08 北京地平线机器人技术研发有限公司 Method and device for correcting model training and image correction and electronic equipment
CN111062876A (en) * 2018-10-17 2020-04-24 北京地平线机器人技术研发有限公司 Method and device for correcting model training and image correction and electronic equipment
CN109727216B (en) * 2018-12-28 2023-06-06 Oppo广东移动通信有限公司 Image processing method, device, terminal equipment and storage medium
CN109727216A (en) * 2018-12-28 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN110012277A (en) * 2019-04-09 2019-07-12 成都品果科技有限公司 A kind of auto white balance method and device for portrait image
CN110060205A (en) * 2019-05-08 2019-07-26 北京迈格威科技有限公司 Image processing method and device, storage medium and electronic equipment
CN110599554A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Method and device for identifying face skin color, storage medium and electronic device
CN112581380A (en) * 2019-09-30 2021-03-30 北京金山云网络技术有限公司 Image color enhancement method and device and server
CN111967550A (en) * 2020-07-30 2020-11-20 内蒙古智诚物联股份有限公司 Non-contact temperature detector based on artificial intelligence and detection method thereof
CN111967550B (en) * 2020-07-30 2022-08-30 内蒙古智诚物联股份有限公司 Non-contact temperature detector based on artificial intelligence and detection method thereof
CN114331892A (en) * 2021-12-29 2022-04-12 上海肤焕科技有限公司 Skin color adjusting method and device
CN114904271A (en) * 2022-05-13 2022-08-16 网易(杭州)网络有限公司 Color gradient map generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106101547A (en) The processing method of a kind of view data, device and mobile terminal
CN106096588A (en) The processing method of a kind of view data, device and mobile terminal
CN109547701B (en) Image capturing method, device, storage medium and electronic device
CN109639982B (en) An image noise reduction method, device, storage medium and terminal
CN106210517A (en) The processing method of a kind of view data, device and mobile terminal
CN108307125B (en) Image acquisition method, device and storage medium
CN106060402A (en) Image data processing method and device, and mobile terminal
CN109741281B (en) Image processing method, image processing device, storage medium and terminal
CN107038681B (en) Image blurring method and device, computer readable storage medium and computer device
CN107820020A (en) Shooting parameter adjusting method and device, storage medium and mobile terminal
WO2019052329A1 (en) Facial recognition method and related product
WO2018228168A1 (en) Image processing method and related product
CN112950525B (en) Image detection method and device and electronic equipment
CN110136183A (en) A kind of method and relevant device of image procossing
CN107679482A (en) Solve lock control method and Related product
CN108270966A (en) A kind of method, mobile terminal and storage medium for adjusting light filling brightness
CN109685746A (en) Brightness of image method of adjustment, device, storage medium and terminal
CN105227858A (en) A kind of image processing method and mobile terminal
CN107862265A (en) Image processing method and related product
CN108566516A (en) Image processing method, device, storage medium and mobile terminal
CN105809647A (en) Automatic defogging photographing method, device and equipment
CN108200352B (en) Method, terminal and storage medium for adjusting picture brightness
CN108200347A (en) A kind of image processing method, terminal and computer readable storage medium
CN108551552B (en) Image processing method, device, storage medium and mobile terminal
CN109729281A (en) Image processing method, device, storage medium and terminal

Legal Events

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

Application publication date: 20161109