Disaster early warning method, device and equipment and storage medium
By obtaining disaster type and determining escape information, and broadcasting and displaying voice plus image, the problem of poor timeliness of existing disaster warning methods is solved, and the timeliness and information richness of disaster warning is improved.
Patent Information
- Application Number
- CN202311139422.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2025-03-07
AI Technical Summary
The existing disaster warning methods are poor in timeliness and people cannot receive disaster warnings as soon as possible.
By responding to disaster notifications, obtain the disaster type, and determine escape information based on the disaster type and the terminal's current location, including the escape route and safety area, and broadcast and display it using voice plus image.
It improves the timeliness of disaster warnings, provides users with richer escape information, and helps reduce users' losses in the event of a disaster.
Smart Images

Figure CN119580435A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of disaster warning, and in particular to a disaster warning method, device, equipment and storage medium. Background Art
[0002] Since disasters such as fire, tsunami and earthquake can cause great losses, how to notify the occurrence of natural disasters is particularly important. Timely notification can reduce the probability and severity of people's injuries.
[0003] In related technologies, disaster warning information is often released on the Internet to achieve the purpose of disaster warning.
[0004] However, the early warning methods in related technologies have poor timeliness, and people are unable to receive disaster warnings in the first place. Summary of the invention
[0005] The embodiments of the present application provide a disaster warning method, apparatus, device, and storage medium, which can improve the timeliness of disaster warning. The technical solution is as follows:
[0006] In one aspect, a disaster warning method is provided, the method comprising:
[0007] In response to a disaster notification, obtaining a disaster type from the disaster notification, wherein the disaster notification is used to notify that a disaster is about to occur or has occurred in an area where the terminal is located;
[0008] Determine escape information based on the disaster type and the current location of the terminal, where the escape information is used to indicate an escape method;
[0009] The disaster type and the escape information are reported and displayed.
[0010] In a possible implementation manner, the escape information includes an escape route and a safe zone, and determining the escape information based on the disaster type and the current location of the terminal includes:
[0011] Based on the disaster type and the current location of the terminal, query a safety zone around the current location;
[0012] An escape route is generated based on the current position and the position of the safety zone, where the escape route is a route from the current position to the safety zone.
[0013] In a possible implementation manner, querying a safety zone around the current location based on the disaster type and the current location of the terminal includes:
[0014] Using the disaster type and the current location to query a safe zone, obtaining multiple candidate safe zones;
[0015] A safety zone around the current position is determined from the plurality of candidate safety zones based on the distances between each of the candidate safety zones and the current position.
[0016] In a possible implementation manner, the reporting and displaying of the disaster type and the escape information includes:
[0017] When the terminal is in silent mode or connected to headphones, the disaster type and the escape information are played externally;
[0018] When the terminal displays an application interface of any application, the application interface is closed and the disaster type and the escape information are displayed.
[0019] In a possible implementation manner, after broadcasting and displaying the disaster type and the escape information, the method further includes:
[0020] When the operation of closing the disaster notification is detected for N consecutive times, the broadcasting and displaying of the disaster type and the escape information are stopped, and the disaster notification is displayed in the status bar, where N is a positive integer and N is greater than 1.
[0021] In a possible implementation, the method further includes:
[0022] In response to a click operation on the disaster notification displayed in the status bar, the disaster type and the escape information are broadcast and displayed again.
[0023] In a possible implementation, the method further includes:
[0024] In the case where the disaster notification is used to notify that a disaster is about to occur in the area where the terminal is located, the remaining time until the disaster occurs is broadcast and displayed.
[0025] In one aspect, a disaster warning device is provided, the device comprising:
[0026] A disaster type acquisition module, configured to respond to a disaster notification and acquire a disaster type from the disaster notification, wherein the disaster notification is used to notify that a disaster is about to occur or has occurred in an area where the terminal is located;
[0027] An escape information determination module, used to determine escape information based on the disaster type and the current location of the terminal, wherein the escape information is used to indicate an escape method;
[0028] The broadcast and display module is used to broadcast and display the disaster type and the escape information.
[0029] In a possible implementation, the escape information includes an escape route and a safety zone, and the escape information determination module is used to query the safety zone around the current location based on the disaster type and the current location of the terminal; based on the current location and the location of the safety zone, generate an escape route, and the escape route is a route from the current location to the safety zone.
[0030] In a possible implementation, the escape information determination module is used to use the disaster type and the current location to perform a safety zone query to obtain multiple candidate safety zones; based on the distance between each of the candidate safety zones and the current location, determine the safety zone around the current location from the multiple candidate safety zones.
[0031] In a possible implementation, the broadcast display module is used to play the disaster type and the escape information externally when the terminal is in silent mode or connected to headphones; when the terminal displays the application interface of any application, close the application interface and display the disaster type and the escape information.
[0032] In a possible implementation, the device further includes:
[0033] The stop module is used to stop broadcasting and displaying the disaster type and the escape information and display the disaster notification in the status bar when the operation of closing the disaster notification is detected N times in a row, where N is a positive integer and N is greater than 1.
[0034] In a possible implementation, the broadcast display module is further configured to broadcast and display the disaster type and the escape information again in response to a click operation on the disaster notification displayed in the status bar.
[0035] In a possible implementation manner, the broadcast display module is further used to broadcast and display the remaining time for the disaster to occur when the disaster notification is used to notify that a disaster is about to occur in the area where the terminal is located.
[0036] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the disaster warning method.
[0037] On the one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the disaster warning method.
[0038] On the one hand, a computer program product or computer program is provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned disaster warning method.
[0039] Through the technical solution provided in the embodiment of the present application, in response to a disaster notification, the disaster type is obtained from the disaster notification, and the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located. Based on the disaster type and the current location of the terminal, escape information indicating an escape method is determined, and the escape method is more closely matched to the disaster type and the location of the user. The use of voice plus image to output the disaster type and escape information not only improves the timeliness of disaster warnings, but also can provide users with richer escape information when a disaster is about to occur or has already occurred, which helps reduce user losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 It is a schematic diagram of an implementation environment of a disaster warning method provided in an embodiment of the present application;
[0042] Figure 2 is a flow chart of a disaster warning method provided by an embodiment of the present application;
[0043] Figure 3 is another flow chart of a disaster warning method provided by an embodiment of the present application;
[0044] Figure 4 This is a schematic diagram of an interface provided by an embodiment of the present application;
[0045] Figure 5 This is another interface schematic diagram provided in an embodiment of the present application;
[0046] Figure 6 is a schematic structural diagram of a disaster warning device provided in an embodiment of the present application;
[0047] Figure 7 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0049] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0050] Early warning: Early warning refers to the act of sending emergency signals to relevant departments and reporting dangerous situations based on previous summarized rules or possible precursors obtained from observations before disasters, catastrophes and other dangers that need to be guarded against occur, so as to avoid the hazards from happening without knowledge or preparation, thereby minimizing the losses caused by the hazards.
[0051] Natural disasters: refers to natural phenomena that bring harm to human survival or damage the human living environment, including drought, high temperature, low temperature, cold wave, flood, mountain torrents, typhoons, tornadoes, fire tornadoes, hail, wind and hail, frost, heavy rain, blizzard, freezing rain, acid rain, heavy fog, strong wind, ice, haze, earthquakes, tsunamis, landslides, mudslides, floating dust, blowing sand, sandstorms, lightning, thunderstorms, ball lightning, volcanic eruptions, etc.
[0052] In the related art, there is a method of combining vibration and ringtone to alarm, but this method is not obviously different from an alarm. When the user is asleep late at night, it will be very confusing to hear the vibration and ringtone of the mobile phone. It may take some time to understand the meaning of the ringtone, and it will take time for the eyes to adapt to the brightness of the screen before they can see what the alarm is. If they don’t look at the screen, they can’t know the meaning of the ringtone; or when the user concentrates on work and sets the mobile phone to silent, etc., it will waste precious escape time. In addition, there may be a solution to broadcast the countdown and play the ringtone after the countdown ends, but it still cannot solve the above problems.
[0053] Figure 1 This is a schematic diagram of an implementation environment of a disaster warning method provided in an embodiment of the present application, see Figure 1 , the implementation environment may include a terminal 110 and a server 140.
[0054] The terminal 110 is connected to the server 140 via a wireless network or a wired network. Optionally, the terminal 110 is a device with a screen and a speaker, such as a smart phone, a tablet computer, a smart TV, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 110 has the function of the disaster warning method provided in the embodiment of the present application.
[0055] Server 140 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, distribution networks (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0056] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or a greater number, and the above implementation environment may also include other terminals. The embodiment of the present application does not limit the number and device type of the terminals.
[0057] After introducing the implementation environment of the embodiments of the present application, the application scenarios of the embodiments of the present application are described below. The technical solutions provided by the embodiments of the present application can be applied in scenarios of early warning of various types of disasters. For example, it can be applied in scenarios of early warning of natural disasters (such as earthquakes, floods, and tsunamis, etc.), and can also be applied in scenarios of early warning of man-made disasters (such as air raids and arson, etc.).
[0058] The technical solution provided in the embodiment of the present application is applied in the case of early warning of natural disasters. In response to a disaster notification of a natural disaster, the disaster type is obtained from the disaster notification, and the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located. Based on the disaster type and the current location of the terminal, the escape information is determined, and the escape information is used to indicate the escape method. The disaster type and the escape information are broadcast and displayed, that is, the disaster type and the escape information are output by a combination of voice and image, so as to promptly notify the user of the disaster, and the timeliness of the natural disaster warning is high. Of course, users can also refer to the escape information to formulate escape strategies to reduce the losses suffered by users when natural disasters occur.
[0059] After introducing the implementation environment and application scenarios of the embodiment of the present application, the disaster warning method provided by the embodiment of the present application is described below. Figure 2 , taking the execution subject as a terminal as an example, the method includes the following steps.
[0060] 201. In response to a disaster notification, a terminal obtains a disaster type from the disaster notification, where the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in an area where the terminal is located.
[0061] Among them, the disaster notification is sent by the server to the terminal. The server is the operator's server, or a server maintained by the manufacturer of the terminal. This embodiment of the present application does not limit this. The timing of sending the disaster notification is determined by the operator. The disaster notification can be sent before the disaster occurs or when the disaster occurs. This embodiment of the present application does not limit this. The disaster type is used to distinguish different disasters, and different disasters have different ways of escape.
[0062] 202. The terminal determines escape information based on the disaster type and the current location of the terminal, where the escape information is used to indicate an escape method.
[0063] The current location of the terminal can indicate the location of the user using the terminal. The escape information is determined based on the disaster type and the current location of the terminal, and the escape method indicated by the escape information is more consistent with the disaster type and the location of the user.
[0064] 203. The terminal broadcasts and displays the disaster type and the escape information.
[0065] Among them, broadcasting refers to outputting the disaster type and the escape information in the form of voice, and displaying refers to outputting the disaster type and the escape information in the form of images.
[0066] Through the technical solution provided in the embodiment of the present application, in response to a disaster notification, the disaster type is obtained from the disaster notification, and the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located. Based on the disaster type and the current location of the terminal, escape information indicating an escape method is determined, and the escape method is more closely matched to the disaster type and the location of the user. The use of voice plus image to output the disaster type and escape information not only improves the timeliness of disaster warnings, but also can provide users with richer escape information when a disaster is about to occur or has already occurred, which helps reduce user losses.
[0067] The above steps 201-203 are a brief description of the technical solution provided in the embodiment of the present application. The technical solution provided in the embodiment of the present application will be more clearly described below with reference to some examples. Figure 3 , taking the execution subject as a terminal as an example, the method includes the following steps.
[0068] 301. A terminal obtains a disaster notification, where the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in an area where the terminal is located.
[0069] Among them, the disaster notification is sent by the server to the terminal. The server is the operator's server, or a server maintained by the manufacturer of the terminal, and the embodiments of the present application do not limit this. The timing of sending the disaster notification is determined by the operator. The disaster notification can be sent before the disaster occurs or when the disaster occurs. The embodiments of the present application do not limit this. Disasters include natural disasters and man-made disasters. Natural disasters include earthquakes, floods, tsunamis, tornadoes, volcanic eruptions, and mudslides; man-made disasters include air raids and arson. Disaster notifications are used to notify the terminal that a disaster is about to occur or has occurred at the terminal's location, that is, to notify the terminal to avoid disasters.
[0070] In a possible implementation, the terminal obtains a disaster notification sent by the server. The disaster notification is sent by the server to terminals in an area indicated by the disaster information when the server receives the disaster information. The disaster information is sent by a disaster warning platform to the server.
[0071] In this implementation mode, the terminal can obtain the disaster notification actively sent by the server, and the disaster notification can be obtained more timely.
[0072] In some embodiments, the disaster notification is a notification of the highest level, and the highest level notification can still be received after the terminal has performed a message shielding operation, thereby increasing the dissemination range of the disaster notification. For example, in order to avoid scanning, the user may set the terminal not to receive messages from unfamiliar contacts. This setting is a message shielding operation. After the above settings have been made, the terminal can still receive the disaster notification, that is, after receiving the notification, the terminal first determines the level of the notification. When the level of the notification is the highest level, the terminal does not shield the notification.
[0073] In order to more clearly illustrate the technical solution provided in the embodiment of the present application, the method for the server to send the disaster notification to the terminal is described below.
[0074] In a possible implementation, in response to receiving the disaster information, the server determines an area corresponding to the disaster information, where a disaster is about to occur or is occurring, and sends a disaster notification corresponding to the disaster information to multiple terminals in the area.
[0075] The above implementation is described below through two examples.
[0076] Example 1: When the server is a server of an operator, in response to receiving disaster information, the server obtains disaster location information from the disaster information, where the disaster location information is location information of a disaster that is about to or is occurring. Based on the disaster location information, the server determines the area corresponding to the disaster information. The server sends the disaster notification to multiple terminals in the area through multiple base stations in the area.
[0077] Example 2: In the case where the server is maintained by the manufacturer of the terminal, in response to receiving disaster information, the server obtains disaster location information from the disaster information, and the disaster location information is the location information of the disaster that is about to occur or is occurring. Based on the disaster location information, the server determines the area corresponding to the disaster information. Based on the historical location information or current location information of the multiple terminals, the server sends the disaster notification to multiple terminals in the area. Alternatively, the server sends the disaster notification to all terminals, and each terminal determines whether to respond to the disaster notification based on its own location. It should be noted that the server obtains the historical location or current location of the terminal with the user's permission.
[0078] 302. In response to the disaster notification, the terminal obtains a disaster type from the disaster notification.
[0079] Among them, the disaster type is used to distinguish different disasters, and different disasters have different ways of escape. Disaster types include the above-mentioned natural disasters and man-made disasters.
[0080] In a possible implementation, in response to the disaster notification, the terminal parses the disaster notification to obtain notification content, and obtains the disaster type from the notification content.
[0081] In this implementation manner, after receiving the disaster notification, the terminal parses the disaster notification to obtain the disaster type, and the disaster type is obtained with high efficiency.
[0082] For example, in response to a disaster notification, the terminal uses a preset parsing method to parse the disaster notification and obtain the notification content. The terminal obtains the disaster type from a preset field in the notification content. The preset parsing method is a parsing method agreed upon by the terminal and the server, and the preset field is set in advance by the technician according to the actual situation, and the embodiment of the present application does not limit this.
[0083] 303. The terminal determines escape information based on the disaster type and the current location of the terminal, where the escape information is used to indicate an escape method.
[0084] The current location of the terminal can indicate the location of the user using the terminal. The escape information is determined based on the disaster type and the current location of the terminal, and the escape method indicated by the escape information is more consistent with the disaster type and the location of the user.
[0085] In a possible implementation, the escape information includes an escape route and a safety zone, and the terminal queries the safety zone around the current location based on the disaster type and the current location of the terminal. The terminal generates an escape route based on the current location and the location of the safety zone, and the escape route is a route from the current location to the safety zone.
[0086] Among them, the safety zone is an area to avoid disasters, and users moving to the safety zone can improve safety in disasters. The safety zone is closely related to the type of disaster. Different types of safety zones correspond to different safety zones. For example, when the disaster type is an earthquake, the safety zone is an open area; when the disaster type is a gap, the safety zone is an air-raid shelter; when the disaster type is a flood, the safety zone is a high ground. The safety zone around the current location refers to a safety zone whose distance from the current location is less than or equal to a distance threshold, or refers to a safety zone that is closest to the current location. The distance threshold is set by the technician according to actual conditions, and the embodiments of the present application do not limit this. The escape route is a navigation route from the current location to the safety zone, and the escape route will change in real time with the change of the terminal position.
[0087] In this implementation, based on the disaster type and the current location of the terminal, the safety zone around the current location is queried, and an escape route from the current location to the safety zone is generated. The escape route can be displayed to guide the user to the safety zone, thus shortening the user's decision-making time when a disaster occurs.
[0088] In order to explain the above implementation more clearly, the above implementation will be explained in two parts below.
[0089] In the first part, the terminal queries the safety zone around the current location based on the disaster type and the current location of the terminal.
[0090] In a possible implementation, the terminal uses the disaster type and the current location to perform a safety zone query to obtain multiple candidate safety zones. The terminal determines a safety zone around the current location from the multiple candidate safety zones based on the distance between each candidate safety zone and the current location.
[0091] The candidate safety zone is a safety zone within the area where the terminal is located.
[0092] Under this implementation, the terminal uses the disaster type and current location to first determine multiple candidate safe zones over a large range, and then selects a safe zone around the current location from the multiple candidate safe zones based on the distance between each candidate safe zone and the current location of the terminal. The determined safe zone has a high accuracy.
[0093] The above implementation is described below through two examples.
[0094] Example 1: The terminal sends a safety zone query request to a safety zone query server, and the safety zone query request carries the disaster type and the current location. The safety zone query server receives the safety zone query request, and obtains the disaster type and the current location from the safety zone query request. The safety zone query server determines the query area to which the current location belongs. The safety zone query server uses the query area and the disaster type to query and obtains the multiple candidate safety zones. The safety zone query server sends the multiple candidate safety zones and the locations of each candidate safety zone to the terminal. The terminal receives the multiple candidate safety zones and the locations of each candidate safety zone. The terminal compares the distance between each candidate safety zone and the current location, and determines the candidate safety zone that is closest to the current location among the multiple candidate safety zones as the safety zone around the current location.
[0095] Example 2: The terminal determines a set of safe zones corresponding to the current location, and the set of safe zones includes multiple reference safe zones corresponding to different disaster types and the locations of each reference safe zone. Based on the disaster type, the terminal obtains the multiple candidate safe zones and the locations of each candidate safe zone from the set of safe zones. The terminal compares the distances between each candidate safe zone and the current location, and determines the candidate safe zone closest to the current location among the multiple candidate safe zones as the safe zone around the current location.
[0096] The security zone set is obtained by the terminal in real time from the security zone query server, or is stored in advance on the terminal, which is not limited in the embodiment of the present application. In the case where the security zone set is stored in advance on the terminal, the terminal will periodically update the security zone set to ensure the accuracy of the reference security zone in the security zone set and the location of the reference security zone.
[0097] In the second part, the terminal generates an escape route based on the current position and the position of the safety zone, and the escape route is a route from the current position to the safety zone.
[0098] The number of the escape routes is one or more, which is not limited in the embodiments of the present application. In the case where the number of the escape routes is multiple, the multiple escape routes include the escape route with the shortest time, the escape route with the shortest distance, and the escape route with the highest safety, etc. The highest safety means the one with the most spacious roads or the highest brightness.
[0099] In a possible implementation, the terminal uses the current location and the location of the safety zone to perform route planning to obtain the escape route.
[0100] Among them, route planning is the method of determining the route from point A to point B.
[0101] In this implementation mode, the terminal can determine the escape route by means of path planning, and the escape route has high real-time performance and accuracy.
[0102] For example, the terminal inputs the current location and the location of the safety zone into a navigation application, performs path planning through the navigation application, and obtains the escape route.
[0103] Another implementation of the above step 303 is described below.
[0104] In a possible implementation, the disaster notification also includes an escape manual corresponding to the disaster occurrence area, and the escape manual includes escape information corresponding to different disaster types. The terminal obtains the escape manual from the disaster notification. The terminal uses the disaster type and the current location of the terminal to query the escape manual to obtain the escape information.
[0105] In this implementation mode, the server carries an escape manual in the disaster notification sent, and escape information can be quickly obtained through the escape manual, and the timeliness and accuracy of the escape information are high.
[0106] For example, the escape information includes escape routes and safety zones, and the terminal obtains the escape manual from the disaster notification. The terminal uses the disaster type to query the escape manual and obtains a set of safety zones corresponding to the disaster type in the disaster-occurring area. The set of safety zones includes multiple candidate safety zones corresponding to different disaster types and the locations of each candidate safety zone. The terminal compares the distance between each candidate safety zone and the current location, and determines the candidate safety zone closest to the current location among the multiple candidate safety zones as the safety zone around the current location.
[0107] In addition to the above step 303, the embodiment of the present application also provides another method for obtaining escape information.
[0108] In a possible implementation, the disaster notification carries escape information corresponding to the terminal, and the terminal obtains the escape information from the disaster notification. The escape information is determined by the server based on the disaster type and the base station location of the base station corresponding to the terminal.
[0109] 304. The terminal broadcasts and displays the disaster type and the escape information.
[0110] Among them, broadcasting refers to outputting the disaster type and the escape information in the form of voice, and displaying refers to outputting the disaster type and the escape information in the form of images.
[0111] In a possible implementation, when the terminal is in silent mode or connected to headphones, the terminal plays the disaster type and the escape information. When the terminal displays an application interface of any application, the terminal closes the application interface and displays the disaster type and the escape information.
[0112] Among them, silent mode refers to a mode in which the audio is not played externally, that is, a mode in which the external volume is 0. When the terminal is in silent mode, the terminal will not play audio externally when a call is incoming or media is played. Playing audio externally means playing audio through a speaker. Headphones refer to wired headphones or Bluetooth headphones. When the terminal is connected to headphones, the terminal plays audio through the headphones and also does not play audio externally. Applications include system applications and third-party applications, which are not limited in the embodiments of the present application.
[0113] Under this implementation, when the terminal is in silent mode or connected to headphones, the disaster type and the escape information can be directly played outward, and the disaster type and escape information will be displayed preferentially, maximizing the probability that the user will receive the disaster type and escape information.
[0114] For example, when the terminal is in silent mode, the terminal plays the disaster type and the escape information through the speaker and controls the terminal to vibrate. When the terminal displays the application interface of any application, the terminal closes the application interface and displays the disaster type and the escape information. When the terminal is connected to headphones, the terminal plays the disaster type and the escape information through the speaker and the headphones at the same time and controls the terminal to vibrate. When the terminal displays the application interface of any application, the terminal closes the application interface and displays the disaster type and the escape information.
[0115] For example, when a user is watching a video or playing a game on a terminal, the terminal will directly close the video or game, and broadcast and display the disaster type and the escape information, thereby ensuring that the user can receive a reminder in a timely manner.
[0116] In a possible implementation manner, when the terminal is in a screen-off standby state, the terminal broadcasts and displays the disaster type and the escape information.
[0117] In this implementation, the terminal with the screen turned off and in standby mode can directly broadcast and display the disaster type and the escape information, thereby reminding the user in time.
[0118] For example, see Figure 4 , the terminal displays disaster type 401 and escape information 402.
[0119] In some embodiments, when the disaster notification is used to notify the terminal that a disaster is about to occur in the area where the terminal is located, the terminal broadcasts and displays the remaining time for the disaster to occur. The remaining time is carried in the disaster notification, and the remaining time changes with time. For example, see Figure 5 , the terminal displays the disaster type 501, escape information 502 and remaining time 503.
[0120] Optionally, after step 304, the terminal can also perform at least one of the following steps.
[0121] In a possible implementation, the terminal sends a disaster verification request to the server, the disaster verification request is used to request verification of the disaster notification. When receiving verification pass information returned by the server, the terminal continues to broadcast and display the disaster type and the escape information, the verification pass information is used to indicate that the disaster notification has been verified. When receiving verification failure information returned by the server, the terminal stops broadcasting and displaying the disaster type and the escape information.
[0122] Under this implementation mode, while the terminal is broadcasting and displaying the disaster type and the escape information, the terminal verifies the disaster notification with the server. Since disasters can cause greater harm, the terminal first broadcasts the disaster type and escape information and then verifies it to maximize the protection of the user's life and property safety.
[0123] In a possible implementation, the terminal sends a disaster information acquisition request to the server, the disaster information acquisition request is used to request the latest disaster information. When receiving the disaster information returned by the server, the terminal displays the disaster information while broadcasting and displaying the disaster type and the escape information.
[0124] Optionally, after step 304 , the terminal can also execute the following step 305 .
[0125] 305. When the operation of closing the disaster notification is detected N times in succession, the terminal stops broadcasting and displaying the disaster type and the escape information, and displays the disaster notification in the status bar, where N is a positive integer and is greater than 1.
[0126] Among them, N is set by the technician according to the actual situation, and the embodiment of the present application does not limit this. The operation of closing the disaster notification includes a click operation on the close control and a click operation on the screen. The status bar is the system status bar of the terminal, which is used to display messages and system status. Disaster notification is a type of message.
[0127] In some embodiments, if the operation of closing the disaster notification is not detected for N consecutive times, the terminal continues to broadcast and display the disaster type and the escape information.
[0128] Through step 305, the user needs to execute the operation of closing the disaster notification N times in succession before closing the disaster notification, thereby avoiding the problem that the user accidentally closes the disaster notification in a hurry.
[0129] Optionally, after step 305, in response to a click operation on the disaster notification displayed in the status bar, the terminal broadcasts and displays the disaster type and the escape information again.
[0130] In this implementation, when the disaster notification is turned off, the user can also click on the status bar to broadcast and display the disaster type and the escape information again, thereby improving the efficiency of human-computer interaction.
[0131] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0132] Through the technical solution provided in the embodiment of the present application, in response to a disaster notification, the disaster type is obtained from the disaster notification, and the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located. Based on the disaster type and the current location of the terminal, escape information indicating an escape method is determined, and the escape method is more closely matched to the disaster type and the location of the user. The use of voice plus image to output the disaster type and escape information not only improves the timeliness of disaster warnings, but also can provide users with richer escape information when a disaster is about to occur or has already occurred, which helps reduce user losses.
[0133] In other words, by broadcasting the type of disaster and escape information by voice, users can quickly understand the reason for the current voice broadcast when they are awakened from a deep sleep and their vision has not yet recovered, or when facing blind people and other people without vision, so as to gain precious time for escape. During the escape process, there is often no time to stare at the screen to read the message. At this time, the type of disaster and escape information can be broadcast by voice without affecting escape actions such as running and going down stairs, thereby increasing the probability of escape in the face of a disaster.
[0134] Figure 6 This is a schematic diagram of a disaster warning device provided in an embodiment of the present application. Figure 6 The device includes: a disaster type acquisition module 601, an escape information determination module 602 and a broadcast display module 603.
[0135] The disaster type acquisition module 601 is used to respond to a disaster notification and acquire a disaster type from the disaster notification, where the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located.
[0136] The escape information determination module 602 is used to determine the escape information based on the disaster type and the current location of the terminal, where the escape information is used to indicate an escape method.
[0137] The announcement and display module 603 is used to announce and display the disaster type and the escape information.
[0138] In a possible implementation, the escape information includes an escape route and a safety zone, and the escape information determination module 602 is used to query the safety zone around the current location based on the disaster type and the current location of the terminal. Based on the current location and the location of the safety zone, an escape route is generated, and the escape route is a route from the current location to the safety zone.
[0139] In a possible implementation, the escape information determination module 602 is configured to perform a safety zone query using the disaster type and the current location to obtain multiple candidate safety zones, and determine a safety zone around the current location from the multiple candidate safety zones based on the distance between each of the candidate safety zones and the current location.
[0140] In a possible implementation, the announcement display module 603 is used to play the disaster type and the escape information when the terminal is in silent mode or connected to headphones. When the terminal displays an application interface of any application, the application interface is closed and the disaster type and the escape information are displayed.
[0141] In a possible implementation, the device further includes:
[0142] The stop module is used to stop broadcasting and displaying the disaster type and the escape information and display the disaster notification in the status bar when the operation of closing the disaster notification is detected N times in a row, where N is a positive integer and N is greater than 1.
[0143] In a possible implementation, the broadcast display module 603 is further configured to broadcast and display the disaster type and the escape information again in response to a click operation on the disaster notification displayed in the status bar.
[0144] In a possible implementation, the announcement and display module 603 is further used to announce and display the remaining time for the disaster to occur when the disaster notification is used to notify that a disaster is about to occur in the area where the terminal is located.
[0145] It should be noted that: when the disaster warning device provided in the above embodiment displays multimedia resource information, it only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the disaster warning device provided in the above embodiment belongs to the same concept as the disaster warning method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0146] Through the technical solution provided in the embodiment of the present application, in response to a disaster notification, the disaster type is obtained from the disaster notification, and the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located. Based on the disaster type and the current location of the terminal, escape information indicating an escape method is determined, and the escape method is more closely matched to the disaster type and the location of the user. The use of voice plus image to output the disaster type and escape information not only improves the timeliness of disaster warnings, but also can provide users with richer escape information when a disaster is about to occur or has already occurred, which helps reduce user losses.
[0147] The embodiment of the present application provides a computer device for executing the above method. The computer device can be implemented as a terminal. The structure of the terminal is introduced below:
[0148] Figure 7 700 is a schematic diagram of a terminal structure provided in an embodiment of the present application. The terminal 700 may be a smart phone, a tablet computer, a laptop computer or a desktop computer. The terminal 700 may also be called a user equipment, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0149] Typically, the terminal 700 includes: one or more processors 701 and one or more memories 702 .
[0150] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0151] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one computer program, which is used to be executed by the processor 701 to implement the disaster warning method provided in the method embodiment of the present application.
[0152] In some embodiments, the terminal 700 may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707 and a power supply 708.
[0153] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0154] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like.
[0155] The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards.
[0156] The camera assembly 706 is used to collect images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
[0157] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them to the processor 701 for processing, or input them to the radio frequency circuit 704 to achieve voice communication.
[0158] The power supply 708 is used to supply power to various components in the terminal 700. The power supply 708 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
[0159] In some embodiments, the terminal 700 further includes one or more sensors 709 , including but not limited to: an acceleration sensor 710 , a gyroscope sensor 711 , a pressure sensor 712 , an optical sensor 713 , and a proximity sensor 714 .
[0160] The acceleration sensor 710 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 700 .
[0161] The gyro sensor 711 can detect the body direction and rotation angle of the terminal 700 . The gyro sensor 711 can cooperate with the acceleration sensor 710 to collect the user's 3D actions on the terminal 700 .
[0162] The pressure sensor 712 may be provided at the side frame of the terminal 700 and / or the lower layer of the display screen 705. When the pressure sensor 712 is provided at the side frame of the terminal 700, it may detect the user's holding signal of the terminal 700, and the processor 701 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 712. When the pressure sensor 712 is provided at the lower layer of the display screen 705, the processor 701 may control the operability controls on the UI interface according to the user's pressure operation on the display screen 705.
[0163] The optical sensor 713 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 713.
[0164] The proximity sensor 714 is used to collect the distance between the user and the front of the terminal 700 .
[0165] Those skilled in the art will understand that Figure 7The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0166] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program, and the computer program can be executed by a processor to complete the disaster warning method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0167] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned disaster warning method.
[0168] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0169] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0170] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A disaster early warning method, characterized in that: Executed by a terminal, the method includes: In response to a disaster notification, obtaining a disaster type from the disaster notification, wherein the disaster notification is used to notify that a disaster is about to occur or has occurred in an area where the terminal is located; Determine escape information based on the disaster type and the current location of the terminal, where the escape information is used to indicate an escape method; The disaster type and the escape information are reported and displayed.
2. The method according to claim 1, characterized in that The escape information includes an escape route and a safe zone, and the determining of the escape information based on the disaster type and the current location of the terminal includes: Based on the disaster type and the current location of the terminal, query a safety zone around the current location; An escape route is generated based on the current position and the position of the safety zone, where the escape route is a route from the current position to the safety zone.
3. The method according to claim 2, characterized in that The querying of a safety zone around the current location based on the disaster type and the current location of the terminal includes: Using the disaster type and the current location to query a safe zone, obtaining multiple candidate safe zones; A safety zone around the current position is determined from the plurality of candidate safety zones based on the distances between each of the candidate safety zones and the current position.
4. The method according to claim 1, characterized in that: The reporting and displaying of the disaster type and the escape information includes: When the terminal is in silent mode or connected to headphones, the disaster type and the escape information are played externally; When the terminal displays an application interface of any application, the application interface is closed and the disaster type and the escape information are displayed.
5. The method according to claim 1, characterized in that: After broadcasting and displaying the disaster type and the escape information, the method further includes: When the operation of closing the disaster notification is detected for N consecutive times, the broadcasting and displaying of the disaster type and the escape information are stopped, and the disaster notification is displayed in the status bar, where N is a positive integer and N is greater than 1.
6. The method according to claim 5, characterized in that The method further comprises: In response to a click operation on the disaster notification displayed in the status bar, the disaster type and the escape information are broadcast and displayed again.
7. The method according to claim 1, characterized in that The method further comprises: In the case where the disaster notification is used to notify that a disaster is about to occur in the area where the terminal is located, the remaining time until the disaster occurs is broadcast and displayed.
8. A disaster warning device, characterized in that: The device comprises: A disaster type acquisition module, used to respond to a disaster notification and acquire a disaster type from the disaster notification, wherein the disaster notification is used to notify the terminal that a disaster is about to occur or has occurred in the area where the terminal is located; An escape information determination module, used to determine escape information based on the disaster type and the current location of the terminal, wherein the escape information is used to indicate an escape method; The broadcast and display module is used to broadcast and display the disaster type and the escape information.
9. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the disaster warning method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by the processor to implement the disaster warning method according to any one of claims 1 to 7.
Citation Information
Patent Citations
A mobile terminal and emergent broadcast method based on this mobile terminal
CN101262678A
File push method and device and file push server
CN101931865A
Pre-warning method, pre-warning terminal, server and pre-warning system
CN103200221A
Emergency escape guide method and emergency escape guide system based on multi-data infusion
CN103954278A
Information notification method and device
CN109474360A