Direction monitoring method, device, storage medium and direction monitoring device

By using direction monitoring methods in open waters, determining the target direction of the user and measuring its actual direction, the problem of swimmers or navigators being disoriented is solved, and the direction of safe areas in the waters is realized, reducing the risk of encountering dangers.

CN119756347APending Publication Date: 2025-04-04SUUNTO SPORTS TECHNOLOGY (DONGGUAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411919015.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In open waters, swimmers or sailors are prone to disorientation and lack clear references and boundaries, making it difficult to quickly return to the starting point or safe area, increasing the risk of danger.

Method used

A direction monitoring method is provided. By responding to the direction monitoring request triggered by the user, the target direction set by the user is determined, the direction change data and speed change data of the user are measured, the actual direction is calculated when the user is moving forward, and the actual direction is compared with the target direction. If the actual direction deviates from the target direction and reaches a preset condition, it is determined that the user has deviated from the target direction.

Benefits of technology

This method can help users clarify the direction of safe areas in the waters, reduce the risk of dangers caused by disorientation, and improve their self-rescue capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119756347A_ABST
    Figure CN119756347A_ABST
Patent Text Reader

Abstract

The present application discloses a direction monitoring method, device, storage medium and direction monitoring equipment. In response to a direction monitoring request triggered by a user, the target direction set by the user is determined; the direction change data and speed change data of the user are measured, and the actual direction of the user when moving forward is determined based on the direction change data and speed change data; the actual direction is compared with the target direction, and if the actual direction meets the preset deviation condition between the target direction and the actual direction, it is determined that the user has deviated from the target direction. When the user triggers a direction monitoring request, the target direction set by the user is first determined, and then the direction change data and speed change data of the user are measured respectively, and the actual direction of the user is determined accordingly, and finally the target direction and the actual direction are compared, and it is determined whether the user has deviated from the target direction based on the comparison result, so that the user can promptly clarify the direction of the safe area and reduce the risk of danger due to disorientation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of navigation and positioning technology, and in particular to a direction monitoring method, device, storage medium and direction monitoring equipment. Background Art

[0002] When users swim in open water or paddleboard, they may easily deviate from the original route due to the lack of obvious reference points and boundaries. In an emergency, they do not know how to quickly return to the starting point or safe area, which may easily lead to danger. Existing wearable devices such as adventure watches can realize the tracking navigation function by recording the path traveled by GPS, converting the future path into the forward direction, and guiding the user back to the starting point. However, this function is mostly used in ground environments such as outdoor mountains, and is not suitable for complex water environments where swimmers or sailors are located. Therefore, a method for monitoring direction suitable for swimmers or sailors is needed to help them determine the direction of the safe area and improve their self-rescue ability. Summary of the invention

[0003] The present application provides a direction monitoring method, apparatus, storage medium and direction monitoring device to solve the problem that users are easily lost in the above-mentioned open water area.

[0004] In a first aspect, an embodiment of the present application provides a direction monitoring method, the method comprising:

[0005] In response to a direction monitoring request triggered by a user, determining a target direction set by the user;

[0006] Measuring the direction change data and the speed change data of the user, and determining the actual direction of the user when moving forward according to the direction change data and the speed change data;

[0007] The actual direction is compared with the target direction, and if the actual direction satisfies a preset deviation condition from the target direction, it is determined that the user has deviated from the target direction.

[0008] In a second aspect, an embodiment of the present application provides a direction monitoring device, the device comprising:

[0009] A target direction determination module, configured to determine a target direction set by a user in response to a direction monitoring request triggered by a user;

[0010] An actual direction determination module, used to measure the direction change data and speed change data of the user, and determine the actual direction of the user when moving forward according to the direction change data and speed change data;

[0011] The direction comparison module is used to compare the actual direction with the target direction, and if the actual direction meets a preset deviation condition between the actual direction and the target direction, it is determined that the user has deviated from the target direction.

[0012] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method.

[0013] In a fourth aspect, an embodiment of the present application provides a direction monitoring device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is suitable for being loaded by the processor and executing the steps of the above method.

[0014] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0015] The present application provides a direction monitoring method, which responds to a direction monitoring request triggered by a user, determines the target direction set by the user; measures the direction change data and speed change data of the user, and determines the actual direction of the user when moving forward according to the direction change data and speed change data; compares the actual direction with the target direction, and if the actual direction meets the preset deviation condition between the target direction, determines that the user has deviated from the target direction. In open waters, when the user triggers a direction monitoring request, first, by determining the target direction set by the user, a reference direction can be provided for the subsequent direction monitoring process; then, the direction change data and speed change data that can reflect the user's direction and speed are measured respectively, and the user's real-time direction can be determined by the direction change data, and the user's speed in this real-time direction can be determined in combination with the speed change data, thereby determining the user's actual direction; after obtaining the user's actual direction, the actual direction is compared with the target direction, and it is determined whether the user has deviated from the target direction according to the comparison result. Through the above steps, the embodiment of the present application can monitor whether the user deviates from the target direction, so that the user can clearly know the direction of the safe area in the waters, and reduce the risk of suffering danger due to disorientation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 An exemplary system architecture diagram of a direction monitoring method provided in an embodiment of the present application;

