Panoramic image scene switching method and device, electronic equipment and storage medium

By using low-code configuration interfaces and visual animation technology, the problem of abrupt scene transitions in panoramic images has been solved, achieving low-cost, smooth scene transition effects and improving the user experience.

CN121961835APending Publication Date: 2026-05-01GUANGDONG KAITONG SOFTWARE DEV
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG KAITONG SOFTWARE DEV
Filing Date
2026-02-11
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Current panoramic image scene switching methods are abrupt and lack spatial orientation, resulting in a poor user experience. Furthermore, existing advanced solutions rely on 3D models and depth maps, which are costly and technically challenging to implement.

Method used

The relative orientation and angular relationship between scenes is determined by a low-code configuration interface. Visual animation is used to simulate the behavior of an observer turning or moving. Combined with viewpoint rotation, fade-in and fade-out and changes in field of view, smooth scene switching is achieved.

Benefits of technology

Without relying on 3D models and depth maps, it achieves smooth and directional continuity switching between panoramic image scenes, reducing configuration costs and technical barriers, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121961835A_ABST
    Figure CN121961835A_ABST
Patent Text Reader

Abstract

The invention discloses a scene switching method and device for a panoramic image, electronic equipment and a storage medium, which are used for solving the technical problems of stiff scene switching and high implementation cost in the current related technology. The method is applied to a scene switching system, and the scene switching system comprises a front-end graphical interface. The method comprises the following steps: in response to a scene switching operation initiated by a user through a graphical interface, determining a source scene and a target scene of panoramic image scene switching; obtaining an entrance horizontal azimuth angle of the target scene and a current view angle horizontal angle of the user in the source scene, and determining a target rotation angle according to the entrance horizontal azimuth angle and the current view angle horizontal angle; and based on the target rotation angle, executing a preset composite transition animation on the graphical interface so as to smoothly switch from the source scene to the target scene.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, devices, electronic equipment, and storage media for scene switching of panoramic images Technical Field

[0001] This invention relates to the fields of IT and software development technology, and in particular to a method, apparatus, electronic device, and storage medium for scene switching of panoramic images. Background Technology

[0002] With the rapid development of Virtual Reality (VR), Augmented Reality (AR), and 3D visualization technologies, panoramic images are widely used in various fields to provide immersive experiences and intuitive spatial displays. In panoramic image applications (such as virtual house viewing, virtual showrooms, online tourism, and real estate investment promotion), providing users with the ability to switch between different panoramic scenes (i.e., different panoramic images) is a core interactive function. However, current panoramic image applications still face some technical challenges in multi-scene switching.

[0003] The most common method for scene transitions in panoramic images is "hard cut," where the current scene is instantly hidden and the target scene is instantly displayed. This method disrupts the user's visual continuity, lacks a sense of spatial orientation and movement, and results in abrupt and unrealistic transitions. For the user, it's akin to "teleporting" between different rooms rather than "walking," leading to a poor user experience.

[0004] To achieve smooth, depth-sensory scene transitions (i.e., simulating the visual effect of the human eye moving and observing in space), current advanced processing solutions typically rely on complex 3D data. Specifically, the first approach is the 3D model method. This method requires creating or importing accurate 3D models for each scene and then attaching panoramic images as textures to the model surfaces. This method places extremely high demands on data preparation, computational resources, and rendering performance. The second approach is the depth map method. This method requires generating and providing a corresponding depth map for each panoramic image to calculate parallax. This method significantly increases the burden and complexity of data acquisition and processing. It is evident that the above-mentioned smooth transition solutions are not only costly to implement but also require specialized 3D graphics knowledge and complex programming (such as WebGL shader programming), belonging to "high-code" or "full-code" development, making them difficult for content creators, designers, or ordinary developers to quickly adopt.

[0005] Therefore, there is an urgent need for a method that can achieve smooth, directional depth switching between panoramic image scenes with low configuration cost without relying on 3D models and depth maps. Summary of the Invention

[0006] This invention provides a method, apparatus, electronic device, and storage medium for scene switching of panoramic images, which solves or partially solves the technical problems of abrupt scene switching and high implementation cost in current related technologies.

[0007] This invention provides a method for scene switching of panoramic images, applied to a scene switching system, the scene switching system including a front-end graphical interface; the method includes:

[0008] In response to a scene switching operation initiated by the user through the graphical interface, the source scene and target scene for panoramic image scene switching are determined;

[0009] Obtain the horizontal azimuth angle of the entrance to the target scene and the horizontal angle of the user's current view in the source scene, and determine the target rotation angle based on the horizontal azimuth angle of the entrance and the horizontal angle of the current view.

[0010] Based on the target rotation angle, a preset composite transition animation is executed on the graphical interface to smoothly switch from the source scene to the target scene.

[0011] Optionally, the scene switching system further includes a backend scene switching configuration interface; the method further includes:

[0012] In response to a scene switching relationship selection operation initiated through the scene switching configuration interface, the source scene of the panoramic image before scene switching and the target scene after scene switching are determined.

[0013] Receive the angle value input through a custom text box, and use the angle value as the entry horizontal azimuth angle of the target scene relative to the source scene;

[0014] In response to an action setting the duration of a scene transition animation, determine the transition duration from the source scene to the target scene;

[0015] In response to the setting action for the fade-out-fade-in curve, determine the fade-out animation curve of the source scene and the fade-in animation curve of the target scene when switching from the source scene to the target scene;

[0016] In response to the settings action for the field of view simulation, determine the timing and duration of the field of view simulation animation during scene transitions;

[0017] In response to the triggering operation of the save button in the scene switching configuration interface, the scene switching configuration parameters from the source scene to the target scene are saved.

[0018] Optionally, determining the target rotation angle based on the entrance horizontal azimuth angle and the current viewing angle includes:

[0019] The target rotation angle required to switch from the source scene to the target scene is obtained by subtracting the current viewpoint horizontal angle from the entrance horizontal azimuth angle.

[0020] Optionally, the step of executing a preset composite transition animation on the graphical interface based on the target rotation angle to smoothly switch from the source scene to the target scene includes:

[0021] Obtain the scene switching configuration parameters from the source scene to the target scene;

[0022] Based on the target rotation angle and combined with the scene switching configuration parameters, the graphical interface is controlled to synchronously execute view rotation animation, scene fade-in / fade-out animation, and field of view simulation animation to smoothly switch from the source scene to the target scene.

[0023] Optionally, the scene switching configuration parameters include the switching duration, the fade-out animation curve of the source scene, the fade-in animation curve of the target scene, and the execution timing and duration of the field-of-view simulation animation; the step of controlling the graphical interface to synchronously execute the viewpoint rotation animation, scene fade-out-fade-in animation, and field-of-view simulation animation based on the target rotation angle and in conjunction with the scene switching configuration parameters, to smoothly switch from the source scene to the target scene, includes:

[0024] Based on the target rotation angle and combined with the scene switching configuration parameters, the graphical interface is controlled to synchronously execute the view rotation animation, scene fade-in animation and field of view simulation animation during the switching duration, so as to smoothly switch from the source scene to the target scene;

[0025] The execution action of the viewpoint rotation animation is as follows: based on the target rotation angle, control the user's viewpoint of the graphical interface to rotate from the current viewpoint horizontal angle to the entrance horizontal azimuth angle;

[0026] The scene fade-in / fade-out animation is executed as follows: combining the fade-out animation curve of the source scene and the fade-in animation curve of the target scene, the scene fade-out action of the source scene is triggered during the view rotation, and the scene fade-in action of the target scene is executed simultaneously.

[0027] The execution action of the field of view simulation animation is as follows: based on the execution timing and duration of the field of view simulation animation, a simulation animation that increases the field of view is triggered during the rotation of the viewpoint.

[0028] Optionally, after determining the source scene and target scene for scene switching, and before obtaining the entrance horizontal azimuth angle of the target scene and the user's current viewpoint horizontal angle in the source scene, the method further includes:

[0029] The graphical interface is locked, and the sequence switching action of the panoramic image is initiated.

[0030] Optionally, after a successful smooth switch from the source scene to the target scene, the method further includes:

[0031] The system unlocks the graphical interface, allowing the user to freely browse the target scene.

[0032] The present invention also provides a panoramic image scene switching device, applied to a scene switching system, the scene switching system including a front-end graphical interface; the device includes:

[0033] The scene switching trigger unit, in response to the scene switching operation initiated by the user through the graphical interface, determines the source scene and target scene for the panoramic image scene switching;

[0034] The target rotation angle determination unit is used to obtain the entrance horizontal azimuth angle of the target scene and the current viewing horizontal angle of the user in the source scene, and determine the target rotation angle based on the entrance horizontal azimuth angle and the current viewing horizontal angle;

[0035] The scene switching execution unit is used to execute a preset composite transition animation on the graphical interface based on the target rotation angle, so as to smoothly switch from the source scene to the target scene.

[0036] The present invention also provides an electronic device, the device comprising a processor and a memory:

[0037] The memory is used to store program code and transmit the program code to the processor;

[0038] The processor is configured to execute the scene switching method for panoramic images as described above, according to instructions in the program code.

[0039] The present invention also provides a computer-readable storage medium for storing program code for executing the scene switching method for panoramic images as described in any of the preceding claims.

[0040] As can be seen from the above technical solutions, the present invention has the following advantages:

[0041] A method for scene switching in panoramic images is provided. The method is applied to a scene switching system, which includes a front-end graphical interface. In response to a scene switching operation initiated by a user through the graphical interface, the source and target scenes for the panoramic image scene switching are determined. The horizontal azimuth angle of the target scene entrance and the user's current horizontal viewing angle in the source scene are obtained, and a target rotation angle is determined based on the horizontal azimuth angle and the current horizontal viewing angle. Based on the target rotation angle, a preset composite transition animation is executed in the graphical interface to smoothly switch from the source scene to the target scene. Compared to traditional solutions, when a user triggers a scene switch, the technical solution provided by this invention does not directly execute an image replacement action, but instead executes a scene switching strategy combining calculation and animation to achieve a smooth switch from the source scene to the target scene with depth and directional continuity. Therefore, in the process of panoramic image scene switching, by providing a simpler and more efficient scene switching process, it overcomes the problem of abrupt scene switching between scenes in online panoramic editors, improves the user's visual continuity, solves the problem of abrupt and unrealistic visual perception during panoramic image scene switching, and enhances the user experience. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 is a flowchart of the steps of a panoramic image scene switching method;

[0044] Figure 2 is a schematic diagram of the overall process of a panoramic image scene switching method;

[0045] Figure 3 is a schematic diagram of the scene orientation relationship configuration interface for a panoramic image;

[0046] Figure 4 is a structural block diagram of a panoramic image scene switching device. Detailed Implementation

[0047] This invention provides a method, apparatus, electronic device, and storage medium for scene switching of panoramic images, which solves or partially solves the technical problems of abrupt scene switching and high implementation cost in the current related technologies.

[0048] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0049] As an example, the most common way to switch scenes in panoramic images is through a "hard cut." This means the current scene is instantly hidden, and the target scene is instantly displayed. This switching method disrupts the user's visual continuity, lacks a sense of spatial orientation and movement, and results in abrupt and unrealistic transitions. For the user, it's similar to "teleporting" between different rooms rather than "walking," leading to a poor user experience.

[0050] To achieve smooth, depth-sensory scene transitions (i.e., simulating the visual effect of the human eye moving and observing in space), current advanced processing solutions typically rely on complex 3D data. Specifically, the first approach is the 3D model method. This method requires creating or importing accurate 3D models for each scene and then attaching panoramic images as textures to the model surfaces. This method places extremely high demands on data preparation, computational resources, and rendering performance. The second approach is the depth map method. This method requires generating and providing a corresponding depth map for each panoramic image to calculate parallax. This method significantly increases the burden and complexity of data acquisition and processing. It is evident that the above-mentioned smooth transition solutions are not only costly to implement but also require specialized 3D graphics knowledge and complex programming (such as WebGL shader programming), belonging to "high-code" or "full-code" development, making them difficult for content creators, designers, or ordinary developers to quickly adopt.

[0051] Therefore, there is an urgent need for a method that can achieve smooth, directional depth switching between panoramic image scenes with low configuration cost without relying on 3D models and depth maps.

[0052] To overcome the shortcomings of current technologies, this invention aims to provide a scene orientation and depth switching method based on low-code configuration of panoramic images. Its core lies in manually calibrating the relative orientation and angular relationships between scenes, and using visual animation to simulate observer behavior such as "turning around" or "moving" during scene transitions. This achieves a smooth transition effect with a sense of depth and directional continuity, even when using only ordinary panoramic images.

[0053] This invention first constructs a scene switching system based on a front-end graphical interface (corresponding to the user's operation terminal for performing panoramic image scene switching actions) and a back-end scene switching configuration interface (corresponding to the configuration back-end for configuration personnel to perform scene switching-related configuration actions). For panoramic image scene switching, two adjacent panoramic scenes are defined as the source scene and the target scene, respectively. For the configuration back-end, the configuration personnel only need to determine the horizontal azimuth angle of the target scene entrance in the low-code configuration interface, centered on the observer of the source scene (corresponding to the user's perspective). For example, north is 0 degrees, east is 90 degrees, south is 180 degrees, and west is 270 degrees. At the same time, the relevant parameters involved in scene switching are configured in low-code to reduce configuration costs. For the user operation terminal, when the user triggers scene switching, the system does not directly execute the image replacement action, but executes a scene switching strategy that combines calculation and animation to achieve a smooth transition from the source scene to the target scene with depth and directional continuity.

[0054] Key aspects of scene transition strategies include viewpoint alignment calculation, viewpoint movement simulation, and seamless scene transition integration. Viewpoint alignment calculation refers to calculating the horizontal rotation angle required to rotate from the current viewpoint of the source scene to the entrance of the target scene, based on the configured horizontal azimuth angle. Viewpoint movement simulation refers to simulating the visual perception of an observer's line of sight changing and "stepping" into a new space during or after rotation, through the dynamic fade-out of visual elements in the source scene and the dynamic fade-in of visual elements in the target scene, combined with subtle changes in the field of view (FOV). Seamless scene transition integration refers to precisely controlling the animation curves of the aforementioned rotation, fade-out / fade-in, and FOV changes along the timeline, allowing multiple simple animations to be combined into a coherent transition sequence with a depth illusion.

