Scene switching method and device, equipment and medium

By obtaining the still frame of the scene in real time in software rendering technology and generating light-effect animations, the problems of loading delay and visual abruptness in scene switching are solved, and a smoother and immersive visual experience is achieved.

CN119559301APending Publication Date: 2025-03-04CHENGDU GONGDING TECHNOLOGY CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411628245.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In software rendering technology, scene switching is usually accompanied by loading delays and visually abrupt changes, resulting in a reduced fluency and immersion of the user experience. The existing technology relies on pre-made animation materials and cannot be adjusted according to the real-time state of the current scene, resulting in sudden jumps and cuts that may be felt during scene transitions, and smooth and attractive visual switching between scenes cannot be achieved.

Method used

By obtaining the still frame picture of the first scene and generating the first light effect animation, obtaining the still frame picture of the second scene and generating the second light effect animation, and finally switching to the second scene when the second light effect animation is played. This method generates transition animations in real time based on the status of the current scene, improving the flexibility and real-time nature of scene switching.

Benefits of technology

It realizes the flexibility and real-time nature of scene switching, provides a smoother and immersive visual experience, and improves the coherence and enjoyment of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119559301A_ABST
    Figure CN119559301A_ABST
Patent Text Reader

Abstract

The invention provides a scene switching method and device, equipment and a medium, and the method comprises the steps: obtaining a first static frame picture displayed by a first scene when it is determined that the first scene is switched to a second scene; generating and playing a first lighting effect animation according to the first static frame picture; obtaining a second static frame picture to be displayed in the second scene, and generating a second lighting effect animation according to the second static frame picture; and playing the second lighting effect animation, and switching to the second scene when the second lighting effect animation is played, thereby improving the flexibility and real-time performance of scene switching, providing smoother and immersive visual experience at the same time, and further improving the continuity and enjoyment of use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a scene switching method, device, equipment and medium. Background Art

[0002] In software rendering technology, scene switching is usually accompanied by loading delays and abrupt visual changes, which greatly reduces the smoothness and immersion of the user experience. In related technologies, the above problems can be alleviated by preloading and adding transition animations. However, they usually rely on pre-made animation materials, which are fixed and cannot be adjusted according to the real-time status of the current scene, resulting in abrupt jump cuts in scene transitions and failure to achieve smooth and attractive visual switching between scenes.

[0003] Therefore, there is an urgent need to provide a scene switching method to solve the above problems. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a scene switching method, device, equipment and medium to solve the problem in the related technology that scene switching cannot be flexibly adjusted and smooth and attractive visual switching between scenes cannot be achieved during the transition.

[0005] To achieve the above technical objectives, this application provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present specification provides a scene switching method, including:

[0007] When determining to switch from the first scene to the second scene, obtaining a first still frame displayed by the first scene;

[0008] Generating a first light effect animation according to the first still frame and playing it;

[0009] Acquire a second still frame image to be displayed in the second scene, and generate a second light effect animation according to the second still frame image;

[0010] Play the second light effect animation, and switch to the second scene when the second light effect animation is finished.

[0011] In one implementation, generating and playing a first light effect animation according to a first still frame includes:

[0012] Extracting first feature information of a first still frame;

[0013] Generate a first light effect animation according to the first feature information;

[0014] Play the first light effect animation.

[0015] In one implementation, generating a first light effect animation according to the first feature information includes:

[0016] Determine a first light effect animation type and a first contour line of a first still frame according to the first feature information;

[0017] Based on the first light effect animation type, a first light effect animation is generated using a first contour line.

[0018] In one embodiment, obtaining a second still frame image to be displayed in a second scene, and generating a second light effect animation according to the second still frame image, includes:

[0019] Obtaining a second still frame to be displayed in the second scene;

[0020] Extracting second feature information of the second still frame;

[0021] A second light effect animation is generated according to the second characteristic information.

[0022] In one implementation, generating a second light effect animation according to the second feature information includes:

[0023] Determine a second light effect animation type and a second contour line of the second still frame according to the second feature information;

[0024] Based on the second light effect animation type, a second light effect animation is generated using a second contour line.

[0025] In one implementation, generating and playing a first light effect animation according to a first still frame includes:

[0026] Generate a first light effect animation according to the first still frame and a preset target still frame;

[0027] Play the first light effect animation.

