CPC H04N 23/632 (2023.01) [G06T 5/005 (2013.01); G06T 7/194 (2017.01); H04N 23/611 (2023.01); H04N 23/633 (2023.01); H04N 23/64 (2023.01); H04N 23/6811 (2023.01); H04N 23/6812 (2023.01); G06T 2207/20021 (2013.01); G06V 10/761 (2022.01); G06V 10/7715 (2022.01); H04N 23/667 (2023.01)] | 19 Claims |
1. A method, comprising:
enabling, by a terminal, a camera application;
displaying, by the terminal, a photographing preview interface of the camera application;
obtaining, by the terminal, a first preview picture and a first reference frame picture that are captured by a camera, wherein both the first preview picture and the first reference frame picture comprise image content of a first object and image content of a second object, and in the first preview picture, the image content of the first object shields a partial image of the second object;
determining, by the terminal, the first object in the first preview picture as a to-be-removed object from the first preview picture;
determining, by the terminal, to-be-filled content in the first preview picture based on the first reference frame picture, the to-be-filled content being image content that is of the second object and that is shielded by the first object in the first preview picture;
generating, by the terminal, a first restored picture of the first preview picture based on the to-be-filled content and the first preview picture, wherein in the first restored picture, the image content of the first object is replaced with content of the partial image of the second object that is shielded by the image content of the first object;
displaying, by the terminal, the first restored picture in the photographing preview interface; and
displaying, by the terminal, a removal disabling control in the photographing preview interface, the removal disabling control being configured for a user to control to cancel replacing the image content of the first object.
|