CN112667346A - Weather data display method and device, electronic equipment and storage medium - Google Patents

Weather data display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112667346A
CN112667346A CN202110282230.1A CN202110282230A CN112667346A CN 112667346 A CN112667346 A CN 112667346A CN 202110282230 A CN202110282230 A CN 202110282230A CN 112667346 A CN112667346 A CN 112667346A
Authority
CN
China
Prior art keywords
weather
dimensional
data
display
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110282230.1A
Other languages
Chinese (zh)
Inventor
曹琦
李禹�
何维
张聪
王骁逸
胡震宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huole Science and Technology Development Co Ltd
Original Assignee
Shenzhen Huole Science and Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huole Science and Technology Development Co Ltd filed Critical Shenzhen Huole Science and Technology Development Co Ltd
Priority to CN202110282230.1A priority Critical patent/CN112667346A/en
Publication of CN112667346A publication Critical patent/CN112667346A/en
Priority to CN202111393414.1A priority patent/CN114047992A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosed embodiments relate to a method and apparatus for displaying weather data, an electronic device and a storage medium, the method determines a three-dimensional weather model and weather audio/video data corresponding to the current time according to the weather data by acquiring the weather data and the current time, determining an interface to be displayed according to a two-dimensional image corresponding to the three-dimensional weather model, projecting and displaying the interface to be displayed when detecting that the interface to be displayed meets display conditions, when weather audio and video data meeting the playing condition is detected, the weather audio and video data are played, and when weather reminding is performed, the embodiment of the disclosure not only displays the interface to be displayed corresponding to the weather data, but also plays the weather audio and video data, through the mode of visual display and audio and video display, the effect of weather data display is improved, the technical problem that the content of the weather data display is single is solved, and the reminding effect of weather reminding is also improved through the mode of audio and video.

Description