[0018] Figure 2 A flow chart of a direction monitoring method provided in an embodiment of the present application;

[0019] Figure 3 A flow chart of a direction monitoring method provided in an embodiment of the present application;

[0020] Figure 4 A detailed flow chart of a direction monitoring method implemented in an embodiment of the present application;

[0021] Figure 5 A flow chart of a direction monitoring method provided in an embodiment of the present application;

[0022] Figure 6 A structural block diagram of a direction monitoring device provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of a direction monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0025] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0026] In outdoor adventures and hiking, users often need to cross complex terrains and environments. Since users are prone to getting lost or deviating from their original routes in these environments, the tracking navigation function is particularly important. With the improvement of the Global Positioning System (GPS) and the rise of wearable devices, existing adventure watches can help users quickly find the path back to the starting point or safe area by recording the path taken by the user and converting it into the direction of travel when necessary, reducing the risk of users getting lost or encountering danger in outdoor mountain environments.

[0027] However, when users are swimming or paddling, it is inconvenient to use screen devices, and the water surface may interfere with GPS, so the tracking navigation function of existing adventure watches is not suitable for water environments. However, in open waters, due to the lack of obvious reference points and boundaries, users are prone to inadvertently deviate from the original route. In an emergency, they do not know how to quickly return to the starting point or a safe area, thereby increasing the risk of encountering danger.

[0028] Therefore, an embodiment of the present application provides a direction monitoring method to solve the problem that users are easily lost in the above-mentioned open water area.

[0029] See also Figure 1 , Figure 1 An exemplary system architecture diagram of a direction monitoring method provided in an embodiment of the present application.

[0030] like Figure 1 As shown, the system architecture may include a direction monitoring device 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the direction monitoring device 101 and the server 103. The network 102 may include various types of wired communication links or wireless communication links, for example, the wired communication link includes an optical fiber, a twisted pair, or a coaxial cable, and the wireless communication link includes a Bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, or a microwave communication link.

