CN111544852B - Method and related apparatus for correcting body-building posture - Google Patents

Method and related apparatus for correcting body-building posture Download PDF

Info

Publication number
CN111544852B
CN111544852B CN202010337125.9A CN202010337125A CN111544852B CN 111544852 B CN111544852 B CN 111544852B CN 202010337125 A CN202010337125 A CN 202010337125A CN 111544852 B CN111544852 B CN 111544852B
Authority
CN
China
Prior art keywords
uwb
information
determining
posture
electronic 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.)
Active
Application number
CN202010337125.9A
Other languages
Chinese (zh)
Other versions
CN111544852A (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 CN202010337125.9A priority Critical patent/CN111544852B/en
Publication of CN111544852A publication Critical patent/CN111544852A/en
Application granted granted Critical
Publication of CN111544852B publication Critical patent/CN111544852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B24/00Electric or electronic controls for exercising apparatus of preceding groups; Controlling or monitoring of exercises, sportive games, training or athletic performances
    • A63B24/0062Monitoring athletic performances, e.g. for determining the work of a user on an exercise apparatus, the completed jogging or cycling distance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B24/00Electric or electronic controls for exercising apparatus of preceding groups; Controlling or monitoring of exercises, sportive games, training or athletic performances
    • A63B24/0062Monitoring athletic performances, e.g. for determining the work of a user on an exercise apparatus, the completed jogging or cycling distance
    • A63B2024/0068Comparison to target or threshold, previous performance or not real time comparison to other individuals
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B24/00Electric or electronic controls for exercising apparatus of preceding groups; Controlling or monitoring of exercises, sportive games, training or athletic performances
    • A63B24/0062Monitoring athletic performances, e.g. for determining the work of a user on an exercise apparatus, the completed jogging or cycling distance
    • A63B2024/0071Distinction between different activities, movements, or kind of sports performed

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a method and a related device for correcting body-building posture, which are applied to electronic equipment, wherein the method comprises the following steps: receiving a plurality of pieces of first information sent by a plurality of UWB chips, wherein the plurality of UWB chips are arranged on a target object; determining a relative position corresponding to each UWB chip in the UWB chips according to the first information to obtain a plurality of relative positions, and determining the current motion posture of the target object based on the relative positions; if the current motion posture does not meet the preset condition, determining a plurality of target correction reference positions corresponding to the plurality of relative positions based on the current motion posture; and finally, a plurality of second information can be sent to the plurality of UWB chips, each second information corresponds to one UWB chip, the second information carries a unique target correction reference position, and the plurality of second information is used for reminding the target object to correct the current motion posture into the reference motion posture. By adopting the embodiment of the application, the motion posture of the user can be guided, and the user experience is improved.

Description

Method and related apparatus for correcting body-building posture
Technical Field
The application relates to the technical field of electronic equipment, in particular to a method for correcting body-building posture and a related device.
Background
In order to strengthen self resistance or improve physical quality, some users can not go to a gymnasium to carry out fitness or yoga and the like to carry out professional training because work is busy or time is relatively fragmentary, and choose to take exercise by oneself at home, but when taking exercise by oneself, phenomena such as muscle strain can appear in incorrect posture, and user experience is not high.
Disclosure of Invention
The embodiment of the application provides a method and a related device for correcting body-building postures, which are beneficial to guiding the movement postures of a user and improving the user experience.
In a first aspect, an embodiment of the present application provides a method, an application and an electronic device for correcting a fitness posture, where the method includes:
receiving a plurality of first information sent by a plurality of UWB chips, wherein the UWB chips are arranged on a target object, and each UWB chip corresponds to a human body part of the target object;
determining a relative position corresponding to each UWB chip in the plurality of UWB chips according to the plurality of first information to obtain a plurality of relative positions;
determining a current motion pose of the target object based on the plurality of relative positions;
if the current motion posture does not meet the preset condition, determining a plurality of target correction reference positions corresponding to the plurality of relative positions based on the current motion posture, wherein each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to the reference motion posture;
and sending a plurality of second information to the plurality of UWB chips, wherein each second information corresponds to one UWB chip, the second information carries a unique target correction reference position, and the plurality of second information is used for reminding the target object to correct the current movement posture into the reference movement posture.
In a second aspect, an embodiment of the present application provides an exercise posture correction apparatus applied to an electronic device, where the apparatus includes: a receiving unit, a determining unit and a transmitting unit, wherein,
the receiving unit is used for receiving a plurality of pieces of first information sent by a plurality of UWB chips, the UWB chips are arranged on a target object, and each UWB chip corresponds to a human body part of the target object;
the determining unit is configured to determine, according to the first information, a relative position corresponding to each UWB chip in the UWB chips to obtain a plurality of relative positions;
the determination unit is further configured to determine a current motion posture of the target object based on the plurality of relative positions;
the determining unit is further configured to determine, based on the current motion posture, a plurality of target correction reference positions corresponding to the plurality of relative positions if the current motion posture does not satisfy a preset condition, where each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to reference motion postures;
the transmitting unit is configured to transmit a plurality of pieces of second information to the plurality of UWB chips, each piece of second information corresponds to one UWB chip, the second information carries a unique target correction reference position, and the plurality of pieces of second information are used to remind the target object to correct the current motion posture to the reference motion posture.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device may receive a plurality of first information sent by a plurality of UWB chips, where the plurality of UWB chips are disposed on the target object, and each UWB chip corresponds to a human body part of the target object; determining a relative position corresponding to each UWB chip in the UWB chips according to the first information to obtain a plurality of relative positions, and determining the current motion posture of the target object based on the relative positions; if the current motion posture does not meet the preset condition, determining a plurality of target correction reference positions corresponding to a plurality of relative positions based on the current motion posture, wherein each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to the reference motion posture; finally, a plurality of second information can be sent to a plurality of UWB chips, each second information corresponds to one UWB chip, the unique target correction reference position is carried in the second information, and a plurality of second information are used for reminding the target object to correct the current motion posture into the reference motion posture.
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 embodiments or the prior art descriptions will be briefly described 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 without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a communication architecture provided in an embodiment of the present application;
FIG. 4 is a schematic flow chart of a method for correcting a fitness posture according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a location determination of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of an apparatus for correcting body-building posture according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, 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.
The terms "first," "second," and the like in the description and claims of the present 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 listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
1) The electronic device may be a portable electronic device, such as a cell phone, a tablet computer, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), etc., that also contains other functionality, such as personal digital assistant and/or music player functionality. Exemplary embodiments of the portable electronic device include, but are not limited to, portable electronic devices that carry an IOS system, an Android system, a Microsoft system, or other operating system. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that in other embodiments, the electronic device may not be a portable electronic device, but may be a desktop computer.
2) A positioning base station is a device deployed in an indoor environment or an outdoor environment to transmit and receive signals. For example, the signal Transceiver device may be an evolved Node B (eNB), a Radio Network Controller (RNC), a Node B (NB), a Base Station Controller (BSC), a Base Transceiver Station (BTS), a Home Base Station (e.g., Home evolved Node B or Home Node B, HNB), an Access Controller (AC), a WIFI Access Point (AP), or the like.
3) Ultra Wideband (UWB) is a wireless carrier communication technology, which does not use sinusoidal carriers, but uses nanosecond-level non-sinusoidal narrow pulses to transmit data, so that the occupied frequency spectrum range is wide. The UWB has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, high positioning accuracy and the like, and is particularly suitable for high-speed wireless access in dense multipath places such as indoor places and the like.
4) Location refers to where or where the position is, and the location may be expressed in coordinates.
In a first section, the software and hardware operating environment of the technical solution disclosed in the present application is described as follows.
Fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, a pointer 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. In other embodiments, a memory may also be provided in processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby increasing the efficiency with which the electronic device 101 processes data or executes instructions.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface, a USB interface, and/or the like. The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 101, and may also be used to transmit data between the electronic device 101 and peripheral devices. The USB interface 130 may also be used to connect to a headset to play audio through the headset.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (blue tooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), UWB, and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (mini-light-emitting diode, mini), a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or more display screens 194.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 101 to execute the method for displaying page elements provided in some embodiments of the present application, and various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more applications (e.g., gallery, contacts, etc.), and the like. The storage data area may store data (such as photos, contacts, etc.) created during use of the electronic device 101, and the like. Further, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage components, flash memory components, Universal Flash Storage (UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 101 to execute the method for displaying page elements provided in the embodiments of the present application, and other applications and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and the Z axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
Fig. 2 shows a block diagram of a software structure of the electronic device 100. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In a second section, example application scenarios disclosed in embodiments of the present application are described below.
By way of example, FIG. 3 shows a schematic diagram of a communication architecture to which the present application is applicable,
as shown, the communication framework includes an electronic device, a plurality of UWB chips, and a plurality of positioning base stations. The plurality of UWB chips and the plurality of positioning base stations may be in communication with an electronic device. The form and number of the electronic device, the plurality of UWB chips and the plurality of positioning base stations shown in fig. 3 are only examples and do not constitute a limitation to the embodiments of the present application.
The target object may be worn or implanted with the UWB chips on a plurality of human body parts (e.g., head, shoulder, wrist, waist, ankle, elbow, etc., but not limited thereto).
The electronic device can realize the positioning of the plurality of UWB chips based on the UWB chips and the plurality of positioning base stations, namely realize the positioning of the human body part of the target object, and determine the current motion posture or action of the target object.
The communication framework is applicable to an indoor environment and also applicable to an outdoor environment, and is not limited herein.
The indoor environment may be a mall, airport, exhibition hall, office building, warehouse, underground parking lot, teaching building, hotel, apartment, dormitory building, gym, theater, library, etc., among others.
The outdoor environment may be, for example, a park, a casino, an outdoor parking lot, a car theater, an open stadium, a school playground, and the like.
Wherein the positions of the plurality of positioning base stations in the indoor or outdoor environment are fixed.
The embodiment of the application can receive a plurality of pieces of first information sent by a plurality of UWB chips, the UWB chips are arranged on a target object, and each UWB chip corresponds to a human body part of the target object; determining a relative position corresponding to each UWB chip in the UWB chips according to the first information to obtain a plurality of relative positions, and determining the current motion posture of the target object based on the relative positions; if the current motion posture does not meet the preset condition, determining a plurality of target correction reference positions corresponding to a plurality of relative positions based on the current motion posture, wherein each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to the reference motion posture; finally, a plurality of second information can be sent to a plurality of UWB chips, each second information corresponds to one UWB chip, the unique target correction reference position is carried in the second information, and a plurality of second information are used for reminding the target object to correct the current motion posture into the reference motion posture.
In the third section, the scope of protection of the claims disclosed in the embodiments of the present application is described below.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for correcting a fitness posture applied to an electronic device according to an embodiment of the present application.
S401, receiving a plurality of first information sent by a plurality of UWB chips, wherein the UWB chips are arranged on a target object, and each UWB chip corresponds to a human body part of the target object.
The UWB chips may be disposed on a target object, and may be implanted into a human body of the target object, or the target object may be configured to wear an electronic device including the UWB chip on a different human body.
The electronic device may establish communication connection with a plurality of UWB chips based on UWB communication technology, and the first information may include at least one of: the position coordinates of the UWB chip, the acceleration of the UWB chip, the reception time of the UWB chip, the identification information of the UWB chip, the pressure value of the UWB chip, and the like, which are not limited herein.
In a specific implementation, the electronic device may send preset information to the UWB chips in advance, where the preset information may be set by the electronic device or default to a system, and the preset information may be used to obtain the first information.
S402, determining the relative position corresponding to each UWB chip in the UWB chips according to the first information to obtain a plurality of relative positions.
The electronic device can determine the relative position of each UWB chip relative to the electronic device based on the first information corresponding to each UWB chip to obtain a plurality of relative positions, and the plurality of relative positions are favorable for obtaining the current motion posture of the target object subsequently.
In one possible example, in step S402, the first information includes: sending time and coordinate information; the determining the relative position corresponding to each UWB chip in the plurality of UWB chips according to the first information may include:
acquiring receiving moments when the electronic equipment receives the first information sent by each UWB chip, wherein each receiving moment corresponds to one UWB chip, and each receiving moment corresponds to one sending moment;
determining the device distance between each UWB chip and the electronic device according to the plurality of sending moments and the plurality of receiving moments to obtain a plurality of device distances;
determining distance differences between every two UWB chips relative to the electronic equipment based on the plurality of equipment distances to obtain a plurality of distance differences;
drawing a hyperbola based on the distance differences and the coordinate information corresponding to the UWB chips to obtain a plurality of hyperbolas;
determining an intersection point of the plurality of hyperbolas as a position of the electronic device;
based on the position of the electronic device, determining a relative position corresponding to each UWB chip of the plurality of UWB chips.
The electronic device may transmit a plurality of preset messages to the plurality of UWB chips in advance, and the transmission time for transmitting the preset messages may be the same.
The electronic device can send the preset information to the plurality of UWB chips within a time period.
The sending time contained in the first information is the time when the UWB chip sends the first information to the electronic equipment after receiving the preset information; the receiving time may be a time when the electronic device receives the first information corresponding to the UWB chip.
The plurality of transmitting moments and the plurality of receiving moments are in one-to-one correspondence, and the transmitting moment of each UWB chip corresponds to the receiving moment of one electronic device.
Each UWB chip may correspond to an equipment distance, where the equipment distance may refer to a distance between the UWB chip and an electronic device, and the equipment distance is (receiving time-transmitting time) light speed.
In a specific implementation, the electronic device may draw a hyperbola based on a plurality of coordinate information corresponding to a plurality of UWB chips and the plurality of distance differences, each UWB chip may correspond to one hyperbola, and a plurality of hyperbolas may be obtained, where an intersection point of the plurality of hyperbolas is a location of the electronic device; and establishing a three-dimensional coordinate system by taking the position of the electronic equipment as a central point, and determining the three-dimensional coordinate of each UWB chip relative to the electronic equipment as the relative position relative to the electronic equipment.
For example, as shown in fig. 5, if the target object is provided with 3 UWB chips, the electronic device sends preset information at a time a, and after the first UWB chip, the second UWB chip, and the third UWB chip receive the preset information, the electronic device sends first information at a time b, a time c, and a time d, respectively; if the electronic device receives the first information sent by the first UWB chip at the time e, the electronic device receives the first information sent by the second UWB chip at the time f, and the electronic device receives the first information sent by the third UWB chip at the time g; then the distance 1 between the electronic device and the first UWB chip is (time e-time b) light speed, the distance 2 between the electronic device and the second UWB chip is (time f-time c) light speed, and the distance 3 between the electronic device and the third UWB chip is (time g-time d) light speed; further, it can be obtained that the distance difference between the first UWB chip and the second UWB chip with respect to the electronic device is: the distance difference 1 between the distance 1 and the distance 2 is (time e-time b-time f + time d) x the speed of light, and similarly, the distance difference between the first UWB chip and the third UWB chip with respect to the electronic device is obtained as follows: the distance difference 2 between the distance 1 and the distance 3 is (time g-time c-time f + time d) x the speed of light; if the location of the first UWB chip, the location of the second UWB chip, and the location of the third UWB chip are subdivided as shown in fig. 5, then knowing the location of the first UWB chip, the location of the second UWB chip, and the distance difference 1, a hyperbola 1 is drawn, and knowing the location of the first UWB chip, the location of the third UWB chip, and the distance difference 2, a hyperbola 2 is drawn; as shown in fig. 5, the intersection of hyperbola 1 and hyperbola 2 is the position of the electronic device.
Therefore, in the embodiment of the application, the electronic device can receive a plurality of first information sent by the UWB chips, and further determine the distance difference between every two UWB chips relative to the electronic device based on the plurality of sending times and the plurality of receiving times to determine the position of the electronic device, so that accurate positioning is realized.
S403, determining the current motion posture of the target object based on the plurality of relative positions.
For example, if the UWB chips are respectively located at the waist, the ankle and the elbow of the target object, the current movement posture of the target object, such as a bending posture, a jumping posture and the like, may be determined based on the respectively corresponding relative positions, and is not limited herein.
In one possible example, the step S403 for determining the current motion posture of the target object based on the plurality of relative positions may include the following steps:
acquiring initial positions corresponding to each UWB chip corresponding to the target object in an initial state to obtain a plurality of initial positions;
based on the plurality of relative positions and the plurality of initial positions, determining a displacement between the initial position and the relative position corresponding to each UWB chip, and obtaining a plurality of displacements corresponding to the UWB chips;
determining a current motion pose of the target object according to the plurality of displacements.
The initial position of each UWB chip relative to the electronic device when the target object is in a static upright and relaxed state can be stored in the electronic device in advance.
For example, if the target object needs to complete a section of exercise or yoga, and the initial motion of the exercise is a standing state with a flat arm, the electronic device may determine the coordinate positions corresponding to the plurality of UWB chips as the initial positions when the arm of the target object is in the standing state with the flat arm, and obtain a plurality of initial positions, that is, when the target object is in the initial positions, the initial coordinate positions corresponding to each human body part are obtained.
In a specific implementation, the electronic device may calculate a plurality of coordinate positions corresponding to a plurality of initial positions of a plurality of UWB chips when the target object is in an initial state, and determine a directional line segment between the plurality of coordinate positions corresponding to a plurality of relative positions in a current state as a displacement between the initial position and the relative position corresponding to each UWB chip, so as to obtain a plurality of displacements corresponding to the plurality of UWB chips.
For example, if the target object is in the initial state, the coordinate position corresponding to the first UWB chip is (x0, y0),at the current state, the corresponding relative position is (x1, y1), then the amount of displacement is
Figure BDA0002466111900000101
And, it may be determined that the displacement direction is directed from the initial position to the relative position, and thus, a plurality of displacements of the target object moving to the current motion posture in the initial state may be determined.
Further, the motion posture of the target object may be evaluated based on the plurality of displacements in combination with, for example, the acceleration of the UWB chip, the pressure value of the UWB chip, and the like included in the first information, to obtain the current motion posture of the target object.
As can be seen, in the embodiment of the present application, since the plurality of UWB chips may correspond to a plurality of human body parts of the target object, the electronic device may evaluate the motion posture of the target object through the displacement of the initial position and the relative position of each UWB chip in the initial state and the current state, respectively, to obtain the current motion posture, that is, may obtain the initial position corresponding to each human body part in the initial state, and finally determine the current motion posture corresponding to the target object based on the initial position corresponding to each human body part and the relative position of the target object in the current state; in this way, since the standard deviation of the distance measurement accuracy of the UWB is 2.4 cm, it can be seen that the distance measurement accuracy of the UWB technology is considerably higher than that of other distance measurement methods, and therefore, without relying on the assistance of other software, the positioning of each human body part of the target object is determined by the UWB distance measurement positioning method, which is advantageous for improving the posture determination efficiency and for facilitating the subsequent posture correction.
S404, if the current motion posture does not satisfy a preset condition, determining a plurality of target correction reference positions corresponding to the plurality of relative positions based on the current motion posture, where each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to reference motion postures.
The preset condition can be set by the user or defaulted by the system, and is not limited herein; the preset condition can be a condition for judging whether the motion posture of the target object reaches the standard or is accurate; and if the current motion posture meets the preset condition, determining that the corresponding motion posture is accurate or reaches the standard.
For example, if the preset action is to lift the double arms and the current motion posture of the current object is to lift the single arm for a certain exercise and fitness action, it indicates that the current motion posture of the target object does not meet the standard, and it may be determined that the corresponding current motion posture does not meet the preset condition; or, if the acceleration and the pressure value corresponding to the first UWB chip are not within a certain threshold interval, the current motion posture of the target object may be considered not to be up to standard.
When the posture of the target object is inaccurate, the target correction reference position can correct the current motion posture to a target correction reference position corresponding to a correct posture.
Optionally, before the step S404, the following steps may be further included:
determining a plurality of displacement threshold intervals of a plurality of human body parts corresponding to the current motion posture according to a mapping relation between a preset displacement threshold interval of a preset human body part and a preset motion posture;
determining whether the plurality of displacements are all within the plurality of displacement threshold intervals, and if at least one displacement is not within the displacement threshold interval, determining that the current motion posture does not meet a preset condition;
and if the plurality of displacements are all within the plurality of displacement threshold intervals, determining that the current motion posture meets the preset condition.
The preset displacement threshold interval may be set by a user or default by a system, and is not limited herein.
The mapping relationship between the preset displacement threshold interval of the human body part and the preset movement posture can be preset in the electronic device in advance, the electronic device can set the preset displacement threshold interval between the preset displacement threshold interval and the position of the initial state for a plurality of preset movement postures, and the preset movement posture can be a plurality of decomposition movement postures in a preset gymnastics or any set of movements, for example, lifting double arms, lifting single arm, lifting left leg, shaking head and the like, and is not limited herein.
The preset displacement threshold interval can be understood as a maximum error interval which is required to be met by the displacement amount and the displacement direction of the corresponding initial position and relative position when the target object moves from the initial state to the preset motion posture, and can include the allowed maximum displacement and minimum displacement of the target object when the target object moves to the standard in the interval; and if the displacement between the current motion posture and the initial state is within the preset displacement threshold value interval, indicating that the current motion posture reaches the standard or is accurate.
The preset movement posture can be set by the user or defaulted by the system, and is not limited herein; the preset motion posture may be understood as a posture-qualifying or standard action posture.
In a specific implementation, each UWB chip corresponds to a human body part, and based on the mapping relationship, a displacement threshold interval of each human body part corresponding to the current motion posture is determined to obtain a plurality of displacement threshold intervals, and each human body part may correspond to one displacement threshold interval; in this way, when the plurality of displacements are all within the plurality of displacement threshold intervals, it may be determined that the current motion posture of the target object satisfies the preset condition, and on the contrary, if any one of the displacements is not within the displacement threshold interval, it may be determined that the current motion posture of the target object does not reach the standard, that is, the preset condition is not satisfied.
For example, as shown in table 1 below, a mapping relationship table between a preset displacement threshold interval and a preset motion posture is provided, and as shown in the following table, the following three motion postures may be preset, respectively: lifting two arms, lifting left legs and swinging the left arms forwards, and setting the natural state of the target object in a static standing state as an initial state and setting the forward direction of swinging the two arms backwards; based on the above, when the preset movement posture is that the two arms are lifted, and the target object moves the two arms to the standard position, the displacement interval between the current position and the initial position is set to be [70,100 ]; setting a displacement interval between the current position and the initial position as [10,30] when the preset movement posture is that the left leg is lifted and the target object moves the left leg to the standard position; since the backward swing of the left arm is in the positive direction, the preset movement posture can be set to be that when the left arm is swung forwards and the target object moves the left arm to the standard position, the displacement interval between the current position and the initial position is between [ -10 and-8 ]; the specific setting method is not limited herein. The target object can be provided with 3 pieces of electronic equipment containing UWB chips at the positions of double arms and ankles, when the current movement posture of the target object is to lift the left leg and the double arms, whether the displacement corresponding to the 3 UWB chips is within a preset displacement threshold interval shown in a table can be determined, if the displacement corresponding to the left arm is 80, and if the displacement corresponding to the right arm is 76, the posture of lifting the double arms of the target object can be determined to meet the standard posture; meanwhile, if the displacement corresponding to the position between the initial state and the current state is 8 when the left leg is lifted and is not within the preset displacement threshold interval corresponding to the lifted left leg, the lifted left leg can be determined not to meet the standard posture, and the current motion posture of the target object can be considered not to meet the preset condition.
Table 1, mapping relation table between preset displacement threshold interval and preset motion posture
Preset movement posture Preset displacement threshold interval (cm)
Lifting both arms [70,100]
Lifting the left leg [10,30]
Waving left arm forward [-10,-8]
It can be seen that, in the embodiment of the present application, a mapping relationship between a preset displacement threshold interval of a human body part and a standard posture or a correct posture may be preset, a posture of each human body part is located according to the mapping relationship, and whether a current motion posture of the target object meets a preset condition is determined, if not, it is determined that the current motion posture of the target object needs to be corrected, otherwise, no correction is required; therefore, considering that the distance between the limbs is small during movement, a preset displacement threshold interval can be preset for each human body part, and whether the current movement posture reaches the standard or not is judged through the preset displacement threshold interval, so that the accuracy of posture judgment of the human body part is improved.
In one possible example, the step S403 of determining a plurality of target correction reference positions corresponding to the plurality of relative positions based on the current motion posture may include the following steps:
inputting a plurality of relative positions corresponding to the current motion posture into a preset model;
and adjusting the relative positions based on the target model parameters corresponding to the preset model to obtain a target correction reference position corresponding to each relative position and obtain a plurality of target correction reference positions.
The preset model can be set by a user or defaulted by a system, and is not limited herein; the predetermined model may be, for example, a convolutional neural network model.
In specific implementation, initial parameters of the preset model can be preset, data sets of position information of a plurality of UWB chips corresponding to a plurality of human body parts when a target object is in different multiple motion postures are collected and determined, and the data sets are trained to adjust the initial parameters in the preset model as target model parameters; further, the plurality of relative positions may be used as an input of a model, and based on the target model parameters, the plurality of relative positions may be corrected or adjusted to obtain a target correction reference position to which each UWB chip should correspond in a standard operation or a correct operation, so as to obtain a plurality of target correction reference positions.
Therefore, in the embodiment of the application, when the plurality of relative positions are adjusted through the preset model trained in advance, the operation speed is high, the whole body-building posture correction efficiency is improved, and the position correction accuracy is improved.
S405, a plurality of second information are sent to the UWB chips, each second information corresponds to one UWB chip, the second information carries a unique target correction reference position, and the second information is used for reminding the target object to correct the current movement posture into the reference movement posture.
Wherein, the transmission time of the electronic equipment for transmitting the plurality of second information is the same.
The electronic device may periodically transmit the plurality of second information, for example, one second information may be transmitted every 50ms, 60ms, or 100ms through a transceiver device provided in the electronic device. The second information may specifically be transmitted in a broadcast manner.
The sending time of the electronic equipment sending the preset information is earlier than the sending time of the second information.
The second information may carry a unique target correction reference position, each UWB chip may carry a unique target correction reference position, and the target correction reference position may be a vector coordinate with a direction, a three-dimensional coordinate, or the like, which is not limited herein; in addition, if the human body part corresponding to the UWB chip does not need to be subjected to posture correction, the target correction reference position may be coordinates (0, 0).
Optionally, after step S405, the following steps may be further included:
determining a difference value between the relative position corresponding to each human body part and a target correction reference position to obtain a plurality of difference values corresponding to the plurality of human body parts;
determining a feedback grade corresponding to each difference value based on the plurality of difference values to obtain a plurality of feedback grades;
determining target feedback information corresponding to each human body part based on a mapping relation between a preset feedback grade and preset feedback information to obtain a plurality of target feedback information;
generating a plurality of posture correction instructions based on the plurality of target feedback information, wherein each second information comprises a posture correction instruction, and the posture correction instruction is used for the UWB chip to feed back the target feedback information to the human body part corresponding to the UWB chip.
Different feedback levels can be set in the electronic equipment according to the difference value between the relative position of different intervals and the target correction reference position, and the feedback levels are used for determining specific feedback information sent by the electronic equipment to the plurality of UWB chips; the difference value may refer to a distance between the relative position and the target correction reference position, and in a specific implementation, different intervals may be preset according to the size of the distance, and the feedback level corresponding to each interval is different.
The electronic device may further preset a mapping relationship between the feedback level and preset feedback information, where the feedback information may include at least one of the following: the feedback strength, the strength direction, the feedback duration, the feedback frequency and the like are not limited herein, wherein the strength direction may be used to guide the motion direction of the target object, if the feedback information reminds the target object in a vibration mode, the feedback strength may refer to the vibration magnitude, the feedback duration may refer to the vibration duration, the feedback frequency may refer to the vibration frequency and the like, and the specific feedback mode is not limited herein.
For example, as shown in the following table 2, a mapping relationship table between feedback levels and preset feedback information is provided, and as shown in the following table, different feedback levels may be set for the difference value between the relative position and the target correction reference position, specifically, three difference value intervals may be set, which are respectively: (3,5], (1.5,3], [0.25,1.5) and [0, 0.25); the feedback levels respectively corresponding thereto are: 1. 2, 3 and 4, the greater the difference value, the greater its corresponding feedback level; in addition, different feedback information may be set for different feedback levels, and as shown in table 2 below, if the electronic device including the UWB chip, which is set in the body of the target object, further includes a sensor, the feedback information may include: the method comprises the steps of feeding back frequency, returned force and feedback duration, wherein the feedback frequency can refer to the vibration frequency of electronic equipment corresponding to a UWB chip, the feedback force can refer to the vibration size, and the feedback duration can correspond to the vibration duration; when the feedback grade is higher, the closer the current motion posture of the target object to the standard motion is indicated, the less feedback information is given by the electronic equipment corresponding to the UWB chip, and the weaker vibration is, so that the user is reminded to correct the current motion posture, and the improvement of user experience is facilitated.
Table 2, mapping relation table between feedback grade and preset feedback information
Figure BDA0002466111900000131
Therefore, in the embodiment of the application, the electronic device can generate a plurality of posture correction instructions, each instruction can correspond to one target feedback information, and the target feedback information can be used for reminding a target object of correcting the current movement posture in which way, so that the user experience can be improved.
Optionally, a distance between the electronic device and any one of the plurality of UWB chips is smaller than a preset communication distance.
The preset communication distance can be set by the user or the default of the system.
It can be seen that, in the embodiment of the present application, the electronic device may receive a plurality of first information sent by a plurality of UWB chips, where the plurality of UWB chips are disposed on the target object, and each UWB chip corresponds to a human body part of the target object; determining a relative position corresponding to each UWB chip in the UWB chips according to the first information to obtain a plurality of relative positions, and determining the current motion posture of the target object based on the relative positions; if the current motion posture does not meet the preset condition, determining a plurality of target correction reference positions corresponding to a plurality of relative positions based on the current motion posture, wherein each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to the reference motion posture; finally, a plurality of second information can be sent to a plurality of UWB chips, each second information corresponds to one UWB chip, the unique target correction reference position is carried in the second information, and a plurality of second information are used for reminding the target object to correct the current motion posture into the reference motion posture.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each function module corresponding to each function, fig. 6 shows a schematic diagram of the body-building posture correction apparatus, as shown in fig. 6, the body-building posture correction apparatus 600 is applied to an electronic device, and the body-building posture correction apparatus 600 may include: a receiving unit 601, a determining unit 602, and a transmitting unit 603.
Wherein the receiving unit 601 may be used to support the electronic device to perform the above-described step 401, and/or other processes for the techniques described herein.
Determination unit 602 may be used to enable the electronic device to perform steps 402, 403, 404, etc., described above, and/or other processes for the techniques described herein.
The sending unit 603 may be used to enable the electronic device to perform step 405 described above, and/or other processes for the techniques described herein.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the method for correcting the fitness posture, so that the same effect as the implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage actions of the electronic device, and for example, may be configured to support the electronic device to perform the steps performed by the receiving unit 601, the determining unit 602, and the sending unit 603. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device according to this embodiment may be a device having the structure shown in fig. 1.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
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 a plurality of 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, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, 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 steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for fitness posture correction, applied to an electronic device, the method comprising: receiving a plurality of first information sent by a plurality of UWB chips, wherein the UWB chips are arranged on a target object, and each UWB chip in the UWB chips corresponds to a human body part of the target object; determining a relative position corresponding to each UWB chip in the plurality of UWB chips according to the plurality of first information to obtain a plurality of relative positions;
determining a current motion pose of the target object based on the plurality of relative positions;
if the current motion posture does not meet the preset condition, determining a plurality of target correction reference positions corresponding to the plurality of relative positions based on the current motion posture, wherein each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to the reference motion posture;
and sending a plurality of second information to the plurality of UWB chips, wherein each second information corresponds to one UWB chip, the second information carries a unique target correction reference position, and the plurality of second information is used for reminding the target object to correct the current movement posture into the reference movement posture.
2. The method of claim 1, wherein the first information comprises: sending time and coordinate information; the determining a relative position corresponding to each UWB chip in the plurality of UWB chips according to the first information includes:
acquiring receiving moments when the electronic equipment receives the first information sent by each UWB chip, wherein each receiving moment corresponds to one UWB chip, and each receiving moment corresponds to one sending moment;
determining the device distance between each UWB chip and the electronic device according to the plurality of sending moments and the plurality of receiving moments to obtain a plurality of device distances;
determining distance differences between every two UWB chips relative to the electronic equipment based on the plurality of equipment distances to obtain a plurality of distance differences;
drawing a hyperbola based on the distance differences and the coordinate information corresponding to the UWB chips to obtain a plurality of hyperbolas;
determining an intersection point of the plurality of hyperbolas as a position of the electronic device;
based on the position of the electronic device, determining a relative position corresponding to each UWB chip of the plurality of UWB chips.
3. The method of claim 1, wherein determining the current motion pose of the target object based on the plurality of relative positions comprises:
acquiring initial positions corresponding to each UWB chip corresponding to the target object in an initial state to obtain a plurality of initial positions;
based on the plurality of relative positions and the plurality of initial positions, determining a displacement between the initial position and the relative position corresponding to each UWB chip, and obtaining a plurality of displacements corresponding to the UWB chips;
determining a current motion pose of the target object according to the plurality of displacements.
4. The method of claim 3, further comprising:
determining a plurality of displacement threshold intervals of a plurality of human body parts corresponding to the current motion posture according to a mapping relation between a preset displacement threshold interval of a preset human body part and a preset motion posture;
determining whether the plurality of displacements are all within the plurality of displacement threshold intervals, and if at least one displacement is not within the displacement threshold interval, determining that the current motion posture does not meet a preset condition;
and if the plurality of displacements are all within the plurality of displacement threshold intervals, determining that the current motion posture meets the preset condition.
5. The method of claim 4, wherein determining a plurality of target correction reference positions corresponding to the plurality of relative positions based on the current motion posture comprises:
inputting a plurality of relative positions corresponding to the current motion posture into a preset model;
and adjusting the relative positions based on the target model parameters corresponding to the preset model to obtain a target correction reference position corresponding to each relative position and obtain a plurality of target correction reference positions.
6. The method of claim 5, further comprising:
determining a difference value between a relative position corresponding to each human body part in the plurality of human body parts and a target correction reference position to obtain a plurality of difference values corresponding to the plurality of human body parts;
determining a feedback grade corresponding to each difference value based on the plurality of difference values to obtain a plurality of feedback grades;
determining target feedback information corresponding to each human body part based on a mapping relation between a preset feedback grade and preset feedback information to obtain a plurality of target feedback information;
generating a plurality of posture correction instructions based on the plurality of target feedback information, wherein each second information comprises a posture correction instruction, and the posture correction instruction is used for the UWB chip to feed back the target feedback information to the human body part corresponding to the UWB chip.
7. The method of any one of claims 1-6, wherein a distance between the electronic device and any one of the plurality of UWB chips is less than a preset communication distance.
8. An exercise posture correction apparatus, applied to an electronic device, the apparatus comprising: a receiving unit, a determining unit and a transmitting unit, wherein,
the receiving unit is used for receiving a plurality of pieces of first information sent by a plurality of UWB chips, the UWB chips are arranged on a target object, and each UWB chip in the UWB chips corresponds to a human body part of the target object;
the determining unit is configured to determine, according to the first information, a relative position corresponding to each UWB chip in the UWB chips to obtain a plurality of relative positions;
the determination unit is further configured to determine a current motion posture of the target object based on the plurality of relative positions;
the determining unit is further configured to determine, based on the current motion posture, a plurality of target correction reference positions corresponding to the plurality of relative positions if the current motion posture does not satisfy a preset condition, where each relative position corresponds to one target correction reference position, and the plurality of target correction reference positions correspond to reference motion postures;
the transmitting unit is configured to transmit a plurality of pieces of second information to the plurality of UWB chips, each piece of second information corresponds to one UWB chip, the second information carries a unique target correction reference position, and the plurality of pieces of second information are used to remind the target object to correct the current motion posture to the reference motion posture.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN202010337125.9A 2020-04-24 2020-04-24 Method and related apparatus for correcting body-building posture Active CN111544852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337125.9A CN111544852B (en) 2020-04-24 2020-04-24 Method and related apparatus for correcting body-building posture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337125.9A CN111544852B (en) 2020-04-24 2020-04-24 Method and related apparatus for correcting body-building posture

Publications (2)

Publication Number Publication Date
CN111544852A CN111544852A (en) 2020-08-18
CN111544852B true CN111544852B (en) 2021-07-20

Family

ID=72007763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337125.9A Active CN111544852B (en) 2020-04-24 2020-04-24 Method and related apparatus for correcting body-building posture

Country Status (1)

Country Link
CN (1) CN111544852B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114511988A (en) * 2020-11-17 2022-05-17 Oppo广东移动通信有限公司 Method and system for monitoring motion state, and computer storage medium
CN112327944A (en) * 2020-11-20 2021-02-05 Oppo广东移动通信有限公司 Electronic equipment control method and device, electronic equipment and storage medium
CN112843662A (en) * 2021-01-11 2021-05-28 英华达(南京)科技有限公司 Wearable device, system and method for monitoring exercise completion degree
CN113518423A (en) * 2021-06-04 2021-10-19 维沃移动通信有限公司 Positioning method and device and electronic equipment
CN113741785A (en) * 2021-08-27 2021-12-03 深圳Tcl新技术有限公司 Instruction determination method and device, storage medium and electronic equipment
CN113901971B (en) * 2021-12-09 2022-03-25 北京的卢深视科技有限公司 Body-building posture correction method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372294A (en) * 2016-08-30 2017-02-01 苏州品诺维新医疗科技有限公司 Method and device for correcting posture
CN107812373A (en) * 2017-11-06 2018-03-20 深圳清华大学研究院 Postural training correcting device, postural training and the control method of correction
CN109464774A (en) * 2018-09-27 2019-03-15 浙江工商大学 Intelligent body-building equipment
DE202018105962U1 (en) * 2018-10-18 2018-12-03 Wolfgang Nossenheim Training device for posture during archery
CN109919034A (en) * 2019-01-31 2019-06-21 厦门大学 A kind of identification of limb action with correct auxiliary training system and method
CN110523060B (en) * 2019-08-29 2021-09-24 深圳市问库信息技术有限公司 Muscle strength recovery and posture correction auxiliary device
CN110750156A (en) * 2019-09-29 2020-02-04 上海掌门科技有限公司 Method and device for posture correction reminding

Also Published As

Publication number Publication date
CN111544852A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN111544852B (en) Method and related apparatus for correcting body-building posture
CN109814766B (en) Application display method and electronic equipment
CN109495688B (en) Photographing preview method of electronic equipment, graphical user interface and electronic equipment
EP4020491A1 (en) Fitness-assisted method and electronic apparatus
CN111835530B (en) Group joining method and device
CN112527094A (en) Human body posture detection method and electronic equipment
WO2023065873A1 (en) Frame rate adjustment method, terminal device, and frame rate adjustment system
CN113382154A (en) Human body image beautifying method based on depth and electronic equipment
CN113115439A (en) Positioning method and related equipment
CN113115460B (en) Time slot selection method and related equipment
CN111553846A (en) Super-resolution processing method and device
CN113808446A (en) Fitness course interaction method and related device
CN111953627A (en) Method and device for detecting SSB serial number
CN113177229A (en) Data processing method and related device
EP4310724A1 (en) Method for determining exercise guidance information, electronic device, and exercise guidance system
CN111930787A (en) Synchronization method and device
CN114422686A (en) Parameter adjusting method and related device
WO2022222761A1 (en) Map display method and related device
WO2022095983A1 (en) Gesture misrecognition prevention method, and electronic device
WO2021036562A1 (en) Prompting method for fitness training, and electronic device
US20230402150A1 (en) Adaptive Action Evaluation Method, Electronic Device, and Storage Medium
WO2022042275A1 (en) Distance measurement method, apparatus, electronic device, and readable storage medium
CN111836226B (en) Data transmission control method, device and storage medium
CN116110363A (en) Noise reduction method and related product
CN114637392A (en) Display 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