Image processing method, terminal and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorYue Wang
Life of this patent
Estimating the term…
Abstract
An image processing method that may be applied to a selfie preview scenario. In some examples, a selfie preview image is generated when a user takes a selfie through a terminal, so as to facilitate the user to preview through the selfie preview image, for example, the terminal may be a terminal with foldable screen.
Claims18
An image processing method, performed by a terminal with foldable screen, in an unfolded state, the terminal comprises a first surface, wherein the first surface comprises a first display and an image acquisition apparatus, the image acquisition apparatus comprises an image sensor, and the method comprises:
- acquiring mirror indication information, wherein the mirror indication information is preset by a user and used to indicate to enable or disable mirror processing;
- acquiring an object image of a target object by using the image acquisition apparatus in the unfolded state of the terminal in response to receiving a selfie preview operation triggered by the user;
- obtaining a mirror image of the target object by reading the object image from the image sensor;
- generating a selfie preview image according to the mirror image, and displaying the selfie preview image on the first display;
- and
- generating a target image corresponding to the target object according to the mirror image and the mirror indication information in response to receiving an image generation operation triggered by the user.
A terminal with foldable screen, wherein in an unfolded state, the terminal comprises a first surface, wherein the first surface comprises a first display and an image acquisition apparatus, the image acquisition apparatus comprises an image sensor, and the terminal comprises:
- a memory, on which a computer program is stored;
- and
- one or more processors that are communicatively coupled to the memory, wherein the one or more processors are collectively configured to:
- acquire mirror indication information, wherein the mirror indication information is preset by a user and used to enable or disable mirror processing;
- acquire an object image of a target object by using the image acquisition apparatus in the unfolded state of the terminal in response to receiving a selfie preview operation triggered by the user;
- obtain a mirror image of the target object by reading the object image from the image sensor;
- and
- generate a selfie preview image according to the mirror image, and displaying the selfie preview image on the first display;
- generate a target image corresponding to the target object according to the mirror image and the mirror indication information in response to receiving an image generation operation triggered by the user.
A non-transitory computer-readable storage medium storing computer program instructions, the computer program instructions when executed by one or more processors cause the one or more processors to collectively execute an image processing method comprising:
- acquiring mirror indication information, wherein the mirror indication information is preset by a user and used to enable or disable mirror processing;
- acquiring an object image of a target object by using an image acquisition apparatus in an unfolded state of a terminal with foldable screen in response to receiving a selfie preview operation triggered by the user;
- wherein in the unfolded state, the terminal comprises a first surface, wherein the first surface comprises a first display and the image acquisition apparatus, the image acquisition apparatus comprises an image sensor,
- obtaining a mirror image of the target object by reading the object image from the image sensor;
- generating a selfie preview image according to the mirror image, and displaying the selfie preview image on the first display;
- and
- generating a target image corresponding to the target object according to the mirror image and the mirror indication information in response to receiving an image generation operation triggered by the user.
Dependencies are inferred from the claim text.