The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.
The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.
Patent No.:
Date of Patent:
Dec. 27, 2022
Filed:
Feb. 25, 2021
Tencent Technology (Shenzhen) Company Limited, Shenzhen, CN;
Tencent Technology (Shenzhen) Company Limited, Guangdong, CN;
Abstract
The present disclosure provides an image processing method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: obtaining a to-be-processed video comprising m frames of images, m being a positive integer greater than or equal to 2; placing a three-dimensional model on a target plane of a first frame of image of the to-be-processed video, a plurality of feature points of a model surface of the three-dimensional model falling on the target plane; determining three-dimensional coordinates of the plurality of feature points of the model surface in a world coordinate system and pixel coordinates of the plurality of feature points of the model surface on the first frame of image; determining, according to the three-dimensional coordinates of the plurality of feature points of the model surface in the world coordinate system and the pixel coordinates of the plurality of feature points of the model surface on the first frame of image, a pose of a camera coordinate system of the first frame of image relative to the world coordinate system; determining, according to the target plane, the three-dimensional coordinates of the plurality of feature points of the model surface in the world coordinate system, and the pixel coordinates of the plurality of feature points of the model surface on the first frame of image, poses of camera coordinate systems of a second frame of image to an mframe of image of the to-be-processed video relative to the world coordinate system; and replacing the three-dimensional model with a target model and placing the target model on the world coordinate system to generate, according to the pose of the camera coordinate system of each frame of image of the to-be-processed video relative to the world coordinate system, a target video comprising the target model.