CN114145710A - Body data detection method and device and electronic equipment - Google Patents

Body data detection method and device and electronic equipment Download PDF

Info

Publication number
CN114145710A
CN114145710A CN202010936369.9A CN202010936369A CN114145710A CN 114145710 A CN114145710 A CN 114145710A CN 202010936369 A CN202010936369 A CN 202010936369A CN 114145710 A CN114145710 A CN 114145710A
Authority
CN
China
Prior art keywords
angle
value
user
leg
length
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.)
Granted
Application number
CN202010936369.9A
Other languages
Chinese (zh)
Other versions
CN114145710B (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010936369.9A priority Critical patent/CN114145710B/en
Publication of CN114145710A publication Critical patent/CN114145710A/en
Application granted granted Critical
Publication of CN114145710B publication Critical patent/CN114145710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/45For evaluating or diagnosing the musculoskeletal system or teeth
    • A61B5/4533Ligaments
    • 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/1071Measuring physical dimensions, e.g. size of the entire body or parts thereof measuring angles, e.g. using goniometers
    • 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
    • A61B5/681Wristwatch-type devices

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Pathology (AREA)
  • Public Health (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Animal Behavior & Ethology (AREA)
  • Physics & Mathematics (AREA)
  • Biophysics (AREA)
  • Surgery (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physiology (AREA)
  • Rehabilitation Therapy (AREA)
  • Orthopedic Medicine & Surgery (AREA)
  • Rheumatology (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

The embodiment of the application discloses a body data detection method and device and electronic equipment. The method comprises the following steps: responding to a data detection instruction, and acquiring acceleration data of the electronic equipment; calculating to obtain a first angle value based on the acceleration data, wherein the first angle value represents the angle of the arm of the user; calculating to obtain a second angle value based on the first angle value, the first length value, the second length value and the third length value, wherein the second angle value represents the leg lifting angle of the user, the first length value represents the shoulder height of the user, the second length value represents the arm length of the user, and the third length value represents the leg length of the user; and outputting a leg flexibility detection result of the user based on the leg lifting angle. Therefore, by the above method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, so that the leg flexibility detection result of the user is obtained.

Description

Body data detection method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting body data, and an electronic device.
Background
As users have become more concerned about their physical states, users are more expected to use portable electronic devices to detect their physical states. For example, with the popularization of smart watches, more users can wear the smart watches with themselves, and the related smart watches can only realize the detection of heart rate, blood oxygen saturation and walking steps, and with the increasing functional requirements of users, the users can expect that the smart watches can have more physical data detection functions, for example, the flexibility of their legs can be detected. However, the inventor finds in research that the related electronic device does not have a function of detecting the flexibility of the leg.
Disclosure of Invention
In view of the above problems, the present application provides a body data detection method, device and electronic device to improve the above problems.
In a first aspect, the present application provides a body data detection method applied to an electronic device, the method including: responding to a data detection instruction, and acquiring acceleration data of the electronic equipment; calculating a first angle value based on the acceleration data, wherein the first angle value represents the angle of arm lifting of the user; calculating to obtain a second angle value based on the first angle value, the first length value, the second length value and a third length value, wherein the second angle value represents a leg lifting angle of the user, the first length value represents a shoulder height of the user, the second length value represents an arm length of the user, and the third length value represents a leg length of the user; and outputting a leg flexibility detection result of the user based on the leg lifting angle.
In a second aspect, the present application provides a body data detection apparatus, operable on an electronic device, the apparatus comprising: the acceleration data acquisition unit is used for responding to a data detection instruction and acquiring acceleration data of the electronic equipment; the data calculation unit is used for calculating a first angle value based on the acceleration data, and the first angle value represents the angle of arm lifting of the user; the data calculation unit is further configured to calculate a second angle value based on the first angle value, the first length value, the second length value and a third length value, where the second angle value represents a leg lifting angle of the user, the first length value represents a shoulder height of the user, the second length value represents an arm length of the user, and the third length value represents a leg length of the user; and the detection unit is used for outputting a leg flexibility detection result of the user based on the leg lifting angle.
In a third aspect, the present application provides an electronic device comprising an acceleration sensor, a processor, and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the methods described above.
In a fourth aspect, the present application provides a computer readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed by a processor.
According to the body data detection method and device and the electronic equipment, after the acceleration data of the electronic equipment are obtained in response to a data detection instruction, a first angle value representing the angle of arm lifting of a user can be obtained through calculation based on the acceleration data, a second angle value representing the leg lifting angle of the user is obtained through calculation based on the first angle value, a first length value representing the shoulder height of the user, a second length value representing the arm length of the user and a third length value representing the leg length of the user, and then a leg flexibility detection result of the user is output based on the leg lifting angle. Therefore, by the above method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, so that the leg flexibility detection result of the user is obtained.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flow chart of a body data detection method proposed by an embodiment of the present application;
FIG. 2 is a schematic diagram of a control interface in an embodiment of the present application;
FIG. 3 is a schematic diagram of another control interface in an embodiment of the present application;
fig. 4 shows a flow chart of a method for body data detection according to another embodiment of the present application;
FIG. 5 is a diagram illustrating a specified action made by a user in an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a leg raising angle corresponding to a specified action made by a user in an embodiment of the present application;
fig. 7 shows a flow chart of a method for body data detection according to a further embodiment of the present application;
FIG. 8 is a schematic diagram illustrating detection of whether a prompt is associated with another electronic device in an embodiment of the application;
fig. 9 is a schematic diagram illustrating confirmation of the presence of the imaging position in the embodiment of the present application;
fig. 10 is a block diagram illustrating a frame rate control apparatus according to another embodiment of the present application;
fig. 11 is a block diagram illustrating a frame rate control apparatus according to still another embodiment of the present application;
fig. 12 shows a block diagram of an electronic device for executing a body data detection method according to an embodiment of the present application;
fig. 13 is a storage unit for storing or carrying program codes for implementing the body data detection method according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As users have become more concerned about their physical states, users are more expected to use portable electronic devices to detect their physical states. For example, with the popularization of smart watches, more users can wear the smart watches with themselves, and the related smart watches can only realize the detection of heart rate, blood oxygen saturation and walking steps, and with the increasing functional requirements of users, the users can expect that the smart watches can have more physical data detection functions, for example, the flexibility of their legs can be detected. However, the inventor finds in research that the related electronic device does not have a function of detecting the flexibility of the leg.
Therefore, the inventor provides a body data detection method, a body data detection device and an electronic device capable of improving the above problems, wherein after acceleration data of the electronic device is obtained in response to a data detection instruction, a first angle value representing an angle at which an arm of a user is lifted is calculated based on the acceleration data, a second angle value representing a leg-raising angle of the user is calculated based on the first angle value, a first length value representing a shoulder height of the user, a second length value representing an arm length of the user and a third length value representing a leg length of the user, and a leg flexibility detection result of the user is output based on the leg-raising angle. Therefore, by the above method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, so that the leg flexibility detection result of the user is obtained.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a method for detecting body data according to an embodiment of the present application includes:
s110: and responding to a data detection instruction, and acquiring acceleration data of the electronic equipment.
It should be noted that the data detection instruction is an instruction for triggering execution of the body data detection method in the present embodiment. In this embodiment, there are a variety of ways to generate the data detection instruction.
As one way, the data detection instruction may be generated in response to a touch operation by a user. Optionally, a control interface may be configured in the electronic device, a control is configured in the control interface, and when the electronic device detects a touch operation acting on the control, a data detection instruction may be triggered to be generated. For example, as shown in fig. 2, taking the detection of the flexibility of the leg as an example, the interface 10 shown in the figure is marked with the control content corresponding to the current control interface, and when a touch operation acting on the control 11 is detected, the data detection instruction is correspondingly generated. The control 11 may be switched to the style shown in fig. 3 after detecting the touch operation, and in the style shown in fig. 3, if the touch operation acting on the control 11 is detected, a detection end instruction is generated. It should be noted that, if the detection ending instruction is generated during the execution of the body data detection method provided in this embodiment, the electronic device does not execute the following steps that are not yet completed. For example, after execution of S120, if the detection end instruction generation is detected, subsequent S130 and S140 are not executed.
In addition, in the case of displaying the control interface shown in fig. 2, the generation of the data detection instruction may be triggered by touching the physical key, and correspondingly, in the case of displaying the control interface shown in fig. 3, the detection technical instruction may be generated by touching the physical key.
As still another way, in the case that the electronic device is configured with a voice recognition function, the user may also trigger generation of the data detection instruction by means of a voice instruction. For example, a voice assistant may be configured in the electronic device, and the electronic device may invoke the voice assistant to operate when recognizing an instructed call-out instruction, and further trigger generation of a data detection instruction when the voice assistant recognizes a further instruction regarding leg flexibility detection. The instruction regarding the leg flexibility detection may be "flexibility detection" or "i want to detect leg flexibility" or the like. Optionally, after triggering and generating the data detection instruction in a voice recognition manner, the electronic device may display the interface shown in fig. 3.
After the data detection command is generated in the foregoing manner, the acquisition of acceleration data may be started. Optionally, the acceleration data is an acceleration collected by the electronic device and includes a plurality of directions.
As one mode, the electronic device may trigger the acceleration module responsible for acquiring the acceleration data to start when responding to the data detection instruction, and then acquire the acceleration data acquired by the acceleration module.
S120: a first angle value is calculated based on the acceleration data, the first angle value characterizing an angle at which an arm of a user is raised.
It should be noted that, in the embodiment of the present application, the electronic device may be a smart watch for wearing on an arm of a user, and in the embodiment, the leg flexibility may be understood as the highest height that the user can lift the leg. And then in the process of detecting the flexibility of the leg of the user, the user is required to make a leg lifting action, in the process of lifting the leg, the user can firstly lay the arm flat, then the user is prompted to lift the leg to touch the palm, after the foot touches the palm, the leg is further lifted along with the arm, and then the angle of the arm of the user lifted when the highest height of the leg lifted is obtained is used as a first angle value.
S130: and calculating to obtain a second angle value based on the first angle value, the first length value, the second length value and the third length value, wherein the second angle value represents the leg lifting angle of the user, the first length value represents the shoulder height of the user, the second length value represents the arm length of the user, and the third length value represents the leg length of the user.
The lifting angle of the arm and the leg lifting angle are in a certain correlation in the leg lifting process, and then the leg lifting angle of the user can be calculated by combining the lifting angle of the arm, so that the leg flexibility of the user can be further represented according to the leg lifting angle.
S140: and outputting a leg flexibility detection result of the user based on the leg lifting angle.
In the present embodiment, the greater the determined leg raising angle, the better the flexibility of the leg of the user is.
The body data detection method provided by the application responds to a data detection instruction, obtains acceleration data of electronic equipment, and then obtains a first angle value representing an angle of arm lifting of a user based on the acceleration data, and then obtains a second angle value representing a leg lifting angle of the user based on the first angle value, a first length value representing shoulder height of the user, a second length value representing arm length of the user and a third length value representing leg length of the user, and further outputs a leg flexibility detection result of the user based on the leg lifting angle. Therefore, by the above method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, so that the leg flexibility detection result of the user is obtained.
Referring to fig. 4, a method for detecting body data according to an embodiment of the present application includes:
s210: and responding to a data detection instruction, and acquiring acceleration data of the electronic equipment.
It should be noted that, as shown in the foregoing embodiment, in the process of performing data detection, it is necessary that both the arm and the leg of the user make a specified motion (for example, the leg follows the raising motion of the arm), and further, acceleration data of the user in the process of making the specified motion is acquired. In this way, it should be noted that, when the arm is lifted to the maximum, the acceleration of the electronic device in the lifting direction may reach the maximum, and further, when the acceleration in the lifting direction reaches the maximum, the acceleration data collected by the electronic device may be used as the acceleration data for subsequently calculating the first angle.
Illustratively, as shown in fig. 5, as one way, in response to the data detection instruction, the user may be prompted to be in a ready state shown in fig. 5 and then be prompted to be in a ready state shown in fig. 5. Wherein, in the preparation state, the user is prompted to keep one arm horizontal, and the included angle d1 between the arm and the body which are kept horizontal is 90 degrees. The user may then be prompted to start raising the leg from the ready state and, when the leg touches the arm which remains horizontal, continue to raise the leg and the arm will follow the leg up until the highest position the user's leg can be raised to as shown in the kicked state in figure 5. Optionally, the acceleration data includes an acceleration in a first direction, an acceleration in a second direction, and an acceleration in a third direction, where an included angle between any two directions of the first direction, the second direction, and the third direction is 90 degrees. For example, taking a three-axis acceleration sensor as an example, the acceleration data of the electronic device may include accelerations in three directions, i.e., x, y, and z axes, where the x axis is parallel to the arm direction, the y axis is perpendicular to the arm direction, and the z axis is a direction in which the surface of the electronic device (e.g., a smart watch) faces upward. The z-axis direction thereof may then be the aforementioned lifting direction. And then when the acceleration in the z-axis direction is maximum, the acquired acceleration data is used as the acceleration data for subsequently calculating the first angle.
S220: a first angle value is calculated based on the acceleration data, the first angle value characterizing an angle at which an arm of a user is raised.
As one way, the calculating a first angle value based on the acceleration data, the first angle value characterizing an angle at which an arm of a user is raised, includes: acquiring the square sum of the acceleration in the first direction, the acceleration in the second direction and the acceleration in the third direction, and calculating the square root of the square sum; obtaining a ratio of the acceleration in the third direction to the square root; performing inverse cosine calculation on the ratio to obtain a third angle value to be processed; and acquiring the sum of the third to-be-processed angle value and a third reference angle value as a first angle value. The first direction may be the x-axis direction, the second direction may be the y-axis direction, and the third direction is the z-axis direction, and the calculated first angle value may be an angle d2 shown in fig. 5. The calculation of the first angle value is explained below by the following formula:
d2=arccos(z/sqrt(x^2+y^2+z^2))+90°
wherein x is the acceleration in the x-axis direction, y is the acceleration in the y-axis direction, z is the acceleration in the z-axis direction, 90 ° is a third reference angle value, and correspondingly, d2 is the first angle value obtained by calculation.
S230: and calculating to obtain a designated height value based on the first angle value, the first length value and the second length value, wherein the designated height value represents the leg lifting height of the user.
As a mode, the calculating, based on the first angle value, the first length value, and the second length value, to obtain a specified height value, where the specified height value represents a leg raising height of the user, includes: performing sine calculation on the difference value between the first angle value and a first reference angle value to obtain a first angle value to be processed; obtaining a product of a second length value and the first angle value to be processed; and acquiring the sum of the product and the first length value as a designated height value. The calculation of the specified height value is described below by the following formula:
h2=h1+arm*sin(d2-90°)
where h1 indicates the user's shoulder height and arm indicates the user's arm length, 90 of which is a first reference angle value, then h2 is the calculated assigned height value, as shown in fig. 6.
S240: and calculating to obtain a second angle value based on the designated height value and a third length value, wherein the second angle value represents the leg lifting angle of the user, the first length value represents the shoulder height of the user, the second length value represents the arm length of the user, and the third length value represents the leg length of the user.
As a mode, the calculating a second angle value based on the specified height value and a third length value includes: obtaining a difference value between the designated height value and the third length value; obtaining the ratio of the difference value to the third length value; performing arcsine calculation on the ratio to obtain a second angle value to be processed; and acquiring the sum of the second angle value to be processed and a second reference angle value as a second angle value. The calculation of the second angle value is explained below by the following formula:
b=arcsin((h2-leg)/leg)+90°
wherein leg represents the leg length of the user, and 90 degrees is a second reference angle value.
S250: and outputting a leg flexibility detection result of the user based on the leg lifting angle.
It should be noted that the flexibility of the leg portion indicates the highest height that the user can lift the leg, and the better the flexibility of the leg portion of the user is, the higher the height that can be lifted. Then, as an evaluation method, a plurality of angle sections may be divided in advance, and one leg flexibility detection result may be arranged for each angle section. Then in this manner, the outputting the leg flexibility detection result of the user based on the leg raising angle includes: acquiring angle intervals corresponding to the leg lifting angles, wherein each angle interval corresponds to a leg flexibility detection result, and the leg flexibility detection results corresponding to different angle intervals are different; and outputting the leg flexibility detection result corresponding to the corresponding angle interval as the leg flexibility detection result of the user.
For example, if the pre-divided intervals include an angle interval a, an angle interval b, an angle interval c, and an angle interval d, where the minimum value of the angle corresponding to the angle interval a is greater than the maximum value of the angle corresponding to the angle interval b, the minimum value of the angle corresponding to the angle interval b is greater than the maximum value of the angle corresponding to the angle interval c, and the minimum value of the angle corresponding to the angle interval c is greater than the maximum value of the angle corresponding to the angle interval d. Correspondingly, the shank flexibility that the angle interval a corresponds detects the result and is outstanding, and the shank flexibility that the angle interval b corresponds detects the result and is good, and the shank flexibility that the angle interval c corresponds detects the result and is general, and the shank flexibility that the angle interval d corresponds detects the result and is relatively poor.
If the leg raising angle calculated in S240 is in the angle range b, the output leg flexibility detection result is good. If the leg raising angle calculated in S240 is in the angle range a, the output leg flexibility detection result is excellent.
The application provides a body data detection method, respond to the data detection instruction, acquire after electronic equipment's acceleration data, can be based on acceleration data calculates the first angle value that obtains the angle that the characterization user arm lifted, based on first angle value, first length value and second length value, calculates and obtains appointed height value, appointed height value characterization user's leg lifting height, based on appointed height value and third length value calculate and obtain the second angle value. Therefore, by the above mode, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, the leg lifting height of the user is obtained through calculation, the leg lifting angle of the user is obtained through calculation based on the leg lifting height and the leg length of the user, and the leg flexibility detection result of the user is obtained according to the angle interval where the leg lifting angle is located.
Referring to fig. 7, a method for detecting body data according to an embodiment of the present application includes:
s310: and responding to the data detection instruction, and acquiring whether the electronic equipment is in a wearing state currently.
As shown in the foregoing, the data detection method provided in the embodiment of the present application requires acceleration data acquired by an electronic device in a state of being worn on an arm of a user to calculate other data, and if the acceleration data acquired by the electronic device in a state of not being worn on the arm of the user may not be accurately calculated to obtain a leg-raising angle of the user, in order to avoid an invalid calculation process, after a data detection instruction is generated, it may be first detected whether the electronic device is in a worn state. The wearing state can be understood as a state of being worn on the arm of the user. If the electronic equipment is detected to be in the wearing state, the electronic equipment is represented to be worn on the arm of the user, otherwise, if the electronic equipment is detected not to be in the wearing state, the electronic equipment is represented to be not worn on the arm of the user.
As an example, taking the electronic device as a smart watch, a distance sensor may be disposed on a side facing the user when the smart watch is in a wearing state, and if the distance sensor detects that the distance value is 0, it indicates that the smart watch is in a state of being worn by the user.
S320: and if the electronic equipment is in a wearing state, acquiring acceleration data of the electronic equipment.
S330: and if the electronic equipment is not in the wearing state, sending out prompt information for prompting a user to wear the electronic equipment.
S340: calculating a first angle value based on the acceleration data, wherein the first angle value represents the angle of arm lifting of the user;
s350: calculating to obtain a second angle value based on the first angle value, the first length value, the second length value and a third length value, wherein the second angle value represents a leg lifting angle of the user, the first length value represents a shoulder height of the user, the second length value represents an arm length of the user, and the third length value represents a leg length of the user;
s360: and outputting a leg flexibility detection result of the user based on the leg lifting angle.
According to the body data detection method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, and then the leg flexibility detection result of the user is obtained. In addition, in this embodiment, when responding to the data detection instruction, it is detected whether the electronic device is in a wearing state first, and then the electronic device is triggered to acquire acceleration data when the electronic device is detected to be in the wearing state, so that the electronic device performs an invalid calculation process to cause power consumption waste.
It should be noted that, in the implementation process of the body data detection method provided in the embodiment of the present application, the user is required to perform a specified action cooperatively, but for the user who uses the body data detection method for the first time, the user may be less skilled in the required action, or it is not clear which actions need to be performed specifically. As one way, after responding to the data detection instruction, the acceleration data of the electronic device may be obtained, and if it is found through real-time detection of the acceleration data that the user does not make any action, a dynamic prompt message may be displayed on the screen of the electronic device to prompt the user to make the aforementioned specified action. The designated action includes the action shown from the ready state to the kicking state in fig. 5, and the corresponding prompt message includes the continuous action picture of the action shown from the ready state to the kicking state.
Also, in one mode, the body data detection method provided by the present embodiment may be performed by an electronic device that performs the body data detection method in cooperation with another electronic device.
It should be noted that, in the process of executing the body data detection method, the user is required to make a specified action, but for the electronic device worn on the arm of the user, it cannot be well recognized whether the user actually makes the specified action. Then as a way of example, the user's actions may be detected by a further electronic device in order to control the execution phase of the aforementioned body data detection method in dependence of the actions made by the user.
Optionally, the electronic device executing the body data detection method provided by this embodiment may be a smart watch, and the other electronic device may be a smart phone. As a mode, can carry out radio communication through the bluetooth before smart watch and the smart mobile phone, then the smart mobile phone can transmit the image transmission who gathers through its camera for smart watch, perhaps transmits the smart watch to the recognition result of gathering the image.
As one way, after the electronic device responds to the data detection instruction, the user may be prompted whether or not to perform detection in conjunction with another electronic device. As shown in fig. 8, the electronic device may display a prompt message of "whether to associate detection with another electronic device". If the user selects no, the electronic device switches to display the interface shown in fig. 3, and if the user selects yes, the electronic device switches to display the interface shown in fig. 9, and the interface shown in fig. 9 displays "please confirm that the electronic device is located at the shooting position", so that the user can be located in an image acquisition range of a camera of another electronic device. If the user confirms that the acceleration data is within the image acquisition range of the camera of another electronic device, the user can click the control named as yes in fig. 9, so as to trigger the start of acquiring the acceleration data of the electronic device.
In this manner, while the electronic device executes the steps of the body data detection method, another electronic device may also detect the motion performed by the user in real time and detect the motion performed, if it is recognized that the user performed the designated motion, notification information indicating that the user completed the designated motion may be transmitted to the electronic device (e.g., a smart watch), and after the leg flexibility detection result of the user is obtained based on the foregoing manner, the electronic device may output the obtained leg flexibility detection result of the user to the user if the notification information indicating that the user completed the designated motion and transmitted by the other electronic device is also received. However, if the electronic device does not receive the notification information that the user has finished the designated action and is transmitted from another electronic device after obtaining the leg flexibility detection result of the user based on the foregoing manner, the notification information that the user has made a mistake in the action and please finish the designated action again is displayed, which is further beneficial to improving the accuracy of the output leg flexibility detection result.
Referring to fig. 10, a body data detecting apparatus 400 provided in the present application is operated on an electronic device, where the apparatus 400 includes:
an acceleration data acquiring unit 410, configured to acquire acceleration data of the electronic device in response to a data detection instruction.
As one mode, the acceleration data obtaining unit 410 is specifically configured to, in response to a data detection instruction, obtain whether the electronic device is currently in a wearing state; and if the electronic equipment is in a wearing state, acquiring acceleration data of the electronic equipment. Correspondingly, as shown in fig. 11, the apparatus 400 further includes a prompting unit 440, configured to send a prompting message for prompting the user to wear the electronic device if the apparatus is not in the wearing state.
A data calculating unit 420, configured to calculate a first angle value based on the acceleration data, where the first angle value represents an angle at which an arm of a user is raised;
the data calculating unit 420 is further configured to calculate a second angle value based on the first angle value, the first length value, the second length value, and the third length value, where the second angle value represents a leg raising angle of the user, the first length value represents a shoulder height of the user, the second length value represents an arm length of the user, and the third length value represents a leg length of the user;
a detecting unit 430, configured to output a leg flexibility detection result of the user based on the leg raising angle.
As a manner, the data calculating unit 420 is specifically configured to calculate a specified height value based on the first angle value, the first length value, and the second length value, where the specified height value represents a leg raising height of the user; and calculating to obtain a second angle value based on the specified height value and the third length value.
Optionally, the data calculating unit 420 is specifically configured to perform sinusoidal calculation on the difference between the first angle value and the first reference angle value to obtain a first to-be-processed angle value; obtaining a product of a second length value and the first angle value to be processed; and acquiring the sum of the product and the first length value as a designated height value.
Optionally, the data calculating unit 420 is specifically configured to obtain a difference between the specified height value and the third length value; obtaining the ratio of the difference value to the third length value; performing arcsine calculation on the ratio to obtain a second angle value to be processed; and acquiring the sum of the second angle value to be processed and a second reference angle value as a second angle value.
Optionally, the acceleration data includes an acceleration in a first direction, an acceleration in a second direction, and an acceleration in a third direction, where an included angle between any two directions of the first direction, the second direction, and the third direction is 90 degrees, and the data calculation unit 420 is specifically configured to obtain a sum of squares of the acceleration in the first direction, the acceleration in the second direction, and the acceleration in the third direction, and calculate a square root of the sum of the squares; obtaining a ratio of the acceleration in the third direction to the square root; performing inverse cosine calculation on the ratio to obtain a third angle value to be processed; and acquiring the sum of the third to-be-processed angle value and a third reference angle value as a first angle value.
As one mode, the detecting unit 430 is specifically configured to obtain angle intervals corresponding to the leg lifting angles, where each angle interval corresponds to one leg flexibility detection result, and the leg flexibility detection results corresponding to different angle intervals are different; and outputting the leg flexibility detection result corresponding to the corresponding angle interval as the leg flexibility detection result of the user.
The application provides a body data detection device, respond to the data detection instruction, acquire behind electronic equipment's the acceleration data, can be based on the acceleration data calculates the first angle value that obtains the angle that the sign user arm lifted, again based on first angle value, the first length value of the shoulder height of sign user, the second length value of the arm length of sign user and the third length value of the shank length of sign user calculate the second angle value that obtains the angle of raising the leg of sign user, and then based on raise the leg angle output user's shank pliability testing result. Therefore, by the above method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, so that the leg flexibility detection result of the user is obtained.
It should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
An electronic device provided by the present application will be described below with reference to fig. 12.
Referring to fig. 12, based on the body data detection method and apparatus, another electronic device 200 capable of performing the body data detection method is further provided in the embodiment of the present application. The electronic device 200 includes one or more processors 102 (only one shown), a memory 104, a network module 106, and an acceleration module 108 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 108 can execute the programs stored in the memory 104.
Processor 102 may include one or more cores for processing data, among other things. The processor 102 interfaces with various components throughout the electronic device 200 using various interfaces and circuitry to perform various functions of the electronic device 200 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and implement interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with a base station.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 1100 has stored therein program code that can be called by a processor to perform the method described in the above-described method embodiments.
The computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1100 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 1110 may be compressed, for example, in a suitable form.
To sum up, the body data detection method, the body data detection device and the electronic device provided by the application respond to a data detection instruction, obtain acceleration data of the electronic device, calculate a first angle value representing an angle of arm lifting of a user based on the acceleration data, calculate a second angle value representing a leg lifting angle of the user based on the first angle value, a first length value representing a shoulder height of the user, a second length value representing an arm length of the user and a third length value representing a leg length of the user, and output a leg flexibility detection result of the user based on the leg lifting angle. Therefore, by the above method, under the condition that the shoulder height, the arm length and the leg length of the user are obtained, after the lifting angle of the arm of the user is detected, the lifting angle of the leg of the user is further calculated, so that the leg flexibility detection result of the user is obtained.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A body data detection method applied to an electronic device, the method comprising:
responding to a data detection instruction, and acquiring acceleration data of the electronic equipment;
calculating a first angle value based on the acceleration data, wherein the first angle value represents the angle of arm lifting of the user;
calculating to obtain a second angle value based on the first angle value, the first length value, the second length value and a third length value, wherein the second angle value represents a leg lifting angle of the user, the first length value represents a shoulder height of the user, the second length value represents an arm length of the user, and the third length value represents a leg length of the user;
and outputting a leg flexibility detection result of the user based on the leg lifting angle.
2. The method of claim 1, wherein calculating a second angle value based on the first angle value, the first length value, the second length value, and the third length value comprises:
calculating to obtain a designated height value based on the first angle value, the first length value and the second length value, wherein the designated height value represents the leg lifting height of the user;
and calculating to obtain a second angle value based on the specified height value and the third length value.
3. The method of claim 2, wherein calculating a specified height value based on the first angle value, the first length value, and the second length value, the specified height value characterizing a leg-lifting height of the user comprises:
performing sine calculation on the difference value between the first angle value and a first reference angle value to obtain a first angle value to be processed;
obtaining a product of a second length value and the first angle value to be processed;
and acquiring the sum of the product and the first length value as a designated height value.
4. The method of claim 2, wherein calculating a second angle value based on the specified height value and a third length value comprises:
obtaining a difference value between the designated height value and the third length value;
obtaining the ratio of the difference value to the third length value;
performing arcsine calculation on the ratio to obtain a second angle value to be processed;
and acquiring the sum of the second angle value to be processed and a second reference angle value as a second angle value.
5. The method of claim 1, wherein the acceleration data comprises an acceleration in a first direction, an acceleration in a second direction, and an acceleration in a third direction, wherein an included angle between any two of the first direction, the second direction, and the third direction is 90 degrees, and wherein calculating based on the acceleration data results in a first angle value that represents an angle at which an arm of a user is raised comprises:
acquiring the square sum of the acceleration in the first direction, the acceleration in the second direction and the acceleration in the third direction, and calculating the square root of the square sum;
obtaining a ratio of the acceleration in the third direction to the square root;
performing inverse cosine calculation on the ratio to obtain a third angle value to be processed;
and acquiring the sum of the third to-be-processed angle value and a third reference angle value as a first angle value.
6. The method of any of claims 1-5, wherein outputting the leg flexibility detection result of the user based on the leg-raising angle comprises:
acquiring angle intervals corresponding to the leg lifting angles, wherein each angle interval corresponds to a leg flexibility detection result, and the leg flexibility detection results corresponding to different angle intervals are different;
and outputting the leg flexibility detection result corresponding to the corresponding angle interval as the leg flexibility detection result of the user.
7. The method according to any one of claims 1-5, wherein the electronic device is a smart watch, and the obtaining acceleration data of the electronic device in response to the data detection command comprises:
responding to the data detection instruction, and acquiring whether the electronic equipment is currently in a wearing state;
and if the electronic equipment is in a wearing state, acquiring acceleration data of the electronic equipment.
8. The method of claim 7, further comprising:
and if the electronic equipment is not in the wearing state, sending out prompt information for prompting a user to wear the electronic equipment.
9. A body data detection apparatus, operable on an electronic device, the apparatus comprising:
the acceleration data acquisition unit is used for responding to a data detection instruction and acquiring acceleration data of the electronic equipment;
the data calculation unit is used for calculating a first angle value based on the acceleration data, and the first angle value represents the angle of arm lifting of the user;
the data calculation unit is further configured to calculate a second angle value based on the first angle value, the first length value, the second length value and a third length value, where the second angle value represents a leg lifting angle of the user, the first length value represents a shoulder height of the user, the second length value represents an arm length of the user, and the third length value represents a leg length of the user;
and the detection unit is used for outputting a leg flexibility detection result of the user based on the leg lifting angle.
10. An electronic device comprising an acceleration sensor, a processor, and a memory;
one or more programs are stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-8.
11. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-8.
CN202010936369.9A 2020-09-08 2020-09-08 Body data detection method and device and electronic equipment Active CN114145710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010936369.9A CN114145710B (en) 2020-09-08 2020-09-08 Body data detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010936369.9A CN114145710B (en) 2020-09-08 2020-09-08 Body data detection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114145710A true CN114145710A (en) 2022-03-08
CN114145710B CN114145710B (en) 2023-08-29

Family

ID=80460870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010936369.9A Active CN114145710B (en) 2020-09-08 2020-09-08 Body data detection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114145710B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4714799B1 (en) * 2010-11-01 2011-06-29 酒井医療株式会社 angle gauge
KR20120041896A (en) * 2010-10-22 2012-05-03 주식회사 사이보그-랩 Robot for evaluating and improving hamstring flexibility
US20130225378A1 (en) * 2012-02-16 2013-08-29 Denis E Burek Leg Stretching Machine For Simultaneously Stretching All Stride Muscles And Method Of Using
CN104524742A (en) * 2015-01-05 2015-04-22 河海大学常州校区 Cerebral palsy child rehabilitation training method based on Kinect sensor
CN104864886A (en) * 2015-05-20 2015-08-26 华南师范大学 Micro-nano scale based movement monitoring method and system for three-axis acceleration sensor
CN205126436U (en) * 2015-10-21 2016-04-06 冯明光 Shin bone spin control measuring device in art that fractures futilely
CN206102749U (en) * 2016-07-13 2017-04-19 江门市新会区人民医院 Novel medical electronic leg machine of lifting
CN106618584A (en) * 2015-11-10 2017-05-10 北京纳通科技集团有限公司 Method for monitoring lower limb movement of user
KR20170074669A (en) * 2015-12-22 2017-06-30 경상남도 (교육청) Comprehensive flexibility training and measuring instrument
CN207532391U (en) * 2017-04-05 2018-06-26 王祝香 A kind of upper and lower extremities girth meaurement instrument
CN108245164A (en) * 2017-12-22 2018-07-06 北京精密机电控制设备研究所 A kind of wearable inertia device body gait information collection computational methods
CN110801232A (en) * 2019-11-05 2020-02-18 湖南师范大学 Human body flexibility measurement training device and measurement method
CN210543128U (en) * 2019-06-26 2020-05-19 黎周浩 Device is tempered to pliability for sports
CN210612136U (en) * 2019-07-18 2020-05-26 黄海容 Seat body anteflexion testing arrangement
CN210992810U (en) * 2019-10-17 2020-07-14 陕西职业技术学院 Body flexibility training device for dance training
CN111419630A (en) * 2020-03-05 2020-07-17 重庆三峡学院 Flexibility training device for training cheering gym

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120041896A (en) * 2010-10-22 2012-05-03 주식회사 사이보그-랩 Robot for evaluating and improving hamstring flexibility
JP4714799B1 (en) * 2010-11-01 2011-06-29 酒井医療株式会社 angle gauge
US20130225378A1 (en) * 2012-02-16 2013-08-29 Denis E Burek Leg Stretching Machine For Simultaneously Stretching All Stride Muscles And Method Of Using
CN104524742A (en) * 2015-01-05 2015-04-22 河海大学常州校区 Cerebral palsy child rehabilitation training method based on Kinect sensor
CN104864886A (en) * 2015-05-20 2015-08-26 华南师范大学 Micro-nano scale based movement monitoring method and system for three-axis acceleration sensor
CN205126436U (en) * 2015-10-21 2016-04-06 冯明光 Shin bone spin control measuring device in art that fractures futilely
CN106618584A (en) * 2015-11-10 2017-05-10 北京纳通科技集团有限公司 Method for monitoring lower limb movement of user
KR20170074669A (en) * 2015-12-22 2017-06-30 경상남도 (교육청) Comprehensive flexibility training and measuring instrument
CN206102749U (en) * 2016-07-13 2017-04-19 江门市新会区人民医院 Novel medical electronic leg machine of lifting
CN207532391U (en) * 2017-04-05 2018-06-26 王祝香 A kind of upper and lower extremities girth meaurement instrument
CN108245164A (en) * 2017-12-22 2018-07-06 北京精密机电控制设备研究所 A kind of wearable inertia device body gait information collection computational methods
CN210543128U (en) * 2019-06-26 2020-05-19 黎周浩 Device is tempered to pliability for sports
CN210612136U (en) * 2019-07-18 2020-05-26 黄海容 Seat body anteflexion testing arrangement
CN210992810U (en) * 2019-10-17 2020-07-14 陕西职业技术学院 Body flexibility training device for dance training
CN110801232A (en) * 2019-11-05 2020-02-18 湖南师范大学 Human body flexibility measurement training device and measurement method
CN111419630A (en) * 2020-03-05 2020-07-17 重庆三峡学院 Flexibility training device for training cheering gym

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
冯孟强: "越南健美操国家队混双项目备战2013年世运会训练过程研究", 《中国博士学位论文全文数据库》, pages 134 - 15 *
刘漾: "PNF法对武术套路专选学生髋关节柔韧素质影响的研究", 《中国优秀硕士学位论文全文数据库》, pages 134 - 360 *
徐玉明,张国海: "柔韧性测量方法及其欲测属性的研究", 《北京体育大学学报》, pages 484 - 485 *
过苏齐,李翰君: "腘绳肌柔韧性和肌束长度的关系", 《中国体育科学学会.第十一届全国体育科学大会论文摘要汇编》, pages 2178 - 2179 *

Also Published As

Publication number Publication date
CN114145710B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN107944325B (en) Code scanning method, code scanning device and mobile terminal
ES2738671T3 (en) Method for the corresponding terminal and terminal unlock control
US20180276451A1 (en) Method For Fingerprint Template Update And Terminal Device
CN108491707B (en) Unlocking control method, terminal equipment and medium product
CN106203290B (en) A kind of fingerprint image acquisition method and terminal
CN108153422B (en) Display object control method and mobile terminal
CN108846663B (en) Two-dimensional code adjusting method and device and mobile terminal
CN108319886B (en) Fingerprint identification method and device
CN107742072B (en) Face recognition method and mobile terminal
EP3252662A1 (en) Method for controlling unlocking and terminal
CN111049510B (en) Touch key, control method and electronic equipment
CN111176764B (en) Display control method and terminal equipment
CN108960120B (en) Fingerprint identification processing method and electronic equipment
EP3252672A2 (en) Method for controlling unlocking terminal and corresponding terminal
EP3252665A1 (en) Method for unlocking terminal and terminal
CN107783747B (en) Interface display processing method and mobile terminal
EP3252639A1 (en) Method and terminal for controlling unlocking based on fingerprint biomentric data
CN108932486B (en) Fingerprint matching method and device and electronic device
CN107622235B (en) Fingerprint unlocking method and related product
CN111091519A (en) Image processing method and device
CN110719361B (en) Information transmission method, mobile terminal and storage medium
CN109819331B (en) Video call method, device and mobile terminal
CN114145710B (en) Body data detection method and device and electronic equipment
CN110062412B (en) Wireless pairing method, system, storage medium and mobile terminal
CN110764650A (en) Key trigger detection method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant