Tide warning method and device, terminal equipment and storage medium

By acquiring time and location information through terminal devices and combining it with a sea surface image recognition model, the system can determine the dangerous state of high tide and output warnings, thus solving the problems of high cost and low intensity of traditional high tide warnings and achieving effective high tide safety protection.

CN116153024BActive Publication Date: 2026-02-24WUXI WINGTECH INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310065174.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-13
Publication Date
2026-02-24
Estimated Expiration
2043-01-13

AI Technical Summary

Technical Problem

In the current technology, tourists at the beach lack awareness of the safety of high tides, and traditional tide observation systems are costly and have low alert intensity, which cannot effectively ensure the safety of tourists.

Method used

The system uses the terminal device's camera to acquire time information, location information, and sea surface images. Combined with an image recognition model, it determines the dangerous state of the rising tide and outputs warning messages to remind users to evacuate.

Benefits of technology

This increases the probability that tourists will receive warning messages during high tide, ensuring that users have enough time to evacuate from dangerous areas, protecting user safety, and protecting user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116153024B_ABST
    Figure CN116153024B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a rising tide early warning method and device, a terminal device and a storage medium. The method comprises: when a camera of the terminal device is turned on, obtaining time information and positioning information of the terminal device, and obtaining a sea surface image collected by the camera; determining whether a user is in a rising tide danger state according to the time information, the positioning information and the sea surface image; and outputting warning information when the user is in the rising tide danger state, the warning information being used to remind the user to leave a current area. The embodiment can protect the user's safety when the ocean tide rises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of safety early warning technology, and in particular to a high tide early warning method, device, terminal equipment and storage medium. Background Technology

[0002] With the booming development of tourism, coastal cities have gradually become the first choice for more and more tourists. However, most tourists lack experience in surviving at the beach and are unaware of ocean tide conditions, which may prevent them from evacuating to safe areas in time before high tide. Currently, high tide warnings for tourist safety are usually issued through expensive tide observation systems, which notify tourists via large screens or loudspeakers set up on the beach when a tide is detected. However, these tide observation systems are expensive and not installed on most beaches, and the alert strength is also low. Tourists using mobile devices (such as mobile phones) may not be alerted, and their safety cannot be guaranteed during high tide. Summary of the Invention

[0003] This application discloses a high tide warning method, device, terminal equipment, and storage medium, which can protect user safety during high tide.

[0004] This application discloses a high tide warning method applied to a terminal device, the method comprising:

[0005] When the camera of the terminal device is turned on, the time information and location information of the terminal device are obtained, and the sea surface image captured by the camera is also obtained.

[0006] Based on the time information, the location information, and the sea surface image, determine whether the user is in a dangerous situation due to high tide;

[0007] When the user is in the dangerous state of high tide, a warning message is output to remind the user to leave the current area.

[0008] In one embodiment, determining whether a user is in danger of high tide based on the time information, the location information, and the sea surface image includes:

[0009] Based on the time information and the location information, determine whether the user is in the danger state of high tide;

[0010] Based on the sea surface image, determine whether the user is in the danger state of high tide;

[0011] When the user is in the dangerous state of high tide, the warning message is output, including:

[0012] Each time it is determined that the user is in the dangerous state of high tide, a corresponding warning message is output. The warning message includes a first warning message and a second warning message. The first warning message is output when it is determined that the user is in the dangerous state of high tide based on the time information and the location information. The second warning message is output when it is determined that the user is in the dangerous state of high tide based on the sea surface image.

[0013] In one embodiment, determining whether a user is in danger of high tide based on the time information and the location information includes:

[0014] If the location is determined to be in a coastal area based on the location information, then the high tide period of the coastal area is obtained;

[0015] When the time information falls within the high tide period, it is determined that the user is in a high tide danger state;

[0016] If the time information is not within the high tide period, it is determined that the user is not in the high tide danger state.

[0017] In one embodiment, determining whether a user is in danger of high tide based on the sea surface image includes:

[0018] Determine the high tide safety factor corresponding to the sea surface image, the high tide safety factor being used to characterize the user's safety level under the current high tide conditions;

[0019] When the high tide safety factor is less than the safety factor threshold, the user is determined to be in a high tide danger state;

