A weather dynamic effect display method, computer storage medium and electronic device
By using the rear camera in smart terminal devices to simulate weather effects and user gesture interaction, the problem of low user experience caused by single weather display is solved, and a more vivid and diverse weather display is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202211201968.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-09-29
AI Technical Summary
The display screen of smart terminal devices displays the weather status through a single dynamic weather effect template, resulting in low user experience and lack of interactivity and diversity.
By using a rear camera in electronic devices, we simulate the dynamic effects of target objects under different weather conditions in real scenes, and combined with user gestures to display dynamic effects of various weather types, such as the interactive dynamics of raindrops, snowflakes, fog and white clouds. Effect.
It improves the interactive experience between users and weather dynamic effects, enhances human-computer interaction, breaks the limitations of a single template, and provides more vivid and diverse weather display methods.
Smart Images

Figure CN116708640B_ABST
Abstract
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, and the method includes:
[0008] In response to a user opening a weather application, the electronic device obtains the current weather type and starts the rear camera; then, the electronic device displays a first interface; wherein the first interface includes a dynamic effect graph that combines the target material with the dynamic weather effect corresponding to the weather type; the target material corresponds one-to-one to the target object captured by the rear camera, and the dynamic weather effect corresponding to the weather type includes weather effect elements for representing the weather type; the dynamic effect graph is used to simulate the dynamic effect of the target object making corresponding actions in the weather corresponding to the weather type in a real scene.
[0009] In this way, electronic devices do not reflect the current weather conditions through a single dynamic weather effect template, but will simulate the dynamic effects of the target object captured by the rear camera in the real scene and making corresponding actions in the weather corresponding to the weather type, thereby improving the human-computer interaction experience.
[0010] In a possible implementation of the first aspect, in response to a user opening an operation of a weather application, the electronic device obtains a current weather type, and the electronic device activates a rear camera, including: in response to a user opening an operation of a weather application, the electronic device obtains a current weather type and displays a second interface; wherein the second interface includes an image of a dynamic weather effect corresponding to the weather type;
[0011] In response to the user's first gesture operation on the second interface, the electronic device starts the rear camera; 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 diagram.
[0012] In the embodiment of the present application, the user experience can be improved by prompting the user and turning on the preset motion effect function.
[0013] In another possible implementation manner of the first aspect, the weather types include: sunny day, cloudy day, foggy day, rainy day and snowy day.
[0014] In another possible implementation of the first aspect, the weather type is rainy, and the weather effect elements include raindrops; or the weather type is snowy, and the weather effect elements include snowflakes; the dynamic effect diagram is used to simulate the dynamic effect of raindrops falling on the target object in a real rainy scene through the dynamic effect of raindrops falling on the target material; and the target material makes the movement of the target object captured by the rear camera, simulating the dynamic effect of the target object in a real rainy scene making corresponding movements under the weather corresponding to the weather type.
[0015] In this way, the electronic device will simulate the dynamic effect of the target object captured by the rear camera in the real scene making corresponding actions under the weather corresponding to the weather type, thereby improving the user experience.
[0016] In another possible implementation of the first aspect, the weather type is sunny, and the weather effect elements include blue sky and white clouds; the method also includes: in response to the user's second gesture operation on the first interface or the second interface, the electronic device displays on the first interface or the second interface a dynamic effect of the weather effect elements corresponding to the white clouds moving along a moving trajectory corresponding to the second gesture operation; wherein the second gesture operation is a movement operation of the weather effect elements corresponding to the white clouds.
[0017] This allows users to interact with dynamic weather effects in the interface, thereby improving the user experience.
[0018] In another possible implementation manner of the first aspect, the weather type is foggy, and the weather effect element includes fog; the method further includes:
[0019] In response to the user's second gesture operation on the first interface or the second interface, the electronic device displays the trace of the sliding track of the second gesture operation on the weather effect element corresponding to the fog on the first interface or the second interface; wherein the second gesture operation is a sliding operation on the weather effect element corresponding to the fog.
[0020] This allows users to interact with weather effect elements in the interface, thereby improving the user experience.
[0021] In another possible implementation manner of the first aspect, the weather type is snowy, and the weather effect element includes snow; the method further includes:
[0022] In response to the user's second gesture operation on the first interface or the second interface, the electronic device displays on the first interface or the second interface the footprints produced by the click area of the second gesture operation on the weather effect element corresponding to the snow; wherein the second gesture operation is a click operation on the weather effect element corresponding to the snow.
[0023] This allows users to interact with weather effect elements in the interface, thereby improving the user experience.
[0024] In another possible implementation of the first aspect, the target object includes at least one of a human body, a plant, and an animal; the electronic device displays a first interface, including: if the image captured by the rear camera includes an image of the target object, the electronic device displays the first interface.
[0025] 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, so that the electronic device executes an antenna control method in any possible design method in the first aspect.
[0026] 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.
[0027] 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
[0028] Figure 1 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 2 According to some embodiments of the present application, a schematic diagram of an interface is shown;
[0030] Figure 3 According to some embodiments of the present application, a schematic diagram of an interface is shown;
[0031] Figure 4 According to some embodiments of the present application, a schematic diagram of an interface is shown;
[0032] Figure 5 According to some embodiments of the present application, a schematic flow chart of a method for displaying dynamic weather effects is shown;
[0033] Figure 6 According to some embodiments of the present application, a schematic diagram of an interface is shown;
[0034] Figure 7 According to some embodiments of the present application, a schematic diagram of an interface 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 schematic diagram of an interface is shown;
[0038] Fig.11 According to some embodiments of the present application, a schematic diagram of an interface is shown;
[0039] Fig.12 According to some embodiments of the present application, a schematic diagram of an interface is shown;
[0040] Fig.13 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
[0041] 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.
[0042] 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.
[0043] 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, the method comprising: the electronic device responds to the user's operation of opening the weather application, obtains the current weather type, and starts the rear camera. Then, the electronic device displays the weather application interface corresponding to the weather type (hereinafter referred to as the first interface), wherein the weather application interface includes a dynamic effect diagram combining the target material and the dynamic weather effect corresponding to the weather type; the target material corresponds to the target object captured by the rear camera one by one; the dynamic effect diagram is used to simulate the dynamic effect of the target object making corresponding actions in the weather corresponding to the weather type in the real scene.
[0044] In this way, electronic devices do not reflect the current weather conditions through a single dynamic weather effect template, but will simulate the dynamic effects of the target object captured by the rear camera in the real scene making corresponding actions in the weather corresponding to the weather type, thereby improving the human-computer interaction experience.
[0045] The following takes the electronic device as a mobile phone and the weather type as a rainy day as an example to further introduce the technical solution of the present application in detail.
[0046] For example, Figure 1 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, a schematic diagram of an interface is shown.
[0047] like Figure 1 As shown, the application scenario includes a user and a mobile phone 100 held by the user. In response to the user opening the weather application, the mobile phone 100 obtains the current weather type as rainy day and starts the rear camera. Figure 2 As shown, the mobile phone 100 displays a weather application interface corresponding to a rainy day, wherein the weather application interface includes a dynamic effect of a potted plant material 2 combined with a dynamic weather effect 1 corresponding to a rainy day. Figure 3 ; Potted plant material 2 corresponds to the potted plant captured by the rear camera; Dynamic effect Figure 3 It is used to simulate the dynamic effect of potted plants being hit by raindrops in the corresponding weather conditions on rainy days in real scenes.
[0048] In the embodiment of the present application, the weather types are mainly divided into sunny days, cloudy days, foggy days, rainy days, snowy days, 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, snowstorm, etc.
[0049] In the embodiment of the present application, the target object includes at least one of a human body, a plant, and an animal.
[0050] In the embodiment of the present application, the dynamic weather effect corresponding to the weather type includes a weather effect element for indicating the weather type. For example, if the weather type is rainy, the rainy effect element may include any one or more combinations of raindrops in the rainy day, rainy ground, etc.; if the weather type is snowy, the snowy effect element includes any one or more combinations of snowflakes in the snowy day, snow ground, etc. The embodiment of the present application does not impose any restrictions on the weather effect elements.
[0051] In the embodiment of the present application, the target material corresponds to the target object captured by the rear camera. In some embodiments, if the electronic device parses the target object from the image captured by the rear camera, the target material corresponding to the target object is obtained. In other embodiments, if the electronic device parses the target object from the image captured by the rear camera, and the action of the target object is a preset action, the target material corresponding to the preset action of the target object is obtained.
[0052] For example, after the mobile phone 100 detects that the user has opened the weather application, a snowy dynamic effect corresponding to a snowy day is displayed on the display screen of the mobile phone 100, and the rear camera is turned on to collect pictures taken by the rear camera.
[0053] If the mobile phone 100 analyzes the feet based on the collected pictures, and when the foot action is to step on the ground statically, it obtains the foot animation material corresponding to the static step on the ground, combines the foot animation material with the snowy dynamic effect, and displays a new snowy dynamic effect picture on the display screen based on the combination result. For example, Figure 3 According to some embodiments of the present application, a schematic diagram of an interface is shown. Figure 3 As shown, the snowy dynamic effect 4 is snowing in the sky and snow piled up on the ground. The combined result includes the foot animation material 5 and the snowy dynamic effect 4. The foot animation material 5 includes a pair of feet, and the new snowy dynamic effect Figure 6 A pair of feet stepping on the snow in Snow Dynamic Effect 4.
[0054] If the mobile phone 100 analyzes the feet based on the collected pictures, and when the foot movement is walking on the ground, it obtains the animation material with footprints corresponding to walking on the ground, combines the animation material with footprints with the snowy dynamic effect, and displays a new snowy dynamic effect picture on the display screen. For example, Figure 4 According to some embodiments of the present application, a schematic diagram of an interface is shown. Figure 4 As shown, the snowy dynamic effect 4 is snowing in the sky and snow piled up on the ground. The combined result includes the animation material 7 with footprints and the snowy dynamic effect 4. The animation material 7 with footprints includes one foot and the footprints corresponding to the other foot. New snowy dynamic effect Figure 8One foot is stepping on the snow in the snowy dynamic effect 4, and the corresponding footprint of the other foot is covering the snow in the snowy dynamic effect 4.
[0055] The electronic device may be any device capable of displaying dynamic effects, such as a mobile phone, a tablet, etc.
[0056] 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.
[0057] 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.
[0058] For example, Figure 3 As shown, the dynamic effect of snow Figure 6 The average temperature of 25 degrees on the same day is displayed in the preset area of the display screen at the same time, and the average temperature of 25 degrees is displayed on the layer of the new snowy dynamic effect with the preset transparency. In this way, the user can clearly see the average temperature of 25 degrees on the same day, and can also fully see the new snowy dynamic effect, thereby improving the user experience.
[0059] Figure 5 According to some embodiments of the present application, a flow chart of a method for displaying dynamic weather effects is shown.
[0060] like Figure 5 As shown, the execution subject of the process may be the mobile phone 100, and the process includes the following steps:
[0061] 501: In response to the user opening the weather application, obtaining the current weather type and starting the rear camera.
[0062] 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.
[0063] 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 rear camera. The mobile phone 100 activates the rear camera to capture the action of the target object, so as to simulate for the user in the weather application: in a real scene, the dynamic effect of the target object performing a corresponding action under the weather corresponding to the above weather type.
[0064] In some embodiments, the mobile phone 100 can obtain the current weather type in response to the user's operation of opening the weather application, and then display the homepage of the weather application (such as the second interface) first. Then, the mobile phone 100 responds to the user's operation on the second interface and then starts the rear camera to facilitate presenting the above-mentioned human-computer interaction dynamic effect based on the weather type to the user. Specifically, the above 501 may include 501a-501b:
[0065] 501a: In response to the user opening the weather application, the mobile phone 100 obtains the current weather type and displays the second interface.
[0066] The second interface includes an image of a dynamic weather effect corresponding to the weather type. For example, Figure 6 According to some embodiments of the present application, a schematic diagram of an interface is shown, such as Figure 6 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.
[0067] 501b: 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.
[0068] 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.
[0069] 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.
[0070] 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, Figure 7 According to some embodiments of the present application, a schematic diagram of an interface is shown, such as Figure 7As shown, the second interface also includes a pop-up window 9, which includes a prompt message: "Do you want to turn on the dynamic effect function of the weather application?" The pop-up window 9 also includes a confirmation button 10 and a cancel button. The confirmation button 10 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 10.
[0071] 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.
[0072] 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.
[0073] In an embodiment of the present application, the mobile phone 100 can display a human-computer interaction dynamic effect based on the weather type for the user on the second interface.
[0074] In some embodiments, the weather type is sunny, and the weather effect elements include blue sky and white clouds. In this embodiment, the mobile phone 100 can provide the user with a human-computer interaction dynamic effect of the weather effect element corresponding to the user operation gesture and the white clouds on the second interface.
[0075] Specifically, the method of the embodiment of the present application may further include: the mobile phone 100 responds to the second gesture operation of the user on the second interface, and the mobile phone 100 displays on the second interface a dynamic effect of the weather effect element corresponding to the white cloud moving along the moving track corresponding to the second gesture operation. The second gesture operation is a movement operation of the weather effect element corresponding to the white cloud. In this way, the user can interact with the dynamic weather effect in the interface, thereby improving the user experience.
[0076] In some embodiments, the weather type is foggy, and the weather effect element includes fog. In this embodiment, the mobile phone 100 can provide the user with a human-computer interaction dynamic effect of the weather effect element corresponding to the fog in the second interface.
[0077] Specifically, the method of the embodiment of the present application may further include: the mobile phone 100 responds to the second gesture operation of the user on the second interface, and the mobile phone 100 displays on the second interface the trace of the sliding track of the second gesture operation on the weather effect element corresponding to the fog. The second gesture operation is a sliding operation on the weather effect element corresponding to the fog. In this way, the user can interact with the weather effect element in the interface, thereby improving the user experience.
[0078] For example, Figure 8 According to some embodiments of the present application, a schematic diagram of an interface is shown. Figure 8 As shown, in response to the user's sliding operation on the weather effect element 11 corresponding to the fog on the second interface, the mobile phone 100 displays a heart-shaped trace 12 generated by the heart-shaped sliding track of the sliding operation on the weather effect element corresponding to the fog on the second interface.
[0079] In some embodiments, the weather type is snowy, and the weather effect element includes snow. In this embodiment, the mobile phone 100 can provide the user with a human-computer interaction dynamic effect of the weather effect element corresponding to the user operation gesture and the snow on the second interface.
[0080] Specifically, the method of the embodiment of the present application may further include: the mobile phone 100 responds to the second gesture operation of the user on the first interface or the second interface, and the electronic device displays on the second interface the footprint traces generated by the click area of the second gesture operation on the weather effect element corresponding to the snow. The second gesture operation is a click operation on the weather effect element corresponding to the snow. In this way, the user can interact with the weather effect elements in the interface, thereby improving the user experience.
[0081] For example, Fig. 9 According to some embodiments of the present application, a schematic diagram of an interface is shown. Fig. 9 As shown, in response to the user's click operation on the weather effect element 13 corresponding to the snow on the second interface, the mobile phone 100 displays the footprint trace 14 generated by the click area of the click operation on the weather effect element corresponding to the snow on the second interface.
[0082] 502: Display a first interface, wherein the first interface includes a dynamic effect diagram combining the target material and the dynamic weather effect corresponding to the weather type; the target material corresponds one-to-one to the target object captured by the rear camera; the dynamic weather effect corresponding to the weather type includes weather effect elements for indicating the weather type; the dynamic effect diagram is used to simulate the dynamic effect of the target object making corresponding actions under the weather corresponding to the weather type in the real scene.
[0083] For example, Figure 1 As shown, the application scenario includes a user and a mobile phone 100 held by the user. In response to the user opening the weather application, the mobile phone 100 obtains the current weather type as rainy day and starts the rear camera. Then, as shown in FIG. Figure 2 As shown, the mobile phone 100 displays a weather application interface corresponding to a rainy day, wherein the weather application interface includes a dynamic effect of a potted plant material 2 combined with a dynamic weather effect 1 corresponding to a rainy day. Figure 3 ; Potted plant material 2 corresponds to the potted plant captured by the rear camera; Dynamic effect Figure 3It is used to simulate the dynamic effect of potted plants being hit by raindrops in the corresponding weather conditions on rainy days in real scenes.
[0084] In some embodiments, if the image captured by the rear camera includes an image of the target object, the mobile phone 100 displays the first interface.
[0085] In the embodiment of the present application, weather types are mainly divided into sunny day, cloudy day, foggy day, rainy day and snowy day.
[0086] In the embodiment of the present application, the target object includes at least one of a human body, a plant, and an animal.
[0087] In the embodiment of the present application, the dynamic weather effect corresponding to the weather type includes a weather effect element for indicating the weather type. For example, if the weather type is rainy, the rainy effect element may include any one or more combinations of raindrops in the rainy day, rainy ground, etc.; if the weather type is snowy, the snowy effect element includes any one or more combinations of snowflakes in the snowy day, snow ground, etc. The embodiment of the present application does not impose any restrictions on the weather effect elements.
[0088] In the embodiment of the present application, the target material corresponds to the target object captured by the rear camera. In some embodiments, if the electronic device parses the target object from the image captured by the rear camera, the target material corresponding to the target object is obtained. In other embodiments, if the electronic device parses the target object from the image captured by the rear camera, and the action of the target object is a preset action, the target material corresponding to the preset action of the target object is obtained.
[0089] For example, after the mobile phone 100 detects that the user has opened the weather application, a snowy dynamic effect corresponding to a snowy day is displayed on the display screen of the mobile phone 100, and the rear camera is turned on to collect pictures taken by the rear camera.
[0090] If the mobile phone 100 analyzes the feet based on the collected pictures, and when the foot action is a static step on the ground, the mobile phone 100 obtains the foot animation material corresponding to the static step on the ground, combines the foot animation material with the snowy dynamic effect, and displays a new snowy dynamic effect picture on the display screen based on the combination result. Figure 3 As shown, the snowy dynamic effect 4 is snowing in the sky and snow piled up on the ground. The combined result includes the foot animation material 5 and the snowy dynamic effect 4. The foot animation material 5 includes a pair of feet, and the new snowy dynamic effect Figure 6 A pair of feet stepping on the snow in Snow Dynamic Effect 4.
[0091] If the mobile phone 100 analyzes the feet based on the collected pictures, and when the foot movement is walking on the ground, it obtains the animation material with footprints corresponding to walking on the ground, combines the animation material with the snowy dynamic effect, and displays a new snowy dynamic effect picture on the display screen. Figure 4 As shown, the snowy dynamic effect 4 is snowing in the sky and snow piled up on the ground. The combined result includes the animation material 7 with footprints and the snowy dynamic effect 4. The animation material 7 with footprints includes one foot and the footprints corresponding to the other foot. New snowy dynamic effect Figure 8 One foot is stepping on the snow in the snowy dynamic effect 4, and the corresponding footprint of the other foot is covering the snow in the snowy dynamic effect 4.
[0092] In some embodiments, the weather type is rainy, and the weather effect element includes raindrops; or the weather type is snowy, and the weather effect element includes snowflakes; the dynamic effect graph is used to simulate the dynamic effect of raindrops falling on the target object in a real rainy scene by using the dynamic effect of raindrops falling on the target material; and the target material makes the movement of the target object captured by the rear camera, simulating the dynamic effect of the target object in a real rainy scene making corresponding movements in the weather corresponding to the weather type. For example, Figure 4 As shown, the snowy dynamic effect 4 is snowing in the sky and snow piled up on the ground. The combined result includes the animation material 7 with footprints and the snowy dynamic effect 4. The animation material 7 with footprints includes one foot and the footprints corresponding to the other foot. New snowy dynamic effect Figure 8 Snow falls on the animation material 7 with footprints, and one foot is on the snow in the snowy dynamic effect 4, and the corresponding footprint of the other foot covers the snow in the snowy dynamic effect 4.
[0093] In the embodiment of the present application, the mobile phone 100 can also display human-computer interaction dynamic effects based on weather types to the user on the above-mentioned first interface.
[0094] In some embodiments, the weather type is sunny, and the weather effect elements include blue sky and white clouds. In this embodiment, the mobile phone 100 can provide the user with a human-computer interaction dynamic effect of the weather effect element corresponding to the user operation gesture and the white clouds on the first interface.
[0095] Specifically, the method of the embodiment of the present application may also include: the mobile phone 100 responds to the user's second gesture operation on the first interface, and the mobile phone 100 displays on the first interface a dynamic effect of the weather effect element corresponding to the white cloud moving along the moving track corresponding to the second gesture operation. The second gesture operation is a movement operation of the weather effect element corresponding to the white cloud. In this way, the user can interact with the dynamic weather effect in the interface, thereby improving the user experience. For example, Fig.10According to some embodiments of the present application, a schematic diagram of an interface is shown, such as Fig.10 As shown, the first interface is a dynamic effect picture of a sunny day, which includes blue sky and white clouds, as well as potted plant materials 15 corresponding to the potted plants captured by the rear camera. The user can move the weather effect elements corresponding to the white clouds. The mobile phone 100 detects this operation and can display the dynamic effect of the weather effect elements corresponding to the white clouds moving along the moving trajectory corresponding to the aforementioned moving operation.
[0096] In some embodiments, the weather type is foggy, and the weather effect element includes fog. In this embodiment, the mobile phone 100 can provide the user with a human-computer interaction dynamic effect of the weather effect element corresponding to the user operation gesture and the fog on the first interface.
[0097] Specifically, the method of the embodiment of the present application may further include: the mobile phone 100 responds to the second gesture operation of the user on the first interface, and the mobile phone 100 displays on the first interface the trace of the sliding track of the second gesture operation on the weather effect element corresponding to the fog. The second gesture operation is a sliding operation on the weather effect element corresponding to the fog. In this way, the user can interact with the weather effect element in the interface, thereby improving the user experience.
[0098] For example, Fig.11 According to some embodiments of the present application, a schematic diagram of an interface is shown. Fig.11 As shown, the first interface is a dynamic effect picture of a foggy day, which includes fog and potted plant materials 15 corresponding to the potted plants captured by the rear camera. The user can slide on the weather effect element 11 corresponding to the fog. The mobile phone 100 responds to the user's sliding operation on the weather effect element 11 corresponding to the fog on the first interface, and displays the heart-shaped trace 12 generated by the heart-shaped sliding trajectory of the sliding operation on the weather effect element corresponding to the fog on the second interface.
[0099] In some embodiments, the weather type is snowy, and the weather effect element includes snow. In this embodiment, the mobile phone 100 can provide the user with a human-computer interaction dynamic effect of the weather effect element corresponding to the user operation gesture and the snow on the first interface.
[0100] Specifically, the method of the embodiment of the present application may further include: the mobile phone 100 responds to the second gesture operation of the user on the first interface or the second interface, and the electronic device displays the footprint traces generated by the click area of the second gesture operation on the weather effect element corresponding to the snow on the first interface. The second gesture operation is a click operation on the weather effect element corresponding to the snow. In this way, the user can interact with the weather effect elements in the interface, thereby improving the user experience.
[0101] For example, Fig.12According to some embodiments of the present application, a schematic diagram of an interface is shown. Fig.12 As shown, the first interface is a dynamic effect picture of a snowy day, which includes fog and potted plant materials 15 corresponding to the potted plants captured by the rear camera. The user can click on the weather effect element 13 corresponding to the snow. The mobile phone 100 responds to the user's click operation on the weather effect element 13 corresponding to the snow on the second interface, and displays the footprint traces 14 generated by the click area of the click operation on the weather effect element corresponding to the snow on the second interface.
[0102] Fig.13 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.13 As 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, a bone conduction sensor 180M, etc.
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0119] 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.
[0120] 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.
[0121] 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.
[0122] 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, 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 machine (e.g., computer) readable form, including, but not limited to, a floppy disk, an optical disk, an optical disk, a read-only memory (CD-ROMs), a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., a carrier wave, an infrared signal digital signal, etc.) based on the Internet in an electrical, optical, acoustic, or other form of propagation signal. Accordingly, machine-readable storage media include any type of machine-readable storage media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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, and the method comprises: In response to a user opening a weather application, obtaining a current weather type and activating a rear camera of the electronic device; The electronic device displays a first interface; wherein the first interface includes a dynamic effect diagram combining the target material and the dynamic weather effect corresponding to the weather type; the target material corresponds one-to-one to the target object captured by the rear camera; the target material is used to perform the action of the target object captured by the rear camera, simulating the dynamic effect of the target object performing the corresponding action in the weather corresponding to the weather type in the real scene; the dynamic weather effect corresponding to the weather type includes weather effect elements for representing the weather type; the dynamic effect diagram is used to simulate the dynamic effect of the target object performing the corresponding action in the weather corresponding to the weather type in the real scene.
2. The method according to claim 1, characterized in that In response to the user opening the weather application, the electronic device acquires the current weather type, and the electronic device starts the rear camera, including: In response to the user opening the weather application, the electronic device obtains the current weather type and displays a second interface; 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 electronic device activates the rear camera; 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.
3. The method according to claim 1 or 2, characterized in that: The weather types include: sunny, cloudy, foggy, rainy and snowy.
4. The method according to claim 3, characterized in that The weather type is rainy day, and the weather effect element includes raindrops; The dynamic effect graph is used to simulate the dynamic effect of the raindrops falling on the target object in a real rainy scene through the dynamic effect of the raindrops falling on the target material.
5. The method according to claim 2, characterized in that: The weather type is sunny, and the weather effect elements include blue sky and white clouds; the method further includes: In response to the user's second gesture operation on the first interface or the second interface, the electronic device displays on the first interface or the second interface a dynamic effect of the weather effect element corresponding to the white clouds moving along a moving trajectory corresponding to the second gesture operation; wherein the second gesture operation is a movement operation of the weather effect element corresponding to the white clouds.
6. The method according to claim 2, characterized in that The weather type is foggy, and the weather effect element includes fog; the method further includes: In response to the user's second gesture operation on the first interface or the second interface, the electronic device displays on the first interface or the second interface the trace produced by the sliding track of the second gesture operation on the weather effect element corresponding to the fog; wherein, the second gesture operation is a sliding operation on the weather effect element corresponding to the fog.
7. The method according to claim 2, characterized in that: The weather type is snowy, and the weather effect element includes snow. The method further includes: In response to the user's second gesture operation on the first interface or the second interface, the electronic device displays on the first interface or the second interface the footprints generated by the click area of the second gesture operation on the weather effect element corresponding to the snow; wherein, the second gesture operation is a click operation on the weather effect element corresponding to the snow.
8. The method according to any one of claims 1 to 7, characterized in that The target object includes at least one of a human body, a plant, and an animal; The electronic device displays a first interface, including: If the image captured by the rear camera includes the image of the target object, the electronic device displays the first interface.
9. An electronic device, characterized in that: It 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-8.
10. 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 8.
