Method and apparatus for displaying an image, electronic device and computer-readable storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorsHuixia Wu, Qian Wang
Life of this patent
Estimating the term…
Abstract
A method for displaying an image is applied to an electronic device including a first camera and a second camera. The method includes: acquiring a first real-time image collected by the first camera and a second real-time image collected by the second camera, the first real-time image being different from the second real-time image; determining a target object in the first real-time image; generating a real-time virtual image corresponding to the target object; and displaying the real-time virtual image on the second real-time image.
Claims18
A method for displaying an image, applied to an electronic device comprising a first camera and a second camera, the method comprising:
- acquiring a first real-time image collected by the first camera and a second real-time image collected by the second camera, the first real-time image being different from the second real-time image;
- determining a target object in the first real-time image;
- generating a real-time virtual image corresponding to the target object;
- and
- superimposing and displaying the real-time virtual image on the second real-time image,
- wherein when the target object is a user of the electronic device, the method further comprises:
- determining a limb joint of the target object and adding an anchor point to the limb joint;
- and
- converting a two-dimensional image of the target object into a virtual three-dimensional image based on a movement of the anchor point to generate the real-time virtual image of the target object, thereby to replicate actions of the user in a real scene and display the real-time virtual image in the second real-time image corresponding to the real scene.
An electronic device, comprising:
- a first camera and a second camera;
- a processor;
- and
- a memory for storing instructions executable by the processor, wherein the processor is configured to:
- acquire a first real-time image collected by the first camera and a second real-time image collected by the second camera, the first real-time image being different from the second real-time image;
- determine a target object in the first real-time image;
- generate a real-time virtual image corresponding to the target object;
- and
- superimpose and display the real-time virtual image on the second real-time image,
- wherein when the target object is a user of the electronic device, the processor is further configured to:
- determine a limb joint of the target object and add an anchor point to the limb joint;
- and
- convert a two-dimensional image of the target object into a virtual three-dimensional image based on a movement of the anchor point to generate the real-time virtual image of the target object, thereby to replicate actions of the user in a real scene and display the real-time virtual image in the second real-time image corresponding to the real scene.
A non-transitory computer-readable storage medium having stored thereon instructions that, when executed by a processor of an electronic device comprising a first camera and a second camera, cause the electronic device to perform a method for displaying an image, the method comprising:
- acquiring a first real-time image collected by the first camera and a second real-time image collected by the second camera, the first real-time image being different from the second real-time image;
- determining a target object in the first real-time image;
- generating a real-time virtual image corresponding to the target object;
- and
- superimposing and displaying the real-time virtual image on the second real-time image,
- wherein when the target object is a user of the electronic device, the method further comprises:
- determining a limb joint of the target object and adding an anchor point to the limb joint;
- and
- converting a two-dimensional image of the target object into a virtual three-dimensional image based on a movement of the anchor point to generate the real-time virtual image of the target object, thereby to replicate actions of the user in a real scene and display the real-time virtual image in the second real-time image corresponding to the real scene.
Dependencies are inferred from the claim text.