Fall detection method, device, water heater, storage medium and program product
The water heater detects the user's position and acceleration, combined with the depth information of the TOF module, to determine whether the user has fallen. This solves the problem of low accuracy of wearable devices in the bathroom environment, achieves high-precision fall detection and timely warning, and improves user safety. sex.
Patent Information
- Application Number
- CN202011568952.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-12-25
AI Technical Summary
Existing fall detection methods based on wearable devices have low accuracy in bathroom environments, are difficult for users to wear, and wearable devices do not have sufficient waterproof levels, making it impossible to accurately detect whether users have fallen.
The water heater detects the user's preset point position in real time to determine the user's movement acceleration. When the acceleration exceeds the preset threshold, the user's outline state is obtained. If it is in a horizontal state, it is judged that the user has fallen, and the depth information is obtained through the TOF module for confirmation. , generate fall prompt information and send it to the user terminal, and buzzer alarm.
It achieves high-precision fall detection without the need for users to wear equipment, improves convenience and safety, promptly detects user falls and provides early warning, and improves the personal safety of users in the bathroom.
Smart Images

Figure CN112842326B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of household appliances, and specifically relates to a fall detection method, device, water heater, storage medium and program product. Background Art
[0002] With the continuous improvement of living standards, water heaters have become a common household appliance. The environment in the bathroom is relatively humid, and users are prone to fall. Therefore, it is necessary to perform fall detection on bathing users.
[0003] Most existing methods for detecting user falls rely on wearable devices for fall detection. However, users often do not wear the wearable devices when bathing. At the same time, the use of wearable devices for fall detection often results in low fall detection accuracy due to the insufficient waterproof level of the wearable devices, and cannot accurately detect whether the user has fallen. Summary of the invention
[0004] In order to solve the above-mentioned problems in the prior art, that is, to solve the problem of low accuracy of fall detection based on existing wearable devices, the present application provides a fall detection method, device, water heater, storage medium and program product, which realize automatic user fall detection based on the water heater without the need for the user to wear additional equipment, thereby improving the convenience and accuracy of fall detection.
[0005] In a first aspect, an embodiment of the present application provides a fall detection method, which is applied to a water heater, and the method includes:
[0006] Detect the position of the user's preset point;
[0007] Determining the acceleration of the preset point at each moment according to the position of the preset point;
[0008] If the acceleration at the current moment is greater than a preset acceleration threshold, obtaining the current profile state of the user at the current moment;
[0009] When the current profile state is a lateral state, it is determined that the user falls.
[0010] Optionally, if the acceleration at the current moment is greater than a preset acceleration threshold, obtaining the current profile state of the user at the current moment includes:
[0011] If the acceleration at the current moment is greater than the preset acceleration threshold, the moving distance between the current moment and the previous moment is calculated according to the positions of the preset points at the current moment and the previous moment;
[0012] If the moving distance is greater than a preset distance threshold, the current profile state of the user at the current moment is obtained.
[0013] Optionally, obtaining the current profile state of the user at the current moment includes:
[0014] Based on the TOF module, obtain the depth information of the user at the current moment;
[0015] The current outline state of the user is depicted according to the depth information at the current moment.
[0016] Optionally, when the profile state is a horizontal state, determining that the user has fallen includes:
[0017] When the current outline state is a horizontal state, obtaining a previous outline state of the user at a previous moment;
[0018] When the previous profile state and the current profile state satisfy a preset condition, it is determined that the user has fallen.
[0019] Optionally, after determining that the user falls, the method further includes:
[0020] Generating a fall prompt message for the user;
[0021] Based on the WIFI module, the fall prompt information is sent to a user terminal connected to the water heater.
[0022] Optionally, after determining that the user falls, the method further includes:
[0023] Generate an opening instruction for the buzzer of the water heater, so as to control the buzzer to alarm according to a preset mode through the opening instruction.
[0024] In a second aspect, an embodiment of the present application further provides a fall detection device, the device comprising:
[0025] A user position detection module, used to detect the position of a preset point of the user;
[0026] An acceleration determination module, used to determine the acceleration of the preset point at each moment according to the position of the preset point;
[0027] A user profile acquisition module, configured to acquire a current profile state of the user at the current moment if the acceleration at the current moment is greater than a preset acceleration threshold;
[0028] A fall determination module is used to determine that the user has fallen when the current profile state is a horizontal state.
[0029] Optionally, the user profile acquisition module includes:
[0030] A moving distance calculation unit, configured to calculate the moving distance between the current moment and the previous moment according to the positions of the preset points at the current moment and the previous moment if the acceleration at the current moment is greater than a preset acceleration threshold;
[0031] The profile state acquisition unit is used to acquire the current profile state of the user at the current moment if the moving distance is greater than a preset distance threshold.
[0032] Optionally, the user profile acquisition module is specifically used to:
[0033] If the acceleration at the current moment is greater than the preset acceleration threshold, the depth information of the user at the current moment is obtained based on the TOF module;
[0034] The current outline state of the user is depicted according to the depth information at the current moment.
[0035] Optionally, the fall determination module is specifically configured to:
[0036] When the current outline state is a horizontal state, obtaining a previous outline state of the user at a previous moment;
[0037] When the previous profile state and the current profile state satisfy a preset condition, it is determined that the user has fallen.
[0038] Optionally, the device further comprises:
[0039] A prompt information generating module, used for generating user fall prompt information after determining that the user falls;
[0040] The prompt information sending module is used to send the fall prompt information to the user terminal connected to the water heater based on the WIFI module.
[0041] Optionally, the device further comprises:
[0042] The buzzer control module is used to generate an opening instruction for the buzzer of the water heater after determining that the user has fallen, so as to control the buzzer to alarm in a preset mode through the opening instruction.
[0043] In a third aspect, an embodiment of the present application further provides a water heater, comprising: a memory and at least one processor;
[0044] The memory stores computer-executable instructions;
[0045] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the fall detection method provided in any embodiment corresponding to the second aspect of the present application.
[0046] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a fall detection method as provided in any embodiment of the present application is implemented.
[0047] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements a fall detection method as provided in any embodiment of the present application.
[0048] Those skilled in the art will appreciate that the fall detection method, device, water heater, storage medium and program product provided in the embodiments of the present application determine the real-time acceleration of the user's movement by detecting the position of a preset point of the user in real time, and thus detect the user's contour state when the acceleration is greater than a preset value, and further determine that the user has fallen when the contour state is horizontal, thereby realizing fall detection of the user in the bathroom based on the water heater, without the user having to wear additional wearable devices, and performing fall detection based on the user's real-time position and user contour, with high detection accuracy, so as to promptly detect the user's fall, issue an early warning, and improve the user's personal safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The preferred embodiments of the fall detection method, device, water heater, storage medium and program product of the present application are described below with reference to the accompanying drawings. The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present application. The drawings are:
[0050] Figure 1 A diagram of an application scenario of the fall detection method provided in an embodiment of the present application;
[0051] Figure 2 is a flow chart of a fall detection method provided by an embodiment of the present application;
[0052] Figure 3 is a flow chart of a fall detection method provided by another embodiment of the present application;
[0053] Figure 4 is a flow chart of a fall detection method provided by another embodiment of the present application;
[0054] Figure 5 is a structural schematic diagram of a fall detection device provided by an embodiment of the present application;
[0055] Figure 6 It is a schematic diagram of the structure of a water heater provided in one embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in combination with the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0058] The application scenarios of the embodiments of the present application are explained below:
[0059] Figure 1 An application scenario diagram of the fall detection method provided in the embodiment of the present application, such as Figure 1 As shown, when a user uses a water heater 110 to take a bath in a bathroom 100, there is accumulated water or bath foam on the floor 120 of the bathroom 100, which makes the floor 120 of the bathroom 100 relatively smooth, and the user may slip or fall easily, especially for the elderly or children. After the fall, if they are not discovered and rescued in time, serious accidents may easily occur. Therefore, it is necessary to perform fall detection on the user so as to detect the user's fall in time.
[0060] In the prior art, the wearable device 130 worn by the user, such as a smart bracelet or a watch, is often used to collect the user's status data through the wearable device 130, and to determine whether the user has fallen based on the status data. First, when bathing, the user usually does not wear any wearable device, so the application scope of fall detection based on the wearable device 130 is limited and will bring inconvenience to the user; secondly, due to the problem of the water discharge level of the wearable device 130 itself, it is often impossible to accurately detect the user's fall in the bathroom environment, resulting in low detection accuracy.
[0061] In response to the above problems, the fall detection method provided in the embodiment of the present application can be executed by a water heater. Its main concept is: by real-time detection of the user's position, the acceleration of the user's movement is determined. When the acceleration is greater than a preset value, the user's contour state is obtained. If the contour state is a horizontal state, it is determined that the user has fallen. This realizes real-time detection of user falls without the user wearing any equipment. The detection is highly convenient. At the same time, the fall detection accuracy is high by comprehensively determining whether the user has fallen based on the position and contour state.
[0062] Figure 2is a flow chart of a fall detection method provided by an embodiment of the present application. The fall detection method provided by the embodiment of the present application is applied to a water heater, such as Figure 2 As shown, the fall detection method includes the following steps:
[0063] Step S201, detecting the position of a preset point of the user.
[0064] The preset point may be the center point of the user, the center point of the head, the top of the head, the center point of any shoulder, or other positions, and the position of the preset point is used to represent the position of the user. The position of the preset point may be the three-dimensional coordinates of the preset point, or may refer to the height.
[0065] Specifically, the position of the user's preset point can be detected by a sensor provided on the water heater, such as a laser sensor, an ultrasonic sensor, an infrared sensor, etc.
[0066] Specifically, the position of the user preset point may be detected after detecting that the shower of the water heater is turned on. Alternatively, the position of the user preset point may be detected after the water heater is turned on. It is also possible to determine whether there is a user in the bathroom after detecting that the water heater is turned on, and if so, detect the position of the user's preset point.
[0067] Furthermore, after the user enters the bathroom and the depth information of the bathroom space is detected to be changed, the position of the preset point of the user is detected.
[0068] Furthermore, the number of preset points may be one or more. When there are multiple preset points, the average position of the multiple preset points may be calculated to perform subsequent acceleration calculation based on the average position.
[0069] Step S202: determining the acceleration of the preset point at each moment according to the position of the preset point.
[0070] The acceleration may refer to the composite acceleration corresponding to the moving direction, or may refer to the acceleration component in the direction of gravity.
[0071] Specifically, the displacement change at each moment can be determined according to the position of the user's preset point at each moment, and then the movement acceleration corresponding to the user's preset point at each moment can be determined according to the displacement change at each moment.
[0072] Furthermore, the position of the preset point of the user at each moment may be used to determine the displacement relationship of the user, and then the acceleration of the preset point at each moment may be calculated according to the displacement relationship.
[0073] When there are multiple preset points, such as 2, 3 or other values, the average position of the multiple preset points can be calculated, and then the acceleration of the user's movement at each moment can be determined according to the average position at each moment.
[0074] Step S203: if the acceleration at the current moment is greater than a preset acceleration threshold, the current profile state of the user at the current moment is obtained.
[0075] The preset acceleration threshold can be 5m / s 2 , 7m / s 2 , 9m / s 2 , 15m / s 2 Or other values. The outline state refers to the state of the user's outline, which may include parameters such as the shape and position of the outline.
[0076] Specifically, if at the current moment, it is determined that the corresponding movement acceleration of the user is greater than the preset acceleration threshold, the current contour state of the user at the current moment is detected through sensors set on the water heater, such as laser sensors, ultrasonic sensors, infrared sensors, etc., to judge the state of the user at the current moment based on the contour state at the current moment.
[0077] Furthermore, the sensor for detecting the contour state and the sensor for detecting the position of the preset point may be the same sensor or different sensors, which is not limited in the present application.
[0078] Furthermore, if at the current moment, it is determined that the movement acceleration corresponding to the user is greater than a preset acceleration threshold, detection data of the user is collected, and the current contour state of the user is determined based on the detection data.
[0079] Specifically, based on a preset edge extraction algorithm, the current contour state of the user may be determined according to the detection data.
[0080] Step S204: when the current outline state is a horizontal state, determining that the user has fallen.
[0081] The horizontal state refers to a shape of the current outline state being a certain horizontal shape. When the outline state of the user is the horizontal state, it can be determined that the user has fallen.
[0082] Specifically, whether the current outline state of the user is the horizontal state may be determined according to the length of the current outline state in both the horizontal and vertical directions.
[0083] Furthermore, whether the current outline state of the user is the horizontal state can be determined based on the ratio of the length of the current outline state in the horizontal direction to the length in the vertical direction. Specifically, if the ratio of the length of the current outline state in the horizontal direction to the length in the vertical direction is greater than or equal to a preset ratio, the current outline state is determined to be the horizontal state.
[0084] Exemplarily, when the length of the current contour corresponding to the horizontal direction is twice or more than that in the vertical direction, the current contour state is determined to be the horizontal state.
[0085] Furthermore, after determining that the user has fallen, a user fall warning may be generated to remind other users that a fall has occurred in the bathroom.
[0086] Optionally, after determining that the user falls, the method further includes:
[0087] Generate the user fall prompt information; based on the WIFI module, send the fall prompt information to the user terminal connected to the water heater.
[0088] The fall reminder information may include the fall time, fall user identification and other information.
[0089] Specifically, the fall reminder information can be edited into a short message based on the mobile phone number stored in the water heater, and the short message can be sent to the mobile phone number to notify the owner of the user's fall, so as to provide timely rescue and improve the safety of the user's bathing.
[0090] Furthermore, the user identification can be determined by identifying the user, and after determining that the user has fallen, fall prompt information for the user can be generated according to the user identification of the user.
[0091] The user identification may be a user-defined name, such as "baby", "user A", etc., or a label configured for the user by the water heater by identifying the user's age, gender and other parameters, such as "elderly person", "girl", etc.
[0092] For example, the prompt message may be “Someone fell in the bathroom, please go and check”, or “Grandma fell, please rescue her in time”.
[0093] Specifically, after the fall prompt information is generated, the fall prompt information can be sent to the user terminal bound to the water heater through the WIFI module of the water heater, so that the user can discover the user's fall in time through the user terminal.
[0094] The fall detection method provided in the embodiment of the present application determines the real-time acceleration of the user's movement by detecting the position of the user's preset point in real time, so that when the acceleration is greater than the preset value, the user's contour state at this time is detected, and then when the contour state is a horizontal state, it is determined that the user has fallen. This realizes fall detection of users in the bathroom based on the water heater, without the user having to wear additional wearable devices, and falls detection is performed based on the user's real-time position and user contour, with high detection accuracy, so as to timely detect user falls, issue early warnings, and improve user personal safety.
[0095] Figure 3 is a flow chart of a fall detection method provided by another embodiment of the present application. Figure 2 On the basis of the embodiment shown, step S203 and step S204 are further refined, and steps related to buzzer control are added after step S204. Figure 3 As shown, the fall detection method provided in this embodiment includes the following steps:
[0096] Step S301, detecting the position of the user's preset point.
[0097] Step S302: determining the acceleration of the preset point at each moment according to the position of the preset point.
[0098] Step S303: If the acceleration at the current moment is greater than the preset acceleration threshold, the moving distance between the current moment and the previous moment is calculated according to the positions of the preset points at the current moment and the previous moment.
[0099] The previous moment and the current moment may differ by 2s, 1.5s, 1s, 0.5s or other time intervals. The moving distance may be the linear distance between the positions at the two moments, or may be the displacement component in the height direction, that is, the displacement in the height direction between the positions at the two moments.
[0100] Specifically, if the acceleration of the user's movement at the current moment is relatively large, the position of the user's preset point at the previous moment is obtained, and the user's movement distance is determined according to the positions of the preset points at the previous moment and the current moment.
[0101] Step S304: if the moving distance is greater than a preset distance threshold, the depth information of the user at the current moment is obtained based on the TOF module.
[0102] The preset distance threshold may be 5 cm, 10 cm, 12 cm, 20 cm or other values.
[0103] Specifically, the TOF (Time of flight) module is mainly composed of a transmitter and a receiver. The transmitter is used to transmit modulated infrared light, such as 900nm, 940nm, and 960nm infrared light. The transmitter may include a light-emitting diode. The receiver is used to receive infrared light reflected by the user. The receiver may include a phototransistor to receive the returned infrared light. The user's depth information is then determined based on the signal received by the receiver.
[0104] Specifically, the working principle of the TOF module is: the modulated infrared light pulses emitted by the transmitting device continuously hit the outer surface of the user, and are received by the receiving device after reflection. The time difference between the emitted and returned infrared light is then calculated through the phase change of the received infrared light pulses, and the depth information of each outer surface of the user is calculated in combination with the speed of light.
[0105] Furthermore, if the moving distance is greater than a preset distance threshold, the current contour state of the user corresponding to the current moment and the previous moment is obtained. Specifically, if the moving distance is greater than the preset distance threshold, the depth information of the user collected by the TOF module at the current moment and the previous moment is obtained, and the current contour state and the previous contour state of the user are respectively depicted according to the depth information at the current moment and the previous moment.
[0106] Step S305: Describe the current outline state of the user according to the depth information at the current moment.
[0107] Specifically, based on a preset edge extraction algorithm, the user's contour points or edge points can be determined according to changes in depth information, and then according to the positions of the contour points, the contour points can be connected using preset curves or broken lines to obtain the user's current contour state.
[0108] Step S306: when the current outline state is the horizontal state, obtaining the previous outline state of the user at the previous moment.
[0109] Specifically, when the current contour state corresponding to the user at the current moment is the horizontal state, the contour state of the user at the previous moment before the current moment, that is, the previous contour state mentioned above, is obtained.
[0110] Specifically, when the current contour state is the horizontal state, the depth information of the user at the previous moment collected by the TOF module is obtained, and then based on the depth information of the user at the previous moment, the previous contour state of the user is depicted.
[0111] Specifically, the way of obtaining the previous contour state and the current contour state is substantially the same, and the data based thereon is different. The previous contour state is generated based on the data collected by the sensor at the previous moment, and will not be described in detail here.
[0112] Step S307: When the previous profile state and the current profile state satisfy a preset condition, it is determined that the user has fallen.
[0113] Specifically, the preset condition may be satisfied when the contour states corresponding to two moments, that is, the matching degree of the previous contour state corresponding to the previous moment and the current contour state corresponding to the current moment is less than the preset matching degree. That is, when the contour states corresponding to the two moments differ greatly, it is determined that the user has fallen.
[0114] The preset matching degree may be 30%, 20%, 10% or other values.
[0115] Exemplarily, when the previous contour state at the current moment is a longitudinal state, such as the user is in a standing state, and the current contour state corresponding to the current moment is a transverse state, such as a lying state, it is determined that the user has fallen.
[0116] Step S308, generating an on instruction for the buzzer of the water heater, so as to control the buzzer to sound an alarm in a preset mode through the on instruction.
[0117] Among them, the preset mode may include the beeping mode of the buzzer, including parameters such as beeping duration and beeping type. This application does not limit the beeping mode of the buzzer.
[0118] Specifically, the user fall warning is issued by means of a buzzer, which increases the probability of the warning being received, thereby increasing the possibility of the fallen user being discovered and rescued, and improving the safety of the user's bathing.
[0119] In this embodiment, the user's position and acceleration of movement are detected in real time. When the acceleration value of the user at a certain moment is large, the user's movement distance is determined according to the user's position at that moment and the previous moment. When the movement distance is large, the TOF module detects the user's current depth information and depicts the user's current contour. If the current contour is in a horizontal state, the contour of the previous moment is obtained. If the difference between the user's contours at the two moments is large, it is determined that the user has fallen. Whether the user has fallen is comprehensively judged by the three aspects of movement acceleration, movement distance and contour, thereby improving the accuracy of fall detection. At the same time, the detection can be completed based on the water heater itself, without the user wearing any additional equipment, thereby improving the convenience of fall detection. After determining that the user has fallen, a fall alarm is generated through a buzzer, so that other users can discover the user's fall in time and provide rescue, thereby avoiding serious accidents and improving the safety of bathing.
[0120] Figure 4 is a flow chart of a fall detection method provided by another embodiment of the present application. Figure 4As shown, the main steps of the fall detection method provided in this embodiment are:
[0121] When the user enters the bathroom, the TOF module detects that the depth information of the space corresponding to the bathroom has changed, and then runs the fall detection logic. The main process of the fall detection logic is: detect the position of the user's center point and record its height H; determine its displacement acceleration based on the position of the user's center point; determine whether the acceleration exceeds 8m / s 2 If yes, execute the next step, if not, determine that the user has not fallen; calculate the moving distance of the center point in the height direction within 1.5s; determine whether the moving distance exceeds 20cm, if yes, execute the next step, if not, determine that the user has not fallen; detect the user's posture and determine the user's outline; determine whether the user is in a lying state according to the user's outline, if not, determine that the user has not fallen, if yes, determine that the user has fallen, control the buzzer to alarm, or send a fall prompt information to the relevant APP (Application) on the user terminal through WIFI, the APP pushes the fall prompt information, and sends the fall prompt information through the reserved mobile phone number.
[0122] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0123] Figure 5 is a schematic diagram of the structure of a fall detection device provided by an embodiment of the present application, such as Figure 5 As shown, the fall detection device includes: a user position detection module 510, an acceleration determination module 520, a user profile acquisition module 530 and a fall determination module 540.
[0124] Among them, the user position detection module 510 is used to detect the position of the user's preset point; the acceleration determination module 520 is used to determine the acceleration of the preset point at each moment according to the position of the preset point; the user profile acquisition module 530 is used to obtain the current profile state of the user at the current moment if the acceleration at the current moment is greater than the preset acceleration threshold; the fall determination module 540 is used to determine that the user has fallen when the current profile state is a lateral state.
[0125] Optionally, the user profile acquisition module 530 includes:
[0126] A moving distance calculation unit is used to calculate the moving distance between the current moment and the previous moment based on the positions of the preset points at the current moment and the previous moment if the acceleration at the current moment is greater than a preset acceleration threshold; a contour state acquisition unit is used to acquire the current contour state of the user at the current moment if the moving distance is greater than a preset distance threshold.
[0127] Optionally, the user profile acquisition module 530 is specifically configured to:
[0128] If the acceleration at the current moment is greater than the preset acceleration threshold, the depth information of the user at the current moment is obtained based on the TOF module; and the current contour state of the user is depicted according to the depth information at the current moment.
[0129] Optionally, the fall determination module 540 is specifically configured to:
[0130] When the current contour state is a horizontal state, a previous contour state of the user at a previous moment is acquired; when the previous contour state and the current contour state satisfy a preset condition, it is determined that the user has fallen.
[0131] Optionally, the device further comprises:
[0132] A prompt information generating module is used to generate the user fall prompt information after determining that the user falls; a prompt information sending module is used to send the fall prompt information to the user terminal connected to the water heater based on the WIFI module.
[0133] Optionally, the device further comprises:
[0134] The buzzer control module is used to generate an opening instruction for the buzzer of the water heater after determining that the user has fallen, so as to control the buzzer to alarm in a preset mode through the opening instruction.
[0135] Figure 6 is a schematic diagram of the structure of a water heater provided by an embodiment of the present application. Figure 6 As shown, the water heater includes: a memory 610, a processor 620 and a computer program.
[0136] The computer program is stored in the memory 610 and is configured to be executed by the processor 1020 to implement the present application. Figure 2-Figure 4 A fall detection method provided by any corresponding embodiment.
[0137] The memory 610 and the processor 620 are connected via a bus 630 .
[0138] For related instructions, please refer to Figure 2-Figure 4The relevant descriptions and effects corresponding to the steps are understood, and no further elaboration is given here.
[0139] Specifically, the water heater may also be provided with sensors, such as laser sensors, ultrasonic sensors, infrared sensors, etc., TOF modules, buzzers, WIFI modules, etc.
[0140] The present application also provides a readable storage medium, in which execution instructions are stored. When at least one processor of the fall detection device executes the execution instruction, when the computer execution instruction is executed by the processor, the fall detection method in the above embodiment is implemented.
[0141] The present application also provides a program product, which includes executable instructions stored in a readable storage medium. At least one processor of the water heater or the server can read the executable instructions from the readable storage medium, and at least one processor executes the executable instructions so that the fall detection device implements the fall detection method provided in the above various embodiments.
[0142] 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.
[0143] 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.
[0144] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0145] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application is described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the protection scope of the present application is obviously not limited to these specific implementations. Without departing from the principles of the present application, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
Claims
1. A fall detection method, characterized in that: The method is applied to a water heater, and comprises: Detect the position of the user's preset point; Determining the acceleration of the preset point at each moment according to the position of the preset point; If the acceleration at the current moment is greater than the preset acceleration threshold, the current contour state of the user at the current moment is obtained; the contour state represents the state of the user's outer contour, including the shape and position of the contour; When the current outline state is a horizontal state, determining that the user has fallen; wherein, if the ratio of the length of the current outline state in the horizontal direction to the length in the vertical direction is greater than or equal to a preset ratio, determining that the current outline state is a horizontal state; Determining the acceleration of the preset point at each moment according to the position of the preset point includes: When there are multiple preset points, the acceleration of the average position of the multiple preset points at each moment is determined based on the average position of the multiple preset points.
2. The method according to claim 1, characterized in that If the acceleration at the current moment is greater than the preset acceleration threshold, the current profile state of the user at the current moment is obtained, including: If the acceleration at the current moment is greater than the preset acceleration threshold, the moving distance between the current moment and the previous moment is calculated according to the positions of the preset points at the current moment and the previous moment; If the moving distance is greater than a preset distance threshold, the current profile state of the user at the current moment is obtained.
3. The method according to claim 1, characterized in that Obtaining the current profile status of the user at the current moment includes: Based on the TOF module, obtain the depth information of the user at the current moment; The current outline state of the user is depicted according to the depth information at the current moment.
4. The method according to any one of claims 1 to 3, characterized in that: When the profile state is a horizontal state, determining that the user has fallen includes: When the current outline state is a horizontal state, obtaining a previous outline state of the user at a previous moment; When the previous profile state and the current profile state satisfy a preset condition, it is determined that the user has fallen.
5. The method according to any one of claims 1 to 3, characterized in that: After determining that the user has fallen, the method further includes: Generating a fall prompt message for the user; Based on the WIFI module, the fall prompt information is sent to a user terminal connected to the water heater.
6. The method according to any one of claims 1 to 3, characterized in that: After determining that the user has fallen, the method further includes: Generate an opening instruction for the buzzer of the water heater, so as to control the buzzer to alarm according to a preset mode through the opening instruction.
7. A fall detection device, characterized in that: The device comprises: A user position detection module, used to detect the position of a preset point of the user; An acceleration determination module, used to determine the acceleration of the preset point at each moment according to the position of the preset point; A user profile acquisition module, configured to acquire a current profile state of the user at the current moment if the acceleration at the current moment is greater than a preset acceleration threshold; the profile state represents a state of the user's external profile, including a shape and a position of the profile; A fall determination module, configured to determine that the user has fallen when the current outline state is a horizontal state; wherein if the ratio of the length of the current outline state in the horizontal direction to the length in the vertical direction is greater than or equal to a preset ratio, the current outline state is determined to be a horizontal state; The acceleration determination module is specifically used to determine the acceleration of the average position of the plurality of preset points at each moment based on the average position of the plurality of preset points when there are a plurality of preset points.
8. A water heater, characterized in that: include: memory and at least one processor; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the fall detection 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 computer-executable instructions. When the processor executes the computer-executable instructions, the fall detection method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the fall detection method according to any one of claims 1 to 6 is implemented.