Weather data display method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of projection display technologies, and in particular, to a weather data display method and apparatus, an electronic device, and a storage medium.
Background
The weather data has a great influence on life, and plays an important role in individual or collective scheduling and the like. Most of current weather data are presented through various weather forecast related application programs (APPs), and when the weather forecast APP checks the weather data, a target user opens the APP to check the weather data, and only information such as temperature and weather state is simply displayed, and a simple graphic is provided, so that the displayed content is single.
Disclosure of Invention
The embodiment of the disclosure provides a weather data display method and device, an electronic device and a storage medium, which can solve the technical problem of single weather data display content.
The embodiment of the disclosure provides a weather data display method, which comprises the following steps:
acquiring weather data and current time;
determining a three-dimensional weather model and weather audio and video data corresponding to the current time according to the weather data;
determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model;
when the interface to be displayed meets the display condition, displaying the interface to be displayed in a projection manner;
and when the weather audio and video data are detected to meet playing conditions, playing the weather audio and video data.
The embodiment of the present disclosure further provides a weather data display device, including:
the acquisition module is used for acquiring weather data and current time;
the first determining module is used for determining a three-dimensional weather model and weather audio and video data corresponding to the current time according to the weather data;
the second determining module is used for determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model;
the display module is used for displaying the interface to be displayed in a projection mode when the fact that the interface to be displayed meets the display condition is detected;
and the playing module is used for playing the weather audio and video data when detecting that the weather audio and video data meet playing conditions.
The embodiment of the disclosure also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to execute the steps in any one of the weather data display methods.
The embodiment of the disclosure also provides an electronic device, which includes a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for any one of the steps in the weather data display method.
The weather data display method, the weather data display device, the electronic equipment and the storage medium, provided by the embodiment of the disclosure, acquire weather data and current time, determine a three-dimensional weather model and weather audio and video data corresponding to the current time according to the weather data, determine an interface to be displayed according to a two-dimensional image corresponding to the three-dimensional weather model, project and display the interface to be displayed when detecting that the interface to be displayed meets display conditions, and play the weather audio and video data when detecting that the weather audio and video data meets play conditions. When the weather data is displayed, the to-be-displayed interface corresponding to the weather data is displayed, the weather audio and video data is also played, the effect of displaying the weather data is improved in a visual display and audio and video display mode, the technical problem that the display content of the weather data is single is solved, the reminding effect of weather reminding is also improved in an audio and video mode, and the interestingness of weather reminding is increased; moreover, the weather data in the embodiment of the disclosure is displayed and reminded in a projection display mode, which is completely different from a mode of viewing/reminding weather by opening a weather forecast APP, and the projection display can improve the display effect of the weather data; in addition, the three-dimensional weather model corresponding to the weather data is determined according to the current time, the interface to be displayed is generated according to the three-dimensional weather model, the interface to be displayed is displayed in a projection mode, namely the weather data of the interface to be displayed are achieved through the three-dimensional weather model, the weather data can be displayed more visually through the three-dimensional weather model, the weather data display effect is improved, and the interestingness of weather data reminding is increased.
Drawings
Technical solutions and other advantages of the embodiments of the present disclosure will become apparent from the following detailed description of specific embodiments of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of weather data display provided in an embodiment of the present disclosure.
Fig. 2 is a schematic flow chart of a weather data display method according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of a display layout interface provided in an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a display layout interface after filling provided by an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of perspective projection calculation provided by the embodiments of the present disclosure.
Fig. 6 is another schematic flow chart diagram of a weather data display method according to an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of a weather data display device according to an embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Description of reference numerals:
10-a projector; 11-a light machine; 12-a camera; 20-a projection plane;
400-an electronic device; 401-a processor; 402-a memory;
a-viewpoint; p-view plane; n is a radical of1-a point on a three-dimensional object; n is a radical of2-a point on a three-dimensional object;
AN1-a straight line; AN (AN)2-a straight line; n is1Straight line AN1And the visionThe intersection of the planes p; n is2Straight line AN2The intersection with the viewing plane p.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only some of the embodiments of the present disclosure, but not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the embodiments disclosed herein.
The embodiment of the disclosure provides a weather data display method and device, a storage medium and electronic equipment. Any one of the weather data display devices provided by the embodiments of the present disclosure may be integrated in an electronic device, and the electronic device may include various projectors, or a mobile terminal, a PC terminal, a robot, etc. that may implement a projection function. In the embodiments of the present disclosure, an electronic device is taken as an example for explanation.
Fig. 1 is a schematic view of an application scenario of weather data display provided in an embodiment of the present disclosure. The application scenario includes a projector 10 and a plane of projection 20. The projector 10 is used for projecting and displaying a to-be-displayed interface corresponding to weather data on the projection surface 20, and is also used for playing the weather audio and video data so as to display the weather data through the to-be-displayed interface, play the weather audio and video data through an audio and video playing function, improve the display effect of the weather data through a visual display and audio and video display mode, solve the technical problem that the display content of the weather data is single, and improve the reminding effect of weather reminding through the audio and video mode. The projection surface 20 includes various surfaces, such as a wall surface, a counter surface, a curtain, etc., that can be used to display an interface to be displayed corresponding to the weather data. The projection surface 20 may be determined according to the attention area of the target user, for example, if the attention area of the target user is a wall surface, the wall surface is taken as the projection surface. Wherein, the target user refers to the target user who is currently watching the weather information of the projection display. In the embodiment of the present disclosure, the projection plane 20 is illustrated by taking a non-fixed plane as an example, such as a wall surface, a cabinet surface, and the like.
Further, the projector 10 includes an optical engine 11 and a camera 12. The optical machine 11 integrates functions of a display core, a light source, a lens optical path, heat dissipation and the like, and is mainly used for performing projection display on an interface to be displayed corresponding to weather data; the camera 12 is used for capturing an image corresponding to the target user, and the image can be used for further determining emotion information of the target user, human eye information of the target user, and the like. The camera 12 in the projector 10 faces a target user viewing the interface to be displayed, and the optical engine 11 in the projector 10 faces the projection surface 20 to project on the projection surface 20, so that the target user can see the interface to be displayed corresponding to the weather data. The relative positions of the optical machine 11 and the camera 12 are kept unchanged, but the specific positional relationship between the optical machine 11 and the camera 12 is not particularly limited. In the disclosed embodiment, the projector 10 may be a short-focus projector, which is closer to the projection surface 20, or may be another type of projector.
In the embodiment shown in fig. 1, both the opto-engine 11 and the camera 12 are disposed in the projector 10, and the relative positions of the opto-engine 11 and the camera 12 remain unchanged. In other embodiments, the light engine and the camera may be provided separately, for example, the light engine may be provided in the projector and the camera may be another separate camera that may communicate with the projector. In other embodiments, the relative position of the optical engine and the camera may be changed, and the like, and is not particularly limited.
The method, the apparatus, the storage medium, and the electronic device for displaying weather data in the embodiments of the present disclosure will be described with reference to fig. 1. The weather data presentation method can be operated in an electronic device (such as a projector). The electronic equipment corresponds to a weather forecast APP, and the weather data display method can realize corresponding functions through the weather forecast APP; or the electronic device is correspondingly provided with a projection display component (such as a projection screen saver component) or a projection display APP, and the weather data display method can realize corresponding functions through the projection display component or the projection display APP; or by other APPs/components in the electronic device like weather forecast APPs.
Referring to fig. 2, fig. 2 is a schematic flow chart of a weather data display method provided in an embodiment of the present disclosure, which is applied to an electronic device.
And 101, acquiring weather data and the current time.
The current time is subject to the system time of the electronic device. The weather data can be acquired from a network/cloud in real time so as to improve the accuracy of the weather data; the system time may also be periodically and cyclically obtained from the network/cloud, for example, once per hour, to reduce power consumption of the electronic device.
The weather data comprises weather data corresponding to the current time and/or weather data corresponding to the future preset time. The weather data corresponding to the future preset time comprises the following steps: weather data corresponding to a plurality of hours in the future and/or weather data corresponding to a plurality of days in the future. Whether the weather data corresponds to the current time or the weather data corresponds to the future preset time, the weather data comprises temperature, weather states, wind power information, precipitation information, other weather information and the like.
The weather conditions include, but are not limited to, sunny days, cloudy days, haze, showers, light rains, heavy rains, thunderstorms, sleets, small snows, heavy snows, hailstones, sand storms, and the like. Wind information includes, but is not limited to, wind magnitude (e.g., breeze grade 3, gale grade 6, etc.) and wind direction (e.g., wind, southwestern wind, northeast wind, southeast wind, etc.). Precipitation information may be expressed in percentage (0%) and/or precipitation amount, etc.
And 102, determining a three-dimensional weather model and weather audio-video data corresponding to the current time according to the weather data.
The three-dimensional weather model may include a three-dimensional model corresponding to a weather condition, may also be a three-dimensional model including a weather condition and wind power information, and may also be a three-dimensional model including a weather condition, wind power information, and other weather information. The three-dimensional weather model may be a static three-dimensional model or may be a dynamic three-dimensional model. For example, for light rain weather, the three-dimensional weather model may include a static model corresponding to light rain and dark clouds, and may also be a dynamic model corresponding to light rain and slow moving dark clouds which are dripping down. The weather data can be displayed more intuitively and clearly through the three-dimensional model.
For the same weather condition, a plurality of different three-dimensional weather models can be set according to different current times, for example, weather is also cloudy, the corresponding three-dimensional clouds show bright white in the morning, and the three-dimensional clouds show the color of sunset in the evening.
The weather audio and video data corresponding to the weather data can be weather audio data or weather video data. For example, for thunderstorm weather, in addition to displaying the three-dimensional weather model corresponding to the thunderstorm weather, audio data of the thunderstorm weather can be played, or animation of the thunderstorm weather, namely weather video data, can be played. The weather condition corresponding to the target user can be displayed and reminded more intuitively through the weather audio-video data.
Through three-dimensional weather model and weather audio and video data, through visual show and audio and video show promptly, improved the bandwagon show's bandwagon effect, also improved the warning effect that weather was reminded, increased the interest that weather was reminded.
In an embodiment, the step of determining the three-dimensional weather model and the weather audio/video data corresponding to the weather data according to the current time includes: determining a time period to which the current time belongs; determining a corresponding three-dimensional weather model from a weather display library according to the weather data and the time period; and determining corresponding weather audio-video data from a weather audio-video database according to the weather data and the time period. According to the embodiment, the three-dimensional weather model and the weather audio and video data corresponding to the weather data are determined according to the time period of the current time, so that the three-dimensional weather model and the weather audio and video data corresponding to the weather data do not need to be determined in real time, the operation efficiency is improved, and the power consumption of electronic equipment (a projector) is reduced.
Wherein, the time periods are divided into early morning, afternoon, dusk, night and the like according to the current time. The time period corresponding to morning can be set to 5:00-7:00, the time period corresponding to morning can be set to 7: 00-12: 30, the time period set in afternoon can be set to 12:30-16:30, the time period corresponding to evening can be set to 16:30-19:00, the time period corresponding to night can be set to 19:00-5:00, and the like.
The corresponding time periods described above are merely illustrative for easier understanding of the aspects in the embodiments of the present disclosure. The time period can also be set to other more or fewer time periods, and can also be set to different time periods according to different seasons; the time range corresponding to each time period may also be set to other time ranges, or may also be set to different time ranges according to different seasons, and so on.
And after the time period of the current time is determined, determining a corresponding three-dimensional weather model from the weather display library according to the weather data and the time period. And respectively determining the three-dimensional weather models corresponding to the current weather data and the future weather data from the weather display library according to the current weather data, the future weather data and the corresponding time periods in the weather data. The weather display library stores various weather data and different three-dimensional weather models corresponding to different time periods.
The method comprises the following steps of determining a three-dimensional weather model corresponding to future weather data from a weather display library according to the future weather data and a corresponding time period, wherein the steps comprise: determining a future time period corresponding to the future weather data according to the time corresponding to the future weather data and the corresponding time period; and determining a three-dimensional weather model matched with the future time period and the future weather data from the corresponding three-dimensional weather model in the weather display library according to the future time period and the future weather data.
The three-dimensional weather model including the three-dimensional model corresponding to the weather condition is taken as an example for explanation. For example, if the determined time period is 11:00 am and the current weather condition in the weather data is sunny day, determining that the current corresponding three-dimensional weather model is a three-dimensional sun; determining that the corresponding three-dimensional weather model is a three-dimensional sun if the future time period corresponding to one hour in the future is the morning and the corresponding weather condition is sunny, determining that the corresponding three-dimensional weather model is a three-dimensional white cloud if the future time period corresponding to two hours in the future is the afternoon and the corresponding weather condition is cloudy; and if the weather data of the future day is light rain, determining that the corresponding three-dimensional weather model is a three-dimensional model of light rain plus dark clouds.
In the embodiment, the three-dimensional weather models corresponding to the current weather data and the future weather data are determined according to the three-dimensional models of the same display type, such as three-dimensional static models.
In an embodiment, current weather data and future weather data may be respectively presented using three-dimensional weather models of different presentation types. Correspondingly, the step of determining the three-dimensional weather model corresponding to the weather data from the display library according to the weather data and the time period comprises the following steps: determining a three-dimensional weather model of a first display type from a weather display library according to current weather data and a time period in the weather data; and determining the three-dimensional weather model of the second display type from the weather display library according to the future weather data in the weather data and the time period. The first display type is determined according to the current weather data, and the second display type is determined according to the future weather data. The first display type can be a three-dimensional dynamic model, and the second display type can be a three-dimensional static model, so as to highlight the display effect corresponding to the current weather data.
The display type can be determined according to a static model and a dynamic model, and can also be determined according to a three-dimensional weather model and a non-three-dimensional weather model. For example, in one embodiment, the first display type is a three-dimensional weather model, and the second display type is a non-three-dimensional weather model, such as a two-dimensional weather model, so as to reduce the amount of computation corresponding to the projection display. The determination may also be performed according to other manners, for example, in an embodiment, the three-dimensional weather model corresponding to the first display type is determined according to a time period, for example, if the current time is evening and the weather condition is cloudy, the three-dimensional cloud is displayed in the color of sunset; the three-dimensional weather model corresponding to the second display type corresponds to a universal three-dimensional weather model, whether clouds are in the evening or in the morning is not considered, and if the clouds are in the morning, the clouds are uniformly displayed as three-dimensional white clouds. In an embodiment, the three-dimensional weather model corresponding to the first presentation type may be a three-dimensional model including more weather information in addition to the weather condition, and the three-dimensional weather model corresponding to the second presentation type is a three-dimensional model including only the weather condition.
The step of determining the corresponding weather audio/video data from the weather audio/video database according to the weather data and the time period comprises the following steps: and determining weather audio and video data matched with the weather data and the time period from a weather audio and video database according to the weather data and the time period. The weather audio and video database comprises different weather data and weather audio and video data corresponding to different time periods. In this embodiment, each weather data and time slot in the weather data are matched with corresponding weather audio-video data.
For example, if the time period is early morning and the current weather data is sunny, determining that the weather audio/video data matched with the current weather data and the time period is audio/video data including bird sings from the weather audio/video database. For example, if the time period is early morning and the current weather data is lightning weather, determining that the weather audio and video data matched with the current weather data and the time period is audio and video data including lightning thunder from a weather audio and video database. The weather data are displayed and reminded through the weather audio and video data, so that the display effect and the reminding effect of the weather data are improved.
The weather audio and video data corresponding to the current weather data and the time period can be played by default, and the weather audio and video data corresponding to the future weather data are not played by default, so that confusion of a target user is avoided. And for the condition that the weather data only comprises the future weather data, default playing the weather audio-video data corresponding to the time closest to the current time in the future weather data. For example, only the future weather data is displayed on a certain interface to be displayed, the current weather data is not displayed, when the interface to be displayed is opened/refreshed, only the corresponding future weather data is acquired, and the weather audio/video data corresponding to the time closest to the current time in the future weather data can be correspondingly played. Assuming that the future weather data comprises weather data of a future day and weather data of two future days; correspondingly, weather audio and video data corresponding to the weather data of the future day are played.
In other embodiments, the corresponding weather audio-video data can be determined according to the weather data corresponding to the current focusing position in the projected and displayed interface to be displayed. For example, the interface to be displayed in projection display includes both current weather data and future weather data, but if the current focusing position is the weather data corresponding to one hour in the future, the corresponding weather audio/video data is determined according to the weather data corresponding to one hour in the future. The current focusing position can be determined by the position in the interface to be displayed touched/clicked by the target user (such as remote control click).
In an embodiment, the step of determining the corresponding weather audio/video data from the weather audio/video database according to the weather data and the time slot includes: when the weather data comprises current weather data, determining weather audio and video data matched with the current weather data and the time period from a weather audio and video database according to the current weather data and the time period in the weather data; and when the weather data only comprises the future weather data, determining the corresponding weather audio-video data from the weather audio-video database according to the time nearest to the current time in the future weather data and the future weather data corresponding to the time. In the embodiment, only one piece of weather data is determined from the weather data, and the corresponding weather audio and video data is determined according to the determined weather data and the time period, so that the calculation amount is reduced.
In the step, the three-dimensional weather model and the weather audio and video data corresponding to the weather data are determined according to the current time, namely, the display effect of the weather display is improved according to the visual display and audio and video display modes, meanwhile, the reminding effect of the weather reminding is also improved, and the interestingness of the weather reminding is increased.
And 103, determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model.
And determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model, wherein the mode of determining the interface to be displayed comprises generating the interface to be displayed and/or updating the interface to be displayed.
In an embodiment, when the weather data is acquired each time and the three-dimensional weather model is determined, the interface to be displayed is generated according to the two-dimensional image corresponding to the three-dimensional weather model.
In an embodiment, the step of determining the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model includes: detecting whether an interface to be displayed exists in a memory of the electronic equipment; if the interface to be displayed does not exist, generating the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model; and if the interface to be displayed exists, updating the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model. And updating the interface to be displayed so as to save the generation time of the interface to be displayed.
Whether the interface to be displayed exists or not can be determined through the interface identification of the interface to be displayed. Specifically, whether an interface identifier of an interface to be displayed exists in a memory of the electronic device (projector) is detected, and if the interface identifier corresponding to the interface identifier exists, it is determined that the interface to be displayed exists.
In an embodiment, the interface to be displayed may be generated according to the weather data and the corresponding three-dimensional weather model when the weather forecast APP is opened for weather projection or when the projection display module/projection display APP is opened for weather projection (content projection of non-weather forecast is not performed at this time), the weather data is subsequently obtained, and when the three-dimensional weather model is determined, the interface to be displayed is updated by using the weather data and the corresponding three-dimensional weather model.
In an embodiment, the step of determining the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model includes: acquiring a display layout interface; filling a display layout interface according to the weather data and the three-dimensional weather model; and displaying the display layout interface to obtain a two-dimensional image corresponding to the three-dimensional weather model, and determining the interface to be displayed according to the two-dimensional image.
The display layout interface can be generated in advance and directly obtained; but also in real time. If the real-time generation is carried out, correspondingly, the step of obtaining the display layout interface comprises the following steps: and acquiring display layout data, and generating a display layout interface according to the display layout data. Wherein the display layout data comprises display label data and display style data; the display tag data may be HyperText Markup Language (HTML) data, eXtensible HyperText Markup Language (XHTML) data, or eXtensible Markup Language (XML) data; the presentation Style data may be Cascading Style Sheets (CSS) data, or other types of presentation Style data.
As shown in fig. 3, a schematic diagram of a display layout interface provided in the embodiment of the present disclosure is provided. In the display layout interface, the left side is used for displaying current weather data, the upper part of the right side is used for displaying weather data in a plurality of hours in the future, and the lower part of the right side is used for displaying weather data in a plurality of days in the future. The left side is used for displaying the temperature in the current weather data, the three-dimensional weather model corresponding to the current weather data and the current time from top to bottom. The upper right part is used for displaying weather data of one hour in the future, two hours in the future, three hours in the future and four hours in the future in sequence from left to right; the weather data corresponding to each hour in the future respectively comprise future specific time (hour time), a three-dimensional weather model corresponding to the specific time and temperature corresponding to the specific time. The lower part on the right side is used for sequentially displaying the weather data of the next day and the next two days from top to bottom; the weather data of each day in the future respectively comprises a specific time (date) in the future, a three-dimensional weather model corresponding to the specific time and a temperature corresponding to the specific time. It should be noted that this embodiment is for illustration only, and more or less weather data may be included in other embodiments.
And after the display layout interface is determined, filling the display layout interface according to the acquired weather data and the determined three-dimensional weather model. The resulting display layout interface after filling is shown in fig. 4. The populated presentation layout interface in fig. 4 is for illustration only and does not represent a rendered presentation effect.
In fig. 4, the current time is 12 pm, and weather data corresponding to 12 pm (temperature-4 ℃, three-dimensional weather model is snowy) is displayed on the left side of the display layout interface; the weather data (the temperature is-4 ℃, the three-dimensional weather model is big snow) corresponding to 13 points, the weather data (the temperature is-1 ℃, the three-dimensional weather model is big snow) corresponding to 14 points, the weather data (the temperature is-3 ℃, the three-dimensional weather model is big snow) corresponding to 15 points and the weather data (the temperature is 0 ℃, the three-dimensional weather model is big snow) corresponding to 16 points are sequentially displayed from left to right in the upper right corner of the display layout interface; the weather data (the temperature is-2 ℃, the three-dimensional weather model is big snow) corresponding to the tomorrow and the weather data (the temperature is-9 ℃, and the three-dimensional weather model is big snow) corresponding to the postnatal are displayed in sequence from top to bottom in the display layout interface at the lower right corner.
And after the filled display layout interface is obtained, displaying the display layout interface to obtain a two-dimensional image corresponding to the three-dimensional weather model, and determining the interface to be displayed according to the two-dimensional image.
In an embodiment, the step of performing display processing on the display layout interface to obtain a two-dimensional image corresponding to the three-dimensional weather model, and determining the interface to be displayed according to the two-dimensional image includes: performing perspective projection operation on weather data and a three-dimensional weather model in a display layout interface to obtain a two-dimensional display picture; and cutting the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional weather model, and taking the two-dimensional image as an interface to be displayed. The interface to be displayed is an interface capable of projection display.
In an embodiment, the step of performing perspective projection operation on the weather data and the three-dimensional weather model in the display layout interface to obtain a two-dimensional display picture includes: and performing perspective projection operation on the weather data and the three-dimensional weather model in the display layout interface according to the projection surface to obtain a two-dimensional display picture.
In an embodiment, the step of performing perspective projection operation on the weather data and the three-dimensional weather model in the display layout interface to obtain a two-dimensional display picture includes: determining first distance information and a first relative position relation between the projector and the projection surface; establishing a three-dimensional virtual coordinate system by taking a virtual projector corresponding to the projector as an origin; determining the position of a virtual projection plane corresponding to the projection plane in a three-dimensional virtual coordinate system according to the first distance information and the first relative position relation; and performing perspective projection operation on the weather data and the three-dimensional weather model in the display layout interface by taking the virtual projector as a viewpoint and the virtual projection plane as a view plane to obtain a two-dimensional display picture. Wherein the virtual projector represents its corresponding position information by one point. In other embodiments, an optical engine in the projector may be used instead of the projector.
Namely, the relation between the projector (or optical machine) in the real world and the projection surface is reflected in the three-dimensional coordinate system, so that the scene in the real world is simulated through the three-dimensional virtual scene corresponding to the three-dimensional coordinate system. In the three-dimensional virtual scene, the projector (or optical machine) and the projection surface respectively correspond to the virtual projector (or virtual optical machine) and the virtual projection surface.
Fig. 5 is a schematic diagram illustrating perspective projection calculation performed in a three-dimensional virtual scene. Wherein, the position information corresponding to the virtual projector is used as a viewpoint A (x, y, z), the virtual projection plane is used as a view plane p, and the point N is used1(a,b,c)、N2(d, e, f) as points on a three-dimensional weather model (e.g., three-dimensional moon), straight line AN1The point of intersection with the viewing plane p being n1Then the intersection point n1Has coordinates of (x _ n1, y _ n 1) and is a straight line AN2The point of intersection with the viewing plane p being n2Then the intersection point n2Is (x _ n2, y _ n 2). And calculating the intersection point of the other points on the three-dimensional object and the view plane p in the same way, and finally obtaining the two-dimensional display picture on the view plane.
In an embodiment, the step of performing cropping processing on the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional weather model includes: and cutting the two-dimensional display picture according to the projection position of the optical machine on the projection surface to obtain a two-dimensional image corresponding to the three-dimensional weather model. Wherein the projection position may be a rectangular area or the like. And cutting the two-dimensional display picture to display the interface to be displayed by utilizing the projection position of the optical machine on the projection surface.
In an embodiment, the step of clipping the two-dimensional display picture according to the projection position of the optical machine on the projection plane to obtain a two-dimensional image corresponding to the three-dimensional weather model includes: determining the distance between the optical machine and the projection surface; determining the projection position of the optical machine projected on the projection surface according to the distance; and cutting the two-dimensional display picture according to the projection position to obtain a two-dimensional image corresponding to the three-dimensional weather model. The distance detector is arranged in the optical machine/projector, the distance between the optical machine and the projection surface can be detected through the distance detector, and the detected distance is used as the distance between the optical machine and the projection surface. And determining the projection position of the light machine projected on the projection surface according to the distance.
In an embodiment, the step of determining a projection position of the optical engine projected on the projection surface according to the distance includes: determining the projection size of the optical machine projected on the projection surface according to the distance; determining the specific projection position of the optical machine projected on the projection surface according to the projection parameters; and taking the projection size and the specific projection position as the projection position of the optical machine on the projection surface.
In an embodiment, the step of cutting the two-dimensional display picture according to the projection position to obtain a two-dimensional image corresponding to the three-dimensional weather model includes: generating a virtual projection position in the three-dimensional virtual scene according to the projection position, wherein the virtual projection position is consistent with the projection position; and cutting the two-dimensional display picture according to the virtual projection position to obtain a two-dimensional image corresponding to the three-dimensional weather model. And cutting the two-dimensional display picture outside the virtual projection position to finally obtain a two-dimensional image.
And taking the finally obtained two-dimensional image as an interface to be displayed. The interface to be displayed is related to the projection position of the projector (optical machine of the projector) projected on the projection surface, and the sizes corresponding to the projection positions corresponding to different projectors are different. Therefore, the two-dimensional display picture is cut according to the projection position, so that the interface to be displayed meets the display requirement of the corresponding projector.
104, when the interface to be displayed meets the display condition, projecting and displaying the interface to be displayed.
After the interface to be displayed is obtained, the interface to be displayed can be displayed in a projection mode through the projector.
In one embodiment, step 104 comprises: detecting whether the current projection in the projector is an interface corresponding to the weather data; if so, determining that the interface to be displayed meets the display condition, and projecting and displaying the interface to be displayed; if not, determining that the interface to be displayed does not meet the display condition, and not performing projection display on the interface to be displayed.
The interface corresponding to the weather data may be an interface corresponding to a weather forecast APP. And if the current projection display is not the interface corresponding to the weather data, such as a movie playing interface, the projection display is not carried out on the interface to be displayed, so that the influence on the current movie playing of the target user is avoided. If the current projection displays an interface corresponding to the weather data, displaying the interface to be displayed in a real-time projection manner; and when the weather data is updated, updating the interface to be displayed.
105, when detecting that the weather audio and video data meet the playing condition, playing the weather audio and video data.
In one embodiment, step 105 comprises: detecting whether the current projection in the projector shows that whether the current projection is an interface corresponding to the weather data and whether the current projection reaches a first preset playing time; if so, determining that the weather audio and video data meet the playing condition, and playing the weather audio and video data; if not, determining that the weather audio and video data does not meet the playing condition, and not playing the weather audio and video data.
The first preset playing time may correspond to a time period, for example, the starting time corresponding to the time period is used as the first preset playing time; the first preset playing time may also be determined in other manners. If the current projection display is not the interface corresponding to the weather data, the weather audio and video data are not played so as to avoid influencing the use of the target user; if the first preset playing time is not reached, the weather audio and video data are not played, so that the weather audio and video data are prevented from being played too frequently, and the target user experience is reduced; and if the current projection display is not the interface corresponding to the weather data and does not reach the first preset playing time, the weather audio and video data are not played.
When the weather data is displayed, the method embodiment not only displays the interface to be displayed corresponding to the weather data, but also plays the weather audio and video data, and improves the display effect of the weather display, the reminding effect of the weather reminding and the interestingness of the weather reminding by means of visual display and audio and video display; moreover, the weather data in the embodiment is displayed in a projection display mode, which is completely different from the weather viewing/reminding mode in which the weather forecast APP is opened, and the display effect of the weather data can be improved through the projection display; in addition, the three-dimensional weather model corresponding to the weather data is determined according to the current time, the interface to be displayed is generated according to the three-dimensional weather model, the interface to be displayed is displayed in a projection mode, namely, the display of the weather data is achieved through the three-dimensional weather model, the weather data can be displayed more visually through the three-dimensional weather model, the display effect of the weather data is improved, and the interestingness of weather data reminding is increased.
In an embodiment, the weather data display method further includes: determining weather influence information corresponding to the weather data according to the current time, and acquiring emotion information of a target user, wherein the weather influence information is used for representing the influence of the weather data of the current time on the emotion of the target user; and determining adjusted audio and video data matched with the weather influence information and the emotion information. According to the embodiment, the corresponding adjusting audio and video data can be intelligently pushed while the weather data is displayed according to the weather data and the emotion of the target user, the blending sense of people and the environment is improved, the improvement of the mood of people is facilitated, and the experience of the target user is improved.
And determining weather influence information corresponding to the current weather data in the weather data according to the current time. Different weather data have different influences on the target user emotion, for example, the target user emotion is positively influenced in sunny days, neutral influences are caused on the target user emotion by cloudy days, light rain, small snow and the like, negative influences are caused on the target user emotion by cloudy days, rain shower, heavy rain, haze and the like, and the influence of weather information on the target user emotion is represented by weather influence information for convenience of description.
In an embodiment, the step of determining weather influence information corresponding to the weather data according to the current time includes: determining current weather data in the weather data according to the current time; acquiring weather influence information corresponding to the current weather data according to the mapping relation between the current weather data and the weather influence information; wherein the weather-effect information characterizes a positive emotional effect, a neutral emotional effect, or a negative emotional effect.
Specifically, the mapping relationship between the current weather data and the weather influence information may be stored in a form of a data table, as shown in table 1 below:
Figure DEST_PATH_IMAGE001
as can be seen from the content in table 1, when the weather condition is sunny, the weather influence information is positive, which indicates that the sunny weather has a positive influence on the emotion of the target user; when the weather condition is cloudy, light rain or small snow, the weather influence information is neutral, and the neutral influence of the cloudy, light rain or small snow weather on the emotion of the target user is shown; when the weather condition is cloudy, gust of rain, rainstorm, haze, heavy snow, snowstorm or sand storm and the like, the weather influence information is negative, and at the moment, the weather influence information indicates that the cloudy, gust of rain, rainstorm, haze, heavy snow, snowstorm or sand storm weather has negative influence on the emotion of the target user. The specific contents of the weather information described in table 1 are merely examples, and should not be construed as specific limitations of the weather information of the present disclosure. Based on the corresponding relationship (mapping relationship) between the weather influence information and the current weather data in table 1, after the projector acquires the current weather data, the projector may determine the corresponding weather influence information based on table 1.
In one embodiment, the step of obtaining the emotion information of the target user includes: collecting human body characteristic information of a target user; and determining emotion information of the target user according to the human body characteristic information.
Specifically, the projector may collect a facial image of the target user through the camera, collect at least one of the human body feature information of the target user, such as voice, blood pressure, heartbeat, and body movement, using various other sensors, and determine the emotion information of the target user according to the at least one of the human body feature information.
Taking the example of determining the emotion information of the target user according to the facial image, the projector may pre-input a plurality of facial images, establish an emotion information base based on feature information such as expressions, facial feature points, micro-expressions and the like in the facial images, and when the emotion information of the target user needs to be determined according to a new facial image, the projector may search whether there is emotion information matched with the new facial image from the emotion information base based on the feature information of the facial image, thereby determining the emotion information of the target user. In practical applications, the plurality of face images pre-entered by the projector may include a plurality of positive emotion pictures, a plurality of negative emotion pictures, and a plurality of neutral emotion pictures.
In an embodiment, the step of determining emotion information of the target user according to the human body characteristic information includes: inputting the human body characteristic information into an emotion classification model obtained through pre-training to obtain emotion types output by the emotion classification model; and determining the emotion information of the target user according to the emotion types.
Specifically, the projector may be trained in advance to obtain an emotion classification model, and after obtaining at least one of facial images, voice, blood pressure, heartbeat, body movement and other human characteristic information, the obtained information is input to the emotion classification model for recognition, and the output result of the emotion classification model is an emotion type, such as happy, neutral, angry, or sad, and is not limited herein. The projector may then determine the mood information of the current target user based on the mood category.
In an embodiment, the step of determining adjusted audio-video data matching with the weather influence information and the emotion information includes: determining the type of audio and video data matched with the weather influence information and the emotion information; and acquiring the adjusted audio and video data matched with the audio and video data type from the adjusted audio and video database. The weather influence information and the emotion information have a mapping relation with the type of the audio-video data.
For example, when the weather influence information is positive emotion influence (positive) or neutral emotion influence (neutral), if the emotion information is determined to be happy or neutral, the type of the matched audio/video data is determined to be cheerful, relaxed, excited or neutral, and first adjusting audio/video data matched with the type of the audio/video data is randomly selected from an adjusting audio/video database; if the emotion information is determined to be angry, the type of the matched audio and video data is determined to be relaxed, second adjusted audio and video data of the relaxed type is randomly selected from an adjusted audio and video database, if the emotion information is determined to be worries, the type of the matched audio and video data is determined to be cheerful, relaxed or joke, and third adjusted audio and video data of the cheerful, relaxed or joke type is randomly selected from the adjusted audio and video database.
When the weather influence information is negative emotion influence (negative), if the emotion information is determined to be happy or neutral, determining that the matched audio and video data type is cheerful, exciting or joke, and randomly selecting fourth adjusting audio and video data of the cheerful, exciting or joke type from an adjusting audio and video library; if the emotion information is determined to be angry, determining the type of the matched audio/video data to be cheerful or relaxed, and randomly selecting fifth adjustment audio/video data of the cheerful or relaxed type from the adjustment audio/video database; and if the emotion information is determined to be the melancholy, the matched audio and video data type is determined to be cheerful, relaxed, exciting or joke, and the sixth adjusting audio and video data of the cheerful, relaxed, exciting or joke type is randomly selected from the adjusting audio and video library.
Further, the weather data display method further includes: and playing the adjusted audio and video data. In one embodiment, when it is detected that the adjustment audio and video data meets the adjustment condition, the adjustment audio and video data is played. Specifically, whether the current time reaches a second preset playing time is detected, if yes, the fact that the adjusted audio and video data meet the adjusting conditions is determined, and the adjusted audio and video data are played. The second preset playing time may be the same as or different from the first preset playing time. When the weather audio and video data are the same, the weather audio and video data can be played first, and then the adjusted audio and video data are played; the weather audio and video data and the adjusted audio and video data can be played simultaneously, but the playing sound of the weather audio and video data is larger than that of the adjusted audio and video data.
In an embodiment, as shown in fig. 6, a further flowchart of the weather data display method provided in the embodiment of the present application specifically includes the following steps.
Weather data and the current time are acquired 201.
And 202, determining a three-dimensional weather model and weather audio-video data corresponding to the current time according to the weather data.
And 203, determining a virtual projection plane corresponding to the three-dimensional weather model according to the attention area of the target user.
The method comprises the steps of determining a projection plane according to a region of interest of a target user, and determining a virtual projection plane corresponding to a three-dimensional weather model according to the projection plane.
And taking the surface corresponding to the attention area of the target user as a projection surface. For example, if the attention area of the target user is a wall surface, the wall surface is used as a projection surface; and if the target user attention area is a cabinet surface, taking the cabinet surface as a projection surface. The projection surface refers to a real wall surface, a cabinet surface, a curtain and the like in real life.
The camera, the optical machine, the projection plane, the relation between the camera and the optical machine, and the relation between the projection plane and the camera/the relation between the projection plane and the optical machine in the real interface are all reflected in the three-dimensional virtual scene, so that the scene in the real world is simulated through the three-dimensional virtual scene.
The method comprises the following steps of determining a virtual projection plane corresponding to a three-dimensional weather model according to a focus area of a target user, wherein the steps comprise: taking a surface corresponding to the attention area of the target user as a projection surface; determining the distance between the optical machine and the projection surface; and generating a virtual projection plane in the three-dimensional virtual scene according to the distance between the optical machine and the projection plane, the position relation between the optical machine and the projection plane and the like. The three-dimensional virtual scene comprises a three-dimensional weather model. The method can also be understood as generating a virtual projection plane which is the same as the projection plane in the three-dimensional virtual scene, and the relative position relationship between the virtual projection plane and the virtual camera and the virtual optical machine in the three-dimensional virtual scene is unchanged from the relative position relationship between the projection plane and the human eyes, the camera and the optical machine in the real scene.
The distance detector/distance sensor is arranged in the optical machine/projector, the distance between the optical machine and the projection surface can be detected through the distance detector/distance sensor, and the detected distance is used as the distance between the optical machine and the projection surface.
And 204, determining an interface to be displayed comprising a two-dimensional image corresponding to the three-dimensional weather model according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model.
In an embodiment, when the weather data is acquired each time, the three-dimensional weather model is determined, or when the real-time eye position of the target user is detected to be changed, the interface to be displayed including the two-dimensional image corresponding to the three-dimensional weather model is determined according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model.
In an embodiment, the step of determining, according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model, an interface to be displayed including a two-dimensional image corresponding to the three-dimensional weather model includes: acquiring a display layout interface; filling a display layout interface according to the weather data and the three-dimensional weather model; and displaying the display layout interface according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model to obtain the interface to be displayed comprising the two-dimensional image corresponding to the three-dimensional weather model.
In an embodiment, the step of displaying the display layout interface according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model to obtain the interface to be displayed including the two-dimensional image corresponding to the three-dimensional weather model includes: mapping the real-time eye position of a target user to a three-dimensional virtual scene to obtain real-time eye position information; taking the real-time position information of human eyes in the three-dimensional virtual scene as a viewpoint and a virtual projection plane corresponding to the three-dimensional weather model as a view plane, and carrying out perspective projection operation on weather data and the three-dimensional weather model in the display layout interface to obtain a two-dimensional display picture; and cutting the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional virtual scene, and taking the two-dimensional image as an interface to be displayed. The interface to be displayed is an interface capable of projection display.
Wherein, the step of obtaining the real-time eye position of the target user comprises: the method comprises the steps of acquiring a target user image acquired by a camera in real time, determining two-dimensional coordinate information and depth information of human eyes of a target user in the target user image, and determining the two-dimensional coordinate information and the depth information as real-time eye positions (real-time human eye coordinate information). And acquiring the target user image acquired by the camera in real time, and determining the eye position in real time so as to capture the change of the position information of the human eyes in real time.
In an embodiment, a common camera, i.e., a 2D camera, may be used as the camera for acquiring the target user image, so that the acquired target user image does not contain depth information. After the target user image is obtained, two-dimensional coordinate information (human eye identification/human eye detection and other methods) and depth information (depth identification method) of human eyes in the target user image are determined in other modes. For example, the human eyes in the target user image are recognized through methods such as human eye recognition/human eye detection, two-dimensional coordinate information of the human eyes in the target user image is determined, and the depth information of the human eyes in the target user image is determined by utilizing a neural network model, so that the real-time human eye coordinate information of the target user is obtained. The Neural Network model may be a Residual Network (Residual Network), a Deep Convolutional Neural Network (DCNN), or the like. Therefore, the camera for collecting the target user image adopts a common 2D camera, so that the cost is reduced; and the neural network model is utilized to carry out depth recognition on the target user image, so that the accuracy of determining the depth information of the human eyes in the target user image is improved.
In an embodiment, the camera acquiring the image of the target user may be a depth camera, i.e. a 3D camera, and the image acquired by the 3D camera has depth information. After the target user image is obtained, identifying human eyes in the target user image through methods such as human eye identification/human eye detection and the like, and determining two-dimensional coordinate information of the human eyes in the target user image; and then acquiring depth information corresponding to the two-dimensional coordinate information of the human eyes in the target user image. The depth information of the human eyes in the target user image is determined by using the depth camera, so that the accuracy and efficiency of obtaining the depth information are improved.
In an embodiment, the camera for collecting the target user image may be an infrared camera, which may be a 2D camera or a 3D camera. The method for determining the two-dimensional coordinate information and the depth information of the human eyes in the target user image acquired by the 2D camera or the 3D camera can refer to the description above, and the beneficial effects achieved by the method can also refer to the description above, which is not repeated herein. The infrared camera is adopted, so that the human eye coordinate information of the target user can be conveniently acquired in real time under the condition of strong ambient light (such as daytime or lighting condition), and the real-time human eye coordinate information of the target user can be conveniently acquired under the condition of weak ambient light (such as night, dark light and no lighting condition), the applicability is improved, and the accuracy of determining the human eye coordinate information can be improved.
In one embodiment, when the human eyes are not identified in the target user image, acquiring at least one target user image collected before the target user image and two-dimensional coordinate information and depth information of the human eyes in the at least one target user image; predicting the two-dimensional coordinate information and the depth information of the human eyes in the target user image by using the at least one target user image and the two-dimensional coordinate information and the depth information of the human eyes in the at least one target user image to obtain predicted two-dimensional coordinate information and predicted depth information; and taking the predicted two-dimensional coordinate information and the predicted depth information as the two-dimensional coordinate information and the depth information of human eyes in the target user image.
The above obtaining of the eye coordinate information of the target user may be implemented by acquiring an image of the target user through a camera, and then determining the eye coordinate information of the eye of the target user in the image of the target user, and may be implemented in other feasible manners.
The method for mapping the real-time eye position (real-time eye coordinate information) of the target user to the three-dimensional virtual scene comprises the following steps: and determining the real-time position information of the human eyes in the three-dimensional virtual scene corresponding to the optical machine according to the real-time eye position (real-time eye coordinate information) of the target user.
When the real-time human eye coordinate information is determined through a target user image acquired by a camera, correspondingly, the step of determining the real-time position information of human eyes in the three-dimensional virtual scene corresponding to the optical machine according to the real-time human eye coordinate information comprises the following steps: and determining the real-time position information of the human eyes in the three-dimensional virtual scene corresponding to the optical machine according to the second relative position relationship between the camera and the optical machine and the real-time human eye coordinate information.
The camera and the optical machine correspond to a second relative position relationship. The target user image is shot by the camera, so that after the real-time human eye coordinate information is determined, the coordinate information corresponding to the real-time human eye coordinate information in a three-dimensional coordinate system with the camera as an original point can be determined, and the real-time position information of the real-time human eye coordinate information in the three-dimensional virtual scene corresponding to the optical machine can be determined according to the second relative position relationship between the camera and the optical machine.
The method is characterized in that the method includes the steps that the relation between a camera, human eyes, an optical machine and the eyes in the real world and the relation between the camera and the optical machine are reflected in a three-dimensional virtual scene, and therefore the scene in the real world is simulated through the three-dimensional virtual scene. In the three-dimensional virtual scene, the camera and the optical machine respectively correspond to the virtual camera and the virtual optical machine. Here, the position information of the virtual camera, the position information of the human eye (which means a virtual human eye), the position information of the virtual optical machine, and the like are represented by different points, respectively. A three-dimensional virtual space is formed by taking a virtual camera in a three-dimensional virtual scene as an original point, a three-dimensional virtual scene with a virtual optical machine as an original point forms a three-dimensional virtual space, human eyes (referred to as virtual human eyes) are positioned in the three-dimensional virtual space with the virtual camera as the original point, and real-time human eye coordinate information can be converted into real-time position information in the three-dimensional virtual scene with the virtual optical machine as the original point through matrix transformation.
The step of determining the real-time position information of the human eyes in the three-dimensional virtual scene corresponding to the optical machine according to the second relative position relationship between the camera and the optical machine and the real-time human eye coordinate information includes: determining real-time coordinate information of human eyes in a three-dimensional coordinate system where the camera is located according to the real-time human eye coordinate information; and converting the real-time coordinate information of the human eyes into real-time position information in the three-dimensional virtual scene corresponding to the optical machine according to the second relative position relationship between the camera and the optical machine.
The three-dimensional virtual scene corresponding to the optical machine refers to a three-dimensional virtual scene where the virtual optical machine corresponding to the optical machine is located.
After the real-time position information of human eyes is determined, the real-time position information of the human eyes in the three-dimensional virtual scene is taken as a viewpoint, a virtual projection plane corresponding to the three-dimensional weather model is taken as a view plane, and perspective projection operation is carried out on weather data and the three-dimensional weather model in the display layout interface to obtain a two-dimensional display picture.
Please refer to the schematic diagram shown in fig. 5 for a specific perspective projection operation. In contrast to the schematic diagram shown in fig. 5, the viewpoint is no longer a virtual projector, but the position information of the human eye in the three-dimensional virtual scene.
The step of clipping the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional virtual scene is not repeated here.
Because the positional information of people's eyes can change to make the two-dimensional show picture of calculating also can change, the interface of waiting to demonstrate that the processing was tailor to two-dimensional show picture and is obtained also can change, so, make and wait to demonstrate that the interface changes according to the change of people's eyes ' real-time positional information, even make and wait to demonstrate that the interface changes according to the change of people's eyes ' visual angle, in order to realize lifelike weather data stereoscopic display effect, promote target user experience.
If the projection plane is changed into a display screen, when the two-dimensional display picture is determined, perspective projection is carried out according to the size of the display screen, and the two-dimensional display picture after perspective projection is directly displayed; the relative position relation between the human eyes and the projection surface does not need to be determined, and the two-dimensional display picture obtained after perspective projection does not need to be cut. That is, the implementation by the display screen is different from the implementation by the projector in the embodiment of the present disclosure.
205, when it is detected that the interface to be displayed meets the display condition, projecting and displaying the interface to be displayed.
And 206, when the weather audio and video data are detected to meet the playing condition, playing the weather audio and video data.
In this embodiment, please refer to the corresponding description in the above embodiment for the same steps as in the above embodiment, which will not be described herein again. According to the embodiment, the interface to be displayed is determined according to the real-time eye position and the attention area of the target user, so that the three-dimensional weather model in the determined interface to be displayed can change along with the change of the real-time eye position, a three-dimensional display effect is achieved, the weather data can be displayed more intuitively through the three-dimensional weather model, the weather data display effect is improved, and the interestingness of weather data reminding is increased; meanwhile, the virtual projection surface is determined according to the attention area of the target user, so that the interface to be displayed can be displayed in the attention area of the target user in a projection mode, such as a wall surface and the like, and the practicability of projection display is improved.
The weather data can be converted into the wall decoration and the atmosphere display in the family scene by combining the characteristic that the projector can be normally opened in the family scene, the weather data in the to-be-displayed interface of the projection display can be changed along with the change of the visual angle of the target user, and the target user experience of the projector is improved.
In an embodiment, after the step of obtaining the interface to be displayed, the method for displaying weather data further includes: performing gray processing on an interface to be displayed and a previous interface to be displayed respectively to obtain a first gray image and a second gray image; carrying out similarity calculation on the first gray level image and the second gray level image to obtain a similarity value; and if the similarity value is smaller than the preset similarity value, determining a final interface to be displayed according to the previous interface to be displayed and the interface to be displayed. The step of determining the final interface to be displayed according to the previous interface to be displayed and the interface to be displayed comprises the following steps: determining current target eye position information according to eye coordinate information corresponding to the previous interface to be displayed and eye coordinate information corresponding to the interface to be displayed; determining target position information of human eyes in a three-dimensional virtual scene corresponding to the optical machine according to the target human eye coordinate information; performing perspective projection operation on weather data and a three-dimensional weather model in a display layout interface according to the target position information and the projection surface to obtain a two-dimensional display picture; and cutting the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional weather model, and determining the two-dimensional image as a final interface to be displayed. The embodiment aims at the problem that the difference between the interfaces to be displayed in front and back frame projection display is large due to abnormal processing, and improves the display effect of the interfaces to be displayed.
According to the method described in the foregoing embodiment, the present embodiment will be further described from the perspective of a weather data display apparatus, which may be specifically implemented as an independent entity or integrated in an electronic device, where the electronic device may include various projectors, or a mobile terminal with a projection function, a wearable device, a robot, and the like.
Referring to fig. 7, fig. 7 specifically describes a weather data display apparatus provided in an embodiment of the present disclosure, which is applied to an electronic device, and the weather data display apparatus may include: an acquisition module 301, a first determination module 302, a second determination module 303, a presentation module 304, and a play module 305. Wherein:
an obtaining module 301, configured to obtain weather data and a current time.
The first determining module 302 is configured to determine, according to the weather data, a three-dimensional weather model and weather audio/video data corresponding to the current time.
The first determining module 302 is specifically configured to determine a time period to which the current time belongs;
determining a corresponding three-dimensional weather model from a weather display library according to the weather data and the time period; and determining corresponding weather audio and video data from a weather audio and video database according to the weather data and the time period.
The first determining module 302, when performing the step of determining the corresponding three-dimensional weather model from the weather display library according to the weather data and the time period, specifically performs: determining a three-dimensional weather model of a first display type from a weather display library according to current weather data in the weather data and the time period; and determining a three-dimensional weather model of the second display type from a weather display library according to the future weather data in the weather data and the time period.
And a second determining module 303, configured to determine the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model.
The second determining module 303 is specifically configured to obtain a display layout interface; filling the display layout interface according to the weather data and the three-dimensional weather model; and displaying the display layout interface to obtain a two-dimensional image corresponding to the three-dimensional weather model, and determining the interface to be displayed according to the two-dimensional image.
The second determining module 303, when executing the step of displaying the display layout interface to obtain the two-dimensional image corresponding to the three-dimensional weather model, specifically executes: performing perspective projection operation on the weather data and the three-dimensional weather model in the display layout interface to obtain a two-dimensional display picture; and cutting the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional weather model.
And the display module 304 is configured to display the interface to be displayed in a projection manner when it is detected that the interface to be displayed meets the display condition.
The playing module 305 is configured to play the weather audio/video data when it is detected that the weather audio/video data meets a playing condition.
In an embodiment, the weather data display apparatus further includes a third determination module. The obtaining module 301 is further configured to determine weather influence information corresponding to the weather data according to the current time, and obtain emotion information of the target user, where the weather influence information is used to represent an influence of the weather data of the current time on the emotion of the target user. And the third determining module is used for determining the adjusting audio and video data matched with the weather influence information and the emotion information. The playing module 305 is further configured to play the adjusted audio/video data.
In an embodiment, the third determining module is specifically configured to determine an audio/video data type matched with the weather influence information and the emotion information; and acquiring the adjusted audio and video data matched with the audio and video data type from an adjusted audio and video database.
In an embodiment, the weather data display apparatus further includes a fourth determination module. The fourth determining module is used for determining a virtual projection plane corresponding to the three-dimensional weather model according to the attention area of the target user. The second determining module 303 is further configured to determine, according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model, an interface to be displayed that includes a two-dimensional image corresponding to the three-dimensional weather model.
In a specific implementation, each of the modules and/or units may be implemented as an independent entity, or may be implemented as one or several entities by any combination, where the specific implementation of each of the modules and/or units may refer to the foregoing method embodiment, and specific achievable beneficial effects also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
In addition, the embodiment of the present disclosure also provides an electronic device, which includes various projectors, or a mobile terminal with a projection function, a wearable device, a robot, and the like. As shown in fig. 8, the electronic device 400 includes a processor 401, a memory 402, an optical engine 11, and a camera 12. The processor 401 is electrically connected to the memory 402, the optical machine 11 is respectively connected to the processor 401 and the memory 402, the camera 12 is respectively connected to the processor 401 and the memory 402, data collected by the camera 12 is stored in the memory 402, and the optical machine 11 is connected to the camera 12.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device. The camera 404 is used to capture images. The optical machine 403 integrates functions of a display core, a light source, a lens optical path, heat dissipation, and the like.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
acquiring weather data and current time; determining a three-dimensional weather model and weather audio and video data corresponding to the current time according to the weather data; determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model; when the interface to be displayed meets the display condition, displaying the interface to be displayed in a projection manner; and when the weather audio and video data are detected to meet playing conditions, playing the weather audio and video data.
In some embodiments, the electronic device 400 may further include at least one component of an input module, a display module, at least one sensor (depth sensor, light sensor, etc.), audio circuitry, a transmission module, a power source, and the like.
The electronic device can implement the steps in any embodiment of the weather data display method provided in the embodiment of the present disclosure, and therefore, the beneficial effects that can be achieved by any weather data display method provided in the embodiment of the present disclosure can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present disclosure provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of any embodiment of the weather data display method provided by the present disclosure.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any embodiment of the weather data display method provided in the embodiment of the present disclosure, the beneficial effects that any weather data display method provided in the embodiment of the present disclosure can achieve may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The weather data display method, the weather data display device, the storage medium and the electronic device provided by the embodiment of the disclosure are described in detail, a specific example is applied in the description to explain the principle and the implementation manner of the embodiment of the disclosure, and the description of the embodiment is only used for helping to understand the method and the core idea of the embodiment of the disclosure; meanwhile, for those skilled in the art, according to the idea of the embodiments of the present disclosure, there may be variations in the specific implementation and application scope, and in summary, the present disclosure should not be construed as limiting the embodiments of the present disclosure.

