Image processing method and apparatus, electronic device, and storage medium
AssigneeBeijing Bytedance Network Technology Co., Ltd.
InventorsJiali Pan, Yi Guo, Xiaofeng Li, Jinyuan Wu, Xu Chen
Life of this patent
Estimating the term…
Abstract
An image processing method and apparatus, an electronic device, and a storage medium are provided. The method comprises: obtaining a sliding trajectory inputted by a user on a display assembly; generating, according to the sliding trajectory, a first virtual model corresponding to the sliding trajectory; and displaying the first virtual model at a first position in a target image.
Claims18
A method for processing an image, comprising:
- acquiring a sliding trajectory inputted by a user on a display component;
- generating, based on the sliding trajectory, a first virtual model corresponding to the sliding trajectory;
- and
- displaying the first virtual model in a target image at a first position,
- wherein the generating, based on the sliding trajectory, the first virtual model corresponding to the sliding trajectory comprises:
- determining, based on the sliding trajectory, a plurality of target points associated with the sliding trajectory;
- acquiring, for each of the plurality of target points, a preset sub-model corresponding to the target point;
- for each of the plurality of target points, converting the preset sub-model corresponding to the target point into a target sub-model based on geometric information of the target point;
- and
- generating the first virtual model corresponding to the sliding trajectory based on the target sub-models corresponding to the respective target points.
An electronic device, comprising:
- one or more processors;
- a storage device configured to store one or more programs, wherein
- the one or more programs, when being executed by the one or more processors, cause the one or more processors to perform:
- acquiring a sliding trajectory inputted by a user on a display component;
- generating, based on the sliding trajectory, a first virtual model corresponding to the sliding trajectory;
- and
- displaying the first virtual model in a target image at a first position,
- wherein the one or more processors are further configured to perform:
- determining, based on the sliding trajectory, a plurality of target points associated with the sliding trajectory;
- acquiring, for each of the plurality of target points, a preset sub-model corresponding to the target point;
- for each of the plurality of target points, converting the preset sub-model corresponding to the target point into a target sub-model based on geometric information of the target point;
- and
- generating the first virtual model corresponding to the sliding trajectory based on the target sub-models corresponding to the respective target points.
A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements:
- acquiring a sliding trajectory inputted by a user on a display component;
- generating, based on the sliding trajectory, a first virtual model corresponding to the sliding trajectory;
- and
- displaying the first virtual model in a target image at a first position,
- wherein the generating, based on the sliding trajectory, the first virtual model corresponding to the sliding trajectory comprises:
- determining, based on the sliding trajectory, a plurality of target points associated with the sliding trajectory;
- acquiring, for each of the plurality of target points, a preset sub-model corresponding to the target point;
- for each of the plurality of target points, converting the preset sub-model corresponding to the target point into a target sub-model based on geometric information of the target point;
- and
- generating the first virtual model corresponding to the sliding trajectory based on the target sub-models corresponding to the respective target points.
Dependencies are inferred from the claim text.