[0055] Referring to the foregoing discussion and Figure 1, a flowchart illustrating the steps of a panoramic image scene switching method according to an embodiment of the present invention is shown. This method is applied to a scene switching system, which includes a front-end graphical interface. Specifically, the method may include the following steps:

[0056] Step 101: In response to the scene switching operation initiated by the user through the graphical interface, determine the source scene and target scene for the panoramic image scene switching;

[0057] In practical applications, for the front-end graphical interface (i.e., the user operation terminal), when the user triggers a scene switching action, the system responds to the scene switching operation initiated by the user through the graphical interface and determines the source scene and target scene for the panoramic image scene switching.

[0058] The scene switching system may also include a backend scene switching configuration interface. Before a user initiates a panoramic image scene switching operation through the frontend graphical interface, configuration personnel can perform low-code configuration-related scene switching settings through the backend scene switching configuration interface.

[0059] In its specific implementation, the scene switching configuration process can include: responding to a scene switching relationship selection operation initiated through the scene switching configuration interface, determining the source scene of the panoramic image before the scene switching, and the target scene after the scene switching; receiving the angle value input through a custom text box, and using the angle value as the horizontal azimuth angle of the target scene relative to the source scene; responding to an action setting the duration of the scene switching animation, determining the switching duration from the source scene to the target scene; responding to an action setting the fade-out-fade-in curve, determining the fade-out animation curve of the source scene and the fade-in animation curve of the target scene when switching from the source scene to the target scene; responding to an action setting the field of view simulation, determining the execution timing and duration of the field of view simulation animation during the scene switching process; and responding to the triggering operation of the save button in the scene switching configuration interface, saving the scene switching configuration parameters from the source scene to the target scene. This low-code configuration method solves the problem of complex configuration required to achieve panoramic scene switching, significantly reducing configuration costs and technical barriers, and improving configuration efficiency.

[0060] Step 102: Obtain the horizontal azimuth angle of the entrance to the target scene and the horizontal angle of the user's current view in the source scene, and determine the target rotation angle based on the horizontal azimuth angle of the entrance and the horizontal angle of the current view.

[0061] In some embodiments, after determining the source scene and target scene for scene switching, the system can first control the locking of the graphical interface, start the sequence switching action of the panoramic image, then obtain the entrance horizontal azimuth angle of the target scene and the current viewing angle of the user in the source scene, and further determine the target rotation angle that needs to be rotated when switching scenes based on the entrance horizontal azimuth angle and the current viewing angle.

[0062] Specifically, the target rotation angle is determined based on the horizontal azimuth angle of the entrance and the horizontal angle of the current viewpoint. This can be achieved by subtracting the horizontal angle of the current viewpoint from the horizontal azimuth angle of the entrance to obtain the target rotation angle required when switching from the source scene to the target scene.

[0063] Step 103: Based on the target rotation angle, execute a preset composite transition animation on the graphical interface to smoothly switch from the source scene to the target scene.

[0064] Once the target rotation angle is calculated, a preset composite transition animation can be executed on the graphical interface based on the target rotation angle to smoothly switch from the source scene to the target scene. Specifically, the scene switching configuration parameters for switching from the source scene to the target scene are first obtained; then, based on the target rotation angle and the scene switching configuration parameters, the graphical interface is controlled to synchronously execute the viewpoint rotation animation, the scene fade-in / fade-out animation, and the field of view simulation animation to smoothly switch from the source scene to the target scene.

[0065] Based on the preceding discussion, scene transition configuration parameters mainly include the transition duration, the fade-out animation curve of the source scene, the fade-in animation curve of the target scene, and the execution timing and duration of the field-of-view simulation animation. Therefore, the process of controlling the graphical interface to simultaneously execute view rotation animation, scene fade-in animation, and field-of-view simulation animation based on the target rotation angle and the scene transition configuration parameters, to smoothly transition from the source scene to the target scene, can include: based on the target rotation angle and the scene transition configuration parameters, controlling the graphical interface to simultaneously execute view rotation animation, scene fade-in animation, and field-of-view simulation animation within the transition duration, to smoothly transition from the source scene to the target scene.

[0066] The execution action of the view rotation animation is as follows: based on the target rotation angle, control the user's view of the graphical interface to rotate from the current horizontal angle to the entrance horizontal azimuth angle.

[0067] The scene fade-in / fade-out animation is executed as follows: combining the fade-out animation curve of the source scene and the fade-in animation curve of the target scene, the scene fade-out action of the source scene is triggered during the view rotation, and the scene fade-in action of the target scene is executed at the same time.

