Method and device for measuring limb length, wearable device, and storage medium
By using sensors to obtain height information in different postures and calculating limb length, the problem of complex and costly measurement of limb length in the prior art is solved, and convenient and fast measurement is achieved.
Patent Information
- Application Number
- CN202110178004.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-09
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-02-09
AI Technical Summary
In the prior art, the measurement of user limb length is complex and costly, making it difficult to obtain quickly and quickly.
The wearable device uses sensors to obtain height information in different preset postures, and calculates the limb length based on the height difference value or triangular relationship.
It realizes quick and convenient measurement of limb length, improving the convenience and accuracy of measurement.
Smart Images

Figure CN114903466B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technologies, and in particular, to a method and device for measuring limb length, a wearable device, and a storage medium. Background Art
[0002] Currently, the limb length of a user needs to be measured using an electronic ruler, and the implementation method is complex and the manufacturing cost is relatively high. Therefore, how to conveniently and quickly obtain the length information of different limbs of a user is an urgent problem to be solved. Summary of the Invention
[0003] Embodiments of this application provide a method and device for measuring limb length, a wearable device, and a storage medium.
[0004] The technical solution of this application is implemented as follows:
[0005] Embodiments of this application provide a method for measuring limb length, which is applied to a wearable device. The wearable device is worn on the limb to be measured. The method includes:
[0006] When the posture of the limb to be measured is a first preset posture, obtain first height information of the wearable device through a first sensor;
[0007] When the posture of the limb to be measured is a second preset posture, obtain second height information of the wearable device through the first sensor;
[0008] Based on the first height information and the second height information, determine the length of the limb to be measured.
[0009] Embodiments of this application also provide a device for measuring limb length. The device is worn on the limb to be measured. The device includes:
[0010] A first acquisition unit, configured to obtain first height information of the device through a first sensor when the posture of the limb to be measured is a first preset posture;
[0011] A second acquisition unit, configured to obtain second height information of the device through the first sensor when the posture of the limb to be measured is a second preset posture;
[0012] A processing unit, configured to determine the length of the limb to be measured based on the first height information and the second height information.
[0013] Embodiments of this application also provide a wearable device. The wearable device is worn on the limb to be measured. The wearable device includes a processor and a memory storing instructions executable by the processor;
[0014] The processor and the memory are connected via a bus;
[0015] When the processor runs the executable instructions stored in the memory, it executes the steps of the above-mentioned method for measuring the limb length.
[0016] An embodiment of the present application further provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the steps included in the above-mentioned method for measuring the limb length are implemented.
[0017] In the method for measuring the limb length provided by the embodiment of the present application, the wearable device can obtain the first height information of the wearable device through the first sensor when the posture of the limb to be measured is the first preset posture; and obtain the second height information of the wearable device through the first sensor when the posture of the limb to be measured is the second preset posture; finally, based on the first height information and the second height information, determine the length of the limb to be measured. In this way, by obtaining the height information of the user's limb to be measured in different postures, the length information of the limb to be measured can be automatically measured, and the limb length of the user can be quickly obtained, improving the convenience of limb measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic flowchart of a method for measuring the limb length provided by an embodiment of the present application Figure 1 ;
[0019] Figure 2 is an exemplary schematic diagram of a preset action provided by an embodiment of the present application Figure 1 ;
[0020] Figure 3 is an exemplary schematic diagram of a preset action provided by an embodiment of the present application Figure 2 ;
[0021] Figure 4 is an exemplary schematic diagram of a preset action provided by an embodiment of the present application Figure 3 ;
[0022] Figure 5 is an exemplary schematic diagram of the principle for calculating the limb to be measured provided by an embodiment of the present application;
[0023] Figure 6 is a schematic flowchart of a method for measuring the limb length provided by an embodiment of the present application Figure 2 ;
[0024] Figure 7 is a schematic diagram of the structural composition of a device for measuring the limb length provided by an embodiment of the present application;
[0025] Figure 8 A schematic diagram of the structural composition of a wearable device provided by an embodiment of the present application. Detailed implementation manners
[0026] In order to understand the features and technical content of the embodiments of the present application in more detail, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are only for reference and explanation, and are not used to limit the embodiments of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned accompanying drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or devices.
[0028] An embodiment of the present application provides a method for measuring limb length, and this method can be applied to a wearable device. Here, the wearable device can be a portable electronic device that can be worn on different limbs of a user. The wearable device can include a smart bracelet, a smart watch, a smart ankle bracelet, etc. The embodiments of the present application do not limit the type of the wearable device.
[0029] The wearable device in the embodiments of the present application can be worn on the limb to be measured to measure the lengths of different limbs. The limb to be measured can be parts such as the wrist, ankle, and elbow of the human body, and the embodiments of the present application do not limit this. Exemplarily, the wearable device can be worn on the user's wrist, and the wearable device can measure the length of the arm or the length of the forearm (i.e., the elbow and the wrist) according to different arm movements. The wearable device can be worn on the user's ankle to measure the length of the user's lower limb.
[0030] Specifically, referring to Figure 1 A schematic flowchart of a method for measuring limb length as shown, as Figure 1 shown, this method for measuring limb length includes step 110 to step 130. Among them,
[0031] Step 110: When the posture of the limb to be measured is the first preset posture, obtain the first height information of the wearable device through the first sensor.
[0032] Step 120: When the posture of the limb to be measured is the second preset posture, obtain the second height information of the wearable device through the first sensor; the second preset posture is different from the first preset posture.
[0033] It is understandable that the wearable device can utilize the first sensor to automatically measure the length of the limb to be measured. Here, the first sensor is a sensor capable of obtaining the height at which the device is located. For example, the first sensor can be a ranging sensor or a barometric pressure sensor, etc. The embodiments of the present application do not limit the type of the first sensor here.
[0034] In the embodiments of the present application, the wearable device can guide the user to complete a preset action, and during the process of the user completing the preset action, obtain the height information of the limb to be measured of the user in different preset postures through the first sensor, and determine the length of the limb to be measured according to the height information in different postures.
[0035] Specifically, when the user needs to measure the limb length, the above-mentioned wearable device can be worn on the limb to be measured that needs to be measured, and the preset measurement software in the wearable device can be turned on. In this way, the wearable device can output a prompt message to the user, and guide the user to complete the preset action through this prompt message.
[0036] Exemplarily, when the wearable device is a smart watch, the prompt message of the preset action that the user needs to complete can be displayed on the display screen of the smart watch to guide the user to complete the preset action. When the wearable device is a smart bracelet, the user can be guided to complete the preset action through voice; or a prompt image can be displayed through a terminal device that is Bluetooth-connected to the wearable device to guide the user to complete the preset action.
[0037] In the embodiments of the present application, the preset action may include a first preset posture and a second preset posture.
[0038] It should be noted that different limbs to be measured correspond to different preset actions, as well as different first preset postures and second preset postures.
[0039] Exemplarily, referring to Figure 2 a schematic diagram of an exemplary preset action shown, when the limb to be measured is an arm, the preset action can be: keep the body upright, straighten and lift the arm wearing the wearable device to be parallel to the shoulder horizontal plane, and then naturally lower the arm to be perpendicular to the shoulder horizontal plane. Correspondingly, the first preset posture can be that the arm is straightened and lifted to be parallel to the shoulder horizontal plane (referring to the solid line shown in Figure 2 ), and the second preset posture is that the arm naturally hangs down to be perpendicular to the shoulder horizontal plane (referring to the dotted line shown in Figure 2 ). Referring to Figure 3Another exemplary schematic diagram of a preset action is shown. When the limb to be measured is the forearm of the arm, the preset action can be: keep the body upright, straighten and lift the arm wearing the wearable device to be parallel to the shoulder horizontal plane, and then naturally bend the forearm upward to be perpendicular to the upper arm. Correspondingly, the first preset posture can be that the arm is straightened and lifted parallel to the shoulder horizontal plane (refer to the dotted line shown in Figure 3 ), and the second preset posture can be that the forearm is bent perpendicular to the upper arm (refer to the solid line shown in Figure 3 ).
[0040] It should be noted that the user can select the limb to be measured from the measurement options provided by the wearable device. In this way, based on the information selected by the user, the wearable device outputs a prompt message for the preset action corresponding to the limb to be measured to guide the user to complete the preset action.
[0041] In the embodiments of the present application, referring to Figure 2 and Figure 3 shown, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture can be in a vertical relationship. In another example, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture can also be in a preset angle relationship. Here, the preset angle can be any angle, such as 30 degrees, 45 degrees, 60 degrees, etc., and the embodiments of the present application do not limit this.
[0042] Exemplarily, referring to another schematic diagram of a preset action shown in Figure 4 , when the limb to be measured is the arm, the preset action can be to keep the body upright, straighten and lift the arm wearing the wearable device to be parallel to the shoulder horizontal plane, and then control the arm to float downward (or upward) by a preset angle in the shoulder horizontal plane. Correspondingly, the first preset posture is that the arm is straightened and lifted parallel to the shoulder, and the second preset posture is that the included angle between the arm and the shoulder horizontal plane is the preset angle. That is, the included angle between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture is the preset angle.
[0043] On this basis, the wearable device can utilize the positional relationship between the first preset posture and the second preset posture, and calculate the length of the limb to be measured based on the first height information and the second height information.
[0044] In a possible implementation manner, the wearable device can control the first sensor to obtain the first height information of the wearable device within a period of time (such as 0.5 seconds or 1 second) after guiding the user to make the first preset posture. And, within a period of time (such as 0.5 seconds or 1 second) after guiding the user to make the second preset posture, control the first sensor to obtain the second height information of the wearable device.
[0045] In another possible implementation, the wearable device can detect the posture of the limb to be measured through an acceleration sensor to control the first sensor to obtain height information. Specifically, when it is determined through the acceleration sensor that the posture of the limb to be measured is the first preset posture, the first sensor is activated to obtain the first height information of the wearable device. When it is determined through the acceleration sensor that the posture of the limb to be measured is the second preset posture, the first sensor is activated to obtain the second height information of the wearable device.
[0046] Step 130: Based on the first height information and the second height information, determine the length of the limb to be measured.
[0047] In the embodiments of the present application, the positional relationship between the limb to be measured corresponding to the first preset posture and the limb to be measured corresponding to the second preset posture includes a vertical relationship or a relationship with a preset included angle. For different positional relationships, different calculation methods are required to calculate the length of the limb to be measured according to the first height information and the second height information.
[0048] In a possible implementation, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture are in a vertical relationship;
[0049] Correspondingly, step 130 for determining the length of the limb to be measured based on the first height information and the second height information can be executed through the following steps:
[0050] Step 1301a: Calculate the first difference between the first height information and the second height information, and determine the first difference as the length of the limb to be measured.
[0051] It can be understood that, as shown in Figure 2 or Figure 3 , when the limb to be measured in the first preset posture and the limb to be measured in the second preset posture are in a vertical relationship, the height difference between the two is the length of the limb to be measured.
[0052] Based on this, in the case where the limb to be measured in the first preset posture and the limb to be measured in the second preset posture are in a vertical relationship, the difference between the first height information and the second height information can be calculated to obtain the first difference. This first difference is the length of the limb to be measured.
[0053] It should be noted that this first difference is the absolute value of the difference between the first height information and the second height information.
[0054] In another possible implementation, the included angle between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture is a first angle, and the first angle is not a right angle; that is to say, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture are not in a vertical relationship, and the included angle between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture is the first angle.
[0055] Correspondingly, step 130 determines the length of the limb to be measured based on the first height information and the second height information, and can be executed through the following steps:
[0056] Step 1301b: Based on the second difference between the first height information and the second height information;
[0057] Step 1302b: Based on the first angle and the second difference, determine the length of the limb to be measured.
[0058] In the embodiment of the present application, when the angle between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture is the first angle, the length of the limb to be measured can be calculated using the trigonometric relationship.
[0059] Exemplarily, as shown in Figure 5 Let AB represent the arm in the first preset posture and AB' represent the arm in the second preset posture. The length of AB is the same as the length of AB'. The included angle α between the arm in the first preset posture and the arm in the second preset posture can be 45 degrees, that is, the size of angle BAB' is 45 degrees.
[0060] In addition, BD is the first height information and BD' is the second height information. After the wearable device obtains the first height information and the second height information, it can calculate the difference between the first height information and the second height information to obtain the length of AC. In this way, the wearable device can obtain the length of the arm (i.e., AB or AB') according to the trigonometric relationship between the length of AC and the angle α as
[0061] To sum up, in the method for measuring the limb length provided by the embodiment of the present application, the wearable device can obtain the first height information of the wearable device through the first sensor when the posture of the limb to be measured is the first preset posture; and obtain the second height information of the wearable device through the first sensor when the posture of the limb to be measured is the second preset posture; finally, determine the length of the limb to be measured based on the first height information and the second height information. In this way, by only obtaining the height information of the limb to be measured in different postures, the length information of the limb to be measured can be automatically measured, the limb length of the user can be quickly obtained, and the convenience of limb measurement is improved.
[0062] In an embodiment of the present application, the wearable device can detect the posture of the limb to be measured through an acceleration sensor.
[0063] Specifically, when the posture of the limb to be measured is the first preset posture, step 110 can obtain the first height information of the wearable device through the first sensor, which can be completed through the following steps:
[0064] Step 1101: Collect the first acceleration information of the wearable device through the acceleration sensor;
[0065] Step 1102: If the first acceleration information satisfies the first preset condition within the first preset time period, determine that the posture of the limb to be measured is the first preset posture, and obtain the first height information of the wearable device through the first sensor.
[0066] In an embodiment of the present application, the above acceleration sensor can be a triaxial acceleration sensor. The triaxial acceleration sensor is used to obtain the acceleration information on three mutually perpendicular axes (i.e., the X-axis, Y-axis, and Z-axis) in its coordinate system.
[0067] Generally, when the wearable device is placed horizontally, the direction axes of its internal coordinate system can be: the horizontal axis in the horizontal plane is the X-axis, the vertical axis in the horizontal plane is the Y-axis, and the axis perpendicular to the horizontal plane is the Y-axis. Exemplarily, when the limb to be measured is stationary in the Figure 2 shown first preset posture (i.e., the arm is straight and lifted parallel to the shoulder horizontal plane), the internal coordinate system of the wearable device worn on the limb to be measured can be as shown in Figure 2 21 in. Specifically, the accelerations on the X-axis and Z-axis of the wearable device are 0, and the acceleration on the Y-axis is the gravitational acceleration g. When the limb to be measured is stationary in the Figure 2 shown second preset posture (i.e., the arm hangs down perpendicular to the shoulder horizontal plane), the internal coordinate system of the wearable device worn on the limb to be measured can be as shown in Figure 2 22 in. Specifically, the acceleration on the X-axis of the wearable device is -g, and the accelerations on the Y-axis and Z-axis are 0.
[0068] It can be seen that when the limb is in different postures, the acceleration of the wearable device worn on the limb in each axial direction is different. That is to say, different preset postures correspond to different preset conditions.
[0069] Based on this, technicians can configure corresponding preset conditions for each preset posture (including the first preset posture and the second preset posture) in advance. When the acceleration information on the three axial directions obtained by the wearable device through the acceleration sensor satisfies the preset conditions, it can be considered that the posture of the limb to be measured is in the preset posture corresponding to the preset conditions.
[0070] Exemplarily, referring toFigure 2 As shown, the first preset condition corresponding to the first preset posture can be set as follows: the acceleration values on the X-axis and Z-axis satisfy [-0.5, 0.5] (i.e., the acceleration values on the X-axis and Z-axis fluctuate around 0), the acceleration value on the Y-axis satisfies [0.99g, 1.01g] (i.e., the acceleration value on the Y-axis fluctuates around +g), and the standard deviation of the combined-axis acceleration is less than 0.1g. The second preset condition corresponding to the first preset posture is set as follows: the acceleration values on the Y-axis and Z-axis satisfy [-0.5, 0.5] (i.e., the acceleration values on the Y-axis and Z-axis fluctuate around 0), the acceleration value on the X-axis satisfies [-1.01g, -0.99g] (i.e., the acceleration value on the X-axis fluctuates around -g), and the standard deviation of the combined-axis acceleration is less than 0.1g.
[0071] In the embodiment of the present application, during the process of the limb to be measured completing the preset action in the above embodiment, the wearable device can collect the first acceleration information of the wearable device through the acceleration sensor. Here, the first acceleration information may include the first acceleration information on the X-axis, the first acceleration information on the Y-axis, and the first acceleration information on the Z-axis in the coordinate system where the wearable device is located.
[0072] When the first acceleration information on the X-axis, the first acceleration information on the Y-axis, and the first acceleration information on the Z-axis of the wearable device satisfy the first preset condition, it can be determined that the current posture of the limb to be measured is the first preset posture.
[0073] In addition, the wearable device can also introduce a first preset time period to judge the limb to be measured, and determine whether the first preset posture is maintained through the first preset time period. Specifically, the wearable device can judge whether the first acceleration information satisfies the first preset condition within the first preset time period, that is, the wearable device judges that the time length for the limb to be measured to maintain the first preset posture is the preset time length, thereby preventing misjudgment.
[0074] In practical applications, after detecting that the first acceleration information of the wearable device satisfies the first preset condition, the first sensor is controlled to collect the first height information, and there is a time difference between judging that the first preset condition is satisfied and collecting the first height information. In this way, when the limb to be measured stays in the first preset posture for only a very short time, the problem of inaccurate first height information collected will occur.
[0075] Based on this, the embodiment of the present application can also introduce a first preset time period. Specifically, after the wearable device judges that the first acceleration information satisfies the first preset condition within the first preset time period, that is, when the limb to be measured maintains the first preset posture unchanged within the first preset time period, the first height information of the wearable device is obtained through the first sensor. In this way, the problem of inaccurate first height information collected can be avoided.
[0076] Here, the first preset time period may be 2 seconds or 3 seconds, which is not limited in this embodiment of the present application.
[0077] Correspondingly, in step 120, when the posture of the limb to be measured is the second preset posture, obtaining the second height information of the wearable device through the first sensor can be performed by the following steps:
[0078] Step 1201: collecting second acceleration information of the wearable device through an acceleration sensor;
[0079] Step 1202: If the second acceleration information satisfies the second preset condition within the second preset time period, the posture of the limb to be measured is determined to be the second preset posture, and second height information of the wearable device is obtained through the first sensor.
[0080] Here, the second acceleration information may also include second acceleration information on the X-axis, second acceleration information on the Y-axis, and second acceleration information on the Z-axis in the coordinate system where the wearable device is located.
[0081] When the second acceleration information on the X-axis, the second acceleration information on the Y-axis, and the second acceleration information on the Z-axis of the wearable device meet the second preset condition, it can be determined that the posture of the limb to be measured is the second preset posture.
[0082] Similarly, embodiments of the present application may also introduce a second preset time period. Specifically, after the wearable device determines that the second acceleration information satisfies a second preset condition within the second preset time period, that is, if the limb to be measured maintains a second preset posture within the second preset time period, the wearable device obtains the second height information of the wearable device through the first sensor. This avoids the problem of inaccurate second height information being collected.
[0083] In one embodiment of the present application, the first sensor is an air pressure sensor. That is, the embodiment of the present application can use the air pressure sensor to determine the height information of the wearable device.
[0084] Specifically, step 110 and step 1102 of obtaining the first height information of the wearable device by using the first sensor can be implemented in the following manner:
[0085] Step 1102a: When the posture of the limb to be measured is a first preset posture, obtain a first air pressure value collected by the air pressure sensor;
[0086] Step 1102b: Based on the correspondence between air pressure and altitude, obtain first altitude information corresponding to the first air pressure value.
[0087] That is to say, when the wearable device determines that the posture of the limb to be measured is the first preset posture, it can obtain the first air pressure value around the current wearable device through the air pressure sensor. Further, the wearable device can, based on the first air pressure value, look up the height corresponding to the first air pressure value from the corresponding relationship between air pressure and height to obtain the first height information.
[0088] Correspondingly, step 120, and obtaining the second height information of the wearable device through the first sensor in step 1202 includes:
[0089] Step 1202a: When the posture of the limb to be measured is the second preset posture, obtain the second air pressure value collected by the air pressure sensor;
[0090] Step 1202b: Based on the corresponding relationship between air pressure and height, obtain the second height information corresponding to the second air pressure value.
[0091] It can be understood that when the wearable device determines that the posture of the limb to be measured is the second preset posture, it can obtain the second air pressure value around the current wearable device through the air pressure sensor. Further, the wearable device can, based on the second air pressure value, look up the height corresponding to the second air pressure value from the corresponding relationship between air pressure and height to obtain the second height information.
[0092] It can be seen that the method for measuring the limb length provided by the embodiments of the present application can obtain accurate height information of the wearable device through the air pressure sensor, thereby improving the measurement accuracy of the limb length to be measured.
[0093] In an embodiment of the present application, before step 110 obtains the first height information of the wearable device through the first sensor when the posture of the limb to be measured is the first preset posture, the following steps may further be executed:
[0094] Determine whether the wearable device is in a worn state through a second sensor; the second sensor includes an infrared sensor and / or a capacitance sensor;
[0095] If the wearable device is in a worn state, then when the posture of the limb to be measured is the first preset posture, obtain the first height information of the wearable device through the first sensor.
[0096] It can be understood that the wearable device can use the second sensor to determine whether the wearable device is currently in a worn state. If the wearable device is currently in a worn state, then perform the measurement of the limb length to be measured.
[0097] In the embodiments of the present application, the second sensor may be an infrared sensor, a capacitance sensor, or a combination of an infrared sensor and a capacitance sensor. The embodiments of the present application do not limit this.
[0098] In a possible implementation, when the second sensor is an infrared sensor, the wearable device can control the infrared sensor to emit infrared rays according to a time period and receive the light reflected by the infrared rays. By calculating the time length of emitting and receiving the reflected light, it is determined whether the wearable device is in a worn state.
[0099] In another possible implementation, when the second sensor is a capacitance sensor, the wearable device can detect the capacitance value of the capacitance sensor according to a time period and determine whether the wearable device is in a worn state according to the magnitude of the capacitance value.
[0100] The method for measuring the limb length provided by the embodiments of the present application can, before measurement, determine whether the wearable device is in a worn state through a sensor, and perform limb measurement when in the worn state. In this way, the flexibility of measurement is improved, and the energy consumption of the wearable device can also be saved.
[0101] The following describes in detail the method for measuring the limb length provided by the embodiments of the present application in combination with specific application scenarios.
[0102] In the embodiments of the present application, the length of the user's arm can be measured through a wearable device. Specifically, referring to Figure 6 the flowchart shown, the method for measuring the arm length provided by the embodiments of the present application includes the following steps:
[0103] Step 1: The wearable device detects whether it is in a worn state.
[0104] Specifically, the wearable device uses an infrared sensor and / or a capacitance sensor to determine whether the wearable device is currently in a worn state; if in the worn state, step 2 is executed. If not in the worn state, the worn state is continuously detected.
[0105] Step 2: The wearable device determines whether the arm remains in a first preset posture within 2 seconds.
[0106] In the embodiments of the present application, the wearable device can guide the user to complete the preset actions corresponding to measuring the arm length. Among them, the preset actions can be to keep the body upright, straighten and lift the arm wearing the wearable device to be parallel to the shoulder horizontal plane and keep still for 2 seconds, and then naturally drop the arm to be perpendicular to the shoulder horizontal plane and keep still for 2 seconds.
[0107] Here, the wearable device can output the prompt information of the above preset actions to guide the user to complete the above preset actions.
[0108] In an embodiment of the present application, during the process of the wearable device guiding the user to complete a preset action, the first acceleration information of the wearable device can be obtained through a triaxial acceleration sensor. When an acceleration information meets the first preset condition, it is considered that the posture of the limb to be measured is the first preset posture. The first preset condition is that the acceleration values on the X-axis and Z-axis satisfy [-0.5, 0.5] (that is, the acceleration values on the X-axis and Z-axis fluctuate near 0), the acceleration value on the Y-axis satisfies [0.99g, 1.01g] (that is, the acceleration value on the Y-axis fluctuates near +g), and the standard deviation of the combined-axis acceleration is less than 0.1g.
[0109] Specifically, when the acceleration of the wearable device on the X-axis and Z-axis fluctuates near 0, the acceleration value on the Y-axis fluctuates near +g, and the standard deviation of the combined-axis acceleration is less than 0.1g, it can be determined that the posture of the current limb to be measured is the first preset posture.
[0110] Further, if the wearable device detects that the posture of the limb to be measured remains the first preset posture for two seconds, then step 3 is executed; otherwise, step 2 is continued.
[0111] Step 3: Obtain the first height information through a barometric sensor.
[0112] In an embodiment of the present application, the wearable device can determine the first height information of the current wearable device based on the barometric value collected by the barometric sensor.
[0113] Step 4: Determine whether the arm remains in the second preset posture within 2 seconds.
[0114] In an embodiment of the present application, after obtaining the first height information, the wearable device continues to guide the user to complete the preset action and continues to obtain the second acceleration information of the acceleration sensor. Determine whether the second acceleration information meets the second preset condition.
[0115] Here, the second preset condition is that the acceleration values on the Y-axis and Z-axis satisfy [-0.5, 0.5] (that is, the acceleration values on the Y-axis and Z-axis fluctuate near 0), the acceleration value on the X-axis satisfies [-1.01g, -0.99g] (that is, the acceleration value on the X-axis fluctuates near -g), and the standard deviation of the combined-axis acceleration is less than 0.1g.
[0116] When the acceleration value of the wearable device on the X-axis fluctuates near -g, the acceleration on the Y-axis and Z-axis fluctuates near 0, and the standard deviation of the combined-axis acceleration is less than 0.1g, it can be determined that the posture of the current limb to be measured is the second preset posture.
[0117] Further, if the posture of the limb to be measured by the wearable device remains in the second preset posture within two seconds, then step 5 is executed; otherwise, step 4 is continuously executed.
[0118] Step 5, obtain the second height information through the barometric pressure sensor.
[0119] In the embodiment of the present application, the wearable device can determine the second height information of the current wearable device based on the barometric pressure value collected by the barometric pressure sensor.
[0120] Step 6, obtain the user's arm length value according to the first height information and the second height information.
[0121] Calculate the difference between the first height information and the second height information, and this difference is the length value of the user's arm.
[0122] It should be noted that the method provided in the embodiment of the present application can also measure the length of the posterior arm (i.e., from the elbow joint to the shoulder). Specifically, after the wearable device calculates the length of the entire arm through the above steps 1 to 6, it can change the arm movement and repeat steps 1 to 6 to obtain the length of the forearm. Subtracting the length of the forearm from the length of the arm can obtain the length of the posterior arm.
[0123] In summary, the method for measuring the limb length provided in the embodiment of the present application can conveniently detect the user's arm length, correct the user information in the system, improve the user experience, and at the same time provide the more accurate and detailed user arm length to other health and motion functions in the device, improving the accuracy of these functions.
[0124] Based on the foregoing embodiments, in an embodiment of the present application, a device for measuring limb length is further provided, and the device for measuring limb length can be applied to the wearable device in the foregoing embodiments. As Figure 7 shown, the device for measuring limb length proposed in the embodiment of the present application may include:
[0125] The first acquisition unit 701 is configured to obtain the first height information of the device through the first sensor when the posture of the limb to be measured is in the first preset posture;
[0126] The second acquisition unit 702 is configured to obtain the second height information of the device through the first sensor when the posture of the limb to be measured is in the second preset posture;
[0127] The processing unit 703 is configured to determine the length of the limb to be measured based on the first height information and the second height information.
[0128] In some embodiments of the present application, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture are in a vertical relationship;
[0129] The processing unit 703 is specifically configured to calculate a first difference between the first height information and the second height information, and determine the first difference as the length of the limb to be measured.
[0130] In some embodiments of the present application, the angle between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture is a first angle, and the first angle is not a right angle;
[0131] Correspondingly, the processing unit 703 is specifically configured to: based on a second difference between the first height information and the second height information; based on the first angle and the second difference, determine the length of the limb to be measured.
[0132] In some embodiments of the present application, the first acquisition unit 701 is specifically configured to collect first acceleration information of the wearable device through an acceleration sensor; if the first acceleration information satisfies a first preset condition within a first preset time period, determine that the posture of the limb to be measured is the first preset posture, and obtain the first height information of the wearable device through the first sensor.
[0133] In some embodiments of the present application, the second acquisition unit 702 is specifically configured to collect second acceleration information of the wearable device through an acceleration sensor; if the second acceleration information satisfies a second preset condition within a second preset time period, determine that the posture of the limb to be measured is the second preset posture, and obtain the second height information of the wearable device through the first sensor.
[0134] In some embodiments of the present application, the first sensor is a barometric pressure sensor.
[0135] Correspondingly, the first acquisition unit 701 is further configured to, when the posture of the limb to be measured is the first preset posture, obtain a first barometric pressure value collected by the barometric pressure sensor; based on the corresponding relationship between barometric pressure and height, obtain first height information corresponding to the first barometric pressure value.
[0136] The second acquisition unit 702 is further configured to, when the posture of the limb to be measured is the second preset posture, obtain a second barometric pressure value collected by the barometric pressure sensor; based on the corresponding relationship between barometric pressure and height, obtain the second height information corresponding to the second barometric pressure value.
[0137] In some embodiments of the present application, the device for measuring the limb length may further include a wearing state detection unit.
[0138] The wearing state detection unit is specifically configured to determine whether the wearable device is in a wearing state through a second sensor; the second sensor includes an infrared sensor and / or a capacitance sensor;
[0139] The first acquisition unit is further configured to, if the wearable device is in a wearing state, acquire first height information of the wearable device through a first sensor when the posture of the limb to be measured is a first preset posture.
[0140] It should be noted that in this embodiment, each functional unit can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module.
[0141] If the integrated module is implemented in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method of this embodiment. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0142] Based on the foregoing embodiment, in another embodiment of the present application, a wearable device is further provided, as Figure 8 shown, the wearable device proposed in the embodiment of the present application may include a processor 801 and a memory 802 storing executable instructions of the processor 801;
[0143] The processor 801 and the memory 802 are connected through a bus 803;
[0144] When running the computer program stored in the memory 802, the processor 801 may execute the following instructions:
[0145] Acquire first height information of the wearable device through a first sensor when the posture of the limb to be measured is a first preset posture;
[0146] When the posture of the limb to be measured is the second preset posture, the second height information of the wearable device is obtained by the first sensor;
[0147] Based on the first height information and the second height information, the length of the limb to be measured is determined.
[0148] In the embodiments provided in the present application, the above-mentioned processor 801 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), and a controller. It can be understood that for different devices, the electronic devices for implementing the functions of the above-mentioned processor may also be others, and the embodiments of the present application do not make specific limitations.
[0149] In practical applications, the memory 802 may be a volatile memory, such as RAM; or a non-volatile memory, such as ROM, flash memory, a Hard Disk Drive (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories, and provides instructions and data to the processor 801.
[0150] The embodiments of the present application also provide a computer storage medium, specifically a computer-readable storage medium. Computer instructions are stored thereon. When the computer storage medium is located in the device for measuring the length of a limb, when the computer instructions are executed by a processor, any step in the method for measuring the length of a limb in the above embodiments of the present application is implemented.
[0151] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the couplings, direct couplings, or communication connections between the various components shown or discussed can be through some interfaces. The indirect couplings or communication connections of devices or units can be electrical, mechanical, or other forms.
[0152] The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in the embodiments of the present application can be all integrated in a processing unit, or each unit can be separately used as a unit, or at least two units can be integrated in one unit. The above integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
[0154] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments. The foregoing storage medium includes: various media such as removable storage devices, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0155] Alternatively, if the above integrated units of the present application are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as removable storage devices, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0156] It should be noted that: the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.
[0157] As described above, this is only the specific implementation manner of the present application. However, the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claimed rights.
Claims
1. A method for measuring limb length, characterized in that, Applied to a wearable device, the wearable device is worn on a limb to be measured, and the method includes: When the attitude of the limb to be measured detected by the acceleration sensor is the first preset attitude, obtain the first height information of the wearable device through the first sensor; the first sensor is a barometric pressure sensor; When the attitude of the limb to be measured detected by the acceleration sensor is the second preset attitude, obtain the second height information of the wearable device through the first sensor; Based on the first height information and the second height information, determine the length of the limb to be measured; Wherein, there is a vertical relationship between the limb to be measured in the first preset attitude and the limb to be measured in the second preset attitude, then the determining the length of the limb to be measured based on the first height information and the second height information includes: Calculate a first difference between the first height information and the second height information, and determine the first difference as the length of the limb to be measured; Wherein, the included angle between the limb to be measured in the first preset attitude and the limb to be measured in the second preset attitude is a first angle, and the first angle is not a right angle, then the determining the length of the limb to be measured based on the first height information and the second height information includes: Based on a second difference between the first height information and the second height information; Based on the first angle and the second difference, determine the length of the limb to be measured; The obtaining the first height information of the wearable device through the first sensor when the attitude of the limb to be measured detected by the acceleration sensor is the first preset attitude includes: Collect the first acceleration information of the wearable device through the acceleration sensor; wherein, the acceleration sensor is a three-axis acceleration sensor; the first acceleration information includes the first acceleration information on the X-axis, the first acceleration information on the Y-axis, the first acceleration information on the Z-axis and the acceleration standard deviation on the combined axis in the coordinate system where the wearable device is located; If the first acceleration information satisfies the first preset condition within the first preset time period, then determine that the attitude of the limb to be measured is the first preset attitude, and obtain the first height information of the wearable device through the first sensor; wherein, the first preset condition is: the acceleration values on the X-axis and the Z-axis satisfy [-0.5, 0.5], the acceleration value on the Y-axis satisfies [0.99g, 1.01g], and the combined-axis acceleration standard deviation is less than 0.1g, and g is the acceleration due to gravity.
2. The method according to claim 1, characterized in that, The obtaining the second height information of the wearable device through the first sensor when the attitude of the limb to be measured detected by the acceleration sensor is the second preset attitude includes: Collect the second acceleration information of the wearable device through the acceleration sensor; If the second acceleration information satisfies the second preset condition within the second preset time period, then determine that the attitude of the limb to be measured is the second preset attitude, and obtain the second height information of the wearable device through the first sensor.
3. The method according to claim 1, wherein The obtaining of the first height information of the wearable device by the first sensor includes: When the posture of the limb to be measured is the first preset posture, obtaining a first air pressure value collected by the air pressure sensor; Based on the corresponding relationship between air pressure and height, obtaining the first height information corresponding to the first air pressure value; The obtaining of the second height information of the wearable device by the first sensor includes: When the posture of the limb to be measured is the second preset posture, obtaining a second air pressure value collected by the air pressure sensor; Based on the corresponding relationship between the air pressure and height, obtaining the second height information corresponding to the second air pressure value.
4. The method according to claim 1, wherein Before obtaining the first height information of the wearable device by the first sensor when the posture of the limb to be measured is the first preset posture, it further includes: Determining whether the wearable device is in a worn state by a second sensor; the second sensor includes an infrared sensor and / or a capacitance sensor; If the wearable device is in a worn state, when the posture of the limb to be measured is the first preset posture, obtaining the first height information of the wearable device by the first sensor.
5. A device for measuring limb length, characterized in that, The device is worn on the limb to be measured; the device includes: A first obtaining unit, configured to obtain the first height information of the device by the first sensor when it is detected by an acceleration sensor that the posture of the limb to be measured is the first preset posture; the first sensor is an air pressure sensor; A second obtaining unit, configured to obtain the second height information of the device by the first sensor when it is detected by the acceleration sensor that the posture of the limb to be measured is the second preset posture; A processing unit, configured to determine the length of the limb to be measured based on the first height information and the second height information; Wherein, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture are in a vertical relationship, The processing unit is specifically configured to calculate a first difference between the first height information and the second height information, and determine the first difference as the length of the limb to be measured; Wherein, the included angle between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture is a first angle, and the first angle is not a right angle, The processing unit is specifically configured to be based on a second difference between the first height information and the second height information; based on the first angle and the second difference, determine the length of the limb to be measured; The first acquisition unit is configured to collect first acceleration information of the wearable device through the acceleration sensor; wherein, the acceleration sensor is a triaxial acceleration sensor; the first acceleration information includes the first acceleration information on the X-axis, the first acceleration information on the Y-axis, the first acceleration information on the Z-axis, and the acceleration standard deviation on the combined axis in the coordinate system where the wearable device is located; if the first acceleration information satisfies the first preset condition within the first preset time period, it is determined that the posture of the limb to be measured is the first preset posture, and the first height information of the wearable device is acquired through the first sensor; wherein, the first preset condition is that the acceleration values on the X-axis and the Z-axis satisfy [-0.5, 0.5], the acceleration value on the Y-axis satisfies [0.99g, 1.01g], and the combined axis acceleration standard deviation is less than 0.1g, where g is the acceleration due to gravity.
6. A wearable device, characterized in that, The wearable device is worn on the limb to be measured; the wearable device includes a processor and a memory storing instructions executable by the processor; The processor and the memory are connected through a bus; When the processor is configured to run the executable instructions stored in the memory, it executes the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Sensing device for detecting a wearing position
CN102427765A
Calculation device, calculation method, and calculation program
CN107923741A
Wearing state detection method and related equipment
CN110413134A
Electronic equipment and posture detection program
JP2018121803A
Wearable device, and method and program for measuring attitude of same
WO2017094521A1