[0020] When the high tide safety factor is not less than the safety factor threshold, it is determined that the user is not in the high tide danger state.

[0021] In one embodiment, determining the high tide safety factor corresponding to the sea surface image includes:

[0022] Detect the white linear regions in the sea surface image;

[0023] The white linear region is segmented from the sea surface image to obtain the wave region;

[0024] Feature analysis is performed on the wave region to obtain feature data;

[0025] The feature data is input into the mathematical model corresponding to the high tide safety factor to obtain the high tide safety factor corresponding to the sea surface image.

[0026] In one embodiment, the warning information further includes a third warning information, and after outputting the second warning information, the method further includes:

[0027] Obtain the real-time location information of the terminal device;

[0028] When the real-time location information is not in the coastal area, the output of the second warning message shall be stopped;

[0029] When the duration of the real-time location information being in the coastal area reaches a time threshold, the third warning information is output, and the warning intensity of the third warning information is greater than that of the second warning information.

[0030] In one embodiment, acquiring the sea surface image captured by the camera includes:

[0031] When the camera captures any image, if the image recognition model determines that the image includes the sea surface, then the image is taken as a sea surface image; wherein the image recognition model is obtained through pre-training.

[0032] This application discloses a high tide warning device, applied to a terminal device, the device comprising:

[0033] The information acquisition module is used to acquire the time information and location information of the terminal device when the camera of the terminal device is turned on, and to acquire the sea surface image captured by the camera.

[0034] The status determination module is used to determine whether the user is in a dangerous state of high tide based on the time information, the location information, and the sea surface image.

[0035] The danger warning module is used to output warning information when the user is in the dangerous state of high tide, and the warning information is used to remind the user to leave the current area.

[0036] In one embodiment, the status determination module is further configured to determine whether the user is in the high tide danger state based on the time information and the location information; and to determine whether the user is in the high tide danger state based on the sea surface image.

[0037] The danger warning module is also used to output corresponding warning information each time it is determined that the user is in the dangerous state of high tide. The warning information includes a first warning information and a second warning information. The first warning information is used to output when it is determined that the user is in the dangerous state of high tide based on the time information and the location information. The second warning information is used to output when it is determined that the user is in the dangerous state of high tide based on the sea surface image.

[0038] In one embodiment, the state determination module is further configured to: if it is determined from the location information that the user is in a coastal area, then obtain the high tide period of the coastal area; if the time information is within the high tide period, determine that the user is in a high tide danger state; if the time information is not within the high tide period, determine that the user is not in the high tide danger state.

[0039] In one embodiment, the state determination module is further configured to determine the high tide safety factor corresponding to the sea surface image, the high tide safety factor being used to characterize the user's safety level under the current high tide conditions; when the high tide safety factor is less than a safety factor threshold, the user is determined to be in a high tide danger state; when the high tide safety factor is not less than the safety factor threshold, the user is determined not to be in the high tide danger state.

[0040] In one embodiment, the state determination module is further configured to detect white linear regions in the sea surface image; segment the white linear regions from the sea surface image to obtain wave regions; perform feature analysis on the wave regions to obtain feature data; and input the feature data into a mathematical model corresponding to the high tide safety factor to obtain the high tide safety factor corresponding to the sea surface image.

[0041] In one embodiment, the warning information further includes a third warning information, and the high tide warning device further includes a real-time warning module for obtaining the real-time location information of the terminal device; stopping the output of the second warning information when the real-time location information is not in the coastal area; and outputting the third warning information when the duration of the real-time location information being in the coastal area reaches a time threshold, wherein the reminder intensity of the third warning information is greater than that of the second warning information.

[0042] In one embodiment, the information acquisition module is further configured to, when the camera acquires any image, if the image recognition model determines that the image includes the sea surface, then regard the image as a sea surface image; wherein the image recognition model is obtained through pre-training.

[0043] This application discloses a terminal device, including:

[0044] Memory containing executable program code;

[0045] A processor coupled to the memory;

[0046] The processor calls the executable program code stored in the memory to execute the method described in any of the above embodiments.

[0047] This application discloses a computer-readable storage medium storing a computer program, wherein when executed by a processor, the computer program causes the processor to perform the methods described in any of the above embodiments.

