A weather dynamic effect display method, computer storage medium and electronic device

By using sensors in smart terminal devices to dynamically adjust the display of weather renderings, we simulate weather effects at different angles and distances according to user movement, the problem of low user experience caused by a single template for weather display in smart terminal devices is solved, and the user experience is achieved More vivid and rich weather information display.

CN117793239BActive Publication Date: 2024-11-08HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211201954.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2024-11-08
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

The single dynamic weather effect template of smart terminal devices leads to a low user experience, and users are prone to monotonous feeling.

Method used

By using sensors such as gyroscopes and altimeters in electronic devices, collecting data to determine the visible angle of the display, and dynamically adjusting the display of weather renderings based on user movement, simulating weather effects in real-life scenarios, including head-up viewing , looking up and looking down angles, as well as changes in distance and height, enhance the visual experience.

Benefits of technology

It improves the user's visual experience and human-computer interaction experience, makes the weather information display more vivid and rich, and avoids the monotony brought by a single template.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117793239B_ABST
    Figure CN117793239B_ABST
Patent Text Reader

Abstract

The present application discloses a method for displaying dynamic weather effects, a computer storage medium, and an electronic device, and relates to the field of communication technology. In the present application, the electronic device will display the dynamic effects of the weather type corresponding to the weather in the real scene that the user views at a changing visual angle in a simulated real scene as the user holds the electronic device and moves, thereby improving the user's visual experience and human-computer interaction experience. The method includes: the electronic device responds to the user's operation of opening a weather application, obtains the current weather type, and starts at least one sensor; the data collected by the gyroscope is used to determine the visual angle of the display screen of the electronic device, and the visual angle includes horizontal, upward, and downward viewing; the electronic device displays a first interface; wherein the first interface includes a dynamic effect diagram of the weather effect element corresponding to the weather type; the dynamic effect diagram is used to simulate the dynamic effect of the weather type corresponding to the weather in the real scene that the user views at a visual angle in the real scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for displaying dynamic weather effects, a computer storage medium, and an electronic device. Background Art

[0002] With the rapid development of information technology, electronic devices such as smart terminals can display weather conditions to people, so that people can obtain weather information more conveniently.

[0003] At present, in order to improve people's experience of weather conditions, more realistic dynamic weather effects are constantly being developed, and electronic devices such as smart terminals can show people more realistic dynamic weather effects.

[0004] However, in current electronic devices such as smart terminals, since the display screens of electronic devices such as smart terminals only reflect the current weather conditions through a single dynamic weather effect template, users are prone to feel monotony, resulting in a low user experience. Summary of the invention

[0005] The embodiments of the present application provide a method for displaying dynamic weather effects, a computer storage medium and an electronic device, which are used to solve the problem that the display screens of electronic devices such as the aforementioned smart terminals only reflect the current weather conditions through a single dynamic weather effect template, which easily produces a monotonous feeling for users and leads to a low user experience.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, the present application provides a method for displaying dynamic weather effects, which is applied to an electronic device, wherein the electronic device includes at least one sensor, and the at least one sensor includes a gyroscope. The method includes: in response to a user's operation of opening a weather application, obtaining the current weather type, and starting at least one sensor; the data collected by the gyroscope is used to determine the viewing angle of the display screen of the electronic device, and the viewing angles include horizontal, upward, and downward; the electronic device displays a first interface; wherein the first interface includes a dynamic effect diagram of a weather effect element corresponding to the weather type; the dynamic effect diagram is used to simulate the dynamic effect of the weather corresponding to the weather type in a real scene, which is viewed by the user at a visual angle in a real scene.

[0008] In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a visual angle in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.

[0009] In a possible implementation of the first aspect, when the viewing angle is horizontal, the dynamic rendering shows that the weather effect elements corresponding to the weather type are moving from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than a first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground.

[0010] In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene that the user sees with a head up view in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.

[0011] In another possible implementation of the first aspect, when the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.

[0012] In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene that the user sees by looking up in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.

[0013] In another possible implementation of the first aspect, when the viewing angle is a top-down view, the dynamic effect diagram presents a dynamic effect in which the weather effect elements corresponding to the weather type fall from a high place to a plane, and the weather effect elements corresponding to the weather type change from small to large and fall on the plane.