[0028] In one implementation, obtaining a second still frame image to be displayed for a second scene, and generating a second light effect animation according to the second still frame image, includes:

[0029] Obtaining a second still frame to be displayed in the second scene;

[0030] A second light effect animation is generated according to the second still frame and the target still frame.

[0031] In a second aspect, an embodiment of the present specification provides a scene switching device, including:

[0032] A first acquisition unit, configured to acquire a first still frame displayed in the first scene when determining to switch from the first scene to the second scene;

[0033] A first processing unit, configured to generate and play a first light effect animation according to a first still frame;

[0034] A second acquisition unit, used for acquiring a second still frame picture to be displayed of a second scene, and generating a second light effect animation according to the second still frame picture;

[0035] The second processing unit is used to play the second light effect animation and switch to the second scene after playing the second light effect animation.

[0036] In a third aspect, an embodiment of the present specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the scene switching method described in any one of the above is implemented.

[0037] In a fourth aspect, the present specification provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the scene switching method as described in any one of the above items is implemented.

[0038] In a fifth aspect, the present specification provides a computer program product or a computer program, wherein the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium; the processor of the computer device reads the computer program from the computer-readable storage medium, and when the processor executes the computer program, implements the scene switching method as described in any one of the above items.

[0039] It can be seen from the above technical solutions that the present application provides a scene switching method, device, equipment and medium. When determining to switch from the first scene to the second scene, the method obtains the first still frame displayed by the first scene, then generates and plays the first light effect animation according to the first still frame, then obtains the second still frame to be displayed by the second scene, generates the second light effect animation according to the second still frame, and finally plays the second light effect animation, and switches to the second scene after playing the second light effect animation. The transition animation can be generated in real time according to the state of the current scene, thereby improving the flexibility and real-time performance of scene switching, and at the same time can provide a more smooth and immersive visual experience, thereby improving the consistency and enjoyment of use. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0041] Figure 1 A schematic diagram of a flow chart of a scene switching method provided in an implementation manner of this specification.

[0042] Figure 2 A schematic diagram of a specific flow chart of a scene switching method provided in an implementation manner of this specification.

[0043] Figure 3 A schematic diagram of a specific flow chart of another scene switching method provided in an implementation manner of this specification.

[0044] Figure 4 A schematic diagram of the structure of a scene switching device provided in an embodiment of this specification.

[0045] Figure 5 A schematic diagram of the structure of an electronic device provided for an implementation manner of this specification. DETAILED DESCRIPTION

[0046] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification shall have the common meanings understood by persons with ordinary skills in the field to which this specification belongs. The words "first", "second" and similar words used in the embodiments of this specification do not indicate any order, quantity or importance, but are only used to avoid confusion of constituent elements.

[0047] Unless the context requires otherwise, throughout the specification, "plurality" means "at least two", and "including" is interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the specification. The schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0048] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0049] Overview

[0050] As described in the background technology, in software rendering technology, scene switching is usually accompanied by loading delays and abrupt visual changes, which greatly reduces the smoothness and immersion of the user experience. In related technologies, the above problems can be alleviated by preloading and adding transition animations. However, they usually rely on pre-made animation materials, which are fixed and cannot be adjusted according to the real-time state of the current scene, resulting in abrupt jump cuts in scene transitions. The effects are often highly complex and the transition effects are limited, and smooth and attractive visual switching between scenes cannot be achieved.

[0051] Therefore, there is an urgent need to provide a scene switching method to solve the problem in the related art that scene switching cannot be flexibly adjusted and smooth and attractive visual switching between scenes cannot be achieved during the transition.

[0052] In order to solve the problem that scene switching cannot be flexibly adjusted and smooth and attractive visual switching between scenes cannot be achieved during transition, in the technical solution of the present application, when determining to switch from the first scene to the second scene, the scene switching method obtains the first still frame displayed by the first scene, then generates and plays the first light effect animation based on the first still frame, then obtains the second still frame to be displayed by the second scene, generates the second light effect animation based on the second still frame, and finally plays the second light effect animation, and switches to the second scene after the second light effect animation is played. The transition animation can be generated in real time according to the state of the current scene, thereby improving the flexibility and real-time performance of scene switching, and at the same time providing a smoother and more immersive visual experience, thereby improving the consistency and enjoyment of use.

[0053] Based on the above inventive concept, the scene switching method provided in the implementation manner of this specification is exemplarily described below.

