Image Processing Method and Apparatus, and Device
AssigneeHuawei Technologies Co., Ltd.
InventorsYu Li, Feilong Ma, Tizheng Wang, Xiujie Huang
Life of this patent
Estimating the term…
Abstract
An image processing method includes determining a target area and a background area in an image by performing mask segmentation on the image. Different color processing modes are applied to the target area and the background area, so that luminance of the target area is greater than luminance of the background area, or chrominance of the target area is greater than chrominance of the background area, and a main object corresponding to the target area is more prominently highlighted.
Claims20
An image processing method, implemented by a terminal time, wherein the image processing method comprises:
- capturing an image;
- identifying a main object area or a background area in the image based on a category of an object in the image and using a neural network, wherein the background area is an area of the image other than the main object area;
- when the terminal identifies only the background in the image, retaining a color of the main object area in the image;
- and performing the black and white processing or blurring processing on the background area in the image;
- when the terminal identifies only the background, performing the black and white processing or blurring processing on the background area;
- and
- generating a target image or a target video based on the image.
An image processing apparatus, comprising
- a processor;
- and
- a memory coupled to the processor and configured to store instructions that, when executed by the processor, cause the image processing apparatus to be configured to:
- capture an image;
- identify a main object area or a background area in the image based on a category of an object in the image using a neural network, wherein the background area is an area of the image other than the main object area;
- and
- when the processor identifies a main subject and a background in the image,
- retain a color of the main object area in the image;
- and
- perform black and white processing or blurring processing on the background area in the image;
- when the processor identifies only the background, perform the black and white processing or blurring processing on the background area;
- and
- generate a target image or a target video based on the image after processing.
A terminal device, wherein the terminal device comprises:
- a camera configured to capture an image;
- a processor coupled to the camera;
- and
- a memory coupled to the processor and configured to store instructions that, when executed by the processor, cause the terminal device to be configured to:
- capture an image;
- identify a main object area or a background area in the image based on a category of an object in the image using a neural network, wherein the background area is an area of the image other than the main object area;
- and
- when the terminal device identifies a main subject and a background in the image,
- retain a color of the main object area in the image;
- and
- perform black and white processing or blurring processing on the background area in the image;
- when the terminal device identifies only the background, perform the black and white processing or blurring processing on the background area;
- and
- generate a target image or a target video based on the image after processing.
An image processing apparatus, comprising:
- a processor;
- and
- a memory coupled to the processor and configured to store instructions that, when executed by the processor, cause the image processing apparatus to be configured to:
- photograph a video;
- determine a main object in a video image of the video;
- and
- retain a color of a target area in the video image, wherein the target area corresponds to the main object;
- and
- perform black and white processing on a background area in the video image to obtain a target video,
- wherein the background area is an area of the video image other than the target area.
Dependencies are inferred from the claim text.