[0014] In this way, the electronic device will display the dynamic weather effect corresponding to the weather type in the real scene viewed by the user from a bird's-eye view in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.

[0015] In another possible implementation of the first aspect, at least one sensor also includes an altimeter, which is used to collect the height of the display screen from the ground; the height of the display screen from the ground affects the contact area between the weather effect elements corresponding to the weather type presented in the dynamic effect diagram and the plane when they fall on the plane; wherein, the greater the height of the display screen from the ground, the greater the contact area; and the smaller the height of the display screen from the ground, the smaller the contact area.

[0016] In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a different distance from the ground in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.

[0017] In another possible implementation of the first aspect, at least one sensor also includes a distance sensor, which is used to collect the distance between the display screen and the user; the distance affects the size of the weather effect elements corresponding to the weather type presented in the dynamic effect graph, and the density of the size of the weather effect elements corresponding to the weather type; wherein, the greater the distance, the smaller the weather effect elements corresponding to the weather type, and the denser the weather effect elements corresponding to the weather type; the smaller the distance, the larger the weather effect elements corresponding to the weather type, and the sparser the weather effect elements corresponding to the weather type.

[0018] In this way, the electronic device will display the dynamic weather effects corresponding to the weather types in the real scene viewed by the user from near and far as the user moves the electronic device, thereby improving the user's visual experience.

[0019] In another possible implementation of the first aspect, in response to a user opening a weather application, the current weather type is obtained and at least one sensor is activated, including: in response to a user opening a weather application, the current weather type is obtained and a second interface is displayed; wherein the second interface includes an image of a dynamic weather effect corresponding to the weather type; in response to a first gesture operation of the user on the second interface, at least one sensor is activated; wherein the first gesture operation is used to trigger the electronic device to start a preset motion effect function of the weather application, and the preset motion effect function is used to display a dynamic effect image.

[0020] In this way, the user experience can be improved by prompting the user and turning on the preset animation function.

[0021] In another possible implementation manner of the first aspect, the weather type includes any one of rainy days, snowy days, or hail.

[0022] In a second aspect, an electronic device is provided, which includes a processor and a memory; the memory is used to store code instructions; the processor is used to run the code instructions to execute an antenna control method in any possible design method as in the first aspect.

[0023] In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes an antenna control method in any possible design manner in the first aspect.

[0024] Among them, the technical effects brought about by any design method in the second aspect and the third aspect can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1AAccording to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown;

[0026] Figure 1B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown;

[0027] Figure 2 According to some embodiments of the present application, corresponding to Figure 1A and Figure 1B , showing a schematic diagram of a display interface of a dynamic weather effect in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is horizontal;

[0028] Figure 3A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown;

[0029] Figure 3B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown;

[0030] Figure 4 According to some embodiments of the present application, corresponding to Figure 3A and Figure 3B , shows a schematic diagram of a display interface of a dynamic weather effect in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is looking up;

[0031] Figure 5A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown;

[0032] Figure 5B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown;

[0033] Figure 6 According to some embodiments of the present application, corresponding to Figure 5A and Figure 5B , showing a schematic diagram of a display interface of a dynamic weather effect in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is a top view;

[0034] Figure 7 According to some embodiments of the present application, a schematic flow chart of a method for displaying dynamic weather effects is shown;

[0035] Figure 8 According to some embodiments of the present application, a schematic diagram of an interface is shown;

[0036] Fig. 9 According to some embodiments of the present application, a schematic diagram of an interface is shown;

[0037] Fig.10 According to some embodiments of the present application, a structural schematic diagram of a mobile phone 100 suitable for the present application is shown. DETAILED DESCRIPTION

[0038] The illustrative embodiments of the present application include, but are not limited to, a method for displaying dynamic weather effects, a computer storage medium, and an electronic device.

[0039] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0040] In order to solve the technical problems in the aforementioned background technology, an embodiment of the present application provides a method for displaying dynamic weather effects, which is applied to an electronic device, the electronic device includes at least one sensor, and the at least one sensor includes a gyroscope, and the method includes:

[0041] In response to a user opening a weather application, the electronic device obtains the current weather type and activates at least one sensor; wherein the data collected by the gyroscope is used to determine the viewing angle of the display screen of the electronic device, and the viewing angle includes horizontal, upward and downward viewing.