[0031] The direction monitoring device 101 can interact with the server 103 through the network 102 to receive messages from the server 103 or send messages to the server 103, or the direction monitoring device 101 can interact with the server 103 through the network 102 to receive messages or data sent to the server 103 by other users. The direction monitoring device 101 can be hardware or software. When the direction monitoring device 101 is hardware, it can be various electronic devices, including but not limited to sports headphones, sports headbands, smart watches, smart phones, tablet computers, laptop portable computers, etc. When the direction monitoring device 101 is software, it can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules (for example: used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.

[0032] In an embodiment of the present application, the direction monitoring device 101 first responds to a direction monitoring request triggered by a user to determine the target direction set by the user; then, the direction monitoring device 101 measures the user's direction change data and speed change data, and determines the actual direction of the user when moving forward based on the direction change data and the speed change data; finally, the direction monitoring device 101 compares the actual direction with the target direction, and if the actual direction meets a preset deviation condition from the target direction, it is determined that the user has deviated from the target direction.

[0033] The server 103 may be a business server that provides various services. It should be noted that the server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or it may be implemented as a single server. When the server 103 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or it may be implemented as a single software or software module, which is not specifically limited here.

[0034] Alternatively, the system architecture may not include the server 103. In other words, the server 103 may be an optional device in the embodiments of this specification. That is, the method provided in the embodiments of this specification may be applied to a system structure that only includes the direction monitoring device 101, and the embodiments of this application do not limit this.

[0035] It should be understood that Figure 1 The number of direction monitoring devices, networks and servers in the figure is only for illustration, and any number of direction monitoring devices, networks and servers may be used according to implementation requirements.

[0036] See also Figure 2 , Figure 2 A flow chart of a direction monitoring method provided for an embodiment of the present application. The execution subject of the embodiment of the present application can be a terminal that executes direction monitoring, or a processor in the terminal that executes the direction monitoring method, or a direction monitoring service in the terminal that executes the direction monitoring method. For the convenience of description, the specific execution process of the direction monitoring method is introduced below by taking the execution subject being the processor in the terminal as an example.

[0037] like Figure 2 As shown, the direction monitoring method may at least include:

[0038] S202: In response to a direction monitoring request triggered by a user, determine a target direction set by the user.

[0039] Optionally, when a user is swimming in open water or sailing on a paddle board, the user may easily deviate from the predetermined direction or even get lost because there are no obvious reference objects and boundaries in the water. Therefore, a clear target direction is needed to guide the user forward. Based on this, in an embodiment of the present application, when the user triggers a direction monitoring request, the user first needs to clarify a target direction that he or she wants to move forward. By presetting the target direction, a clear reference is provided for the subsequent direction monitoring process, so that the user's actual direction of travel can be monitored in real time and compared with the target direction, thereby determining whether the user has deviated from the predetermined route.

[0040] Optionally, the method in the embodiment of the present application can be applied to a variety of direction monitoring devices, such as swimming headphones, sports headbands, paddle boards, or professional navigation devices on sailboats, etc. The user can trigger the direction monitoring request in the method shown in the embodiment of the present application through physical buttons or voice commands on these devices. For example, a swimmer can trigger the direction monitoring request through a button on the swimming headphones he wears to turn on the direction monitoring function on the headphones.

[0041] Optionally, when the user triggers the direction monitoring request, the user is first instructed to input or select the target direction, and the information corresponding to the target direction is stored as a reference for subsequent comparisons. Specifically, the user can set the target direction through a simple navigation interface in a mobile phone connected to the direction monitoring device via Bluetooth. The interface may be presented in the form of a compass, map, or other forms. The user can specify the target direction by rotating the phone, dragging an indicator, or entering a specific azimuth; or the target direction can be set directly through voice commands, head movements, etc. The method in the embodiment of the present application can identify the target direction set by the user and convert it into internally processable coordinate information to provide a reference for subsequent direction comparisons. In addition, the user can also save frequently used target directions as templates for quick call-up and reduce the tediousness of resetting each time it is used.

[0042] S204: Measure the direction change data and speed change data of the user, and determine the actual direction of the user when moving forward according to the direction change data and the speed change data.

[0043] Optionally, in order to determine whether the actual direction of the user moving forward is consistent with the target direction, after determining the target direction, the actual direction of the user needs to be measured. Specifically, a sensor for detecting the direction in which the user turns can be integrated inside the direction monitoring device, and the user's direction change data is measured by the sensor. These sensors include but are not limited to GPS sensors, accelerometers, gyroscopes and magnetometers, among which the GPS sensor is used to provide the user's geographic location and travel speed, the accelerometer and gyroscope are responsible for monitoring the user's dynamic changes, such as acceleration and angular velocity, and the magnetometer is used to calibrate and confirm direction information.

[0044] Optionally, since the user's direction rotation does not necessarily affect the overall progress in the target direction, for example, if the user's head or body temporarily deviates from the target direction, but the overall travel speed still points to the target direction, it will be considered that the user has not actually deviated from the target direction. Take a swimmer who monitors the direction through headphones as an example. Due to the need for breathing and the like, the swimmer's head will frequently change direction. This head rotation is part of the swimming action, and the direction of the head rotation cannot reflect the direction of the swimmer's entire body. Especially in freestyle, swimmers usually breathe on one side, which will cause the head to turn to that side briefly, while the body continues to move in a straight line. Based on this, the measurement of the direction change data caused by the rotation of the user's head or body mainly reflects the actual rotation of the user's head or body during the forward process. If you want to get the actual direction of the user when moving forward, you also need to consider the user's travel speed during the entire forward process to more accurately determine whether the user is moving in the target direction.

[0045] Specifically, a speed sensor for detecting the user's speed is also integrated inside the direction monitoring device, and the speed change data of the user is measured through the speed sensor. Since speed is a directional vector, after measuring the user's direction change data and speed change data respectively, the speed component in the user's rotation direction can be further calculated, and then the value of the component speed can be used to determine whether the aforementioned direction change is a simple turn caused by ventilation or the user has changed direction as a whole, and then the actual direction of the user when moving forward can be obtained.

[0046] S206: Compare the actual direction with the target direction, and if the actual direction satisfies a preset deviation condition from the target direction, determine that the user has deviated from the target direction.

[0047] Optionally, after determining the actual direction of the user moving forward, it is necessary to compare the actual direction with the aforementioned pre-set target direction. When the deviation between the actual direction and the target direction exceeds a preset deviation condition, it is determined that the user has deviated from the target direction, and the user is prompted accordingly. The preset deviation condition includes the maximum allowable deviation range between the user's actual direction and the target direction. This range can be a fixed angle value (such as ±5°, ±10°, etc.), or it can be dynamically adjusted based on the accuracy requirements set by the user or environmental changes.

[0048] In an embodiment of the present application, a direction monitoring method is provided, which responds to a direction monitoring request triggered by a user, determines the target direction set by the user; measures the direction change data and speed change data of the user, and determines the actual direction of the user when moving forward according to the direction change data and speed change data; compares the actual direction with the target direction, and if the actual direction meets the preset deviation condition between the target direction, determines that the user has deviated from the target direction. In open waters, when the user triggers a direction monitoring request, first, by determining the target direction set by the user, a reference direction can be provided for the subsequent direction monitoring process; then, the direction change data and speed change data that can reflect the user's direction and speed are measured respectively, and the user's real-time direction can be determined by the direction change data, and the user's speed in this real-time direction can be determined in combination with the speed change data, thereby determining the user's actual direction; after obtaining the user's actual direction, the actual direction is compared with the target direction, and it is determined whether the user has deviated from the target direction according to the comparison result. Through the above steps, the embodiment of the present application can monitor whether the user deviates from the target direction, so that the user can clearly know the direction of the safe area in the waters, and reduce the risk of suffering danger due to disorientation.

[0049] See also Figure 3 , Figure 3 A flow chart of a direction monitoring method provided in an embodiment of the present application.

[0050] like Figure 3 As shown, the direction monitoring method may at least include:

[0051] S302: In response to a direction monitoring request triggered by a user, when it is monitored that the user faces the direction to be confirmed for a preset time and triggers a confirmation request for the direction to be confirmed, the direction to be confirmed is determined as a target direction set by the user.

[0052] Optionally, for ease of understanding, the following description of the method shown in the embodiment of the present application is based on an example of a swimmer who monitors the direction through headphones. Figure 4In S402 of the detailed flow chart of a direction monitoring method provided by an embodiment of the present application, the swimmer can trigger a direction monitoring request by clicking a button on the earphone to turn on the direction monitoring function in the earphone. At this time, the earphone can prompt the swimmer to set the target direction, for example, Figure 4 In S404, the user can be prompted by voice: Please look at the target point and click the button.

[0053] Alternatively, if Figure 4 In S406 of the detailed flowchart shown in the figure, when the swimmer sets the target direction, the headset will detect the swimmer's current direction and posture in real time through the internal integrated sensor. When it is detected that the swimmer faces a certain direction and remains still for a preset time (such as 3 seconds, 5 seconds, etc.), it is considered that the direction is most likely the target direction that the swimmer wants to move in. At this time, the direction is locked as the direction to be confirmed and waits for the swimmer's confirmation. Figure 4 In S410, when the swimmer triggers a confirmation request for the direction to be confirmed, the current direction to be confirmed is determined as the target direction set by the swimmer, and the direction monitoring function on the headset is successfully turned on; and if Figure 4 In S408, when the swimmer changes the direction before confirming the direction, the direction confirmation fails, and the swimmer's orientation and posture are detected again, and the swimmer's confirmation is waited. In addition, different prompt sounds can be set to distinguish the various processes of the swimmer setting the target direction. For example, when the swimmer adjusts the direction, a corresponding prompt sound can be continuously issued at a certain frequency, and when the direction to be confirmed is successfully locked, another distinctive prompt sound can be issued.

[0054] S304: Measure the user's angular velocity change data through a gyroscope, and measure the user's acceleration change data through an accelerometer, wherein the angular velocity change data is used to characterize the user's direction change, and the acceleration change data is used to characterize the user's speed change.

[0055] Optionally, a gyroscope is a sensor that can detect the angular velocity of an object's rotation, such as Figure 4 In S412 of the detailed flowchart shown, in order to detect the change in direction of the swimmer, a gyroscope can be integrated in the earphone, and the gyroscope can be used to capture in real time the tiny rotations of the swimmer's head during swimming, that is, the angular velocity change data, which can reflect the dynamic changes in the direction of the swimmer's head.

[0056] Optionally, an accelerometer can measure the dynamic acceleration of an object as it moves, so that Figure 4In S414 of the detailed flowchart shown, in order to detect the speed change of the swimmer, an accelerometer can be integrated in the earphone, and the acceleration change data of the swimmer during swimming can be captured in real time by the accelerometer, so that the actual direction of the swimmer when moving forward can be further clarified based on the measured angular velocity change data and acceleration change data.

[0057] S306: Determine the actual direction of the user moving forward according to the angular velocity change data and the acceleration change data.

[0058] Optionally, after the angular velocity change data and the acceleration change data are measured by the gyroscope and the accelerometer respectively, the component velocity of the acceleration change in the direction of the swimmer's rotation is further calculated, and the actual direction of the swimmer's forward movement is determined accordingly. Specifically, if the value of the component velocity is 0, it means that the swimmer has only changed the direction of his head by breathing or the like, but the direction of his body's movement remains consistent with the target direction; and if the value of the component velocity is not 0, it means that the swimmer has indeed generated an acceleration in the direction of the head's rotation, which also indicates that the swimmer's actual direction has indeed deviated from the target direction, and then the swimmer's actual direction can be further calculated based on the angular velocity change data and the acceleration change data.

[0059] Optionally, the method shown in the embodiment of the present application can also store the path information of the swimmer during the current direction monitoring process, and display it in real time on the display interface of the relevant device, for example, the swimmer's path information can be displayed in real time on the relevant map interface of the associated mobile phone. In addition, after determining the actual direction of the swimmer, the actual direction can also be displayed in real time in the form of a pointer pointing.

[0060] S308: Compare the actual direction with the target direction. If the actual direction deviates from the target direction by a preset deviation degree and the actual direction deviates from the target direction by a preset deviation time and / or a preset deviation distance, it is determined that the user has deviated from the target direction.

[0061] Optionally, when comparing the actual direction with the target direction according to the preset deviation condition, in order to improve the accuracy of direction monitoring and reduce the possibility of false alarms, in addition to judging by the deviation degree of the direction, the time dimension and the distance dimension can also be introduced for comprehensive analysis. Specifically, the preset deviation condition may include: preset deviation degree, preset deviation duration, and preset deviation distance. Among them, the preset deviation degree is a preset maximum allowable deviation angle (such as 5°, 10°, etc.). When the deviation angle between the actual direction and the target direction exceeds this value, it is initially considered that the swimmer has deviated; next, if the actual direction continues to deviate from the target direction for more than the preset deviation duration (such as 30 seconds, 1 minute, etc.), the swimmer's deviation state is further confirmed; at the same time, considering that the swimmer may be judged as deviating after advancing a certain distance in the deviation direction, a minimum deviation distance threshold (such as 25 meters, 50 meters, etc.) can also be set. When the cumulative distance traveled by the swimmer in the deviation direction exceeds this threshold, it is confirmed that the swimmer has deviated from the target direction. It should be noted that the preset deviation degree is a necessary condition for determining whether the swimmer has deviated from the target direction, while the preset deviation duration and preset deviation distance can be selected and applied according to the specific situation.

[0062] S310: Generate direction deviation prompt information, and trigger a device warning message based on the direction deviation prompt information, wherein the device warning message includes at least one of a voice prompt message and a visual prompt message.

[0063] Alternatively, if Figure 4 In S418 of the detailed flowchart shown, when it is determined that the swimmer has deviated from the target direction, a direction deviation prompt message will be generated. This information usually includes the direction of deviation (such as left or right), the degree of deviation (whether to display the specific angle can be selected according to actual needs), and other contents. Then, based on the generated direction deviation prompt information, the direction monitoring device will trigger a corresponding device warning message to remind the swimmer to correct the direction in time. Among them, the warning message can be a voice prompt message or a visual prompt message. In the swimming scenario, since visual prompts (such as screen displays) are inconvenient to use underwater, voice prompts are mainly relied on. For example, the voice prompt message can be: You are currently deviating from the original course, please adjust to the right / left to get back on track.

[0064] S312: When it is detected that the actual direction meets the preset return condition with the target direction, the warning message of the prompt device is cancelled.

[0065] Optionally, when the swimmer adjusts the direction of travel according to the device warning message issued by the direction monitoring device and returns to the original target direction (that is, the deviation between the actual direction and the target direction is less than or equal to the preset return degree), it will be monitored that the swimmer's actual direction meets the preset return condition between the target direction, and the warning message will be cancelled at this time.

[0066] In an embodiment of the present application, a direction monitoring method is provided. First, the direction to be confirmed faced by the user is continuously detected, and the direction that reaches a preset time and is confirmed by the user is used as the target direction, which provides an accurate reference benchmark for the subsequent direction monitoring process; then the user's angular velocity change data and acceleration change data are measured by two sensors, a gyroscope and an accelerometer, respectively, to clarify the user's direction change and speed change, so that the actual direction of the user moving forward can be finally determined according to the acceleration component of the user in the changed direction; finally, the actual direction is compared with the target direction, and when the user deviates from the target direction by a preset deviation degree, a preset deviation time and / or a preset deviation distance, the deviation state is confirmed. By presetting these deviation conditions, short-term direction fluctuations can be eliminated and the stability of direction monitoring can be improved; finally, a direction deviation prompt message is generated and a corresponding device warning message is triggered accordingly. The method shown in the embodiment of the present application realizes real-time monitoring of the user's forward direction, and reminds the user when he deviates from the target direction, so that the user can promptly clarify the direction of the safe area and reduce the risk of danger due to disorientation.

[0067] See also Figure 5 , Figure 5 A flow chart of a direction monitoring method provided in an embodiment of the present application.

[0068] like Figure 5 As shown, the direction monitoring method may at least include:

[0069] S502: In response to a direction monitoring request triggered by a user, determine a target direction set by the user.

[0070] Optionally, for ease of understanding, the following description of the method shown in the embodiment of the present application is based on an example of a swimmer performing direction monitoring through headphones. When the swimmer triggers a direction monitoring request, the swimmer is first instructed to set a target direction that he wants to move in, which is used as a reference direction in the subsequent direction monitoring process. Specifically, regarding step S502, please refer to the detailed description in step S202, which will not be repeated here.

[0071] S504: Measure the direction change data and speed change data of the user, and determine the initial direction of the user when moving forward according to the direction change data and the speed change data.

[0072] Optionally, after determining the target direction, it is necessary to measure the actual direction of the swimmer's forward movement, which can be achieved by measuring the swimmer's direction change data and speed change data respectively through various sensors integrated inside the earphones. One thing to note is that during the long-term operation of these sensors, due to factors such as internal noise and integral drift, the measured results will gradually deviate from the true value, and errors will accumulate, thereby affecting the accuracy of direction monitoring. For example, when a gyroscope is used as a measurement tool for direction change data, a heading angle error will be generated due to the problem of integral drift, so we need to correct these data. Specifically, the direction of the swimmer obtained according to the direction change data and the speed change data is data with a heading angle error. First, this direction is used as the initial direction when the swimmer moves forward. After correcting this initial direction, the actual direction of the swimmer can be obtained.

[0073] S506: Measure the earth's magnetic field data using a magnetometer, and correct the error of the initial direction according to the earth's magnetic field data to obtain the actual direction of the user when moving forward.

[0074] Alternatively, if Figure 4 In S416 of the detailed flow chart of a direction monitoring method provided by an embodiment of the present application, a magnetometer can be introduced for correction in order to overcome the heading angle error of the data measured by the sensor. A magnetometer is a sensor that can measure the strength and direction of the earth's magnetic field. By measuring the direction of the earth's magnetic field, a relatively stable reference direction can be provided to the user. This reference direction does not depend on the user's motion state or position change, and is therefore an important benchmark for correcting errors of other sensors. Specifically, taking the measurement of angular velocity change data by a gyroscope as an example, the absolute direction reference provided by the magnetometer can be compared with the initial direction measured above. When a difference is found between the two, the heading angle error caused by the gyroscope integral drift is corrected, thereby eliminating or reducing the error caused by the integral drift and obtaining the actual direction of the swimmer.

[0075] S508: Compare the actual direction with the target direction, and if the actual direction satisfies a preset deviation condition from the target direction, determine that the user has deviated from the target direction.

[0076] Optionally, regarding step S508, please refer to the detailed description in step S206, which will not be repeated here.

[0077] S510: Record the user's initial position corresponding to the direction monitoring request, and in response to a return request triggered by the user, determine the direction of the user's initial position relative to the user's current position as a target direction.

[0078] Optionally, in actual applications, due to physical exhaustion or environmental changes, swimmers need to be able to return to the starting point in a timely and accurate manner. Therefore, the method shown in the embodiment of the present application not only helps swimmers maintain the correct direction of travel during the forward process, but also provides a return function.

[0079] Specifically, when a swimmer triggers a direction monitoring request, the swimmer's initial position information is first automatically recorded through GPS or other positioning technologies, which may include information such as longitude, latitude, and altitude. This is the basis of the return function and ensures the accuracy of the subsequent calculation of the swimmer's return direction. When the swimmer decides to end the current trip and wants to return to the starting point, the return request can be triggered. At this time, the method shown in the embodiment of the present application calculates the path direction from the current position to the initial position based on the previously recorded user initial position information and the current user's position information, and determines this direction as the target direction, thereby guiding the swimmer to return to the starting point smoothly. During the return process, navigation guidance will also be provided to the swimmer. Once it is found that the swimmer has deviated from the preset return direction, a deviation prompt will be triggered immediately to remind the swimmer to adjust the direction of travel to ensure the accuracy of the return path.

[0080] In an embodiment of the present application, a direction monitoring method is provided. By measuring the direction and strength of the earth's magnetic field through a magnetometer, an absolute direction reference can be provided, thereby correcting the data error measured by the sensor and obtaining the swimmer's accurate actual direction, which can improve the accuracy of direction monitoring; at the same time, by providing a return function, the swimmer's initial position information is recorded at the beginning of the direction monitoring, and when the swimmer triggers a return request, the return direction is determined based on the initial position, so that the swimmer can promptly and accurately determine the direction of the starting position, and return to the starting position accurately through direction monitoring again during the return process, thereby reducing the risk of getting lost.

[0081] See also Figure 6 , Figure 6 A structural block diagram of a direction monitoring device provided in an embodiment of the present application.

[0082] like Figure 6 As shown, the direction monitoring device 600 includes:

[0083] A target direction determination module 610 is used to determine a target direction set by a user in response to a direction monitoring request triggered by the user;

[0084] The actual direction determination module 620 is used to measure the direction change data and the speed change data of the user, and determine the actual direction of the user when moving forward according to the direction change data and the speed change data;

[0085] The direction comparison module 630 is used to compare the actual direction with the target direction, and if the actual direction meets a preset deviation condition between the actual direction and the target direction, it is determined that the user has deviated from the target direction.

[0086] Optionally, the actual direction determination module 620 is also used to measure the user's angular velocity change data through a gyroscope, and to measure the user's acceleration change data through an accelerometer, the angular velocity change data being used to characterize the user's direction change, and the acceleration change data being used to characterize the user's speed change; the actual direction of the user moving forward is determined based on the angular velocity change data and the acceleration change data.

[0087] Optionally, the actual direction determination module 620 is also used to determine the initial direction of the user when moving forward based on the direction change data and the speed change data; measure the earth's magnetic field data through a magnetometer, and correct the error of the initial direction based on the earth's magnetic field data to obtain the actual direction of the user when moving forward.

[0088] Optionally, the target direction determining module 610 is further configured to determine the direction to be confirmed as the target direction set by the user when it is monitored that the user faces the direction to be confirmed for a preset time and triggers a confirmation request for the direction to be confirmed.

[0089] Optionally, the direction comparison module 630 is further used to determine that the user has deviated from the target direction if the actual direction deviates from the target direction by a preset deviation degree, and the actual direction deviates from the target direction by a preset deviation time and / or a preset deviation distance.

[0090] Optionally, the direction monitoring device 600 also includes: a direction deviation prompt module, which is used to generate direction deviation prompt information after the direction comparison module 630 determines that the user has deviated from the target direction, and trigger a device warning message based on the direction deviation prompt information, wherein the device warning message includes at least one of a voice prompt message and a visual prompt message; when it is monitored that the actual direction meets the preset return condition between the target direction, the prompt device warning message is canceled.

[0091] Optionally, the direction monitoring device 600 also includes: a return module, which is used to record the user's initial position corresponding to the direction monitoring request, and in response to the return request triggered by the user, determine the direction of the user's initial position relative to the user's current position as the target direction.

[0092] In an embodiment of the present application, a direction monitoring device is provided, wherein a target direction determination module is used to determine the target direction set by the user in response to a direction monitoring request triggered by the user; an actual direction determination module is used to measure the direction change data and speed change data of the user, and determine the actual direction of the user when moving forward according to the direction change data and the speed change data; a direction comparison module is used to compare the actual direction with the target direction, and if the actual direction meets the preset deviation condition between the target direction and the target direction, it is determined that the user has deviated from the target direction. In open waters, when the user triggers a direction monitoring request, the target direction set by the user is first determined by the target direction determination module, which can provide a reference direction for the subsequent direction monitoring process; then the actual direction determination module measures the direction change data and the speed change data that can reflect the user's direction and speed respectively, and the user's real-time direction can be determined by the direction change data, and the user's speed in this real-time direction can be determined in combination with the speed change data, thereby determining the user's actual direction; after obtaining the user's actual direction, the direction comparison module compares the actual direction with the target direction, and determines whether the user has deviated from the target direction according to the comparison result. Through the above modules, the embodiment of the present application can monitor whether the user deviates from the target direction, so that the user can clearly know the direction of the safe area in the water area and reduce the risk of danger due to disorientation.

[0093] An embodiment of the present application further provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of any method in the above embodiments.

[0094] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a direction monitoring device provided in an embodiment of the present application. Figure 7 As shown, the direction monitoring device 700 may include: at least one processor 701 , at least one network interface 704 , a user interface 703 , a memory 705 , and at least one communication bus 702 .

[0095] The communication bus 702 is used to realize the connection and communication between these components.

[0096] The user interface 703 may include a display screen (Display) and a camera (Camera), and the optional user interface 703 may also include a standard wired interface and a wireless interface.

[0097] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0098] Among them, the processor 701 may include one or more processing cores. The processor 701 uses various interfaces and lines to connect the various parts of the entire direction monitoring device 700, and executes various functions and processes data of the direction monitoring device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 701, and it can be implemented separately through a chip.