Claims (11)

1. A weather data display method is characterized by comprising the following steps:
acquiring weather data and current time;
determining a three-dimensional weather model and weather audio and video data corresponding to the current time according to the weather data;
determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model;
when the interface to be displayed meets the display condition, displaying the interface to be displayed in a projection manner;
and when the weather audio and video data are detected to meet playing conditions, playing the weather audio and video data.
2. The weather data display method of claim 1, wherein the step of determining the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model comprises:
acquiring a display layout interface;
filling the display layout interface according to the weather data and the three-dimensional weather model;
and displaying the display layout interface to obtain a two-dimensional image corresponding to the three-dimensional weather model, and determining an interface to be displayed according to the two-dimensional image.
3. The weather data display method of claim 2, wherein the displaying the display layout interface to obtain the two-dimensional image corresponding to the three-dimensional weather model comprises:
performing perspective projection operation on the weather data and the three-dimensional weather model in the display layout interface to obtain a two-dimensional display picture;
and cutting the two-dimensional display picture to obtain a two-dimensional image corresponding to the three-dimensional weather model.
4. The weather data display method according to claim 1, wherein the step of determining the three-dimensional weather model and the weather audio/video data corresponding to the current time according to the weather data includes:
determining a time period to which the current time belongs;
determining a corresponding three-dimensional weather model from a weather display library according to the weather data and the time period;
and determining corresponding weather audio and video data from a weather audio and video database according to the weather data and the time period.
5. The weather data display method of claim 4, wherein the step of determining the three-dimensional weather model corresponding to the weather data from the display library according to the weather data and the time period comprises:
determining a three-dimensional weather model of a first display type from a weather display library according to current weather data in the weather data and the time period;
and determining a three-dimensional weather model of the second display type from a weather display library according to the future weather data in the weather data and the time period.
6. The weather data display method of claim 4, further comprising:
determining weather influence information corresponding to the weather data according to the current time, and acquiring emotion information of a target user, wherein the weather influence information is used for representing the influence of the weather data of the current time on the emotion of the target user;
determining adjusted audio and video data matched with the weather influence information and the emotion information;
and playing the adjusted audio and video data.
7. The weather data display method of claim 6, wherein the determining adjusted audio visual data that matches the weather effect information and the mood information comprises:
determining the type of audio and video data matched with the weather influence information and the emotion information;
and acquiring the adjusted audio and video data matched with the audio and video data type from an adjusted audio and video database.
8. The weather data display method of claim 1, further comprising, prior to the step of determining the interface to be displayed based on the two-dimensional image corresponding to the three-dimensional weather model:
determining a virtual projection surface corresponding to the three-dimensional weather model according to the attention area of the target user;
the step of determining the interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model comprises the following steps: and determining an interface to be displayed comprising a two-dimensional image corresponding to the three-dimensional weather model according to the real-time eye position of the target user and the virtual projection plane corresponding to the three-dimensional weather model.
9. A weather data display apparatus, comprising:
the acquisition module is used for acquiring weather data and current time;
the first determining module is used for determining a three-dimensional weather model and weather audio and video data corresponding to the current time according to the weather data;
the second determining module is used for determining an interface to be displayed according to the two-dimensional image corresponding to the three-dimensional weather model;
the display module is used for displaying the interface to be displayed in a projection mode when the fact that the interface to be displayed meets the display condition is detected;
and the playing module is used for playing the weather audio and video data when detecting that the weather audio and video data meet playing conditions.
10. An electronic device, comprising: a processor electrically connected to the memory, the memory for storing instructions and data, and a memory for performing the steps of the weather data display method of any of claims 1 to 8.
11. A computer readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the steps of the weather data presentation method of any one of claims 1 to 8.
CN202110282230.1A 2021-03-16 2021-03-16 Weather data display method and device, electronic equipment and storage medium Pending CN112667346A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110282230.1A CN112667346A (en) 2021-03-16 2021-03-16 Weather data display method and device, electronic equipment and storage medium
CN202111393414.1A CN114047992A (en) 2021-03-16 2021-11-23 Weather data display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110282230.1A CN112667346A (en) 2021-03-16 2021-03-16 Weather data display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112667346A true CN112667346A (en) 2021-04-16