[0048] The high tide warning method, apparatus, terminal device, and storage medium disclosed in this application allow the terminal device to acquire time and location information and sea surface images captured by the camera when the camera is turned on. Based on the time, location, and sea surface images, the device determines whether the user is in a high tide danger state. If the user is in a high tide danger state, the device outputs a warning message to remind the user to leave the current area. User data is only acquired when the terminal device turns on the camera, thus protecting user privacy. Furthermore, warning users in a high tide danger state through their terminal devices increases the probability that the user receives the warning message, giving the user sufficient time to evacuate the danger zone, thereby protecting user safety during high tide. Attached Figure Description

[0049] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 This is a schematic diagram illustrating an application scenario of a high tide warning method disclosed in an embodiment of this application;

[0051] Figure 2 This is a flowchart illustrating a high tide warning method disclosed in an embodiment of this application;

[0052] Figure 3 This is a flowchart illustrating another high tide warning method disclosed in an embodiment of this application;

[0053] Figure 4 This is a flowchart illustrating another high tide warning method disclosed in the embodiments of this application;

[0054] Figure 5 This is a modular schematic diagram of a high tide warning device disclosed in an embodiment of this application;

[0055] Figure 6 This is a structural block diagram of a terminal device disclosed in an embodiment of this application. Detailed Implementation

[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0057] It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or devices.

[0058] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first warning message may be referred to as a second warning message, and similarly, a second warning message may be referred to as a first warning message. Both the first warning message and the second warning message are warning messages, but they are not the same warning message.

[0059] This application discloses a high tide warning method, device, terminal equipment, and storage medium, which can protect user safety during high tide.

[0060] The following will be described in detail with reference to the accompanying drawings.

[0061] like Figure 1 As shown, Figure 1 This is a schematic diagram illustrating an application scenario of a high tide warning method disclosed in this application. The application scenario may include a terminal device 10, which includes a camera 110. The terminal device 10 may include, but is not limited to, a mobile phone, tablet computer, wearable device, laptop computer, or PC (Personal Computer). Furthermore, the operating system of the terminal device 10 may include, but is not limited to, Android, iOS, Symbian, BlackBerry, and Windows Phone 8 operating systems; this application does not impose such limitations. It should be noted that the camera 110 of the terminal device 10 can be aimed at the sea surface and capture images of the sea surface. Figure 1 Not shown in the image.

[0062] When the camera 110 is turned on, the terminal device 10 can obtain the time information and location information of the terminal device 10, and obtain the sea surface image collected by the camera 110. Based on the time information, location information and sea surface image, it can determine whether the user is in a dangerous state of high tide. If the user is in a dangerous state of high tide, it can output a warning message to remind the user to leave the current area.

[0063] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a high tide warning method disclosed in an embodiment of this application. This high tide warning method can be applied to the terminal device described in the above embodiment, and may include the following steps:

[0064] Step 210: When the camera of the terminal device is turned on, obtain the time information and location information of the terminal device, and obtain the sea surface image captured by the camera.

[0065] Because tourists often use their devices to take pictures of the sea when visiting the beach, and given the increasing importance users place on privacy, the high tide warning process is only implemented when the device's camera is turned on. This not only reduces the number of times user location information is retrieved, thus protecting user privacy, but also ensures user safety when at the beach.

[0066] When a camera is detected as active, the terminal device can acquire its time and location information, and obtain sea surface images captured by the camera. This camera may include the terminal device's front-facing camera and / or rear-facing camera. The time information can be the terminal device's device time or a standard time obtained from the network; there are no restrictions on this. The location information can be coarse positioning information, calculated using CellID base station positioning technology, or fine positioning information, calculated using GPS (Global Positioning System) positioning technology.