[0099] Among them, the memory 705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 705 may also be optionally at least one storage device located away from the aforementioned processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a direction monitoring program.

[0100] exist Figure 7In the direction monitoring device 700 shown, the user interface 703 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 701 can be used to call the direction monitoring program stored in the memory 705 and specifically perform the following operations:

[0101] In response to a direction monitoring request triggered by a user, determining a target direction set by the user;

[0102] Measuring the direction change data and the speed change data of the user, and determining the actual direction of the user when moving forward according to the direction change data and the speed change data;

[0103] The actual direction is compared with the target direction, and if the actual direction satisfies a preset deviation condition from the target direction, it is determined that the user has deviated from the target direction.

[0104] In some embodiments, when the processor 701 measures the user's direction change data and speed change data and determines the actual direction of the user when moving forward based on the direction change data and the speed change data, it specifically performs the following steps: measuring the user's angular velocity change data through a gyroscope, and measuring the user's acceleration change data through an accelerometer, the angular velocity change data being used to characterize the user's direction change, and the acceleration change data being used to characterize the user's speed change; determining the user's actual direction when moving forward based on the angular velocity change data and the acceleration change data.

[0105] In some embodiments, when the processor 701 determines the actual direction of the user when moving forward based on the direction change data and the speed change data, it specifically performs the following steps: determining the initial direction of the user when moving forward based on the direction change data and the speed change data; measuring the earth's magnetic field data through a magnetometer, and correcting the error of the initial direction based on the earth's magnetic field data to obtain the actual direction of the user when moving forward.