Family

ID=75399477

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110282230.1A Pending CN112667346A (en) 2021-03-16 2021-03-16 Weather data display method and device, electronic equipment and storage medium
CN202111393414.1A Pending CN114047992A (en) 2021-03-16 2021-11-23 Weather data display method and device, electronic equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202111393414.1A Pending CN114047992A (en) 2021-03-16 2021-11-23 Weather data display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (2) CN112667346A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254789A (en) * 2021-06-30 2021-08-13 中国气象局公共气象服务中心(国家预警信息发布中心) Method and device for pushing meteorological service content
CN113368496A (en) * 2021-05-14 2021-09-10 广州三七互娱科技有限公司 Weather rendering method and device for game scene and electronic equipment
CN114327718A (en) * 2021-12-27 2022-04-12 北京百度网讯科技有限公司 Interface display method and device, equipment and medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756606B (en) * 2022-06-14 2022-09-02 深圳市缘力胜科技有限公司 Weather digital twin visualization method and system thereof
CN117271809B (en) * 2023-11-21 2024-02-09 浙江大学 Virtual agent communication environment generation method based on task scene and context awareness

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043171A (en) * 2009-10-14 2011-05-04 宏达国际电子股份有限公司 Weather state display method and device and computer program product
CN103268221A (en) * 2012-12-07 2013-08-28 北京建筑工程学院 Three-dimensional weather data volume display method and device based on WEB technique
US20150198738A1 (en) * 2013-08-20 2015-07-16 Raghav Gupta Virtual meterologist based on weather forecasting system and method
CN106873300A (en) * 2016-12-30 2017-06-20 北京光年无限科技有限公司 Towards the Virtual Space projecting method and device of intelligent robot
CN107040769A (en) * 2017-05-04 2017-08-11 深圳市锐曼智能装备有限公司 Portable minisize intelligent sound projecting apparatus and its control method
CN108074279A (en) * 2017-12-07 2018-05-25 零空间(北京)科技有限公司 Meteorological data three-dimensional display method, apparatus and equipment
CN109685884A (en) * 2017-10-18 2019-04-26 深圳市掌网科技股份有限公司 A kind of three-dimensional modeling method and system based on virtual reality
CN110750734A (en) * 2019-10-18 2020-02-04 腾讯数码(天津)有限公司 Weather display method and device, computer equipment and computer-readable storage medium
CN112136321A (en) * 2018-04-17 2020-12-25 谷歌有限责任公司 Dynamic adaptation of projected images based on user's pose

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102188773B (en) * 2011-05-24 2014-07-02 武汉理工大学 Digital music therapy instrument
CN107689082B (en) * 2016-08-03 2021-03-02 腾讯科技(深圳)有限公司 Data projection method and device
CN109446375A (en) * 2018-10-29 2019-03-08 广州小鹏汽车科技有限公司 Adaptive method for playing music and system applied to vehicle
CN111325824B (en) * 2019-07-03 2023-10-10 杭州海康威视系统技术有限公司 Image data display method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043171A (en) * 2009-10-14 2011-05-04 宏达国际电子股份有限公司 Weather state display method and device and computer program product
CN103268221A (en) * 2012-12-07 2013-08-28 北京建筑工程学院 Three-dimensional weather data volume display method and device based on WEB technique
US20150198738A1 (en) * 2013-08-20 2015-07-16 Raghav Gupta Virtual meterologist based on weather forecasting system and method
CN106873300A (en) * 2016-12-30 2017-06-20 北京光年无限科技有限公司 Towards the Virtual Space projecting method and device of intelligent robot
CN107040769A (en) * 2017-05-04 2017-08-11 深圳市锐曼智能装备有限公司 Portable minisize intelligent sound projecting apparatus and its control method
CN109685884A (en) * 2017-10-18 2019-04-26 深圳市掌网科技股份有限公司 A kind of three-dimensional modeling method and system based on virtual reality
CN108074279A (en) * 2017-12-07 2018-05-25 零空间(北京)科技有限公司 Meteorological data three-dimensional display method, apparatus and equipment
CN112136321A (en) * 2018-04-17 2020-12-25 谷歌有限责任公司 Dynamic adaptation of projected images based on user's pose
CN110750734A (en) * 2019-10-18 2020-02-04 腾讯数码(天津)有限公司 Weather display method and device, computer equipment and computer-readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113368496A (en) * 2021-05-14 2021-09-10 广州三七互娱科技有限公司 Weather rendering method and device for game scene and electronic equipment
CN113368496B (en) * 2021-05-14 2023-08-01 广州三七互娱科技有限公司 Weather rendering method and device for game scene and electronic equipment
CN113254789A (en) * 2021-06-30 2021-08-13 中国气象局公共气象服务中心(国家预警信息发布中心) Method and device for pushing meteorological service content
CN113254789B (en) * 2021-06-30 2021-09-17 中国气象局公共气象服务中心(国家预警信息发布中心) Method and device for pushing meteorological service content
CN114327718A (en) * 2021-12-27 2022-04-12 北京百度网讯科技有限公司 Interface display method and device, equipment and medium