[0067] In one embodiment, the terminal device may include multiple cameras. Cameras capable of capturing sea surface images can be pre-determined within the terminal device. The device only acquires its time and location information, and obtains the sea surface image captured by that camera, when it detects that the camera capable of capturing sea surface images is activated. For example, the terminal device may include a front-facing camera and a rear-facing camera. The terminal device may only execute subsequent steps when it detects that the rear-facing camera is activated. Optionally, the camera capable of capturing sea surface images can be pre-set by the user or determined by the terminal device based on camera parameters. These parameters may include, but are not limited to, camera resolution, bitrate, and field of view. For example, the terminal device can use cameras with a resolution greater than a resolution threshold as cameras capable of capturing sea surface images. Implementing this embodiment allows subsequent steps of the high tide warning method to be executed only when the corresponding camera is activated, protecting user privacy and improving the usability of the sea surface images captured by the camera.

[0068] In one embodiment, when the camera captures any image, if the image recognition model determines that any image includes the sea surface, then any image is taken as a sea surface image; wherein, the image recognition model is obtained through pre-training.

[0069] The terminal device can control the camera to capture images upon detecting the first operation. The terminal device may include at least one of the following input devices: buttons, a touchscreen display, a voice input device, a fingerprint recognition device, a gravity sensor, an accelerometer, and a gyroscope. Taking buttons and touchscreen displays as examples, when the input device includes buttons or a touchscreen display, the first operation can be pressing any physical button or a virtual button. For example, the first operation could be pressing a physical volume control button on the terminal device, or pressing a virtual camera button on the touchscreen display.

[0070] When the camera captures any image, it can input that image into an image recognition model. The model then determines whether the image includes the sea surface. If the image does include the sea surface, it is recognized as a sea surface image. The image recognition model is pre-trained, and its training image set can consist of several images that include the sea surface.

[0071] Implementing this embodiment can improve the accuracy of terminal devices in determining sea surface images.

[0072] As an optional implementation, the terminal device can acquire sea surface images taken by other terminal devices. Specifically, the terminal device can identify other terminal devices currently in the same area based on its time and location information. If other terminal devices have taken sea surface images, the terminal device can acquire those images. These other terminal devices are those executing the high tide warning method, and the "same area" refers to the same coastal region. Implementing this method allows terminal devices in the same area to share sea surface images, enabling the terminal device to determine whether a user is in a high tide danger state based on the sea surface images taken by other terminal devices, further ensuring user safety.

[0073] Step 220: Based on the time information, location information, and sea surface image, determine whether the user is in a dangerous situation due to high tide.

[0074] The terminal device comprehensively analyzes the user's current status based on time information, location information, and sea surface images to determine whether the user is in a high-tide danger state. Optionally, the terminal device can also extract relevant feature information from the sea surface images and determine whether the user is in a high-tide danger state based on the analysis results by performing individual or weighted analysis on the time information, location information, and relevant feature information. Optionally, the terminal device can determine whether the user is in a high-tide danger state multiple times, and each time it can select one or more of the time information, location information, and sea surface images for determination.

[0075] In one embodiment, the terminal device can determine whether a user is in a high-tide danger state based on one or more of the following: time information, location information, and a sea surface image. Optionally, the terminal device can determine whether a user is in a high-tide danger state based on time information and location information, or it can determine this based on a sea surface image, or it can determine this based on location information and a sea surface image. The terminal device can analyze the availability of each piece of information in the time information, location information, and sea surface image to determine whether the user is in a high-tide danger state based on the available information. In one example, the terminal device analyzes the location information and determines that the accuracy of the location information does not meet the requirements, thus classifying the location information as unusable. In another example, the terminal device analyzes the sea surface image and determines that there is motion blur in the sea surface image, thus classifying the sea surface image captured by the camera as unusable. Implementing this embodiment can improve the accuracy of determining whether a user is in a high-tide danger state.

[0076] Step 230: When the user is in a dangerous situation due to high tide, output a warning message to remind the user to leave the current area.

[0077] Optionally, the warning information can be output in one or more of the following ways, including but not limited to voice, text, and indicator lights.

[0078] In this embodiment, the terminal device can acquire the time and location information of the terminal device when the camera is turned on, and acquire the sea surface image captured by the camera. Based on the time information, location information, and sea surface image, it can determine whether the user is in a dangerous state due to high tide. If the user is in a dangerous state due to high tide, it can output a warning message to remind the user to leave the current area. User data is only acquired when the terminal device turns on the camera, which can protect the user's privacy. Furthermore, by having the user's terminal device warn the user in a dangerous state due to high tide, the probability of the user receiving the warning message can be increased, giving the user enough time to evacuate the danger zone, thereby protecting the user's safety during high tide.