[0068] The execution action of the field of view simulation animation is as follows: based on the execution timing and duration of the field of view simulation animation, the simulation animation that increases the field of view is triggered during the rotation of the viewpoint.

[0069] Based on the calculated target rotation angle, a complex transition animation incorporating a series of switching actions is executed, enabling natural and smooth scene transitions even with ordinary panoramic images. This overcomes the abrupt scene transitions common in online panoramic editors, improves visual continuity, and resolves the issue of jarring and unrealistic visual transitions during panoramic image scene changes, thus enhancing the user experience.

[0070] Furthermore, after successfully and smoothly switching from the source scene to the target scene, the system can also unlock the graphical interface so that the user can freely browse the target scene after the scene switch.

[0071] This invention provides a method for scene orientation and depth switching based on low-code configuration of panoramic images. On one hand, current common panoramic editors rely on complex 3D technologies (such as 3D modeling and depth map methods) to achieve smooth scene switching, resulting in high costs. Furthermore, they require specialized 3D graphics knowledge and complex programming, posing a high technical barrier. To address this issue, this invention integrates a configuration backend and a user frontend to construct a scene switching system. For the configuration backend, the configuration personnel only need to determine the horizontal azimuth angle of the target scene entrance after the scene switch, centered on the observer of the source scene before the scene switch, in the low-code configuration interface. Simultaneously, relevant parameters involved in scene switching can be configured using low-code. Thus, through low-code configuration, the problem of complex configuration required for panoramic scene switching is solved, significantly reducing configuration costs and technical barriers, and improving configuration efficiency. For the user frontend, when the user triggers a scene switch, the system does not directly execute an image replacement action, but instead executes a scene switching strategy combining calculation and animation to achieve a smooth transition from the source scene to the target scene with depth and directional continuity. This overcomes the problem of abrupt scene transitions in online panoramic editors, improves visual continuity for users, and solves the issue of abrupt and unrealistic visual experience when switching panoramic images, thus enhancing the user experience.

[0072] For better illustration, please refer to Figure 2, which shows a schematic diagram of the overall process of a panoramic image scene switching method provided by an embodiment of the present invention. It should be noted that this embodiment only provides a brief description of the general process of panoramic image scene switching. The specific implementation process of each step can be understood by referring to the relevant content in the foregoing embodiments, and will not be elaborated here. It is understood that the present invention does not limit this.

[0073] The panoramic image scene switching method provided in this embodiment of the invention can be divided into two stages: a low-code configuration stage for configuring the backend and a scene switching execution stage for the user frontend.

[0074] Firstly, for the low-code configuration phase, the execution steps may specifically include S01 to S03:

[0075] S01: Select the source scene and the target scene.

[0076] In response to the scene switching relationship selection operation initiated by the configuration personnel through the scene switching configuration interface, the source scene of the panoramic image before the scene switching and the target scene after the scene switching are determined.

[0077] S02: Set the azimuth angle of the target scene entrance.

[0078] The system receives the angle value entered by the configuration personnel through a custom text box and uses the angle value as the entry horizontal azimuth angle of the target scene relative to the source scene.

[0079] S03: Save scene relationship configuration data.

[0080] In response to the action setting the duration of the scene transition animation, determine the transition duration from the source scene to the target scene; in response to the action setting the fade-out-fade-in curve, determine the fade-out animation curve of the source scene and the fade-in animation curve of the target scene when transitioning from the source scene to the target scene; in response to the action setting the field of view simulation, determine the execution timing and duration of the field of view simulation animation during the scene transition; in response to the triggering operation of the save button in the scene transition configuration interface, save the scene transition configuration parameters from the source scene to the target scene.

[0081] Secondly, for the scene switching execution phase, the specific execution steps may include S11 to S15:

[0082] S11: User triggers switching (clicks hotspot).

[0083] In response to a scene switching operation initiated by the user through the graphical interface, the source and target scenes for panoramic image scene switching are determined, the graphical interface is locked, and the sequence switching action of panoramic images is initiated.

[0084] S12: The system reads the scene relationship configuration.

[0085] Obtain the pre-configured horizontal azimuth of the target scene entrance, as well as the scene switching configuration parameters for switching from the source scene to the target scene.

[0086] S13: Calculate the target rotation angle.

[0087] Obtain the user's current horizontal viewing angle in the source scene. Subtract the current horizontal viewing angle from the entrance horizontal azimuth angle to obtain the target rotation angle required to switch from the source scene to the target scene. Furthermore, based on the calculation result, the rotation direction during scene switching can be determined: when the target rotation angle is less than 0, rotate counterclockwise; otherwise, rotate clockwise.

[0088] S14: Perform a composite transition animation.

[0089] Based on the target rotation angle and combined with the scene switching configuration parameters, the graphical interface is controlled to simultaneously execute the view rotation animation, scene fade-in animation, and field of view simulation animation during the switching duration, so as to smoothly switch from the source scene to the target scene.