Also Published As

Publication number Publication date
CN114047992A (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN112667346A (en) Weather data display method and device, electronic equipment and storage medium
US11601630B2 (en) Video processing method, electronic device, and non-transitory computer-readable medium
CN109085966B (en) Three-dimensional display system and method based on cloud computing
US10198846B2 (en) Digital Image Animation
US11417365B1 (en) Methods, systems and apparatuses for multi-directional still pictures and/or multi-directional motion pictures
RU2609757C2 (en) Method and device for displaying weather
JP6967043B2 (en) Virtual element modality based on location in 3D content
US9041734B2 (en) Simulating three-dimensional features
EP2491530B1 (en) Determining the pose of a camera
CN103984553B (en) A kind of 3D desktop display methods and system
US10957026B1 (en) Learning from estimated high-dynamic range all weather lighting parameters
US9582731B1 (en) Detecting spherical images
US11151791B2 (en) R-snap for production of augmented realities
US11657085B1 (en) Optical devices and apparatuses for capturing, structuring, and using interlinked multi-directional still pictures and/or multi-directional motion pictures
WO2020211427A1 (en) Segmentation and recognition method, system, and storage medium based on scanning point cloud data
US10261749B1 (en) Audio output for panoramic images
CN112422804A (en) Video special effect generation method and terminal
US20200410737A1 (en) Image display method and device applied to electronic device, medium, and electronic device
CN114387445A (en) Object key point identification method and device, electronic equipment and storage medium
US11200650B1 (en) Dynamic image re-timing
US20200074725A1 (en) Systems and method for realistic augmented reality (ar) lighting effects
US20160140748A1 (en) Automated animation for presentation of images
WO2013134108A1 (en) Non-photorealistic rendering of geographic features in a map
CN111127650A (en) Meteorological dynamic special effect display method and system based on 3D map
CN115187568A (en) Power switch cabinet state detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210416