[0079] like Figure 3 As shown, Figure 3 This is a flowchart illustrating another high tide warning method disclosed in an embodiment of this application. This high tide warning method can be applied to the terminal device in the above embodiments, and the high tide warning method may include the following steps:

[0080] Step 310: When the camera of the terminal device is turned on, obtain the time information and location information of the terminal device, and obtain the sea surface image captured by the camera.

[0081] The method of step 310 is the same as the method of step 210 in the above embodiments, and will not be described again in this application embodiment.

[0082] Step 320: Based on the time and location information, determine whether the user is in a dangerous situation due to high tide.

[0083] Since even when the camera is turned on, it may not be able to capture an image of the sea surface, the terminal device can first determine whether the user is in a dangerous situation due to high tide based on time and location information. Then, when the camera captures an image of the sea surface, it can determine whether the user is in a dangerous situation due to high tide based on the image. Optionally, if the terminal device determines that the user is in a dangerous situation due to high tide based on time and location information, it can output a prompt message to encourage the user to take a picture of the sea surface using the camera.

[0084] In one embodiment, the step of determining whether a user is in a high tide danger state based on time information and location information may include: if the location information determines that the user is in a coastal area, then obtaining the high tide period of the coastal area; if the time information is during the high tide period, determining that the user is in a high tide danger state; if the time information is not during the high tide period, determining that the user is not in a high tide danger state.

[0085] The terminal device can acquire its location information when the camera is turned on and determine whether the location information is within a coastal area. Optionally, this coastal area can be a pre-set area or determined by the terminal device based on the distance between the location information and the ocean area. If the location information is determined to be within a coastal area, the terminal device can obtain the high tide period for that coastal area and determine whether the time information falls within the high tide period. If so, the user is determined to be in a high tide danger state; otherwise, the user is determined not to be in a high tide danger state. The high tide period corresponding to the coastal area is pre-set.

[0086] By implementing this embodiment, the terminal device can determine whether a user is in a dangerous state due to high tide by using time information and location information, thus protecting the user's safety during high tide.

[0087] Step 330: Based on the sea surface image, determine whether the user is in a dangerous situation due to high tide.

[0088] In one embodiment, the step of determining whether a user is in a high-tide danger state based on a sea surface image may include: determining a high-tide safety factor corresponding to the sea surface image, wherein the high-tide safety factor is used to characterize the user's safety level under the current high tide conditions; determining that the user is in a high-tide danger state when the high-tide safety factor is less than a safety factor threshold; and determining that the user is not in a high-tide danger state when the high-tide safety factor is not less than the safety factor threshold.

[0089] During high tide, white lines often appear on the sea surface where the water meets the sky, formed by waves. Therefore, terminal devices detect these white lines in sea surface images to determine the corresponding high tide safety factor. Specifically, the terminal device can detect white linear regions in the sea surface image, and detection methods can include, but are not limited to, template matching, blob analysis, and deep learning model detection.

[0090] After detecting a white linear region in the sea surface image, the terminal device can segment the white linear region from the sea surface image to obtain the wave region, perform feature analysis on the wave region to obtain feature data, and input the feature data into the mathematical model corresponding to the tide safety factor to obtain the tide safety factor corresponding to the sea surface image. Optionally, the mathematical model may include one or more, without limitation, and the terminal device can select the corresponding mathematical model to calculate the tide safety factor to improve the accuracy of the tide safety factor.

[0091] The characteristic data corresponding to the wave area may include, but is not limited to, the peak value of the curve at the upper edge of the white line and the white line baseline. There are no restrictions on this. The peak value of the curve at the upper edge of the white line refers to the highest value of the upper edge contour curve, and the white line baseline refers to the baseline for judging the safety factor of the high tide. It should be noted that this application embodiment only lists two relatively important characteristic data, and does not mean that the specific data required by the mathematical model only includes the peak value of the curve at the upper edge of the white line and the white line baseline.