[0042] When a user moves a handheld electronic device, the viewing angle of the display screen of the electronic device generally changes. After the electronic device detects the change, the electronic device displays a first interface based on the change; wherein the first interface includes a dynamic rendering of weather effect elements corresponding to the weather type; the dynamic rendering is used to simulate the dynamic effect of the weather corresponding to the weather type in the real scene, which is viewed by the user at a visual angle in the real scene.

[0043] In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a changing viewing angle in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience and human-computer interaction experience.

[0044] Specifically, when the viewing angle is horizontal, the weather effect element corresponding to the weather type presented in the dynamic effect graph is from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than the first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground. The following takes the electronic device as a mobile phone and the weather type as a rainy day as an example to further describe the technical solution of the present application.

[0045] For example, Figure 1AAccording to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 1B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 2 According to some embodiments of the present application, corresponding to Figure 1A and Figure 1B , shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is level.

[0046] like Figure 1A As shown, the application scenario includes a user and a mobile phone 100 held by the user. The viewing angle of the display screen of the mobile phone 100 is horizontal. Figure 1B As shown, the horizontal viewing range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to angle A. In response to the user opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is horizontal. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees with a horizontal view. For example, Figure 2 As shown, when the viewing angle is level, the dynamic effect diagram of a rainy day shows that the raindrop effect elements corresponding to a rainy day move from the first end to the second end of the mobile phone 100 and at an angle of zero degrees to the plane where the display screen is located; wherein the first end is the end of the mobile phone 100 away from the ground, and the second end is the end of the mobile phone 100 close to the ground.

[0047] When the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.

[0048] For example, Figure 3A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 3B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 4 According to some embodiments of the present application, corresponding to Figure 3A and Figure 3B , shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is looking up.

[0049] like Figure 3A As shown, the viewing angle of the display screen of the mobile phone 100 is upward viewing. Figure 3B As shown, the horizontal viewing range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to the angle B. In response to the user opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is upward. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees by looking up. For example, Figure 4 As shown, when the viewing angle is looking up, the rainy day dynamic effect diagram presents a dynamic effect in which the raindrop effect element corresponding to the rainy day moves from the first end to the second end of the mobile phone 100, and the raindrop effect element corresponding to the rainy day changes from small to large.

[0050] When the viewing angle is a bird's-eye view, the dynamic effect diagram presents a dynamic effect in which the weather effect elements corresponding to the weather type fall from a high place to a plane, and the weather effect elements corresponding to the weather type change from small to large and fall on the plane.

[0051] For example, Figure 5A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 5B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 6 According to some embodiments of the present application, corresponding to Figure 5A and Figure 5B , shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is a top view.

[0052] like Figure 5A As shown, the viewing angle of the display screen of the mobile phone 100 is a top view. Figure 5B As shown, the horizontal viewing range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to the angle C. In response to the user opening the weather application, the mobile phone 100 obtains the current weather type as rainy day, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is a top view. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees from a top view. For example, Figure 6 As shown, the rainy day dynamic effect diagram presents the dynamic effect of raindrop effect elements corresponding to the rainy day falling from a high place to a plane, and the raindrop effect elements corresponding to the rainy day growing from small to large, splashing water on the plane.

[0053] In the embodiment of the present application, the weather types are mainly divided into rainy days, snowy days, hail, etc. Of course, the weather types described in the embodiment of the present application include but are not limited to the above weather. For example, rainy days can also be subdivided into: light rain, moderate rain, heavy rain, rainstorm, etc.; snowy days can also be subdivided into: light snow, moderate snow, heavy snow, blizzard, etc. The electronic device can be various devices that can display dynamic effects, such as mobile phones, tablets, etc.

[0054] It is understood that the first interface includes multiple preset modules displaying information and dynamic weather effects, or multiple preset modules displaying information and dynamic effect diagrams. For example, multiple preset modules displaying information may include 10-day forecast, daily temperature, air quality, precipitation, UV index, sunset / sunrise time, wind, humidity, "feeling" temperature, visibility, and pressure. Users can click on these modules to get more information.

