An image processing method and a mobile terminal
An image processing and mobile terminal technology, applied in the field of communication, can solve problems such as background distortion, difficulty in brightness, inability to adjust brightness or contrast, etc., and achieve the effect of brightness adjustment and improvement
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] refer to figure 1 , shows a flow chart of steps of an image processing method according to Embodiment 1 of the present invention.
[0021] The image processing method of the embodiment of the present invention comprises the following steps:
[0022] Step 101: Identify the face area of the target image, and calculate the brightness difference value of the face area. The brightness difference value is the difference between the brightness of the first part of the face area and the brightness of the second part. The brightest part, and the second part is the darkest part of the face area.
[0023] The target image can be the image stored on the mobile terminal, or the original image captured by the camera of the mobile terminal (such as the front camera), or the brightness or contrast of the original image can be basically adjusted by the ISP (Image signal processor) image obtained afterwards.
[0024] For example, a skin color segmentation algorithm and an outline al...
Embodiment 2
[0030] refer to figure 2 , shows a flow chart of steps of an image processing method according to Embodiment 2 of the present invention.
[0031] The image processing method in the embodiment of the present invention specifically includes the following steps:
[0032] Step 201: Determine an area in the target image whose chroma satisfies a second preset threshold and whose brightness satisfies a third preset threshold, as the target area.
[0033] Taking the application in selfie beautification as an example, in this step, a skin color segmentation algorithm may be used to determine the target area such as the skin color area. Among them, the main difference of the skin color lies in gray scale information (brightness information) and chroma information. By sampling skin color in a suitable color space, a chromaticity distribution function representing skin color can be established to determine the second preset threshold for distinguishing skin color from non-skin color; a...
Embodiment 3
[0057] refer to image 3 , shows a structural block diagram of a mobile terminal according to Embodiment 3 of the present invention.
[0058] The mobile terminal in the embodiment of the present invention may include: an identification calculation module 301, configured to identify the face area of the target image, and calculate the brightness difference value of the face area, where the brightness difference value is the brightness of the first part of the face area and the brightness of the second part The difference between the brightness, the first part is the brightest part in the face area, and the second part is the darkest part in the face area; the first adjustment module 302 is configured to if the brightness difference is not in the first preset threshold Within the range, adjust the brightness and contrast of the face area according to the brightness difference and the first preset threshold range.
[0059] Wherein the target image can be the image stored on th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