[0092] The terminal device can compare the high tide safety factor corresponding to the sea surface image with a safety factor threshold. If the high tide safety factor is less than the safety factor threshold, the user is determined to be in a high tide danger state; if the high tide safety factor is not less than the safety factor threshold, the user is determined not to be in a high tide danger state. This safety factor threshold can be preset by the developers and is obtained after multiple training sessions.

[0093] By implementing this embodiment, the terminal device can determine whether a user is in a dangerous situation due to high tide through ocean images, and can protect the user's safety during high tide.

[0094] Step 340: Each time a user is identified as being in a dangerous state due to high tide, output the corresponding warning message.

[0095] The warning information may include a first warning and a second warning. The first warning is output when the user is determined to be in a dangerous high-tide state based on time and location information. The second warning is output when the user is determined to be in a dangerous high-tide state based on a sea surface image. Specifically, the terminal device can output the first warning when it determines the user is in a dangerous high-tide state based on time and location information, and can output the second warning when it determines the user is in a dangerous high-tide state based on a sea surface image. Optionally, the alert strength of the second warning can be greater than that of the first warning; for example, the first warning can be a pop-up notification, and the second warning can be an audio notification.

[0096] In this embodiment of the application, the terminal device can also determine whether the user is in a dangerous state of high tide based on time information and location information, and determine whether the user is in a dangerous state of high tide based on sea surface images. Each time the user is determined to be in a dangerous state of high tide, the device outputs a corresponding warning message. By making multiple determinations, the device avoids misjudging whether the user is in a dangerous state of high tide, improves the accuracy of the determination of dangerous state of high tide, and can also remind the user by outputting warning messages multiple times, further improving the safety of the user when playing at the beach.

[0097] like Figure 4 As shown, Figure 4This is a flowchart illustrating another high tide warning method disclosed in this application. This high tide warning method can be applied to the terminal device in the above embodiments, and the high tide warning method may include the following steps:

[0098] Step 410: When the camera of the terminal device is turned on, obtain the time information and location information of the terminal device.

[0099] Step 420: Based on the time and location information, determine whether the user is in a dangerous state due to high tide. If yes, proceed to step 430; otherwise, proceed to step 440.

[0100] Step 430: Output the first warning message.

[0101] Step 440: Acquire the sea surface image captured by the camera.

[0102] Step 450: Based on the sea surface image, determine whether the user is in a dangerous situation due to high tide. If yes, proceed to step 460; otherwise, end the high tide warning method.

[0103] Step 460: Output the second warning message.

[0104] The methods for steps 410 to 460 can be referred to in the above embodiments, and will not be repeated here.

[0105] Step 470: Obtain the real-time location information of the terminal device.

[0106] The terminal device can continuously output a second warning message and simultaneously obtain the real-time location information of the terminal device, determine whether the real-time location information is in the coastal area, and record the duration of the real-time location information being in the coastal area.

[0107] Step 480: Stop outputting the second warning message when the real-time location information is not in the coastal area.

[0108] When the terminal device detects that the real-time location information is not in the coastal area, it means that the user has left the coastal area and can be determined that the user is not in a dangerous state due to high tide. The terminal device can then stop outputting the second warning message, thereby improving the intelligence level of the terminal device.

[0109] Step 490: When the duration of the real-time location information being in the coastal area reaches a time threshold, output the third warning message.

[0110] The terminal device can output a third warning message when the duration of its real-time location information remaining in the coastal area reaches a time threshold. Optionally, the terminal device can also detect whether the user is evacuating the coastal area and output a third warning message if the user has not made a clear evacuation move. Specifically, the terminal device can output a third warning message when the duration of its real-time location information remaining unchanged reaches another time threshold, which can be less than the first time threshold. The third warning message has a stronger alert intensity than the second warning message, thereby further increasing the likelihood that the warning message will reach the user.

[0111] In this embodiment of the application, after the terminal device outputs the second prompt information, the real-time location information of the terminal device can be continuously monitored. When the real-time location information is not in the coastal area, the output of the second warning information is stopped. When the duration of the real-time location information in the coastal area reaches a time threshold, the third warning information is output. This can ensure that the user can get out of the dangerous state of high tide and protect the user's safety.