[0055] In some embodiments, the preset area of ​​the first interface displays dynamic weather effects or dynamic effect graphs, and does not cover the display information of multiple preset modules. Specifically, if part of the display information of the preset modules is displayed in the preset area, part of the display information of the preset modules is displayed on the layer of the dynamic weather effect or dynamic effect graph. In this way, the user can clearly see the display information of the preset modules and can also see the complete dynamic weather effect, thereby improving the user experience.

[0056] Figure 7 According to some embodiments of the present application, a schematic diagram of a method for displaying dynamic weather effects is shown. As shown in FIG7 , the execution subject of the process may be a mobile phone 100, and the process includes the following steps:

[0057] 701: In response to the user opening the weather application, the current weather type is obtained and at least one sensor of the mobile phone 100 is activated; wherein the data collected by the gyroscope is used to determine the viewing angle of the display screen of the mobile phone 100, and the viewing angle includes horizontal, upward and downward viewing.

[0058] The main interface of the mobile phone 100 includes icons of multiple applications, including a weather application. The user's operation of opening the weather application may be: a user clicking the icon of the weather application. Generally speaking, in response to the user's operation of opening the weather application, the mobile phone 100 may obtain the current weather type and display the homepage of the weather application. The homepage of the weather application (such as the second interface) may include an image of a dynamic weather effect corresponding to the weather type.

[0059] In the embodiment of the present application, in response to the user opening the weather application, the mobile phone 100 not only obtains the current weather type, but also activates the gyroscope. The mobile phone 100 activates the gyroscope to determine the viewing angle of the display screen of the mobile phone 100, so as to simulate for the user in the weather application: in the real scene, the weather type in the real scene viewed by the user at the viewing angle corresponds to the dynamic effect of the weather.

[0060] In some embodiments, in response to the user's operation of opening the weather application, the mobile phone 100 can obtain the current weather type, and then display the homepage of the weather application (such as the second interface). Then, in response to the user's operation on the second interface, the mobile phone 100 activates the gyroscope to facilitate presenting the above-mentioned human-computer interaction dynamic effect based on the weather type to the user. Specifically, the above-mentioned 701 may include 701a-701b:

[0061] 701a: In response to the user opening the weather application, the mobile phone 100 obtains the current weather type and displays the second interface.

[0062] The second interface includes an image of a dynamic weather effect corresponding to the weather type. For example, Figure 8 According to some embodiments of the present application, a schematic diagram of an interface is shown, such as Figure 8 As shown, at the current viewing angle, if the weather type is rainy, the second interface includes a dynamic effect of raindrops falling from the top to the bottom of the mobile phone 100.

[0063] 701b: In response to the user's first gesture operation on the second interface, the mobile phone 100 activates the rear camera. The first gesture operation is used to trigger the mobile phone 100 to activate a preset dynamic effect function of the weather application, and the preset dynamic effect function is used to display a dynamic effect diagram.

[0064] It can be understood that the preset dynamic effect function means that the mobile phone 100 can apply the display solution of weather dynamic effects provided in the embodiment of the present application to display dynamic effect pictures.

[0065] In one implementation, the first gesture operation may be a gesture of a preset shape input by the user on the second interface, such as a √-shaped gesture or an S-shaped gesture.

[0066] In another implementation, the second interface also includes a function switch or a pop-up window for triggering the mobile phone 100 to start a preset dynamic effect function of the weather application. The first gesture operation can be for the user to turn on the aforementioned function switch or select a confirmation option in the aforementioned pop-up window. For example, Fig. 9 According to some embodiments of the present application, a schematic diagram of an interface is shown, such as Fig. 9As shown, the second interface also includes a pop-up window 1, which includes a prompt message: "Do you want to turn on the dynamic effect function of the weather application?" The pop-up window 1 also includes a confirmation button 2 and a cancel button. The confirmation button 2 is used to trigger the mobile phone 100 to start the preset dynamic effect function of the weather application. The first gesture operation can be that the user clicks the confirmation button 2.

[0067] In the embodiment of the present application, the mobile phone 100 can provide the user with a switch entrance for turning on the preset motion effect function on the second interface, and the user can choose whether to turn on the preset motion effect function. In this way, the mobile phone 100 can choose whether to turn on the preset motion effect function according to the user's wishes.

[0068] In other embodiments, the mobile phone 100 can not only provide the user with a switch entrance for turning on the preset motion effect function on the second interface, but also display the effect video corresponding to the preset motion effect function on the second interface. In this way, the user can conveniently choose whether to turn on the preset motion effect function based on the effect video.

