IP Library › Granted Patent US 11,120,617
Granted Patent B2
US 11,120,617 · App. 17/031,228 · Granted Sep 14, 2021

Method and apparatus for switching panoramic scene

Inventor: Da Qu (Beijing, CN)
Assignee: Baidu Online Network Technology (Beijing) Co., Ltd.
G06T15/20G06T3/0062
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,120,617
App. No.
17/031,228
Granted
Sep 14, 2021
Kind
B2
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.

Claims (50)

1. 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.

2. The method of claim 1 , wherein controlling the first panoramic model to be converted from the visible state to the invisible state comprises:

querying a first mapping relationship between a moving distance and a transparency of the first viewpoint, determining a first transparency corresponding to a current moving distance of the first viewpoint based on the first mapping relationship, and adjusting a transparency of the first panoramic model to the first transparency, and

wherein controlling the second panoramic model to be converted from the invisible state to the visible state comprises:

querying a second mapping relationship between a moving distance and a transparency of the second viewpoint, determining a second transparency corresponding to a current moving distance of the second viewpoint based on the second mapping relationship, and adjusting a transparency of the second panoramic model to the second transparency.

3. The method of claim 1 , wherein after generating the second panoramic model of the target scene based on the panoramic model information, the method further comprises:

adjusting a transparency of the second panoramic model and controlling the second panoramic model to be in the invisible state.

4. The method of claim 1 , wherein obtaining the scene switching direction comprises:

obtaining a line-of-sight direction corresponding to the first panoramic model, and taking the line-of-sight direction as the scene switching direction.

5. 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.

6. The apparatus of claim 5 , wherein the at least one processor is further configured to:

query a first mapping relationship between a moving distance and a transparency of the first viewpoint, determine a first transparency corresponding to a current moving distance of the first viewpoint based on the first mapping relationship, and adjust a transparency of the first panoramic model to the first transparency; and

query a second mapping relationship between a moving distance and a transparency of the second viewpoint, determine a second transparency corresponding to a current moving distance of the second viewpoint based on the second mapping relationship, and adjust a transparency of the second panoramic model to the second transparency.

7. The apparatus of claim 5 , wherein after generating the second panoramic model of the target scene based on the panoramic model information, the at least one processor is further configured to:

adjust a transparency of the second panoramic model and control the second panoramic model to be in the invisible state.

8. The apparatus of claim 5 , wherein the at least one processor is further configured to:

obtain a line-of-sight direction corresponding to the first panoramic model, and take the line-of-sight direction as the scene switching direction.

9. 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.

10. The non-transitory computer readable storage medium of claim 9 , wherein controlling the first panoramic model to be converted from the visible state to the invisible state comprises:

querying a first mapping relationship between a moving distance and a transparency of the first viewpoint, determining a first transparency corresponding to a current moving distance of the first viewpoint based on the first mapping relationship, and adjusting a transparency of the first panoramic model to the first transparency, and

wherein controlling the second panoramic model to be converted from the invisible state to the visible state comprises:

querying a second mapping relationship between a moving distance and a transparency of the second viewpoint, determining a second transparency corresponding to a current moving distance of the second viewpoint based on the second mapping relationship, and adjusting a transparency of the second panoramic model to the second transparency.

11. The non-transitory computer readable storage medium of claim 9 , wherein after generating the second panoramic model of the target scene based on the panoramic model information, the method further comprises:

adjusting a transparency of the second panoramic model and controlling the second panoramic model to be in the invisible state.

12. The non-transitory computer readable storage medium of claim 9 , wherein obtaining the scene switching direction comprises:

obtaining a line-of-sight direction corresponding to the first panoramic model, and taking the line-of-sight direction as the scene switching direction.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 24, 2020
From: QU, DA
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 053875/0309 →
Priority Claims (1)
CN 202010022299.6 · Jan 9, 2020 · national
Continuity (1)
Related Publication 20210217224A1 · Jul 15, 2021