Image processing method, device and medium
AssigneeXiaomi Inc.
InventorsBaichao Wang, Qiuping Qin, Wendi Hou
Life of this patent
Estimating the term…
Abstract
An image processing method, device and medium are provided. The method includes: acquiring candidate areas from an image to be processed, each of the candidate areas including a reference target; extracting a predetermined characteristic of each of the candidate areas; calculating an evaluation value of each of the candidate areas according to the predetermined characteristic; and acquiring a snapshot of the image to be processed according to the evaluation values.
Claims21
An image processing method, comprising:
- acquiring candidate areas from an image to be processed, each of the candidate areas comprising a reference target;
- extracting a predetermined characteristic of each of the candidate areas, wherein the predetermined characteristic comprises at least one of a color characteristic, a grain characteristic, a shape characteristic and a space relationship characteristic;
- calculating an evaluation value of each of the candidate areas according to the predetermined characteristic;
- and
- acquiring a snapshot of the image to be processed according to the evaluation values,
- wherein acquiring candidate areas from an image to be processed comprises:
- acquiring the reference target of the image to be processed;
- and
- extracting the candidate area comprising the reference target from the image to be processed according to a predetermined condition, wherein the predetermined condition comprises:
- if the candidate area comprises a portion of a remaining target other than the reference target, the candidate area is adjusted to comprise entirety of the remaining target;
- and
- wherein calculating an evaluatiojn value of each of the candidate areas according to the predetermined characteristic comprises:
- calculating the evaluation value of the candidate area according to a predetermined image evaluating model and the predetermined characteristic extracted from the candidate area, wherein the predetermined image evaluating model is a model between predetermined characteristics and evaluation values and is acquired by training according to predetermined characteristics extracted from sample images and evaluation values of the sample images.
An image processing device, comprising:
- a processor;
- and
- a memory configured to store instructions executable by the processor;
- wherein the processor is configured to:
- acquire candidate areas from an image to be processed, each of the candidate areas comprising a reference target;
- extract a predetermined characteristic of each of the candidate areas, wherein the predetermined characteristic comprises at least one of a color characteristic, a grain characteristic, a shape characteristic and a space relationship characteristic;
- calculate an evaluation value of each of the candidate areas according to the predetermined characteristic;
- and
- acquire a snapshot of the image to be processed according to the evaluation values,
- wherein the processor configured to acquire candidate areas from an image to be processed is further configured to:
- acquire the reference target of the image to be processed;
- and
- extract the candidate area comprising the reference target from the image to be processed according to a predetermined condition, wherein the predetermined condition comprises:
- if the candidate area comprises a portion of a remaining target other than the reference target, the candidate area is adjusted to comprise entirety of the remaining target;
- and
- wherein calculating an evaluation value of each of the candidate areas according to the predetermined characteristic comprises:
- calculating the evaluation value of the candidate area according to a predetermined image evaluating model and the predetermined characteristic extracted from the candidate area, wherein the predetermined image evaluating model is a model between predetermined characteristics and evaluation values and is acquired by training according to predetermined characteristics extracted from sample images and evaluation values of the sample images.
A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a terminal device, cause the terminal device to perform an image processing method, the method comprising:
- acquiring candidate areas from an image to be processed, each of the candidate areas comprising a reference target;
- extracting a predetermined characteristic of each of the candidate areas,
- wherein the predetermined characteristic comprises at least one of a color characteristic, a grain characteristic, a shape characteristic and a space relationship characteristic;
- calculating an evaluation value of each of the candidate area according to the predetermined characteristic;
- and
- acquiring a snapshot of the image to be processed according to the evaluation values,
- wherein acquiring candidate areas from an image to be processed comprises:
- acquiring the reference target of the image to be processed;
- and
- extracting the candidate area comprising the reference target from the image to be processed according to a predetermined condition, wherein the predetermined condition comprises:
- if the candidate area comprises a portion of a remaining target other than the reference target, the candidate area is adjusted to comprise entirety of the remaining target;
- and
- wherein calculating an evaluation value of each of the candidate areas according to the predetermined characteristic comprises:
- calculating the evaluation value of the candidate area according to a predetermined image evaluating model and the predetermined characteristic extracted from the candidate area, wherein the predetermined image evaluating model is a model between predetermined characteristics and evaluation values and is acquired by training according to predetermined characteristics extracted from sample images and evaluation values of the sample images.
Dependencies are inferred from the claim text.