[0090] S15: Switching complete, entering the new scene.

[0091] The panoramic image scene switching is completed, successfully and smoothly switching from the source scene to the target scene, and the graphical interface is unlocked to allow the user to freely browse the target scene.

[0092] To enable those skilled in the art to better understand the technical solutions of the present invention, the following specific example is used to illustrate the embodiments of the present invention.

[0093] Suppose there are two adjacent panoramic scenes: Scene A (living room) and Scene B (dining room). The user is currently in Scene A, with their line of sight facing south (180 degrees). The entrance (such as a doorway) of Scene B is located to the west (270 degrees) of Scene A.

[0094] The first step is the low-code configuration phase on the backend. For ease of understanding, Figure 3 shows a schematic diagram of a panoramic image scene orientation configuration interface. Referring to Figure 3, the configuration personnel perform the following operations in the configuration interface management backend:

[0095] In the scene relationship configuration module, select "Scene A (Living Room)" as the "Source Scene" and "Scene B (Dining Room)" as the "Target Scene".

[0096] In the orientation settings, set the horizontal azimuth of the target scene (B) relative to the source scene (A) to 270 degrees (due west).

[0097] It should be noted that in this example, this angle uses "North" in the panoramic view as the 0-degree reference and increases clockwise. This is understood to be set as the reference degree for aligning the angle calculations of all panoramic views. In practical applications, confirming only one direction is generally sufficient to confirm the others. In reality, those skilled in the art can set other directions as the 0-degree reference. For example, setting due south as the 0-degree reference only requires adjusting the corresponding angle values ​​for other directions based on the directional relationship.

[0098] Next, configure advanced parameters such as the duration of the transition animation (e.g., 1500 milliseconds) and the fade-in / fade-out curve (e.g., ease-in-out). Among them, ease-in-out is a curve parameter of an interpolation animation, which can reflect the speed of the scene transition.

[0099] The above configuration process is completed entirely in the graphical interface without writing any code, thus achieving low-code configuration for panoramic image scene switching.

[0100] The second phase is the scene switching execution phase during front-end (user-side) runtime. Specifically, when a user clicks a hotspot in scene A or triggers a switch to scene B via a switching button on the interface, the system executes the following automatic process:

[0101] S1: Trigger and lock.

[0102] In response to user interaction, the user interface is locked, and the sequence switching process begins.

[0103] S2: Calculate the target's viewing angle (target rotation angle).

[0104] Obtain the user's current horizontal viewing angle in scene A (e.g., assuming the user is looking out a south-facing window, which is 180 degrees). Based on the current horizontal viewing angle, combined with the previously configured horizontal azimuth angle of the entrance in scene B (270 degrees), calculate the required rotation angle: Target rotation angle = Entrance horizontal azimuth angle - Current horizontal viewing angle = 270 - 180 = 90 degrees. During subsequent scene transitions, the system executes a composite transition animation, essentially moving and rotating the scene's camera viewpoint to automatically guide the user's gaze 90 degrees to the right (clockwise) to "face" the restaurant entrance.

[0105] S3: Perform a composite transition animation.

[0106] Specifically, the system executes the following animations synchronously to form a coherent visual event:

[0107] View rotation animation: Smoothly transition the view of scene A from the current 180 degrees to 270 degrees through animation. This process is equivalent to simulating the user's action of "turning around to look at the door".

[0108] Scene fade-out / fade-in animation: When the viewpoint rotates to approximately the mid-to-late stage (e.g., 60% of the duration), the fade-out animation of scene A (transparency gradually changes from 100% to 0%) begins, while the fade-in animation of scene B (transparency gradually changes from 0% to 100%) begins simultaneously. The timing of these two animations overlaps, creating a visually fading transition.

[0109] Field of View (FOV) simulation animation (key to enhancing depth perception): During a transition, the FOV can be briefly and slightly increased to simulate the instantaneous change in visual range when "stepping forward," before returning to the standard FOV after the transition. This subtle change strongly suggests movement.

[0110] After all the above animations have finished, Scene B will be fully displayed, and the viewpoint will be in the preset initial observation direction (for example, upon entering the restaurant, the default viewpoint is towards the center of the room; this angle can also be set independently in the configuration). The system will then unlock the user's graphical interface, allowing the user to freely browse Scene B.

[0111] By following the steps above, when switching between panoramic image scenes, users will no longer experience abrupt scene jumps, but rather a continuous, natural visual process with spatial depth, similar to "turning around to look at the door and then stepping into the next room".

[0112] Referring to Figure 4, a structural block diagram of a panoramic image scene switching device provided in an embodiment of the present invention is shown. This device is applied to a scene switching system, which includes a front-end graphical interface. Specifically, the device may include:

[0113] The scene switching trigger unit 401, in response to the scene switching operation initiated by the user through the graphical interface, determines the source scene and target scene for the panoramic image scene switching;

[0114] The target rotation angle determination unit 402 is used to obtain the entrance horizontal azimuth angle of the target scene and the current viewing horizontal angle of the user in the source scene, and determine the target rotation angle based on the entrance horizontal azimuth angle and the current viewing horizontal angle.

[0115] The scene switching execution unit 403 is used to execute a preset composite transition animation on the graphical interface based on the target rotation angle, so as to smoothly switch from the source scene to the target scene.

[0116] In one optional embodiment, the scene switching system further includes a backend scene switching configuration interface; the device further includes:

[0117] The scene switching relationship determination unit is used to determine the source scene of the panoramic image before scene switching and the target scene after scene switching in response to the scene switching relationship selection operation initiated through the scene switching configuration interface.

[0118] An entrance horizontal azimuth angle setting unit is used to receive an angle value input through a custom text box and use the angle value as the entrance horizontal azimuth angle of the target scene relative to the source scene;

[0119] A switching duration setting unit is used to determine the switching duration from the source scene to the target scene in response to a duration setting action for a scene switching animation;

[0120] A scene fade-out / fade-in setting unit is used to determine the fade-out animation curve of the source scene and the fade-in animation curve of the target scene when switching from the source scene to the target scene in response to the setting action of the fade-out / fade-in curve.

[0121] The field of view simulation setting unit is used to respond to the setting action for the field of view simulation and determine the execution timing and duration of the field of view simulation animation during scene switching.

[0122] The scene switching configuration parameter saving unit is used to save the scene switching configuration parameters from the source scene to the target scene in response to the trigger operation of the save button in the scene switching configuration interface.

[0123] In one alternative embodiment, the target rotation angle determination unit 402 is specifically used for:

[0124] The target rotation angle required to switch from the source scene to the target scene is obtained by subtracting the current viewpoint horizontal angle from the entrance horizontal azimuth angle.

[0125] In one optional embodiment, the scene switching execution unit 403 includes:

[0126] A scene switching configuration parameter acquisition unit is used to acquire scene switching configuration parameters for switching from the source scene to the target scene;

[0127] The scene switching execution subunit is used to control the graphical interface to synchronously execute view rotation animation, scene fade-in / fade-out animation and field of view simulation animation based on the target rotation angle and the scene switching configuration parameters, so as to smoothly switch from the source scene to the target scene.

[0128] In one optional embodiment, the scene switching configuration parameters include the scene switching duration, the fade-out animation curve of the source scene, the fade-in animation curve of the target scene, and the execution timing and duration of the field-of-view simulation animation; the scene switching execution subunit is specifically used for:

[0129] Based on the target rotation angle and combined with the scene switching configuration parameters, the graphical interface is controlled to synchronously execute the view rotation animation, scene fade-in animation and field of view simulation animation during the switching duration, so as to smoothly switch from the source scene to the target scene;

[0130] The execution action of the viewpoint rotation animation is as follows: based on the target rotation angle, control the user's viewpoint of the graphical interface to rotate from the current viewpoint horizontal angle to the entrance horizontal azimuth angle;

[0131] The scene fade-in / fade-out animation is executed as follows: combining the fade-out animation curve of the source scene and the fade-in animation curve of the target scene, the scene fade-out action of the source scene is triggered during the view rotation, and the scene fade-in action of the target scene is executed simultaneously.

[0132] The execution action of the field of view simulation animation is as follows: based on the execution timing and duration of the field of view simulation animation, a simulation animation that increases the field of view is triggered during the rotation of the viewpoint.

[0133] In one alternative embodiment, the device further includes:

[0134] The graphical interface locking control unit is used to lock the graphical interface and initiate the sequence switching action of the panoramic image.

[0135] In one alternative embodiment, the device further includes:

[0136] A graphical interface unlock control unit is used to control the unlocking of the graphical interface so that the user can freely browse the target scene.

[0137] As the device embodiment is basically similar to the method embodiment, it is described in a relatively simple way. For relevant details, please refer to the description of the method embodiment above.

[0138] This invention also provides an electronic device, which includes a processor and a memory:

[0139] The memory is used to store program code and transfer the program code to the processor;

[0140] The processor is used to execute the panoramic image scene switching method of any embodiment of the present invention according to the instructions in the program code.

[0141] This invention also provides a computer-readable storage medium for storing program code for executing a panoramic image scene switching method according to any embodiment of the invention.

[0142] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0143] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this invention are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0144] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0145] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0146] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0147] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0148] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for scene switching in panoramic images, characterized in that, An application is made in a scene switching system, the scene switching system including a front-end graphical interface; the method includes: responding to a scene switching operation initiated by a user through the graphical interface, determining the source scene and the target scene for panoramic image scene switching; acquiring the entrance horizontal azimuth angle of the target scene and the current viewing horizontal angle of the user in the source scene, and determining a target rotation angle based on the entrance horizontal azimuth angle and the current viewing horizontal angle; and executing a preset composite transition animation on the graphical interface based on the target rotation angle to smoothly switch from the source scene to the target scene.