[0112] like Figure 5 As shown, Figure 5 This is a modular schematic diagram of a high tide warning device disclosed in an embodiment of this application. The high tide warning device 500 may include an information acquisition module 510, a status determination module 520, and a danger warning module 530, wherein:

[0113] The information acquisition module 510 is used to acquire the time information and location information of the terminal device when the camera of the terminal device is turned on, and to acquire the sea surface image captured by the camera.

[0114] The status determination module 520 is used to determine whether the user is in a dangerous state of high tide based on time information, location information and sea surface images;

[0115] The danger warning module 530 is used to output warning information when a user is in a dangerous situation due to high tide. The warning information is used to remind the user to leave the current area.

[0116] In one embodiment, the status determination module 520 is further configured to determine whether the user is in a high tide danger state based on time information and location information; and to determine whether the user is in a high tide danger state based on sea surface images.

[0117] The danger warning module 530 is also used to output corresponding warning information each time it is determined that the user is in a dangerous state of high tide. The warning information includes a first warning information and a second warning information. The first warning information is output when it is determined that the user is in a dangerous state of high tide based on time information and location information. The second warning information is output when it is determined that the user is in a dangerous state of high tide based on sea surface images.

[0118] In one embodiment, the state determination module 520 is further configured to: if it is determined from the location information that the user is in a coastal area, then obtain the high tide period of the coastal area; if the time information is during the high tide period, determine that the user is in a high tide danger state; if the time information is not during the high tide period, determine that the user is not in a high tide danger state.

[0119] In one embodiment, the state determination module 520 is further configured to determine the high tide safety factor corresponding to the sea surface image, the high tide safety factor being used to characterize the user's safety level under the current high tide conditions; when the high tide safety factor is less than the safety factor threshold, it is determined that the user is in a high tide danger state; when the high tide safety factor is not less than the safety factor threshold, it is determined that the user is not in a high tide danger state.

[0120] In one embodiment, the state determination module 520 is further configured to detect white linear regions in the sea surface image; segment the white linear regions from the sea surface image to obtain wave regions; perform feature analysis on the wave regions to obtain feature data; and input the feature data into the mathematical model corresponding to the high tide safety factor to obtain the high tide safety factor corresponding to the sea surface image.

[0121] In one embodiment, the warning information further includes a third warning information, and the high tide warning device further includes a real-time warning module for obtaining the real-time location information of the terminal device; stopping the output of the second warning information when the real-time location information is not in the coastal area; and outputting the third warning information when the duration of the real-time location information in the coastal area reaches a time threshold, wherein the reminder intensity of the third warning information is greater than that of the second warning information.

[0122] In one embodiment, the information acquisition module 510 is further configured to, when the camera acquires any image, if the image recognition model determines that any image includes the sea surface, then treat any image as a sea surface image; wherein the image recognition model is obtained through pre-training.

[0123] In this embodiment, the terminal device can acquire the time and location information of the terminal device when the camera is turned on, and acquire the sea surface image captured by the camera. Based on the time information, location information, and sea surface image, it can determine whether the user is in a dangerous state due to high tide. If the user is in a dangerous state due to high tide, it can output a warning message to remind the user to leave the current area. User data is only acquired when the terminal device turns on the camera, which can protect the user's privacy. Furthermore, by having the user's terminal device warn the user in a dangerous state due to high tide, the probability of the user receiving the warning message can be increased, giving the user enough time to evacuate the danger zone, thereby protecting the user's safety during high tide.

[0124] like Figure 6As shown, in one embodiment, a terminal device is provided, which may include:

[0125] Memory 610 storing executable program code;

[0126] Processor 620 coupled to memory 610;

[0127] The processor 620 can call the executable program code stored in the memory 610 to implement the high tide warning method provided in the above embodiments.

[0128] The memory 610 may include random access memory (RAM) or read-only memory (ROM). The memory 610 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 610 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the terminal device during use.

[0129] Processor 620 may include one or more processing cores. Processor 620 connects to various parts within the terminal device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 610, and by calling data stored in memory 610. Optionally, processor 620 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 620 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 620 and may be implemented separately using a communication chip.

[0130] Understandably, the terminal device may include more or fewer structural elements than those shown in the above block diagram, such as a power module, physical buttons, WiFi (Wireless Fidelity) module, speaker, Bluetooth module, sensor, etc., and may not be limited herein.