[0054] Exemplary Methods

[0055] The embodiments of this specification provide a scene switching method, which can be applied to smart devices with real screens, such as Figure 1 As shown, including:

[0056] S101: When determining to switch from a first scene to a second scene, obtain a first still frame displayed by the first scene.

[0057] Specifically, it can respond to a background program call or a user's switching operation, that is, determine to switch from the first scene to the second scene. When choosing to enter the switching scene, that is, when the first scene currently being displayed is about to switch to the second scene, a still frame of the picture displayed by the current first scene is obtained. Still frame pictures refer to images that do not contain motion or dynamic effects in visual communication, and are usually used to convey information, tell stories, or display works of art. Still frames can include but are not limited to photos, illustrations, charts and infographics, posters, etc. In the present invention, still frames serve as basic data for generating light effect animations for scene transitions in subsequent steps.

[0058] In this step, the scene is a virtual environment or space that protects multiple elements and objects, and is intended to be rendered and displayed through computer graphics technology. The first scene is the scene currently being displayed, and the second scene is the scene to be switched to. In an example, such as level switching in a video game, switching from the current first level to the next level, or room switching in a virtual reality application, switching between different angles in architectural visualization or animation, scene transitions in a movie, etc.

[0059] S102: Generate and play a first light effect animation according to the first still frame.

[0060] In this step, the first feature information in the first still frame is obtained by performing feature extraction on the first still frame, and the first light effect animation is generated by using the first feature information. During the specific extraction, advanced image processing technology can be used to systematically analyze the visual elements of the current picture, identify the first feature information such as the main objects, background, contour lines, and then generate the first light effect animation based on the first feature information.

[0061] Specifically, the first light effect animation may include multiple animation types, such as dynamic contour line, color contour line animation, particle effect animation, shape transformation animation, interactive contour line animation, etc. The above animation types are briefly introduced as follows:

[0062] Dynamic contours: This type of animation can animate the extracted contours so that they move, rotate or deform according to a certain pattern, thus creating a dynamic visual effect. In one example, the contours can rise and fall like waves or rotate and rise like a spiral.

[0063] Color contour line animation: This type of animation adds different colored line animations to the contour line, making the contour line present a colored line effect during playback. By setting different colors and animation effects, the contour line presents rich color changes during playback.

[0064] Particle effect animation, this type of animation uses the particle system to generate a particle flow effect along the contour line. The particles can flow up and down the contour line to form a unique visual effect. This effect can be customized by adjusting the color, size, speed and other parameters of the particles.

[0065] Shape transformation animation, this type of animation splits the outline into multiple parts, and then adds different animation effects to each part, such as erasing, fading in and out, etc., to create a shape transformation animation effect. This method can be used to create complex animation effects, such as gradual stroking of outlines.

[0066] Interactive contour animation, this type of animation combines interactive design elements, such as buttons, sliders, etc., so that the audience can control the playback, pause, acceleration, etc. of the contour animation through operations. This interactive design can enhance the audience's sense of participation and experience.

[0067] At the same time, other effects can be superimposed in the first light effect animation, such as making the picture of the first scene gradually disappear with the animation, creating a visual guidance and transition effect. At the same time, other animation forms can be selected as replacements, such as particle dissipation, mask dissipation, light effect elimination, etc. The following is a brief introduction to the above animation types:

[0068] Particle dissipation, in this type of animation, the particle dissipation effect is usually used to create a dreamy, mysterious or technological atmosphere. It achieves the effect of disappearance by decomposing the picture into countless tiny particles and then gradually dissipating them.

[0069] Mask dissipation, in this type of animation, a mask layer is added to the screen, and the mask layer is completely covered by the original screen through scaling and positioning to make the original screen disappear. The mask layer can be a simple shape, LOGO, or other special patterns.

[0070] Light effect elimination: In this type of animation, by adding light effect elements (such as light, light spots, etc.) to the picture, the light effect changes from weak to strong and then to weak again, making the original picture disappear. This effect can simulate the changes in light in nature, such as sunset, sunrise or lights going out.

[0071] It should be noted that the animation types can be increased, decreased and modified according to actual needs, and the embodiment of the present invention does not limit this.

[0072] S103: Acquire a second still frame image to be displayed for the second scene, and generate a second light effect animation according to the second still frame image.

