Method and apparatus for switching panoramic scene
AssigneeBaidu Online Network Technology (Beijing) Co., Ltd.
InventorDa Qu
Life of this patent
Estimating the term…
Abstract
A method for switching a panoramic scene includes: obtaining a first panoramic model of a current scene; obtaining panoramic model information of a target scene, and generating a second panoramic model of the target scene based on the panoramic model information; and obtaining a scene switching direction and a preset distance, and controlling a switch from the first panoramic model to the second panoramic model based on the scene switching direction and the preset distance, for displaying the target scene.
Claims12
A method for switching a panoramic scene, comprising:
- obtaining a first panoramic model of a current scene;
- obtaining panoramic model information of a target scene, and generating a second panoramic model of the target scene based on the panoramic model information;
- and
- obtaining a scene switching direction and a preset distance, and controlling a switch from the first panoramic model to the second panoramic model based on the scene switching direction and the preset distance, for displaying the target scene,
- wherein controlling the switch from the first panoramic model to the second panoramic model based on the scene switching direction and the preset distance comprises:
- obtaining a first viewpoint of the first panoramic model and a second viewpoint of the second panoramic model;
- controlling the first viewpoint to move the preset distance along a direction opposite to the scene switching direction, and controlling the first panoramic model to be converted from a visible state to an invisible state;
- and
- controlling the second viewpoint to move the preset distance along the scene switching direction, and controlling the second panoramic model to be converted from the invisible state to the visible state.
An apparatus for switching a panoramic scene, comprising:
- at least one processor;
- and
- a memory, communicatively coupled to the at least one processor,
- wherein the memory is configured to store instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is configured to:
- obtain a first panoramic model of a current scene;
- obtain panoramic model information of a target scene, and generate a second panoramic model of the target scene based on the panoramic model information;
- and
- obtain a scene switching direction and a preset distance, and control a switch from the first panoramic model to the second panoramic model based on the scene switching direction and the preset distance, for displaying the target scene,
- wherein the at least one processor is further configured to:
- obtain a first viewpoint of the first panoramic model and a second viewpoint of the second panoramic model;
- control the first viewpoint to move the preset distance along a direction opposite to the scene switching direction, and control the first panoramic model to be converted from a visible state to an invisible state;
- and
- control the second viewpoint to move the preset distance along the scene switching direction, and control the second panoramic model to be converted from the invisible state to the visible state.
A non-transitory computer readable storage medium having computer instructions stored thereon, wherein the computer instructions are configured to cause a computer to execute a method for switching a panoramic scene, the method comprising:
- obtaining a first panoramic model of a current scene;
- obtaining panoramic model information of a target scene, and generating a second panoramic model of the target scene based on the panoramic model information;
- and
- obtaining a scene switching direction and a preset distance, and controlling a switch from the first panoramic model to the second panoramic model based on the scene switching direction and the preset distance, for displaying the target scene,
- wherein controlling the switch from the first panoramic model to the second panoramic model based on the scene switching direction and the preset distance comprises:
- obtaining a first viewpoint of the first panoramic model and a second viewpoint of the second panoramic model;
- controlling the first viewpoint to move the preset distance along a direction opposite to the scene switching direction, and controlling the first panoramic model to be converted from a visible state to an invisible state;
- and
- controlling the second viewpoint to move the preset distance along the scene switching direction, and controlling the second panoramic model to be converted from the invisible state to the visible state.
Dependencies are inferred from the claim text.