[0131] This application discloses a computer-readable storage medium storing a computer program that causes a computer to perform the methods described in the above embodiments.

[0132] Furthermore, this application further discloses a computer program product that, when run on a computer, enables the computer to execute all or part of the steps in any of the high tide warning methods described in the above embodiments.

[0133] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0134] The above provides a detailed description of a high tide warning method, apparatus, terminal device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for early warning of high tide, characterized in that, The method, applied to a user's terminal device, includes: When the camera of the terminal device is turned on, the time information and location information of the terminal device are obtained; Based on the time information and the location information, it is determined whether the user is in a dangerous state due to high tide. If it is determined that the user is in a dangerous state due to high tide based on the time information and the location information, a first warning message and a prompt message are output. The prompt message is used to prompt the user to take a picture of the sea surface through the camera. Acquire sea surface images captured by the camera; Based on the sea surface image, it is determined whether the user is in a dangerous situation due to high tide. If it is determined that the user is in a dangerous situation due to high tide based on the sea surface image, a second warning message is output. The first warning message and the second warning message are used to remind the user to leave the current area. The reminder intensity of the second warning message is greater than that of the first warning message.

2. The method according to claim 1, characterized in that, The step of determining whether a user is in danger of high tide based on the time information and the location information includes: If the location is determined to be in a coastal area based on the location information, then the high tide period of the coastal area is obtained; When the time information falls within the high tide period, it is determined that the user is in a high tide danger state; If the time information is not within the high tide period, it is determined that the user is not in the high tide danger state.

3. The method according to claim 1, characterized in that, The step of determining whether a user is in danger of high tide based on the sea surface image includes: Determine the high tide safety factor corresponding to the sea surface image, the high tide safety factor being used to characterize the user's safety level under the current high tide conditions; When the high tide safety factor is less than the safety factor threshold, the user is determined to be in a high tide danger state; When the high tide safety factor is not less than the safety factor threshold, it is determined that the user is not in the high tide danger state.

4. The method according to claim 3, characterized in that, Determining the high tide safety factor corresponding to the sea surface image includes: Detect the white linear regions in the sea surface image; The white linear region is segmented from the sea surface image to obtain the wave region; Feature analysis is performed on the wave region to obtain feature data; The feature data is input into the mathematical model corresponding to the high tide safety factor to obtain the high tide safety factor corresponding to the sea surface image.

5. The method according to claim 2, characterized in that, After outputting the second warning message, the method further includes: Obtain the real-time location information of the terminal device; When the real-time location information is not in the coastal area, the output of the second warning message shall be stopped; When the duration of the real-time location information being in the coastal area reaches a time threshold, a third warning message is output, and the warning intensity of the third warning message is greater than that of the second warning message.

6. The method according to claim 1, characterized in that, The acquisition of the sea surface image captured by the camera includes: When the camera captures any image, if the image recognition model determines that the image includes the sea surface, then the image is taken as a sea surface image; wherein the image recognition model is obtained through pre-training.

7. A high tide warning device, characterized in that, Applied to a terminal device, the device includes: The information acquisition module is used to acquire the time information and location information of the terminal device when the camera of the terminal device is turned on; it is also used to acquire sea surface images captured by the camera. The status determination module is used to determine whether the user is in a dangerous state of high tide based on the time information and the location information; it is also used to determine whether the user is in a dangerous state of high tide based on the sea surface image. The danger warning module is used to output a first warning message and a prompt message when it is determined that the user is in a dangerous state of high tide based on the time information and the location information. The prompt message is used to prompt the user to take a picture of the sea surface using the camera. It is also used to output a second warning message when it is determined that the user is in a dangerous state of high tide based on the sea surface image. The first warning message and the second warning message are used to remind the user to leave the current area. The reminder intensity of the second warning message is greater than that of the first warning message.

8. A terminal device, characterized in that, include: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein, when executed by a processor, the computer program causes the processor to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Urban rainstorm flood early warning scheme construction method based on mobile phone signaling data

    CN111711920A

  • Intelligent beach safety protection method and system based on machine vision

    CN114419535A