CN114903466A - Method and device for measuring length of limb, wearable device and storage medium - Google Patents

Method and device for measuring length of limb, wearable device and storage medium Download PDF

Info

Publication number
CN114903466A
CN114903466A CN202110178004.9A CN202110178004A CN114903466A CN 114903466 A CN114903466 A CN 114903466A CN 202110178004 A CN202110178004 A CN 202110178004A CN 114903466 A CN114903466 A CN 114903466A
Authority
CN
China
Prior art keywords
limb
measured
posture
height information
wearable device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110178004.9A
Other languages
Chinese (zh)
Inventor
严汉兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110178004.9A priority Critical patent/CN114903466A/en
Publication of CN114903466A publication Critical patent/CN114903466A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/107Measuring physical dimensions, e.g. size of the entire body or parts thereof
    • A61B5/1072Measuring physical dimensions, e.g. size of the entire body or parts thereof measuring distances on the body, e.g. measuring length, height or thickness
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/107Measuring physical dimensions, e.g. size of the entire body or parts thereof
    • A61B5/1075Measuring physical dimensions, e.g. size of the entire body or parts thereof for measuring dimensions by non-invasive methods, e.g. for determining thickness of tissue layer
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Public Health (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physiology (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • A Measuring Device Byusing Mechanical Method (AREA)

Abstract

The embodiment of the application provides a method for measuring the length of a limb, which is applied to wearable equipment, wherein the wearable equipment is worn on the limb to be measured, and the method comprises the following steps: under the condition that the posture of the limb to be measured is a first preset posture, acquiring first height information of the wearable device through a first sensor; under the condition that the posture of the limb to be measured is a second preset posture, second height information of the wearable equipment is obtained through the first sensor; determining a length of the limb to be measured based on the first height information and the second height information. The embodiment of the application also provides a device for measuring the length of the limb, wearable equipment and a storage medium.

Description

Method and device for measuring length of limb, wearable device and storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for measuring a length of a limb, a wearable device, and a storage medium.
Background
At present, the limb length of a user needs to be measured by an electronic scale, the implementation mode is complex, and the manufacturing cost is high. Therefore, how to conveniently and quickly acquire the length information of different limbs of the user is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method and a device for measuring limb length, wearable equipment and a storage medium.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a method for measuring the length of a limb, which is applied to wearable equipment, wherein the wearable equipment is worn on the limb to be measured, and the method comprises the following steps:
under the condition that the posture of the limb to be measured is a first preset posture, acquiring first height information of the wearable device through a first sensor;
under the condition that the posture of the limb to be measured is a second preset posture, second height information of the wearable equipment is obtained through the first sensor;
determining a length of the limb to be measured based on the first height information and the second height information.
The embodiment of the application also provides a device for measuring the length of the limb, which is worn on the limb to be measured; the device comprises:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring first height information of the device through a first sensor under the condition that the posture of the limb to be measured is a first preset posture;
the second acquisition unit is used for acquiring second height information of the device through the first sensor under the condition that the posture of the limb to be measured is a 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.
The embodiment of the application further provides wearable equipment, and the wearable equipment is worn on the limb to be measured; the wearable device comprises a processor, and a memory storing processor-executable instructions;
the processor and the memory are connected through a bus;
the processor is used for executing the steps of the method for measuring the length of the limb when the executable instructions stored in the memory are executed.
An embodiment of the present application further provides a computer-readable storage medium, on which a program is stored, where the program, when executed by a processor, implements the steps included in the method for measuring the length of a limb.
In the method for measuring the length of the limb provided by the embodiment of the application, the wearable device can acquire first height information of the wearable device through the first sensor under the condition that the posture of the limb to be measured is a first preset posture; under the condition that the posture of the limb to be measured is a second preset posture, second height information of the wearable device is obtained through the first sensor; finally, the length of the limb to be measured is determined based on the first height information and the second height information. Therefore, the length information of the limb to be measured can be automatically measured by acquiring the height information of the limb to be measured of the user in different postures, the limb length of the user can be quickly acquired, and the convenience of limb measurement is improved.
Drawings
Fig. 1 is a first schematic flowchart of a method for measuring a length of a limb according to an embodiment of the present disclosure;
FIG. 2 is a first exemplary preset action provided by an embodiment of the present application;
fig. 3 is a schematic diagram of an exemplary preset action provided in the embodiment of the present application;
fig. 4 is a schematic diagram of an exemplary preset action provided in the embodiment of the present application;
fig. 5 is a schematic diagram illustrating an exemplary calculation of a limb to be measured according to an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating a second method for measuring a length of a limb according to an embodiment of the present disclosure;
FIG. 7 is a schematic structural component view of an apparatus for measuring a length of a limb according to an embodiment of the present application;
fig. 8 is a schematic structural component diagram of a wearable device provided in an embodiment of the present application.
Detailed Description
So that the manner in which the features and elements of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
An embodiment of the present application provides a method for measuring a length of a limb, which may be applied to a wearable device. Here, the wearable device may be a portable electronic device that can be worn on different limbs of the user. Wearable equipment can include intelligent bracelet, intelligent wrist-watch, intelligent foot ring etc. and this application embodiment does not limit wearable equipment's type.
The wearable device in the embodiment of the application can be worn on the limb to be measured so as to measure the lengths of different limbs. The limb to be measured may be a wrist, an ankle, an elbow, or the like of a human body, which is not limited in the embodiments of the present application. For example, the wearable device may be worn on the wrist of the user, and the wearable device may measure the length of the arm or the length of the forearm (i.e., elbow and wrist) according to different arm movements. The wearable device may be worn on the ankle of the user to measure the length of the user's lower limbs.
Specifically, referring to a schematic flow chart of a method for measuring the length of a limb shown in fig. 1, as shown in fig. 1, the method for measuring the length of a limb includes steps 110 to 130. Wherein,
step 110, acquiring first height information of the wearable device through a first sensor under the condition that the posture of the limb to be measured is a first preset posture.
Step 120, acquiring second height information of the wearable device through the first sensor under the condition that the posture of the limb to be measured is a second preset posture; the second predetermined attitude is different from the first predetermined attitude.
It will be appreciated that the wearable device may utilize the first sensor to enable automatic measurement of the length of the limb to be measured. Here, the first sensor is a sensor capable of acquiring a height of the device, for example, the first sensor may be a distance measuring sensor or an air pressure sensor, and the type of the first sensor is not limited in this embodiment of the application.
In the embodiment of the application, the wearable device can guide a user to complete a preset action, and in the process that the user completes the preset action, the height information of the user's limb to be measured in different preset postures is acquired through the first sensor, and the length of the limb to be measured is determined according to the height information in different postures.
Specifically, when the user needs to measure the length of the limb, the wearable device may be worn on the limb to be measured, which needs to be measured, and the measurement software preset in the wearable device is turned on. In this way, the wearable device may output a prompt to the user, through which the user is guided to complete the preset action.
For example, when the wearable device is a smart watch, prompt information of a preset action to be completed by a user can be displayed on a display screen of the smart watch so as to guide the user to complete the preset action. When the wearable device is an intelligent bracelet, the preset actions required to be completed by the user can be guided through voice; or the terminal device connected with the wearable device through Bluetooth displays a prompt image to guide the user to complete the preset action.
In the embodiment of the present application, the preset action may include a first preset gesture and a second preset gesture.
It should be noted that different limbs to be measured correspond to different preset actions, and different first preset postures and second preset postures.
Exemplarily, referring to an exemplary schematic diagram of the preset action shown in fig. 2, when the limb to be measured is an arm, the preset action may be: the body keeps upright, the arm with the wearable device is straightened and lifted to keep parallel to the horizontal plane of the shoulder, and then the arm is naturally hung down to keep vertical to the horizontal plane of the shoulder. Correspondingly, the first predetermined posture may be the arm being straight and raised parallel to the horizontal plane of the shoulder (refer to the solid line shown in fig. 2), and the second predetermined posture may be the arm naturally hanging down perpendicular to the horizontal plane of the shoulder (refer to the dotted line shown in fig. 2). Referring to another exemplary preset action diagram shown in fig. 3, when the limb to be measured is a forearm of an arm, the preset action may be: the body is kept upright, the arm with the wearable device is straightened and lifted to be kept parallel to the horizontal plane of the shoulder, and then the front arm is naturally bent upwards to be vertical to the rear arm. Correspondingly, the first predetermined position may be the arm raised straight and parallel to the horizontal plane of the shoulder (see the dotted line in fig. 3), and the second predetermined position may be the forearm bent and perpendicular to the rear arm (see the solid line in fig. 3).
It should be noted that the user may select the limb to be measured among the measurement options provided by the wearable device. Therefore, the wearable device outputs prompt information of the preset action corresponding to the limb to be measured based on the information selected by the user so as to guide the user to complete the preset action.
In the embodiment of the present application, referring to fig. 2 and fig. 3, a vertical relationship may be provided between the limb to be measured in the first preset posture and the limb to be measured in the second preset posture. In another example, the limb to be measured in the first preset posture and the limb to be measured in the second preset posture may also be in a preset angular relationship. Here, the preset angle may be any height, for example, 30 degrees, 45 degrees, 60 degrees, and the like, which is not limited in the embodiment of the present application.
For example, referring to another preset action diagram shown in fig. 4, the limb to be measured is an arm, and the preset action may be that the body is kept upright, the arm with the wearable device worn thereon is lifted straight and kept parallel to the horizontal plane of the shoulder, and then the arm is controlled to float downward (or upward) at a preset angle on the horizontal plane of the shoulder. Correspondingly, the first preset posture is that the arm is straightened and lifted to be parallel to the shoulder, and the second preset posture is that the included angle between the arm and the horizontal plane of the shoulder is a preset angle. Namely, an 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 preset angle.
On the basis, the wearable device can calculate the length of the limb to be measured based on the first height information and the second height information by using the position relation between the first preset posture and the second preset posture.
In one possible implementation, the wearable device may control the first sensor to acquire the first height information of the wearable device within a period of time (e.g., 0.5 seconds or 1 second) after guiding the user to make the first preset gesture. And controlling the first sensor to acquire second height information of the wearable device within a period of time (e.g., 0.5 seconds or 1 second) after guiding the user to make the second preset gesture.
In another possible implementation manner, the wearable device may detect the posture of the limb to be measured through an acceleration sensor to control the first sensor to acquire the height information. Specifically, when the acceleration sensor determines that the posture of the limb to be measured is a first preset posture, the first sensor is started to acquire first height information of the wearable device. And when the acceleration sensor judges that the posture of the limb to be measured is a second preset posture, starting the first sensor to acquire second height information of the wearable device.
And step 130, determining the length of the limb to be measured based on the first height information and the second height information.
In the embodiment of the application, the position 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 of a preset included angle. Different position relations are needed to calculate the length of the limb to be measured according to the first height information and the second height information by using different calculation modes.
In one possible implementation manner, the limb to be measured in the first preset posture is in a vertical relation with the limb to be measured in the second preset posture;
correspondingly, the step 130 of determining the length of the limb to be measured based on the first height information and the second height information may be performed by the following steps:
step 1301a, calculating a first difference value between the first height information and the second height information, and determining the first difference value as the length of the limb to be measured.
It can be understood that, referring to fig. 2 or fig. 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 perpendicular relationship, the height difference between the two is the length of the limb to be measured.
Based on the above, under the condition that the limb to be measured in the first preset posture is in a vertical relation with the limb to be measured in the second preset posture, the difference value between the first height information and the second height information can be calculated to obtain a first difference value. The first difference is the length of the limb to be measured.
It should be noted that the first difference is an absolute value of a difference between the first height information and the second height information.
In another possible implementation manner, an 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 a non-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 in a non-perpendicular relationship, and an 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.
Correspondingly, the step 130 of determining the length of the limb to be measured based on the first height information and the second height information may be performed by the following steps:
step 1301b, a second difference value based on the first height information and the second height information;
step 1302b, determining the length of the limb to be measured based on the first angle and the second difference value.
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 by using a trigonometric relationship.
Illustratively, referring to FIG. 5, the arm in the first preset posture is denoted by AB and the arm in the second preset posture is denoted by AB'. The length of AB is the same as the length of AB'. The angle α between the arm in the first preset posture and the arm in the second preset posture may be 45 degrees, i.e. the size of the angle BAB' is 45 degrees.
In addition, BD is first height information, and BD' is second height information. After obtaining the first height information and the second height information, the wearable device may calculate a difference between the first height information and the second height information, obtaining the length of the AC. Thus, the wearable device can obtain the length of the arm (i.e., AB or AB') as a function of the length of the AC and the triangular relationship between the angles α
Figure BDA0002940605750000071
To sum up, in the method for measuring limb length provided by the embodiment of the application, the wearable device may acquire 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; under the condition that the posture of the limb to be measured is a second preset posture, second height information of the wearable device is obtained through the first sensor; finally, the length of the limb to be measured is determined based on the first height information and the second height information. Therefore, the length information of the limb to be measured can be automatically measured only by acquiring the height information of the limb to be measured in different postures, the limb length of a user can be quickly acquired, and the convenience of limb measurement is improved.
In an embodiment of the present application, the wearable device may detect the posture of the limb to be measured through the acceleration sensor.
Specifically, in the case that the posture of the limb to be measured is the first preset posture, the step 110 of acquiring the first height information of the wearable device through the first sensor may be completed through the following steps:
step 1101, acquiring first acceleration information of the wearable device through an acceleration sensor;
step 1102, if the first acceleration information meets a first preset condition within a first preset time period, determining that the posture of the limb to be measured is a first preset posture, and acquiring first height information of the wearable device through a first sensor.
In the embodiment of the present application, the acceleration sensor may be a three-axis acceleration sensor. The three-axis acceleration sensor is used for acquiring acceleration information on three mutually perpendicular axes (namely an X axis, a Y axis and a Z axis) in a coordinate system where the three-axis acceleration sensor is located.
In general, when the wearable device is horizontally placed, the direction axes of its internal coordinate system may be: the horizontal axis of the horizontal plane is the X axis, the vertical axis on the horizontal plane is the Y axis, and the axis perpendicular to the horizontal plane is the Y axis. For example, when the limb to be measured is still in the first predetermined posture shown in fig. 2 (i.e. the arm is lifted straight and parallel to the horizontal plane of the shoulder), the internal coordinate system of the wearable device worn on the limb to be measured can be as shown in fig. 2 at 21. Specifically, the acceleration of the wearable device on the X axis and the Z axis is 0, and the acceleration on the Y axis is the gravitational acceleration g. When the limb to be measured is at rest in the second predetermined position shown in figure 2 (i.e. the arm is hanging down perpendicular to the horizontal plane of the shoulder), the internal coordinate system of the wearable device worn on the limb to be measured may be as shown at 22 in figure 2. Specifically, the wearable device has an acceleration of-g in the X-axis and 0 in the Y-axis and Z-axis.
It follows that the acceleration of the wearable device worn on the limb in each axis is different for different postures of the limb. That is, different preset postures correspond to different preset conditions.
Based on this, the technician may configure the corresponding preset condition for each preset posture (including the first preset posture and the second preset posture) in advance. When the acceleration information in three axial directions acquired by the wearable device through the acceleration sensor meets a preset condition, the posture of the limb to be measured can be considered to be in a preset posture corresponding to the preset condition.
For example, referring to fig. 2, the first preset condition corresponding to the first preset gesture may be set as: the acceleration values on the X-axis and the Z-axis satisfy [ -0.5, 0.5] (i.e. the acceleration values on the X-axis and the Z-axis fluctuate near 0), the acceleration value on the Y-axis satisfies [0.99g, 1.01g ] (i.e. the acceleration value on the Y-axis fluctuates near + g), and the on-axis acceleration standard deviation is less than 0.1 g. Setting a second preset condition corresponding to the first preset posture as follows: the acceleration values on the Y axis and the Z axis satisfy [ -0.5, 0.5] (namely the acceleration values on the Y axis and the Z axis fluctuate near 0), the acceleration value on the X axis satisfies [ -1.01g, -0.99g ] (namely the acceleration value on the X axis fluctuates near-g), and the resultant axis acceleration standard deviation is less than 0.1 g.
In this embodiment of the application, in the process of completing the preset action of the limb to be measured in the above embodiment, the wearable device may acquire the first acceleration information of the wearable device through the acceleration sensor. Here, the first acceleration information may include first acceleration information on an X axis, first acceleration information on a Y axis, and first acceleration information on a Z axis in a coordinate system in which the wearable device is located.
When the first acceleration information of the wearable device on the X axis, the first acceleration information on the Y axis, and the first acceleration information on the Z axis satisfy a first preset condition, it may be determined that the posture of the current limb to be measured is a first preset posture.
In addition, the wearable device can also introduce a first preset time period to judge the limb to be measured, and whether the first preset posture is kept or not is judged according to the first preset time period. Specifically, the wearable device may determine whether the first acceleration information satisfies a first preset condition within a first preset time period, that is, the wearable device determines that a time length of the limb to be measured maintaining the first preset posture is a preset time length, so as to prevent erroneous determination.
In practical application, the first sensor is controlled to collect the first height information after the first acceleration information of the wearable device is detected to meet the first preset condition, and a time difference is formed between the first acceleration information meeting the first preset condition and the first height information. Therefore, when the limb to be measured stays in the first preset posture for a short time, the problem that the acquired first height information is inaccurate is caused.
Based on this, the embodiment of the present application may also introduce the first preset time period. Specifically, after the wearable device determines that the first acceleration information meets a first preset condition within a first preset time period, namely under the condition that the limb to be measured maintains a first preset posture within the first preset time period, the first height information of the wearable device is acquired through the first sensor. Therefore, the problem that the collected first height information is inaccurate can be avoided.
Here, the first preset time period may be 2 seconds or 3 seconds, which is not limited in the embodiment of the present application.
Correspondingly, in the case that the posture of the limb to be measured is the second preset posture, the step 120 of acquiring the second height information of the wearable device through the first sensor may be performed through the following steps:
step 1201, collecting second acceleration information of the wearable device through an acceleration sensor;
step 1202, if the second acceleration information meets a second preset condition within a second preset time period, determining that the posture of the limb to be measured is a second preset posture, and acquiring second height information of the wearable device through the first sensor.
Here, the second acceleration information may also include second acceleration information on an X axis, second acceleration information on a Y axis, and second acceleration information on a Z axis in a coordinate system in which the wearable device is located.
When the second acceleration information of the wearable device on the X axis, the second acceleration information on the Y axis, and the second acceleration information on the Z axis satisfy a second preset condition, it may be determined that the posture of the current limb to be measured is a second preset posture.
Similarly, the embodiment of the present application may also introduce a second preset time period. Specifically, after the wearable device determines that the second acceleration information meets a second preset condition within a second preset time period, that is, under the condition that the to-be-measured limb maintains a second preset posture within the second preset time period, the wearable device acquires second height information of the wearable device through the first sensor. Therefore, the problem that the collected second height information is inaccurate can be avoided.
In an embodiment of the present application, the first sensor is an air pressure sensor. That is, embodiments of the present application may utilize an air pressure sensor to determine height information of a wearable device.
Specifically, the step 110, and the step 1102 of acquiring the first height information of the wearable device through the first sensor may be implemented as follows:
1102a, acquiring a first air pressure value acquired by an air pressure sensor under the condition that the posture of the limb to be measured is a first preset posture;
step 1102b, acquiring first height information corresponding to the first air pressure value based on the corresponding relation between the air pressure and the height.
That is to say, the wearable device may acquire, by the air pressure sensor, a first air pressure value around the current wearable device when it is determined that the posture of the limb to be measured is the first preset posture. Further, the wearable device may search for a height corresponding to the first air pressure value from a corresponding relationship between the air pressure and the height based on the first air pressure value, to obtain the first height information.
Correspondingly, step 120, and step 1202, acquiring second height information of the wearable device through the first sensor includes:
step 1202a, under the condition that the posture of the limb to be measured is a second preset posture, acquiring a second air pressure value acquired by an air pressure sensor;
step 1202b, second height information corresponding to the second air pressure value is obtained based on the corresponding relation between the air pressure and the height.
It is understood that the wearable device may obtain, through the air pressure sensor, a second air pressure value around the current wearable device in a case where it is determined that the posture of the limb to be measured is the second preset posture. Further, the wearable device may search for the height corresponding to the second air pressure value from the corresponding relationship between the air pressure and the height based on the second air pressure value, to obtain the second height information.
Therefore, the method for measuring the length of the limb provided by the embodiment of the application can acquire the accurate height information of the wearable device through the air pressure sensor, so that the measurement accuracy of the length of the limb to be measured is improved.
In an embodiment of the application, in step 110, when the posture of the limb to be measured is the first preset posture, before the first height information of the wearable device is acquired by the first sensor, the following steps may be further performed:
determining, by a second sensor, whether the wearable device is in a worn state; the second sensor comprises an infrared sensor and/or a capacitance sensor;
if the wearable device is in a wearing state, acquiring first height information of the wearable device through the first sensor under the condition that the posture of the limb to be measured is a first preset posture.
It is understood that the wearable device may utilize the second sensor to determine whether the wearable device is currently in a worn state. And if the wearable equipment is currently in a wearing state, measuring the length of the limb to be measured.
In this embodiment of the application, the second sensor may be an infrared sensor, a capacitive sensor, or a combination of an infrared sensor and a capacitive sensor, which is not limited in this embodiment of the application.
In one possible implementation, when the second sensor is an infrared sensor, the wearable device may control the infrared sensor to emit infrared rays according to a time period and receive light reflected by the infrared rays. Whether the wearable device is in a wearing state is determined by calculating the time lengths of transmitting and receiving the reflected light.
In another possible implementation manner, when the second sensor is a capacitive sensor, the wearable device may detect a capacitance value of the capacitive sensor according to a time period, and determine whether the wearable device is in a wearing state according to a size of the capacitance value.
According to the method for measuring the length of the limb, whether the wearable device is in a wearing state or not can be judged through the sensor before measurement, and the measurement of the limb can be carried out under the wearing state. Thus, the flexibility of measurement is improved, and the energy consumption of the wearable device can be saved.
The method for measuring the length of the limb provided by the embodiment of the application is described in detail below with reference to specific application scenarios.
In an embodiment of the present application, the length of the arm of the user may be measured by a wearable device. Specifically, referring to the schematic flow chart shown in fig. 6, the method for measuring the arm length provided in the embodiment of the present application includes the following steps:
step 1, the wearable device detects whether the wearable device is in a wearing state.
Specifically, the wearable device judges whether the wearable device is currently in a wearing state by using an infrared sensor and/or a capacitance sensor; and if the mobile terminal is in the wearing state, executing the step 2. And if the mobile terminal is not in the wearing state, continuously detecting the wearing state.
And 2, judging whether the arm keeps the first preset posture within 2 seconds in a wearable mode.
In this application embodiment, the wearable device may guide the user to complete a preset action corresponding to the measurement of the arm length. Wherein the preset action can be that the body is kept upright, the arm with the wearable device worn is straightened and lifted to be kept parallel to the horizontal plane of the shoulder and kept still for 2 seconds, and then the arm is naturally hung down to be kept perpendicular to the horizontal plane of the shoulder and kept still for 2 seconds.
Here, the wearable device may output a prompt message of the preset action to guide the user to complete the preset action.
In the embodiment of the application, the wearable device guides the user to complete the preset action, and the first acceleration information of the wearable device can be acquired through the three-axis acceleration sensor. And when the acceleration information meets a first preset condition, the posture of the limb to be measured is considered as a first preset posture. The first preset condition is as follows: the acceleration values on the X-axis and the Z-axis satisfy [ -0.5, 0.5] (i.e. the acceleration values on the X-axis and the Z-axis fluctuate near 0), the acceleration value on the Y-axis satisfies [0.99g, 1.01g ] (i.e. the acceleration value on the Y-axis fluctuates near + g), and the on-axis acceleration standard deviation is less than 0.1 g.
Specifically, when the acceleration of the wearable device on the X axis and the Z axis fluctuates around a value of 0, the acceleration value of the Y axis fluctuates around a value of + g, and the resultant acceleration standard deviation is less than 0.1g, it may be determined that the posture of the limb to be measured currently is the first preset posture.
Further, wearable detection is carried out, if the posture of the limb to be measured is continuously the first preset posture within two seconds, the step 3 is executed; otherwise, continue to step 2.
And 3, acquiring first height information through an air pressure sensor.
In this application embodiment, wearable equipment can determine the first altitude information of current wearable equipment through the atmospheric pressure value that atmospheric pressure sensor gathered.
And 4, judging whether the arm keeps the second preset posture within 2 seconds.
In the embodiment of the application, after the first height information is obtained, 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. And judging whether the second acceleration information meets a second preset condition.
Here, the second preset condition is: the acceleration values on the Y axis and the Z axis satisfy [ -0.5, 0.5] (namely the acceleration values on the Y axis and the Z axis fluctuate near 0), the acceleration value on the X axis satisfies [ -1.01g, -0.99g ] (namely the acceleration value on the X axis fluctuates near-g), and the resultant axis acceleration standard deviation is less than 0.1 g.
When the acceleration value of the wearable device on the X axis fluctuates around a-g value, the accelerations on the Y axis and the Z axis fluctuate around a 0 value, and the on-axis acceleration standard deviation is less than 0.1g, the current posture of the limb to be measured can be determined to be a second preset posture.
Further, wearable detecting that the posture of the limb to be measured is kept as a second preset posture within two seconds, and executing the step 5; otherwise, go on to step 4.
And 5, acquiring second height information through the air pressure sensor.
In this application embodiment, the wearable device can determine the second height information of the current wearable device according to the air pressure value collected by the air pressure sensor.
And 6, obtaining the length value of the arm of the user according to the first height information and the second height information.
And calculating a difference value of the first height information and the second height information, wherein the difference value is the length value of the arm of the user.
It should be noted that the method provided by the embodiments of the present application can also measure the length of the posterior arm (i.e., elbow joint to shoulder). Specifically, the wearable device may calculate the length of the entire arm through steps 1 to 6, change the arm motion, and repeat steps 1 to 6 to obtain the length of the forearm. The length of the forearm is subtracted from the length of the arm to obtain the length of the rear arm.
In summary, the method for measuring the length of the limb provided by the embodiment of the application can conveniently detect the length of the arm of the user, correct the user information in the system, improve the user experience, provide more accurate and detailed arm length of the user for other health and motion functions in the equipment, and improve the accuracy of the functions.
Based on the foregoing embodiments, in an embodiment of the present application, an apparatus for measuring a length of a limb is further provided, and the apparatus for measuring a length of a limb may be applied to the wearable device of the foregoing embodiments. As shown in fig. 7, the device for measuring the length of the limb proposed in the present application may include:
a first obtaining unit 701, configured to obtain, by a first sensor, first height information of the apparatus when the posture of the limb to be measured is a first preset posture;
a second obtaining unit 702, configured to obtain, by the first sensor, second height information of the apparatus when the posture of the limb to be measured is a second preset posture;
a 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.
In some embodiments of the present application, the limb to be measured in the first preset posture is in a perpendicular relationship with the limb to be measured in the second preset posture;
the processing unit 703 is specifically configured to calculate a first difference value between the first height information and the second height information, and determine the first difference value as the length of the limb to be measured.
In some embodiments of the present application, an 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 a non-right angle;
correspondingly, the processing unit 703 is specifically configured to determine a second difference based on the first height information and the second height information; determining the length of the limb to be measured based on the first angle and the second difference.
In some embodiments of the present application, the first obtaining unit 701 is specifically configured to acquire first acceleration information of the wearable device through an acceleration sensor; if the first acceleration information meets a first preset condition within a first preset time period, determining that the posture of the limb to be measured is the first preset posture, and acquiring the first height information of the wearable device through the first sensor.
In some embodiments of the present application, the second obtaining unit 702 is specifically configured to acquire second acceleration information of the wearable device through an acceleration sensor; if the second acceleration information meets a second preset condition within a second preset time period, determining that the posture of the limb to be measured is the second preset posture, and acquiring second height information of the wearable device through the first sensor.
In some embodiments of the present application, the first sensor is an air pressure sensor.
Correspondingly, the first obtaining unit 701 is further configured to obtain a first air pressure value collected by the air pressure sensor when the posture of the limb to be measured is the first preset posture; and acquiring first height information corresponding to the first air pressure value based on the corresponding relation between the air pressure and the height.
The second obtaining unit 702 is further configured to obtain a second air pressure value acquired by the air pressure sensor when the posture of the limb to be measured is the second preset posture; and acquiring second height information corresponding to the second air pressure value based on the corresponding relation between the air pressure and the height.
In some embodiments of the present application, the apparatus for measuring the length of a limb may further include a wearing state detection unit.
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 comprises an infrared sensor and/or a capacitance sensor;
the first obtaining unit is further configured to obtain first height information of the wearable device through a first sensor if the wearable device is in a wearing state and the posture of the limb to be measured is a first preset posture.
It should be noted that each functional unit in this embodiment may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and not sold or used as an independent product, may be stored in a computer readable storage medium, and based on such understanding, a part of the technical solution of the present embodiment that essentially contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, which includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Based on the foregoing embodiments, in another embodiment of the present application, there is provided a wearable device, as shown in fig. 8, the wearable device provided in the embodiments of the present application may include a processor 801 and a memory 802 storing instructions executable by the processor 801;
the processor 801 and the memory 802 are connected by a bus 803;
the processor 801, when executing the computer program stored in the memory 802, may execute the following instructions:
under the condition that the posture of the limb to be measured is a first preset posture, acquiring first height information of the wearable device through a first sensor;
under the condition that the posture of the limb to be measured is a second preset posture, acquiring second height information of the wearable device through the first sensor;
determining the length of the limb to be measured based on the first height information and the second height information.
In the embodiment provided in the present Application, the 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 is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
In practical applications, the memory 802 may be a volatile memory (RAM); or a non-volatile memory (non-volatile memory) such as a ROM, a flash memory (flash memory), a Hard Disk (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.
The embodiment of the application further provides a computer storage medium, which is a computer readable storage medium. The computer storage medium stores thereon computer instructions which, when executed by the processor, implement any of the steps of the above-described method for measuring a length of a limb according to embodiments of the present application when the computer storage medium is located in an apparatus for measuring a length of a limb.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or at least two units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It should be noted that: the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for measuring the length of a limb, applied to a wearable device worn on the limb to be measured, comprising:
acquiring first height information of the wearable device through a first sensor under the condition that the posture of the limb to be measured is a first preset posture;
under the condition that the posture of the limb to be measured is a second preset posture, second height information of the wearable equipment is obtained through the first sensor;
determining the length of the limb to be measured based on the first height information and the second height information.
2. The method according to claim 1, wherein the limb to be measured in the first preset posture is in a perpendicular relationship with the limb to be measured in the second preset posture; the determining the length of the limb to be measured based on the first height information and the second height information comprises:
and calculating a first difference value of the first height information and the second height information, and determining the first difference value as the length of the limb to be measured.
3. The method according to claim 1, characterized in that 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 a non-right angle;
the determining the length of the limb to be measured based on the first height information and the second height information comprises:
a second difference based on the first height information and the second height information;
determining the length of the limb to be measured based on the first angle and the second difference value.
4. The method according to any one of claims 1 to 3, wherein the acquiring, by a first sensor, first height information of the wearable device in a case where the posture of the limb to be measured is a first preset posture comprises:
acquiring first acceleration information of the wearable device through an acceleration sensor;
if the first acceleration information meets a first preset condition within a first preset time period, determining that the posture of the limb to be measured is the first preset posture, and acquiring the first height information of the wearable device through the first sensor.
5. The method according to any one of claims 1 to 3, wherein the acquiring, by the first sensor, second height information of the wearable device in the case that the posture of the limb to be measured is a second preset posture comprises:
acquiring second acceleration information of the wearable device through an acceleration sensor;
if the second acceleration information meets a second preset condition within a second preset time period, determining that the posture of the limb to be measured is the second preset posture, and acquiring second height information of the wearable device through the first sensor.
6. The method of any one of claims 1-3, wherein the first sensor is an air pressure sensor;
the acquiring, by a first sensor, first height information of the wearable device includes:
acquiring a first air pressure value acquired by the air pressure sensor under the condition that the posture of the limb to be measured is the first preset posture;
acquiring first height information corresponding to the first air pressure value based on the corresponding relation between the air pressure and the height;
the first sensor obtains second height information of the wearable device, including:
acquiring a second air pressure value acquired by the air pressure sensor under the condition that the posture of the limb to be measured is the second preset posture;
and acquiring second height information corresponding to the second air pressure value based on the corresponding relation between the air pressure and the height.
7. The method according to any one of claims 1 to 3, wherein before the obtaining the first height information of the wearable device by the first sensor in the case that the posture of the limb to be measured is the first preset posture, the method further comprises:
determining, by a second sensor, whether the wearable device is in a worn state; the second sensor comprises an infrared sensor and/or a capacitance sensor;
if the wearable device is in a wearing state, acquiring first height information of the wearable device through a first sensor under the condition that the posture of the limb to be measured is a first preset posture.
8. A device for measuring the length of a limb, wherein the device is worn on the limb to be measured; the device comprises:
the first acquisition unit is used for acquiring first height information of the device through a first sensor under the condition that the posture of the limb to be measured is a first preset posture;
the second acquisition unit is used for acquiring second height information of the device through the first sensor under the condition that the posture of the limb to be measured is a 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.
9. A wearable device, wherein the wearable device is worn on a limb to be measured; the wearable device comprises a processor, and a memory storing processor-executable instructions;
the processor and the memory are connected through a bus;
the processor, when executing the executable instructions stored in the memory, is configured to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110178004.9A 2021-02-09 2021-02-09 Method and device for measuring length of limb, wearable device and storage medium Pending CN114903466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110178004.9A CN114903466A (en) 2021-02-09 2021-02-09 Method and device for measuring length of limb, wearable device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110178004.9A CN114903466A (en) 2021-02-09 2021-02-09 Method and device for measuring length of limb, wearable device and storage medium

Publications (1)

Publication Number Publication Date
CN114903466A true CN114903466A (en) 2022-08-16

Family

ID=82760757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110178004.9A Pending CN114903466A (en) 2021-02-09 2021-02-09 Method and device for measuring length of limb, wearable device and storage medium

Country Status (1)

Country Link
CN (1) CN114903466A (en)

Similar Documents

Publication Publication Date Title
US10281981B2 (en) AR output method and electronic device for supporting the same
CN106445130B (en) A kind of motion capture gloves and its calibration method for gesture identification
EP3860446B1 (en) Electronic device for obtaining blood pressure value using pulse wave velocity algorithm and method for obtaining blood pressure value
CN105388994B (en) Wearable watch and operation method thereof
JP2008307207A (en) Action measuring instrument
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
US20140142466A1 (en) Physical motion detecting device and control method for physical motion detecting device
CN104679229A (en) Gesture recognition method and apparatus
CN105596006A (en) Stature measuring method and device and electronic equipment with collection device
EP3278174B1 (en) A monitoring system of the position of a head mounted device
CN113906371A (en) Electronic device for providing exercise information according to exercise environment and method for operating the same
CN106667450B (en) Temperature measuring method and device
WO2017032161A1 (en) Physical posture monitoring method and apparatus
WO2018166051A1 (en) Method and device for obtaining attitude data
CN111248919A (en) Gait recognition method, device, equipment and readable storage medium
CN110456923A (en) A kind of posture sensing data processing method and electronic equipment
CN114903466A (en) Method and device for measuring length of limb, wearable device and storage medium
CN204351978U (en) Wearable waist attitude detection and apparatus for correcting
CN108259669B (en) Falling information detection method and related product
CN113074724B (en) Motion time calculation method, device, equipment and computer readable storage medium
KR20190085604A (en) Method, apparatus and computer program for recognition of a user activity
CN113053074A (en) Sitting posture monitoring method
US10386185B2 (en) Information processing method and electronic device
KR102193653B1 (en) Diagonis system for user behavior ad user cognition ability and method thereof
KR20210113871A (en) Method for processing a data used for determining a location and electronic device supporting the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination