Image processing method and apparatus, image device, and storage medium
AssigneeBeijing Sensetime Technology Development Co., Ltd.
InventorsTong Li, Wentao Liu, Chen Qian
Life of this patent
Estimating the term…
Abstract
An image processing method and apparatus, a device, and a storage medium are provided. The image processing method includes: obtaining key points of a reference region of an object in an image; determining the orientation of the reference region according to the key points of the reference region; and performing deformation processing on a region to be adjusted of the object based on the orientation of the reference region, where the region to be adjusted is the same as or different from the reference region.
Claims17
An image processing method, comprising:
- obtaining key points of a reference region of an object in an image;
- determining an orientation of the reference region according to the key points of the reference region;
- and
- performing deformation processing on a region to be adjusted of the object based on the orientation of the reference region, wherein the region to be adjusted is the same as or different from the reference region,
- wherein determining the orientation of the reference region according to the key points of the reference region comprises:
- obtaining at least three key points in the reference region, wherein the at least three key points are not on a same straight line;
- determining a target vector based on the at least three key points;
- and
- taking a direction of the target vector as the orientation of the reference region.
An image processing device, comprising:
- a processor;
- and
- a memory for storing instructions executable by the processor, wherein when the instructions are executed by the processor, the processor is configured to:
- obtain key points of a reference region of an object in an image;
- determine an orientation of the reference region according to the key points of the reference region;
- and
- perform deformation processing on a region to be adjusted of the object based on the orientation of the reference region, wherein the region to be adjusted is the same as or different from the reference region,
- wherein the processor is specifically configured to:
- obtain at least three key points in the reference region, wherein the at least three key points are not on a same straight line;
- determine a target vector based on the at least three key points;
- and
- take a direction of the target vector as the orientation of the reference region.
A non-transitory computer storage medium, wherein the non-transitory computer storage medium stores computer executable instructions, and execution of the computer executable instructions by a processor causes the processor to perform:
- obtaining key points of a reference region of an object in an image;
- determining an orientation of the reference region according to the key points of the reference region;
- and
- performing deformation processing on a region to be adjusted of the object based on the orientation of the reference region, wherein the region to be adjusted is the same as or different from the reference region,
- wherein determining the orientation of the reference region according to the key points of the reference region comprises:
- obtaining at least three key points in the reference region, wherein the at least three key points are not on a same straight line;
- determining a target vector based on the at least three key points;
- and
- taking a direction of the target vector as the orientation of the reference region.
Dependencies are inferred from the claim text.