[0069] 702: Display a first interface, wherein the first interface includes a dynamic effect diagram of a weather effect element corresponding to a weather type; the dynamic effect diagram is used to simulate the dynamic effect of the weather corresponding to the weather type in a real scene viewed by a user from a visual angle in a real scene.

[0070] Specifically, when the viewing angle is horizontal, the weather effect element corresponding to the weather type presented in the dynamic effect graph is from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than the first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground. The following takes the electronic device as a mobile phone and the weather type as a rainy day as an example to further describe the technical solution of the present application.

[0071] For example, Figure 1A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 1B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 2 According to some embodiments of the present application, corresponding to Figure 1A and Figure 1B , shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is level.

[0072] like Figure 1A As shown, the application scenario includes a user and a mobile phone 100 held by the user. The viewing angle of the display screen of the mobile phone 100 is horizontal. Figure 1BAs shown, the horizontal viewing range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to angle A. In response to the user opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is horizontal. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees with a horizontal view. For example, Figure 2 As shown, when the viewing angle is level, the dynamic effect diagram of a rainy day shows that the raindrop effect elements corresponding to a rainy day move from the first end to the second end of the mobile phone 100 and at an angle of zero degrees to the plane where the display screen is located; wherein the first end is the end of the mobile phone 100 away from the ground, and the second end is the end of the mobile phone 100 close to the ground.

[0073] When the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.

[0074] For example, Figure 3A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 3B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 4 According to some embodiments of the present application, corresponding to Figure 3A and Figure 3B , shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is looking up.

[0075] like Figure 3A As shown, the viewing angle of the display screen of the mobile phone 100 is upward viewing. Figure 3B As shown, the horizontal viewing range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to the angle B. In response to the user opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is upward. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees by looking up. For example, Figure 4 As shown, when the viewing angle is looking up, the rainy day dynamic effect diagram presents a dynamic effect in which the raindrop effect element corresponding to the rainy day moves from the first end to the second end of the mobile phone 100, and the raindrop effect element corresponding to the rainy day changes from small to large.

[0076] When the viewing angle is a bird's-eye view, the dynamic effect diagram presents a dynamic effect in which the weather effect elements corresponding to the weather type fall from a high place to a plane, and the weather effect elements corresponding to the weather type change from small to large and fall on the plane.

[0077] For example, Figure 5A According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 5B According to some embodiments of the present application, a schematic diagram of an application scenario of a method for displaying dynamic weather effects is shown. Figure 6 According to some embodiments of the present application, corresponding to Figure 5A and Figure 5B , shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is a top view.

[0078] like Figure 5A As shown, the viewing angle of the display screen of the mobile phone 100 is a top view. Figure 5B As shown, the horizontal viewing range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to the angle C. In response to the user opening the weather application, the mobile phone 100 obtains the current weather type as rainy day, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is a top view. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees from a top view. For example, Figure 6 As shown, the rainy day dynamic effect diagram presents the dynamic effect of raindrop effect elements corresponding to the rainy day falling from a high place to a plane, and the raindrop effect elements corresponding to the rainy day growing from small to large, splashing water on the plane.

[0079] In the embodiment of the present application, the mobile phone 100 can not only simulate the dynamic effects of the weather type corresponding to the real scene viewed by the user with a changing viewing angle based on the viewing angle of the mobile phone 100, but also can further simulate the dynamic effects of the weather type corresponding to the real scene viewed by the user with a changing vertical distance and / or horizontal distance from the mobile phone 100 based on the vertical distance of the mobile phone 100 from the ground and / or the horizontal distance from the mobile phone 100.

[0080] In some embodiments, at least one sensor of mobile phone 100 also includes an altimeter, which is used to collect the height of the display screen from the ground; the height of the display screen from the ground affects the contact area between the weather effect element corresponding to the weather type presented in the dynamic effect diagram and the plane when it falls on the plane; wherein, the greater the height of the display screen from the ground, the greater the contact area; the smaller the height of the display screen from the ground, the smaller the contact area.

[0081] In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a different distance from the ground in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.

