| CPC G06V 10/25 (2022.01) [G06T 15/20 (2013.01); G06V 10/248 (2022.01); G06V 10/46 (2022.01)] | 18 Claims |

|
1. A method, performed by an electronic device, of processing an image, the method comprising:
obtaining a first image of a three-dimensional (3D) object comprising at least one surface by using a first camera, the at least one surface having a non-flat shape;
identifying a region of interest (ROI) within the first image of the 3D object, which corresponds to the at least one surface, by applying the first image of the 3D object to a first artificial intelligence (AI) model;
identifying first keypoints representing the ROI;
obtaining data about a 3D shape type of the 3D object by applying the first image of the 3D object to a second AI model;
obtaining a virtual object corresponding to the 3D shape type of the 3D object and obtaining a set of initial values of a 3D parameter of the virtual object;
adjusting the set of initial values of the 3D parameter of the virtual object, based on the first keypoints;
obtaining the adjusted set of initial values of the 3D parameter of the virtual object as a set of values of a 3D parameter related to at least one of the 3D object, the at least one surface, or the first camera;
estimating the non-flat shape of the at least one surface, based on the set of values of the 3D parameter; and
obtaining a flat surface image in which the non-flat shape of the at least one surface is flattened, by performing a perspective transformation on the at least one surface.
|