Image processing method and device for adjusting saturation based on depth of field information
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorJianbo Sun
Life of this patent
Estimating the term…
Abstract
A method and a device for processing an image saturation based on depth of field, an electronic device and a computer readable storage medium are provided, for processing scene data collected by an imaging device. The scene data includes a first scene image. The method includes the following. The scene data is processed to determine whether a portrait exists in a scene. In response to determining that the portrait exists, the scene data is processed to identify a portrait region. The first scene image is processed to reduce a saturation of the portrait region.
Claims18
A method for processing an image saturation based on depth of field, configured to process scene data collected by an imaging device, the scene data comprising a first scene image, and the method comprising:
- processing the scene data to determine whether a portrait exists in a scene;
- in response to determining that the portrait exists, determining a face region;
- determining an estimated portrait region based on a gesture of the portrait;
- determining a depth range of a portrait region based on depth information of the face region;
- determining a calculated portrait region adjacent to the face region and having a depth within the depth range based on the depth range of the portrait region;
- determining the calculated portrait region matching the estimated portrait region as the portrait region;
- and
- processing the first scene image to reduce a saturation of the portrait region.
An electronic device, comprising:
- a processor, and
- a memory, having an executable program code stored thereon,
- wherein the processor is configured, by reading the executable program code stored in the memory, to:
- process scene data to determine whether a portrait exists in a scene, the scene data comprising a first scene image;
- in response to determining that the portrait exists, determine a face region;
- determine an estimated portrait region based on a gesture of the portrait;
- determine a depth range of a portrait region based on depth information of the face region;
- determine a calculated portrait region adjacent to the face region and having a depth within the depth range based on the depth range of the portrait region;
- determine the calculated portrait region matching the estimated portrait region as the portrait region;
- and
- process the first scene image to reduce a saturation of the portrait region.
A non-transitory computer readable storage medium, having an instruction stored thereon, wherein when the instruction is executed by a processor of an electronic device, the electronic device is configured to execute a method for processing an image saturation based on depth of field, the method comprising:
- processing scene data to determine whether a portrait exists in a scene, the scene data comprising a first scene image;
- in response to determining that the portrait exists, determining a face region;
- determining an estimated portrait region based on a gesture of the portrait;
- determining a depth range of a portrait region based on depth information of the face region;
- determining a calculated portrait region adjacent to the face region and having a depth within the depth range based on the depth range of the portrait region;
- determining the calculated portrait region matching the estimated portrait region as the portrait region;
- and
- processing the first scene image to reduce a saturation of the portrait region.
Dependencies are inferred from the claim text.