Image processing method, terminal and computer readable storage medium

An image processing and computer program technology, applied in the field of terminal shooting, which can solve problems such as color cast in the face area

CN108200347AInactive Publication Date: 2018-06-22NUBIA TECHNOLOGY CO LTD
9 Cites 11 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2018-06-22
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses an image processing method, a terminal and a computer readable storage medium. The method comprises the steps of: acquiring first image data which is shot byutilizing a camera and comprises a face image; carrying out automatic white balance processing on the first image data to obtain second image data; determining a face region of the second image data,and converting a RGB component of each pixel point of the face region into a YUV component; and for the second image data, according to a preset face region chroma regulation method, carrying out regulation on a chroma component in the YUV component of each pixel point of the face region. Therefore, the corresponding chroma regulation method can be adopted separately for the face region so as to avoid color cast of the face region of the image data.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to a shooting technology of a terminal, in particular to an image processing method, a terminal and a computer-readable storage medium. Background technique

[0002] At present, terminals with shooting functions such as mobile phones are widely used; when using the camera of the terminal to shoot, the image data obtained by shooting can be processed by automatic white balance (AWB) first, and then the image after automatic white balance processing Perform color correction (for example, adjust hue and saturation); however, for image data containing face images, a unified color correction method is usually used for the face area and non-face area of ​​the image data. In specific implementation, The image captured by the camera is compared with the standard image to calculate a correction matrix, which is the color correction matrix of the image sensor. During image processing, the matrix can be used to correct all the image...

Examples

no. 1 example

[0079] The first embodiment of the present invention proposes an image processing method, which can be applied to a terminal with a shooting function; for example, the terminal can use a front camera or a rear camera to capture the current scene.

[0080] image 3 It is a block diagram of the electrical structure of the camera of the terminal according to the embodiment of the present invention, such as image 3 As shown, the photographing lens 1211 is composed of a plurality of optical lenses for forming an object image, and is a single focus lens or a zoom lens. The photographic lens 1211 can move in the optical axis direction under the control of the lens driver 1221. The lens driver 1221 controls the focus position of the photographic lens 1211 according to the control signal from the lens drive control circuit 1222. In the case of a zoom lens, it can also control focus distance. The lens drive control circuit 1222 performs drive control of the lens driver 1221 in accord...

no. 2 example

[0124] In order to better reflect the purpose of the present invention, further illustrations are made on the basis of the first embodiment of the present invention.

[0125] In the second embodiment of the present invention, the flow of the image processing method may include:

[0126] Step A1: pre-setting the chromaticity adjustment method of the face area corresponding to various ambient light sources;

[0127] Here, the ambient light source here may be a standard light source, and the standard light source includes but not limited to: D75 light source, D65 light source, D50 light source, TL84 light source, A light source, H light source and so on.

[0128] Here, after the image data is captured by the camera, when the chromaticity adjustment is performed on the image data, it is necessary to select the chromaticity adjustment method according to the ambient light source; therefore, in the embodiment of the present invention, various ambient light sources can be preset. Th...

no. 3 example

[0137] In order to better reflect the object of the present invention, further illustrations are made on the basis of the first embodiment and the second embodiment of the present invention.

[0138] In the third embodiment of the present invention, the flow of the image processing method may include:

[0139] Step B1: The implementation of this step is the same as the implementation of step 401, and will not be repeated here.

[0140] Step B2: performing automatic white balance processing on the first image data to obtain second image data; determining the non-face area of ​​the second image data.

[0141] Here, the implementation manner of performing automatic white balance processing on the first image data has already been described in step 402, and will not be repeated here.

[0142] In practical applications, the face area in the second image data can be obtained according to the face detection algorithm described above, and then the non-face area of ​​the second image ...