Method and device for processing image, and storage medium
AssigneeBeijing Dajia Internet Information Technology Co., Ltd.
InventorLiqian Ma
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure relates to a method and device for processing an image, and a nonvolatile storage medium. The method includes: acquiring a first image and a first virtual object having a corresponding relationship with a preset standard model, the first image includes a target object; determining control information based on the target object and the standard model; obtaining a second virtual object matched with the target object by processing the first virtual object based on the control information; and generating a second image; the second image includes the target object fitted with the second virtual object.
Claims9
A method for processing image, comprising:
- acquiring a first image and a first virtual object, wherein the first image comprises a target object, the first virtual object has a corresponding relationship with a preset standard model, and the preset standard model is obtained by a three-dimensional reconstruction algorithm and a sample image;
- determining a target model by reconstructing the target object in three-dimension based on the three-dimensional reconstruction algorithm, wherein the target model corresponds to the target object;
- obtaining first preset vertexes on a first mesh model corresponding to the target model by transforming third preset vertexes on a third mesh model corresponding to the standard model through a first mapping between the target model and the standard model;
- obtaining control information based on a transformation matrix of the first preset vertexes in local coordinate systems relative to a world coordinate system;
- obtaining a second virtual object, by processing the first virtual object based on the control information, wherein the second virtual object is matched with the target object, and
- generating a second image based on the second virtual object, wherein the second image comprise the target object fitted with the second virtual object.
A device for processing image, comprising:
- a processor;
- and
- a memory for storing computer executable instructions;
- wherein the processor is configured to execute the computer executable instructions in the memory to perform following:
- acquiring a first image and a first virtual object, wherein the first virtual object has the first image comprises a target object, the first virtual object has a corresponding relationship with a preset standard model, and the preset standard model is obtained by a three-dimensional reconstruction algorithm and a sample image;
- determining a target model by reconstructing the target object in three-dimension based on the three-dimensional reconstruction algorithm, wherein the target model corresponds to the target object;
- obtaining first preset vertexes on a first mesh model corresponding to the target model by transforming third preset vertexes on a third mesh model corresponding to the standard model through a first mapping between the target model and the standard model;
- obtaining control information based on a transformation matrix of the first preset vertexes in local coordinate systems relative to a world coordinate system;
- obtaining a second virtual object, by processing the first virtual object based on the control information;
- wherein the second virtual object is matched with the target object, and
- generating a second image based on the second virtual object, wherein the second image comprise the target object fitted with the second virtual object.
A nonvolatile storage medium, configured to store computer executable instructions, when the computer executable instructions are executed by a processor of an electronic apparatus, following is implemented:
- acquiring a first image and a first virtual object, wherein the first image comprises a target object, the first virtual object has a corresponding relationship with a preset standard model, and the preset standard model is obtained by a three-dimensional reconstruction algorithm and a sample image;
- determining a target model by reconstructing the target object in three-dimension based on the three-dimensional reconstruction algorithm, wherein the target model corresponds to the target object;
- obtaining first preset vertexes on a first mesh model corresponding to the target model by transforming third preset vertexes on a third mesh model corresponding to the standard model through a first mapping between the target model and the standard model;
- obtaining control information based on a transformation matrix of the first preset vertexes in local coordinate systems relative to a world coordinate system;
- obtaining a second virtual object, by processing the first virtual object based on the control information, wherein the second virtual object is matched with the target object, and
- generating a second image based on the second virtual object, wherein the second image comprise the target object fitted with the second virtual object.
Dependencies are inferred from the claim text.