[0073] In this step, firstly, the second still-frame image to be displayed in the second scene is obtained. Specifically, during operation, the second scene can be run in the background. Specifically, the data and resources of the second scene are asynchronously loaded through the background thread, that is, there is no conflict with the loading of the first scene. Of course, other processing methods can also be used to load the second scene without affecting the operation of the first scene, thereby obtaining the first still-frame image of the second scene, that is, the second still-frame image.

[0074] After obtaining the second still frame, feature extraction is performed on the second still frame to obtain second feature information in the second still frame, and the second light effect animation is generated using the second feature information. During the specific extraction, advanced image processing technology can be used to systematically analyze the visual elements of the current image, identify the second feature information such as the main objects, background, contour lines, etc., and finally generate the second light effect animation based on the second feature information.

[0075] Specifically, the second light effect animation can include many types of animations, such as dynamic light effect inflow and screen gradual display, color gradient animation, shape decomposition and reorganization, particle aggregation display, interactive display, dynamic background switching, etc. The following is a brief introduction to the above animation types:

[0076] Dynamic light effects flow in and the picture gradually appears. In this light effect animation, a bright spot first appears in the center of the screen. As the light effect expands, the surrounding pictures gradually appear, forming a gradient effect. Specifically, when a new picture appears, the light effect can be used to spread from the center of the picture to the surroundings. The light effect spreads outward like ripples, gradually revealing new picture content.

[0077] Color gradient animation: In this light effect animation, the color gradient can be used to increase the visual appeal before the new picture is displayed. The picture gradually changes from a single color to a rich color, and finally a new picture appears. For example, the picture is initially light blue, and as the gradient changes, it gradually turns into colorful colors, and finally shows new content.

[0078] Shape decomposition and reorganization: In this light effect animation, the elements of the new picture can be realized by splitting them into multiple shapes. First, the old picture is decomposed into small pieces, and then these small pieces are reassembled into the shape of the new picture. For example, the old picture looks like a puzzle. Figure 1 The image gradually breaks into pieces, each piece then flies in different directions before eventually reassembling into a new image.

[0079] Particle aggregation display: In this light effect animation, a new picture is gradually aggregated through particle effects. Particles gather from the edge of the screen to the center, and a new picture is formed in the process of aggregation. For example, small particles fly from the four corners to the center, and as the particles gather, a new image gradually appears.

[0080] Interactive display, in which the light effect animation combines interactive elements, such as the user clicking a button or a slider to trigger the display of a new screen, to enhance the user's sense of participation. In one example, when the user clicks the "Continue" button on the screen, a new screen slowly appears with light and sound effects, providing an interactive experience.

[0081] Dynamic background switching. In this light effect animation, the dynamic background gradually blurs during the transition, and then the new picture is clearly displayed. For example, when a new picture appears, the dynamic background switching effect is used, such as switching from a dynamic scene (such as flowing water or clouds) to a new picture.

[0082] S104: Play the second light effect animation, and switch to the second scene after the second light effect animation is played.

[0083] In specific implementation, the second scene is switched after playing the second light effect animation. It should be noted that the first light effect animation and the second light effect animation can dynamically adjust the playing speed to adapt to the background operation status or current operation logic, and the embodiment of the present invention does not limit this.

[0084] By using the method provided in this embodiment, a transition animation can be generated in real time according to the state of the current scene. This not only improves the flexibility and real-time performance of scene switching, but also provides viewers with a smoother and more immersive visual experience. In this way, the transition of each scene can be perfectly integrated with the previous and the next, greatly improving the continuity and enjoyment of viewing.

[0085] The following is an example of an optional implementation method to illustrate the specific implementation process of the scene switching method of the present application. Figure 2 , the scene switching method may include:

[0086] S201: When determining to switch from a first scene to a second scene, obtain a first still frame displayed by the first scene.

[0087] Specifically, it can respond to a background program call or a user's switching operation, that is, determine to switch from the first scene to the second scene. When selecting to enter the switching scene, that is, when the first scene currently being displayed is about to switch to the second scene, a still frame of the picture displayed by the current first scene is obtained, and the still frame is used as the basic data for generating the light effect animation for scene transition in the subsequent steps.

[0088] S202: Extract first feature information of the first still frame.

[0089] In this step, by extracting features from the first still frame, first feature information in the first still frame is obtained. For example, by using advanced image processing technology, the system analyzes visual elements of the current image and identifies first feature information such as main objects, backgrounds, and contours. Specifically, the feature information that can be extracted is as follows:

[0090] Color features: such as color histogram, color moment, etc.

[0091] Texture features: such as gray-level co-occurrence matrix (glcm), local binary pattern (lbp), etc.

[0092] Shape features: such as edge detection, Hough transform, etc.

[0093] Semantic features: Identify objects or scenes in images through pre-trained deep learning models.

[0094] S203: Determine a first light effect animation type and a first contour line of a first still frame according to the first feature information.

[0095] In specific implementation, the first light effect animation type and the first contour line are determined respectively through the first feature information. When determining the first contour line, the edge detection algorithm is used to accurately locate the edge of the object identified in step S202. These edges constitute the basic contour line of the picture, so as to accurately extract the contour line of the static frame picture. In addition, the extraction of the contour line can be adjusted in real time according to the dynamic changes of the picture to ensure that the most accurate boundary information can be captured when the scene is switched. This process not only enhances the coherence of the visual effect, but also provides necessary data support for the subsequent light effect animation generation.

[0096] When determining the first light effect animation type, the extracted features are first analyzed to determine which features are significant. For example, if the image is mainly a certain color (such as blue), it can be considered that this is a significant color feature. If the image contains a large number of straight lines and corners, it can be considered that this is a significant shape feature. Then based on the results of the feature analysis, decide how to select animation effects based on the features. In one example, if the color feature is significant, a color contour animation can be selected. If the shape feature is significant, a contour flow animation or a specific graphic contour animation can be selected. Then select a suitable first light effect animation type from the available special effects animation library. Of course, the effect of the special effects animation after the first light effect animation type can also be determined by observation, and the method of feature extraction and analysis, as well as the rules for special effect selection can be adjusted as needed. This process may require multiple iterations to achieve the best effect.

[0097] In an example, assuming that there are the following six animation modes, namely, contour flow animation, specific graphic contour animation, colored contour animation, particle special effects animation, shape deformation animation, and interactive contour animation, then if the edge density of the image is high and the length distribution is uniform, select the contour flow animation. If the proportion of a specific shape (such as a circle or rectangle) in the image exceeds the threshold, select the specific graphic contour animation. If the image is rich in color and has obvious edges, select the colored contour animation. Particle special effects animation: If the image is rich in details and has no obvious dominant shape or color, select the particle special effects animation. If the shape in the image changes significantly over time, select the shape deformation animation. If continuous user interaction is detected, select the interactive contour animation.

[0098] S204: Based on the first light effect animation type, generate and play a first light effect animation using a first contour line.

[0099] In the above steps, the first light effect animation type is determined, and then the first light effect animation is generated using the first contour line. In one example, when the first light effect animation type is a dynamic contour line, the extracted contour line is dynamically processed so that it moves, rotates or deforms according to a certain rule, thereby creating a dynamic visual effect. When the first light effect animation type is a color contour line animation, line animations of different colors are added to the contour line so that the contour line presents the effect of color lines during playback. By setting different colors and animation effects, the contour line presents rich color changes during playback. When the first light effect animation type is a particle effect animation, a particle system is used to generate a particle flow effect along the contour line, and the particles can flow up and down the contour line to form a unique visual effect. This effect can be customized by adjusting the color, size, speed and other parameters of the particles. When the first light effect animation type is a shape transformation animation, the contour line is split into multiple parts, and then different animation effects are added to each part, such as erasing, fading in and out, etc., to create a shape transformation animation effect. This method can be used to create complex animation effects, such as gradual tracing of contours. When the first light effect animation type is an interactive outline animation, this type of animation is combined with interactive design elements, such as buttons, sliders, etc., so that the audience can control the play, pause, acceleration, etc. of the outline animation through operations. This interactive design can enhance the audience's sense of participation and experience.

[0100] S205: Obtain a second still frame image to be displayed for the second scene, and extract second feature information of the second still frame image.

[0101] In this step, firstly, the second still-frame image to be displayed in the second scene is obtained. Specifically, during runtime, the second scene can be run in the background. Specifically, the data and resources of the second scene are asynchronously loaded through the background thread to obtain the first still-frame image in the second scene, i.e., the second still-frame image.