2. The scene switching method for panoramic images according to claim 1, characterized in that, The scene switching system also includes a backend scene switching configuration interface; the method further includes: in response to a scene switching relationship selection operation initiated through the scene switching configuration interface, determining the source scene of the panoramic image before scene switching and the target scene after scene switching; receiving an angle value input through a custom text box and using the angle value as the entrance horizontal azimuth angle of the target scene relative to the source scene; in response to a duration setting action for the scene switching animation, determining the switching duration from the source scene to the target scene; in response to a fade-out / fade-in curve setting action, determining the fade-out animation curve of the source scene and the fade-in animation curve of the target scene when switching from the source scene to the target scene; in response to a field-of-view simulation setting action, determining the execution timing and duration of the field-of-view simulation animation during scene switching; and in response to a trigger operation of the save button in the scene switching configuration interface, saving the scene switching configuration parameters from the source scene to the target scene.

3. The scene switching method for panoramic images according to claim 1, characterized in that, The step of determining the target rotation angle based on the entrance horizontal azimuth angle and the current viewing angle includes: subtracting the current viewing angle from the entrance horizontal azimuth angle to obtain the target rotation angle that needs to be rotated when switching from the source scene to the target scene.

4. The scene switching method for panoramic images according to claim 1, characterized in that, The step of executing a preset composite transition animation on the graphical interface based on the target rotation angle to smoothly switch from the source scene to the target scene includes: obtaining scene switching configuration parameters for switching from the source scene to the target scene; and controlling the graphical interface to synchronously execute view rotation animation, scene fade-in / fade-out animation, and field-of-view simulation animation based on the target rotation angle and the scene switching configuration parameters to smoothly switch from the source scene to the target scene.

5. The scene switching method for panoramic images according to claim 4, characterized in that, The scene switching configuration parameters include the switching duration of the scene switching, the fade-out animation curve of the source scene, the fade-in animation curve of the target scene, and the execution timing and duration of the field of view simulation animation. The step of controlling the graphical interface to synchronously execute view rotation animation, scene fade-in animation, and field-of-view simulation animation based on the target rotation angle and the scene switching configuration parameters to smoothly switch from the source scene to the target scene includes: controlling the graphical interface to synchronously execute view rotation animation, scene fade-in animation, and field-of-view simulation animation during the switching duration based on the target rotation angle and the scene switching configuration parameters to smoothly switch from the source scene to the target scene; wherein, the execution action of the view rotation animation is: based on the target rotation angle, controlling the user's view of the graphical interface to rotate from the current horizontal angle to the entrance horizontal azimuth angle; the execution action of the scene fade-in animation is: combining the fade-in animation curve of the source scene and the fade-in animation curve of the target scene, triggering the scene fade-out action of the source scene during the view rotation, and simultaneously executing the scene fade-in action of the target scene; the execution action of the field-of-view simulation animation is: based on the execution timing and duration of the field-of-view simulation animation, triggering the execution of a simulation animation that increases the field of view during the view rotation.

6. The scene switching method for panoramic images according to any one of claims 1 to 5, characterized in that, After determining the source scene and target scene for scene switching, and before obtaining the horizontal azimuth angle of the entrance of the target scene and the horizontal angle of the user's current viewpoint in the source scene, the method further includes: controlling and locking the graphical interface and initiating a sequence switching action of panoramic images.

7. The panoramic image scene switching method according to claim 6, characterized in that, After successfully and smoothly switching from the source scene to the target scene, the method further includes: controlling the unlocking of the graphical interface to allow the user to freely browse the target scene.

8. A scene switching device for panoramic images, characterized in that, An application is provided in a scene switching system, the scene switching system including a front-end graphical interface; the device includes: a scene switching trigger unit, which, in response to a scene switching operation initiated by a user through the graphical interface, determines the source scene and target scene for panoramic image scene switching; a target rotation angle determination unit, used to acquire the entrance horizontal azimuth angle of the target scene and the current viewing horizontal angle of the user in the source scene, and determine the target rotation angle based on the entrance horizontal azimuth angle and the current viewing horizontal angle; and a scene switching execution unit, used to execute a preset composite transition animation on the graphical interface based on the target rotation angle, so as to smoothly switch from the source scene to the target scene.

9. An electronic device, characterized in that, The device includes a processor and a memory: the memory is used to store program code and transmit the program code to the processor; the processor is used to execute the scene switching method for panoramic images according to any one of claims 1-7 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for executing the scene switching method for panoramic images according to any one of claims 1-7.