[0106] In some embodiments, when the processor 701 determines the target direction set by the user, it specifically performs the following steps: when it is monitored that the user faces the direction to be confirmed for a preset time and triggers a confirmation request for the direction to be confirmed, the direction to be confirmed is determined as the target direction set by the user.

[0107] In some embodiments, when the processor 701 determines that the user has deviated from the target direction if the actual direction satisfies a preset deviation condition from the target direction, it specifically performs the following steps: if the actual direction deviates from the target direction by a preset deviation degree, and the actual direction deviates from the target direction by a preset deviation time and / or a preset deviation distance, it is determined that the user has deviated from the target direction.

[0108] In some embodiments, the processor 701 also specifically performs the following steps: generating direction deviation prompt information, triggering a device warning message based on the direction deviation prompt information, the device warning message including at least one of a voice prompt message and a visual prompt message; when it is monitored that the actual direction meets the preset return condition with the target direction, canceling the prompt device warning message.

[0109] In some embodiments, the processor 701 further specifically performs the following steps: recording the user's initial position corresponding to the direction monitoring request, and in response to a return request triggered by the user, determining the direction of the user's initial position relative to the user's current position as the target direction.

[0110] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0111] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0112] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of this specification is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state drives (SSD)), etc.

[0113] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0114] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0115] The above is a description of a direction monitoring method, device, storage medium and terminal provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A direction monitoring method, characterized in that: The method comprises: In response to a direction monitoring request triggered by a user, determining a target direction set by the user; measuring direction change data and speed change data of the user, and determining the actual direction of the user when moving forward according to the direction change data and the speed change data; The actual direction is compared with the target direction, and if the actual direction satisfies a preset deviation condition from the target direction, it is determined that the user has deviated from the target direction.