[0102] After obtaining the second still frame, feature extraction is performed on the second still frame to obtain second feature information in the second still frame, and the second light effect animation is generated using the second feature information. During the specific extraction, advanced image processing technology can be used to systematically analyze the visual elements of the current image, identify the second feature information such as the main objects, background, contour lines, etc., and finally generate the second light effect animation based on the second feature information.

[0103] S206: Determine a second light effect animation type and a second contour line of the second still frame according to the second feature information.

[0104] In specific implementation, the second light effect animation type and the second contour line are respectively determined by the second feature information. When determining the second contour line, the edge detection algorithm is used to accurately locate the edges of the object identified in step S202. These edges constitute the basic contour line of the picture, thereby accurately extracting the contour line of the still frame picture.

[0105] S207 . Based on the second light effect animation type, generate a second light effect animation using a second contour line.

[0106] The specific generation logic is similar to that of S204 and will not be repeated here.

[0107] S208: Play the second light effect animation, and switch to the second scene after the second light effect animation is played.

[0108] In specific implementation, the second scene is switched after playing the second light effect animation. It should be noted that the first light effect animation and the second light effect animation can dynamically adjust the playing speed to adapt to the background operation status or current operation logic, and the embodiment of the present invention does not limit this.

[0109] In this embodiment, the contour line is obtained through the feature information, and then a suitable light effect animation is generated, which greatly improves the viewing continuity and enjoyment.

[0110] The specific implementation process of the scene switching method of the present application is illustrated below by another optional implementation method. Figure 3 , the scene switching method may include:

[0111] S301: When determining to switch from a first scene to a second scene, obtain a first still frame displayed by the first scene.

[0112] S302: Extract first feature information of the first still frame.

[0113] S303: Generate and play a first light effect animation according to the first still frame and a preset target still frame.

[0114] During specific implementation, the first light effect animation is generated according to the pre-set target still frame and the first still frame. The target still frame can be set by the system, or determined by determining the first light effect animation type of the first still frame, or can be a picture set by the user. Specifically, during generation, the first still frame is used as the initial frame of the first light effect animation, and the target still frame is used as the end frame of the first light effect animation to generate the first light effect animation. A variety of customized settings can be provided to increase flexibility.

[0115] S304: Obtain a second still frame image to be displayed for the second scene.

[0116] S305: Generate a second light effect animation according to the second still frame and the target still frame.

[0117] During specific implementation, the second light effect animation is generated based on the pre-set target still frame and the second still frame. Specifically, during generation, the target still frame is used as the initial frame of the first light effect animation, and the second still frame is used as the end frame of the first light effect animation to generate the second light effect animation. A variety of customized settings can be provided to increase flexibility.

[0118] S306: Play the second light effect animation, and switch to the second scene after the second light effect animation is played.

[0119] Exemplary Devices

[0120] In an exemplary embodiment of the present specification, a scene switching device is also provided, such as Figure 4 As shown, including:

[0121] A first acquisition unit 401 is used to determine that when switching from a first scene to a second scene, a first still frame displayed by the first scene is acquired;

[0122] The first processing unit 402 is used to generate and play a first light effect animation according to the first still frame;

[0123] The second acquisition unit 403 is used to acquire a second still frame image to be displayed in the second scene, and generate a second light effect animation according to the second still frame image;

[0124] The second processing unit 404 is used to play the second light effect animation and switch to the second scene after playing the second light effect animation.

[0125] In a feasible implementation manner, the first processing unit 402 is specifically configured to:

[0126] Extracting first feature information of a first still frame;

[0127] Generate a first light effect animation according to the first feature information;

[0128] Play the first light effect animation.

[0129] In a feasible implementation manner, the first processing unit 402 is specifically configured to:

[0130] Determine a first light effect animation type and a first contour line of a first still frame according to the first feature information;

[0131] Based on the first light effect animation type, a first light effect animation is generated using a first contour line.

[0132] In a feasible implementation manner, the second acquiring unit 403 is specifically configured to:

[0133] Obtaining a second still frame to be displayed in the second scene;

[0134] Extracting second feature information of the second still frame;

[0135] A second light effect animation is generated according to the second characteristic information.

[0136] In a feasible implementation manner, the second acquiring unit 403 is specifically configured to:

[0137] Determine a second light effect animation type and a second contour line of the second still frame according to the second feature information;

[0138] Based on the second light effect animation type, a second light effect animation is generated using a second contour line.