[0082] In some embodiments, at least one sensor of mobile phone 100 also includes a distance sensor, which is used to collect the distance between the display screen and the user; the distance affects the size of the weather effect elements corresponding to the weather type presented in the dynamic effect graph, as well as the density of the size of the weather effect elements corresponding to the weather type; wherein, the greater the distance, the smaller the weather effect elements corresponding to the weather type, and the denser the weather effect elements corresponding to the weather type; the smaller the distance, the larger the weather effect elements corresponding to the weather type, and the sparser the weather effect elements corresponding to the weather type.

[0083] In this way, the electronic device will display the dynamic weather effects corresponding to the weather types in the real scene viewed by the user from near and far as the user moves the electronic device, thereby improving the user's visual experience.

[0084] Fig.10 According to some embodiments of the present application, a schematic diagram of the structure of a mobile phone 100 suitable for the present application is shown. Fig.10As shown, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, an altimeter 180M, etc.

[0085] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0086] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. In an embodiment of the present application, the processor 110 can execute the weather dynamic effect display method provided in an embodiment of the present application.

[0087] The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0088] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0089] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0090] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0091] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0092] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. In the embodiment of the present application, the display screen 194 can display the aforementioned first interface and the second interface.

[0093] The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0094] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0095] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1. In the embodiment of the present application, the camera 193 includes a rear camera for shooting rear scenes.

[0096] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0097] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the mobile phone 100, which is different from the position of the display screen 194.

[0098] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The mobile phone 100 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 100.

[0099] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0100] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0101] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0102] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0103] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0104] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable storage media. Therefore, a machine-readable storage medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) via electrical, optical, acoustic or other forms of propagation signals over the Internet. Therefore, a machine-readable storage medium includes any type of machine-readable storage medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).

[0105] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0106] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0107] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0108] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A method for displaying dynamic weather effects, characterized in that: The method is applied to an electronic device, the electronic device includes at least one sensor, the at least one sensor includes a gyroscope and a distance sensor, the distance sensor is used to collect the distance between the display screen and the user, and the method includes: In response to a user opening a weather application, the current weather type is obtained and the at least one sensor is activated; the data collected by the gyroscope is used to determine the viewing angle of the display screen of the electronic device, the viewing angle including horizontal viewing, upward viewing and downward viewing; The electronic device displays a first interface; wherein the first interface includes a dynamic rendering of the weather effect elements corresponding to the weather type; the dynamic rendering is used to simulate the dynamic effect of the weather corresponding to the weather type in the real scene viewed by the user at the viewing angle in a real scene; wherein, the greater the distance between the display screen and the user, the smaller and denser the weather effect elements are; and the smaller the distance between the display screen and the user, the larger and sparser the weather effect elements are.

2. The method according to claim 1, characterized in that When the viewing angle is horizontal, the dynamic effect diagram presents the weather effect element corresponding to the weather type from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than a first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground.

3. The method according to claim 1 or 2, characterized in that: When the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.

4. The method according to claim 1 or 2, characterized in that: When the viewing angle is a top-down view, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type falls from a high place to a plane, and the weather effect element corresponding to the weather type changes from small to large and falls on the plane.

5. The method according to claim 4, characterized in that The at least one sensor further comprises an altimeter, and the altimeter is used to collect the height of the display screen from the ground; The height of the display screen from the ground affects the contact area between the weather effect element corresponding to the weather type presented by the dynamic effect graph and the plane when the weather effect element falls on the plane; The greater the height of the display screen from the ground, the greater the contact area; the smaller the height of the display screen from the ground, the smaller the contact area.

6. The method according to any one of claims 1, 2 or 5, characterized in that: The step of obtaining the current weather type and activating the at least one sensor in response to the user opening the weather application comprises: In response to the user opening the weather application, the current weather type is obtained, and a second interface is displayed; wherein the second interface includes an image of a dynamic weather effect corresponding to the weather type; In response to a first gesture operation of the user on the second interface, the at least one sensor is activated; wherein the first gesture operation is used to trigger the electronic device to activate a preset motion effect function of the weather application, and the preset motion effect function is used to display the dynamic effect diagram.

7. The method according to claim 1, characterized in that The weather type includes any one of rainy day, snowy day or hail.

8. An electronic device, characterized in that: The electronic device comprises a processor and a memory; the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device executes the method as described in any one of claims 1-7.

9. A computer storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 7.