2. The method according to claim 1, characterized in that: The measuring the direction change data and the speed change data of the user, and determining the actual direction of the user moving forward according to the direction change data and the speed change data, comprises: Measuring the angular velocity change data of the user by a gyroscope, and measuring the acceleration change data of the user by an accelerometer, wherein the angular velocity change data is used to characterize the direction change of the user, and the acceleration change data is used to characterize the speed change of the user; The actual direction of the user moving forward is determined according to the angular velocity change data and the acceleration change data.

3. The method according to claim 1, characterized in that: The determining the actual direction of the user moving forward according to the direction change data and the speed change data comprises: determining an initial direction of the user when moving forward according to the direction change data and the speed change data; The earth's magnetic field data is measured by a magnetometer, and the error of the initial direction is corrected according to the earth's magnetic field data to obtain the actual direction of the user when moving forward.

4. The method according to claim 1, characterized in that: The determining the target direction set by the user includes: When it is monitored that the user faces the direction to be confirmed for a preset time and triggers a confirmation request for the direction to be confirmed, the direction to be confirmed is determined as the target direction set by the user.

5. The method according to claim 1, characterized in that If the actual direction satisfies a preset deviation condition from the target direction, determining that the user has deviated from the target direction includes: If the actual direction deviates from the target direction by a preset deviation degree, and the actual direction deviates from the target direction by a preset deviation duration and / or a preset deviation distance, it is determined that the user has deviated from the target direction.

6. The method according to claim 1, characterized in that After determining that the user has deviated from the target direction, the method further includes: Generate direction deviation prompt information, and trigger a device warning message based on the direction deviation prompt information, wherein the device warning message includes at least one of a voice prompt message and a visual prompt message; When it is monitored that the actual direction meets the preset return condition with the target direction, the device warning message is cancelled.

7. The method according to claim 1, characterized in that The method further comprises: The user's initial position corresponding to the direction monitoring request is recorded, and in response to a return request triggered by the user, the direction of the user's initial position relative to the user's current position is determined as the target direction.

8. A direction monitoring device, characterized in that: The device comprises: A target direction determination module, configured to determine a target direction set by the user in response to a direction monitoring request triggered by the user; an actual direction determination module, used to measure the direction change data and the speed change data of the user, and determine the actual direction of the user when moving forward according to the direction change data and the speed change data; The direction comparison module is used to compare the actual direction with the target direction, and if the actual direction meets a preset deviation condition between the actual direction and the target direction, determine that the user has deviated from the target direction.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 7.

10. A direction monitoring device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.