Image cropping method
AssigneeBeijing Sankuai Online Technology Co., Ltd
InventorLiping KANG
Life of this patent
Estimating the term…
Abstract
Disclosed is an image cropping method, which relate to the technical field of computers. An implementation of the method includes: generating a cropping frame according to a size of a to-be-cropped image and a target size; selecting image blocks from the to-be-cropped image by using the cropping frame; and evaluating the selected image blocks by using a composition quality evaluation model, and taking the image block with the highest evaluation score as a target image obtained by cropping.
Claims20
An image cropping method, comprising:
- generating a cropping frame according to a size of a to-be-cropped image and a target size;
- selecting image blocks from the to-be-cropped image by using the cropping frame;
- and
- evaluating the selected image blocks by using a composition quality evaluation model, and taking the image block with the highest evaluation score as a target image obtained by cropping.
An image cropping electronic device, comprising:
- one or more processors;
- and
- a storage apparatus, configured to store one or more programs,
- the one or more programs, when executed by the one or more processors, causing the one or more processors to perform:
- generating a cropping frame according to a size of a to-be-cropped image and a target size;
- selecting image blocks from the to-be-cropped image by using the cropping frame;
- and
- evaluating the selected image blocks by using a composition quality evaluation model, and taking the image block with the highest evaluation score as a target image obtained by cropping.
A computer-readable medium, storing a computer program, wherein the program, when executed by a processor, performs the following steps:
- generating a cropping frame according to a size of a to-be-cropped image and a target size;
- selecting image blocks from the to-be-cropped image by using the cropping frame;
- and
- evaluating the selected image blocks by using a composition quality evaluation model, and taking the image block with the highest evaluation score as a target image obtained by cropping.
Dependencies are inferred from the claim text.