[0139] In a feasible implementation manner, the first processing unit 402 is specifically configured to:

[0140] Generate a first light effect animation according to the first still frame and a preset target still frame;

[0141] Play the first light effect animation.

[0142] In a feasible implementation manner, the second acquiring unit 403 is specifically configured to:

[0143] Obtaining a second still frame to be displayed in the second scene;

[0144] A second light effect animation is generated according to the second still frame and the target still frame.

[0145] The scene switching method device provided in this embodiment belongs to the same application concept as the scene switching method provided in the above embodiments of this application, and can execute the scene switching method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the scene switching method. For technical details not fully described in this embodiment, please refer to the specific processing content of the scene switching method provided in the above embodiments of this application, and will not be repeated here.

[0146] Exemplary Devices

[0147] In an exemplary embodiment of the present specification, an electronic device is also provided, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the scene switching method, which includes:

[0148] When determining to switch from a first scene to a second scene, obtaining a first still frame displayed by the first scene;

[0149] Generate and play a first light effect animation according to the first still frame;

[0150] Acquire a second still frame image to be displayed by the second scene, and generate a second light effect animation according to the second still frame image;

[0151] Play the second light effect animation, and switch to the second scene when the second light effect animation is finished playing.

[0152] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0153] Exemplary computer program products and storage media

[0154] In addition to the above-mentioned methods and devices, the scene switching method provided in the embodiments of this specification may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the scene switching method according to various embodiments of this specification described in the above "Exemplary Method" section of this specification.

[0155] The computer program product can be written in any combination of one or more programming languages ​​to write program codes for executing the operations of the embodiments of this specification, and the programming languages ​​include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as "C" language or similar programming languages.

[0156] In addition, an embodiment of the present specification also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the scene switching method according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.

[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this specification can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0158] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0159] The above-mentioned embodiments only express several implementation methods of this specification, and the descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the solutions provided by the embodiments of this specification. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.

Claims

1. A scene switching method, characterized in that: include: When determining to switch from a first scene to a second scene, obtaining a first still frame displayed by the first scene; Generate and play a first light effect animation according to the first still frame; Acquire a second still frame image to be displayed by the second scene, and generate a second light effect animation according to the second still frame image; Play the second light effect animation, and switch to the second scene when the second light effect animation is finished playing.

2. The scene switching method according to claim 1, characterized in that: The step of generating and playing a first light effect animation according to the first still frame includes: Extracting first feature information of the first still frame; generating the first light effect animation according to the first characteristic information; Play the first light effect animation.

3. The scene switching method according to claim 2, characterized in that: The generating the first light effect animation according to the first feature information includes: Determine a first light effect animation type and a first contour line of the first still frame according to the first feature information; Based on the first light effect animation type, the first light effect animation is generated using the first contour line.

4. The scene switching method according to claim 1, characterized in that: The step of obtaining a second still frame image to be displayed by the second scene, and generating a second light effect animation according to the second still frame image, includes: Acquire a second still frame to be displayed by the second scene; Extracting second feature information of the second still frame; The second light effect animation is generated according to the second feature information.

5. The scene switching method according to claim 4, characterized in that: The generating the second light effect animation according to the second feature information includes: Determine a second light effect animation type and a second contour line of the second still frame according to the second feature information; Based on the second light effect animation type, the second light effect animation is generated using the second contour line.

6. The scene switching method according to claim 1, characterized in that: The step of generating and playing a first light effect animation according to the first still frame includes: generating a first light effect animation according to the first still frame and a preset target still frame; Play the first light effect animation.

7. The scene switching method according to claim 6, characterized in that: The step of obtaining a second still frame image to be displayed by the second scene, and generating a second light effect animation according to the second still frame image, includes: Acquire a second still frame to be displayed by the second scene; A second light effect animation is generated according to the second still frame and the target still frame.

8. A scene switching device, characterized in that: include: A first acquisition unit, configured to acquire a first still frame displayed by the first scene when determining to switch from the first scene to the second scene; A first processing unit, configured to generate and play a first light effect animation according to the first still frame; A second acquisition unit, configured to acquire a second still frame image to be displayed by the second scene, and generate a second light effect animation according to the second still frame image; The second processing unit is used to play the second light effect animation and switch to the second scene after playing the second light effect animation.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the scene switching method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the scene switching method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the scene switching method according to any one of claims 1 to 7 is implemented.