WO2021244411A1 - Movement self-adaptive synchronization method and electronic device - Google Patents

Movement self-adaptive synchronization method and electronic device Download PDF

Info

Publication number
WO2021244411A1
WO2021244411A1 PCT/CN2021/096640 CN2021096640W WO2021244411A1 WO 2021244411 A1 WO2021244411 A1 WO 2021244411A1 CN 2021096640 W CN2021096640 W CN 2021096640W WO 2021244411 A1 WO2021244411 A1 WO 2021244411A1
Authority
WO
WIPO (PCT)
Prior art keywords
fitness
action
user
video
electronic device
Prior art date
Application number
PCT/CN2021/096640
Other languages
French (fr)
Chinese (zh)
Inventor
马春晖
黄磊
陈霄汉
赵杰
郁心迪
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021244411A1 publication Critical patent/WO2021244411A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs

Definitions

  • This application relates to the field of computer application technology, and in particular to an action adaptive synchronization method and electronic equipment.
  • the purpose of the present invention is to provide an action adaptive synchronization method, which ensures the synchronization of the fitness actions of the coach and the user in the fitness video tutorial, and improves the user's sense of fitness experience.
  • an embodiment of the present invention discloses an action adaptive synchronization method, which is applied to an electronic device, and the action adaptive synchronization method includes: the electronic device plays a fitness video.
  • the fitness video contains information such as the action posture of the fitness coach, the guidance voice of the fitness video, and text information.
  • the electronic device collects the user's action posture.
  • the image acquisition module of the electronic device can provide the image information used on the electronic device to collect the posture, movement and other image information of the user in front of the electronic device.
  • the image acquisition module can be embedded in the housing of the electronic device, such as the upper frame of the electronic device. , It can also be set independently of the electronic device, and the image acquisition module is set above the display screen of the electronic device.
  • the image acquisition module may be a camera (such as an infrared camera) and the like.
  • the electronic device matches the fitness action currently played in the fitness video with the user's action posture. Among them, the electronic device determines the key bone nodes involved in the fitness action demonstrated by the coach in the fitness video and the key bone nodes involved in the user's current action posture collected by the camera of the smart screen, and determines the user and the coach in the fitness video based on the key bone nodes. Whether the fitness actions are synchronized.
  • At least one fitness trainer may demonstrate standard fitness actions in the fitness video.
  • the electronic device obtains one or more bone nodes of at least one fitness coach in the fitness video;
  • the electronic device obtains one or more bone nodes of the user
  • the electronic device determines key bone nodes from one or more bone nodes of at least one fitness coach and one or more bone nodes of the user in the fitness video.
  • determining the key bone node includes:
  • the electronic device selects the key bone node of the currently demonstrated fitness action from the bone nodes of the user and at least one fitness trainer, where the key bone node is the bone node involved in the current fitness action.
  • the electronic device matching the fitness action currently played in the fitness video with the user's action posture includes:
  • the electronic device Based on LSTM, extracts the key bone nodes of the fitness action currently demonstrated by at least one fitness trainer in the current fitness video and the user's action posture to obtain the third posture feature of the currently demonstrated fitness action and the fourth posture feature of the user, based on the key
  • the skeleton node matches the third posture feature with the fourth posture feature.
  • the third posture feature and the fourth posture feature are the action postures of the key bone nodes.
  • the electronic device extracts the key bone nodes of the fitness action currently demonstrated by at least one fitness trainer in the current fitness video and the user's action posture based on the LSTM to obtain the first fitness action currently demonstrated
  • a posture feature and a second posture feature of the user are matched with the first posture feature and the second posture feature.
  • the first posture feature and the second posture feature are the action postures of the key bone nodes.
  • video framing is performed on the fitness video to obtain frame images of consecutive moments of the fitness video.
  • the electronic device sequentially reads each fitness action in the fitness video according to the playback time sequence, and performs video framing for each fitness action.
  • Video framing is a picture that divides each fitness action in the fitness video into one frame by one frame.
  • Each frame in the video is a still picture, so that each fitness action is divided into multiple frames of image pictures.
  • the electronic device adjusts the playback speed of the fitness action in the fitness video to synchronize the fitness action with the user's action posture.
  • the electronic device determines the target frame image corresponding to the second posture feature of the user. Based on the time relationship between the frame image corresponding to the first posture feature and the target frame image, the playback speed of the fitness video is adjusted to synchronize the fitness action corresponding to the target frame image with the user's action posture.
  • determining the target frame image corresponding to the second posture feature of the user includes:
  • the electronic device determines the target frame image based on the total number of frames of the complete fitness action corresponding to the second posture feature and the average moving distance, where the average moving distance is the key bone node corresponding to the second posture feature from the initial position to the end of the complete fitness action The average moving distance of the location.
  • the electronic device calculates the speed of the user when doing the fitness action based on the average moving distance and the number of frames of the fitness action.
  • the camera of the electronic device collects the user's action posture in real time. When the user repeats the same fitness action, it calculates the real-time average movement distance of all the bone nodes involved in the fitness action, and correspondingly plays the frame corresponding to the average movement distance to achieve control playback The purpose of fitness video playback speed.
  • the average moving distance is that the key bone node corresponding to the second posture feature occurs in the three directions of the X axis, the Y axis, and the Z axis from the initial position to the end position in the three-dimensional coordinate system.
  • the average value of the moving distance is that the key bone node corresponding to the second posture feature occurs in the three directions of the X axis, the Y axis, and the Z axis from the initial position to the end position in the three-dimensional coordinate system.
  • the embodiment of the first aspect of the present application discloses a method for adaptive synchronization of actions.
  • the number of frames of each fitness action of the fitness video displayed on the display screen of the electronic device and the number of frames of each skeletal node when the user completes each fitness action are collected.
  • the movement distance corresponds to the movement distance that occurs when the user completes each fitness movement.
  • the number of frames that matches the movement distance is played correspondingly, so that the playback speed of the fitness movement demonstrated by the trainer in the fitness video is synchronized with the speed of the fitness movement performed by the user, ensuring that This improves the continuity and rhythm of the user's fitness actions with the fitness video, and improves the user's sense of fitness experience.
  • the electronic device when the time point corresponding to the target frame image exceeds the time point of the frame image corresponding to the first posture feature, the electronic device adjusts the playback speed of the fitness video Is a target speed, where the target speed is greater than the current playback speed of the fitness video.
  • the time point corresponding to the target frame image refers to the value of the time corresponding to the target frame image
  • the time point of the user's current fitness action refers to the time point corresponding to the first posture feature of the user's current fitness action.
  • the relationship between the time point of the user's current fitness action and the time point corresponding to the target frame image is called the time relationship.
  • the electronic device controls the fitness video to be played The fitness action jumps directly to the target frame image.
  • the time relationship between the time point of the frame image of the fitness action of the currently played fitness video and the time point of the target frame image is: the time of the frame image of the fitness action of the currently played fitness video is earlier than the time of the target frame image.
  • the electronic device controls the fitness video playback and is controlled by The currently played fitness action jumps directly to the target frame image.
  • the electronic device when the fitness action is not synchronized with the user's action posture, the electronic device provides voice prompts and/or text prompts. Wherein, when the fitness action is not synchronized with the user's action posture, the electronic device displays words such as "action not synchronized” on the display screen or prompts "action not synchronized” through a speaker.
  • the electronic device displays the fitness video on a full screen.
  • the video interface when the video interface is displayed in a full screen, the video interface may occupy all the display area of the display screen.
  • the full-screen display of the video interface refers to that only the video interface is displayed on the display screen, and no other content is displayed.
  • the video interface can also only occupy part of the display area of the display screen.
  • the video interface is displayed in the middle part of the display screen, and it can also be viewed when the edge part of one or both sides is white or black.
  • the video interface is displayed on the full screen of the display screen.
  • the user's action posture is displayed in the floating window of the display screen of the electronic device.
  • the electronic device displays the user's real-time fitness window on the full screen of the display screen, and displays the fitness video window floating in the lower left corner of the display screen. And the text prompt of the current fitness action is displayed on the display screen.
  • the electronic device stores the user's action posture; the electronic device determines the user’s action posture based on the standard fitness action corresponding to the user’s action posture.
  • the action posture standard does not match;
  • the electronic device replays the fitness speed at which the user performs the fitness action corresponding to the non-standard action
  • the standard fitness action in the fitness video is played, and the standard fitness action corresponds to the fitness action corresponding to the non-standard action.
  • the electronic device provides text and/or voice explanation of the non-standard action.
  • the electronic device determines that the user has not completed the fitness action based on the user's motion posture and motion trajectory collected in real time by the camera, the electronic device pauses playing the fitness video, and displays the fitness video on the electronic device.
  • the display shows the text prompt of the current fitness action being performed by the user until the camera collects in real time that the user has completed the fitness action that has been broadcasted and the user’s current fitness action matches the action posture corresponding to the current pause screen.
  • the video playback is resumed at the current pause time, or the fitness video is played back to the screen corresponding to the user's current action posture to synchronize the fitness action again.
  • the electronic device plays fitness videos on the display screen and collects the user’s action posture in real time.
  • the electronic device determines whether the user’s fitness action is standard.
  • the movement is regarded as a non-standard fitness movement, and the fitness speed at which the user performs the non-standard fitness movement is calculated.
  • the electronic device plays the standard fitness movement demonstrated by the instructor corresponding to the non-standard fitness movement in the fitness video at the fitness speed, so as to respond to the non-standard fitness movement performed by the user. Standard fitness exercises are corrected.
  • the electronic device stores the video of the non-standard fitness actions performed by the user. After the entire fitness video on the display screen is played, it will play the non-standard fitness video that the user did wrong, and perform it with the standard fitness video demonstrated by the instructor. Comparing and explaining, correcting users' wrong fitness actions, is conducive to the user's physical health and further enhances the user's sense of experience.
  • an electronic device including:
  • a memory stores synchronization instructions
  • the processor when the processor executes the synchronization instruction, implements the steps of the action adaptive synchronization method mentioned in any one of the above.
  • an embodiment of the present application discloses a motion adaptive synchronization device, the motion adaptive synchronization device includes:
  • Play module used to play fitness videos
  • the collection module is used to collect the user's action posture
  • the matching module is used to match the fitness action currently played in the fitness video with the user's action posture.
  • the adjustment module is used to adjust the playing speed of the fitness action in the fitness video, so that the fitness action is synchronized with the user's posture.
  • Figure 1(a) is a schematic structural diagram of a smart screen in an application scenario shown in an embodiment of the application;
  • Figure 1(b) is a schematic diagram of the positional relationship between the smart screen and the image acquisition module shown in an embodiment of the application;
  • FIG. 1(c) is a schematic diagram of the use state of the action-adaptive synchronization device shown in an embodiment of this application;
  • Figure 1(d) is a schematic diagram of a human skeleton model shown in an embodiment of the application.
  • Figure 1(e) is a schematic diagram of a UI interface of a smart screen shown in an embodiment of the application
  • Figure 1(f) is a schematic diagram of a fitness page after a user clicks on a fitness APP according to an embodiment of the application;
  • 2(a) to 2(d) are UI interface diagrams of an action adaptive synchronization method shown in an embodiment of this application;
  • Figure 3(a) is a schematic flowchart of an action adaptive synchronization method shown in an embodiment of this application;
  • FIG. 3(b) is a schematic diagram of an action adaptive synchronization state shown in an embodiment of this application.
  • 4(a) to 4(c) are UI interface diagrams of another action adaptive synchronization method shown in an embodiment of this application;
  • FIG. 5 is a schematic flowchart of another action adaptive synchronization method shown in an embodiment of this application.
  • 6(a) to 6(c) are UI interface diagrams of another method for adaptive synchronization of actions shown in an embodiment of this application;
  • FIG. 7 is a schematic flowchart of another action adaptive synchronization method shown in an embodiment of the application.
  • FIG. 8 is a schematic structural diagram of an electronic device shown in an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of an SOC shown in an embodiment of the application.
  • module can refer to or include an application specific integrated circuit (), an electronic circuit, a processor (shared, dedicated, or group) that executes one or more software or firmware programs, and/ Or memory, combinational logic circuits, and/or other suitable hardware components that provide the described functions, or may be part of these hardware components.
  • the processor may be a microprocessor, a digital signal processor, a microcontroller, etc., and/or any combination thereof.
  • the processor may be a single-core processor, a multi-core processor, etc., and/or any combination thereof.
  • Electronic devices include, but are not limited to, mobile phones, tablets, laptop computers, desktop computers, virtual reality or augmented reality devices, smart screens and other electronic devices.
  • the electronic devices include but are not limited to display screens and image acquisition devices.
  • One of the purposes of setting the display screens on the electronic devices is to display fitness videos.
  • One of the purposes of setting up a video capture device on an electronic device is to capture the user's movement posture within the collection range of the video capture device of the electronic device.
  • the movement distance of each skeletal node when the user completes each fitness action, the movement distance that the user completes each fitness action and the total number of frames of the fitness action in the fitness video are used to control the playback speed of the fitness video, so that the fitness video
  • the playback speed of the fitness action is synchronized with the speed at which the user performs the fitness action.
  • Figure 1(a) is a schematic structural diagram of a smart screen in an application scenario shown in an embodiment of this application
  • Figure 1(b) is a schematic diagram of a positional relationship between a smart screen and an image acquisition module shown in an embodiment of this application
  • Figure 1(c) is A schematic diagram of the use state of an action-adaptive synchronization device shown in an embodiment of this application
  • Figure 1(d) is a schematic diagram of a human skeleton model shown in an embodiment of this application.
  • Figure 1(e) is a schematic diagram of a smart screen shown in an embodiment of this application Schematic diagram of the UI interface.
  • Fig. 1(f) is a schematic diagram of the fitness page after the user clicks on the fitness APP according to an embodiment of the application.
  • the electronic device is a smart screen as an example to describe the action adaptive synchronization method provided in the embodiments of the present application.
  • the smart screen 10 includes: a processor 101, a power module 102, a memory 103, a wireless communication module 104, a display screen 105, an image acquisition module 106, and so on.
  • the structure shown in FIG. 1(a) illustrated in the embodiments of the present application does not constitute a specific limitation on the smart screen 10.
  • the smart screen 10 may include more or fewer components than shown in FIG. 1(a), or combine certain components, or split certain components, or arrange different components.
  • the components shown in Figure 1(a) can be hardware, software, or a combination of software and hardware.
  • the processor 101 may include one or more processing units for application on the smart screen 10.
  • the processor 101 includes, but is not limited to, a central processing unit (CPU), and image processing.
  • processor Graphics Processing Unit, GPU
  • digital signal processor Digital Signal Processing, DSP
  • microprocessor Micro-programmed Control Unit, MCU
  • artificial intelligence Artificial Intelligence, AI
  • programmable logic device Field Programmable Gate Array, FPGA
  • a storage unit may be provided in the processor 101 for storing instructions and data.
  • the storage unit in the processor 101 is a cache memory. It should be noted that the processor 101 may also serve as a controller.
  • the power module 102 may provide a battery, a battery management component, etc., which are applied to the smart screen 10.
  • the power management component is used to manage the charging of the power supply and the power supply of the power supply to other modules.
  • the battery can be a lithium battery, a lead-acid battery and other rechargeable batteries.
  • the shape of the battery can be but not limited to button type, square type, etc.
  • the memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the memory 103 includes, but is not limited to, any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as a hard disk drive (HDD), and an optical disk (compact disc). , CD) drive, at least one of the digital versatile disc (digital versatile disc, DVD) drive, the fitness video tutorial can be cached in the memory 103, when the user determines to play the fitness video tutorial, the fitness video tutorial can be directly retrieved from the memory 103 And play on the display screen 105.
  • the memory 103 can also pre-store a human skeleton model. Each bone node of the human skeleton model is numbered or defined with a name. The processor 101 can directly retrieve it from the memory 103 The human skeleton model is applied.
  • the wireless communication module 104 may provide applications on the smart screen 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC) and other wireless communication solutions, smart screen 10 can Communicate with the network, mobile phones, remote controllers, etc. through wireless communication technology.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • Bluetooth bluetooth, BT
  • global navigation satellite system global navigation satellite system
  • frequency modulation frequency modulation
  • FM near field communication technology
  • NFC near field communication
  • the wireless communication module 104 may be a Bluetooth chip, and the communication method is Bluetooth communication, in order to reduce the power consumption of the Bluetooth chip on the smart screen 10 , Bluetooth chip can be selected low-power Bluetooth chip, and its model can be selected as NRF52810-QFAA-R Bluetooth 5.0 low-power Bluetooth chip.
  • the display screen 105 may provide an application on the smart screen 10 for displaying human-computer interaction interfaces, images, fitness APP interaction interfaces, fitness videos, and the like.
  • the display screen 105 includes but is not limited to a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (organic light-emitting diode, OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • Diode, AMOLED organic light-emitting diode
  • flexible light-emitting diode flex light-emitting diode, FLED
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the image acquisition module 106 may provide the image information used on the smart screen 10 to collect the posture and actions of the user in front of the smart screen 10.
  • the image acquisition module may be embedded in the shell of the smart screen 10. If it is embedded in the upper frame of the smart screen, it can also be set independently of the smart screen 10. As shown in FIG. 1(b), the image acquisition module 106 is arranged above the display screen of the smart screen 10.
  • the video transmission line connects to the smart screen 10.
  • the image acquisition module 106 may be a camera (such as an infrared camera) or the like.
  • the image acquisition module 106 includes but is not limited to a lens part, a chipset part, a PCB and a component part, etc.
  • the lens part includes but is not limited to the lens.
  • the lens is composed of lenses (convex lens and concave lens), which can be classified into plastic lenses and glass lenses in terms of material; according to color classification, lenses can be divided into color lenses and black and white lenses; according to functional classification, lenses Can be divided into fixed lens, zoom lens; according to the size classification, the lens can be divided into single-plate lens, pinhole lens, CS lens; according to the infrared classification, the lens can be divided into 850nm lens, 940nm lens, 650nm lens.
  • the chip set is the heart of the camera and is the main component that converts light signals into electrical signals. According to the characteristics of the photosensitive chip in the chipset, the main chip components are CCD chips and CMOS chips.
  • the PCB and components are an important part of the camera and the carrier of all devices. Its main function is to provide electrical connections between various parts.
  • the power supply is for the smart screen. After the smart screen is powered on, the user operates the smart screen and uses the fitness video tutorial played by the smart screen shown in the embodiments of this application Get fit.
  • the image acquisition module 106 is arranged on the upper edge of the display 105 of the smart screen 10.
  • the image acquisition module 106 can be connected to the smart screen 10 through a video transmission line, and the smart screen 10 plays and displays fitness videos of the fitness APP through the display 105.
  • the fitness video includes the action posture of the fitness coach, the guidance voice of the fitness video, and text information.
  • the fitness video can be pre-stored in the memory 103, or can be downloaded and played through the network in real time.
  • the memory 103 also pre-stores
  • the human skeleton model, each skeletal node of the human skeleton model is numbered or defined by name.
  • the bone points of the human body are set to 15 bone points, and the 15 bone points are the center of the head and the center of the neck (for example, the center of the neck).
  • Spine center) 2 left shoulder joint point 3, right shoulder joint point 4, left elbow joint point 5, right elbow joint point 6, left wrist joint point 7, right wrist joint point 8, left hip joint point 9, left knee joint point 10.
  • the torso includes, for example, the spine center of the torso and the torso center (for example, the spine center of the torso) 15
  • the left arm includes the left shoulder joint point 3
  • right arm includes right shoulder joint point 4
  • left leg includes left hip joint point 9, left knee joint point 10 and left ankle
  • the right leg includes right hip joint point 12, right knee joint point 13 and right ankle joint point 14.
  • each bone node in addition to numbering the bone nodes to distinguish, you can also define the name of each bone node to distinguish, such as head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right For the wrist, left hip, left knee, left ankle, right hip, right knee, right ankle, and torso, the embodiment of the present application does not limit the way in which the bone nodes are defined and distinguished.
  • the torso, left arm, right arm, left leg, and right leg coordinate with each other to complete a series of fitness exercises.
  • the displacement distance and displacement direction of each skeletal node of the human skeleton model can be mapped to the positive direction of the X axis, the negative direction of the X axis, the positive direction of the Y axis, and the negative direction of the Y axis of the three-dimensional coordinate system.
  • the positive direction of the Z axis and the negative direction of the Z axis are calculated through the three-dimensional coordinate system when each bone node is displaced.
  • the fitness actions and voice text displayed by the coach in the fitness video displayed on the display screen 105 are used to prompt the user to perform fitness actions simultaneously.
  • the image collection on the upper edge of the display screen 105 of the smart screen 10 The module 106 collects the posture information of the user’s fitness actions in real time and transmits it to the processor 101 of the smart screen 10 through a video transmission line or wireless communication.
  • the processor 101 reads the fitness video and performs frame processing on the fitness video, and the fitness video is involved All of the fitness actions are divided into segments (for example, a fitness action in the fitness video is to raise the left leg from the initial position to the left side, and then restore the left leg from the raised position to the initial position.
  • This fitness action can be divided There are two segments, that is, the left leg is raised from the initial position to the left side as the first segment, and the left leg is restored from the raised position to the initial position as the second segment), and then the video of each exercise is video Framing processing, video framing processing is to divide each fitness action in the fitness video into a frame by frame. Each frame in the video is a still picture to obtain frame images of consecutive moments of the fitness action.
  • the smart screen 10 calculates the average of the movement distance of the left hip joint point, the movement distance of the left knee joint point and the movement distance of the left ankle joint point of the fitness action of the user's left leg to the left side to complete the left leg to the left.
  • the average movement distance of the joint points involved in the side-lift fitness exercise and then calculate the ratio of the average movement distance to the total number of frames of the fitness exercise of raising the left leg to the left, and get the left leg to the left.
  • the movement unit distance of the joint points involved in the fitness exercise of the square raising corresponds to the number of frames that the fitness exercise of raising the left leg to the left side should be played.
  • FIG. 1(e) exemplarily shows an exemplary user interface 10 on the smart screen 10 for displaying applications installed on the smart screen 10.
  • the user interface 100 may include: a status bar 101 and an application icon 102. in:
  • the status bar 101 may include: one or more signal strength indicators 101C of wireless fidelity (Wi-Fi) signals, a battery status indicator 101D, and a time indicator 101E.
  • Wi-Fi wireless fidelity
  • the status bar 101 may also include: one or more signal strength indicators of a mobile communication signal (also called a cellular signal), and an operator name (for example, "China Mobile").
  • a mobile communication signal also called a cellular signal
  • an operator name for example, "China Mobile”
  • the application icon 102 can be: fitness icon 102A, gallery icon 102B, music icon 102C, application icon 102D, contact icon 102E, mailbox icon 102F, cloud sharing icon 102G, memo icon 102H, settings
  • the user interface 10 may also include a page indicator 103.
  • the icons of other applications may be distributed on multiple pages, and the page indicator 103 may be used to indicate the application in which page the user is currently browsing. The user can swipe the area of other application icons left and right to browse application icons in other pages.
  • the user interface 100 may further include: a navigation bar 104.
  • the navigation bar 104 may include system navigation keys such as a return key 104A, a home screen key 104B, and a multi-task key 104C.
  • system navigation keys such as a return key 104A, a home screen key 104B, and a multi-task key 104C.
  • the smart screen 100 can display the previous page of the current page.
  • the smart screen 100 can display the home interface.
  • the smart screen 100 may display the task recently opened by the user.
  • the naming of each navigation key can also be other, which is not limited in this application. Not limited to virtual keys, each navigation key in the navigation bar 104 can also be implemented as a physical key.
  • the user interface 100 exemplarily shown in FIG. 1(e) may be a home screen (Home screen).
  • the smart screen 100 may also include a front camera.
  • the front camera may also be called a secondary camera, which is mainly located above the screen of the smart screen 100.
  • the front camera is shown in Figure 1(a) in the embodiment of the present application.
  • the image acquisition module 106 in, which can collect image information such as postures and actions of the user in front of the smart screen 10, as well as self-portraits.
  • the smart screen 10 may also include a home screen key.
  • the main screen key can be a physical key or a virtual key.
  • the home screen key can be used to receive instructions from the user and return the currently displayed UI to the home interface, so that it is convenient for the user to view the home screen at any time.
  • the above instruction can be an operation instruction for the user to press the home screen key once, or an operation instruction for the user to press the home screen key twice in a short period of time, or the user to press and hold the home screen key for a predetermined period of time. Operation instructions.
  • the home screen key can also be integrated with a fingerprint recognizer, so that when the home screen key is pressed, fingerprints are collected and recognized accordingly.
  • FIG. 1(e) only exemplarily shows the user interface on the smart screen 10, and should not constitute a limitation to the embodiment of the present application.
  • the user can click on the fitness icon 102A on the user interface 100, the smart screen 10 detects the above-mentioned user operation, and in response to the above-mentioned user operation, the smart screen 10 displays the interface 11 of the fitness app.
  • the user interface 11 may include: an application title bar 201, a search box 202, a setting 203, a function bar 204, and a display area 205. in:
  • the application title bar 201 can be used to indicate that the current page is used to display the setting interface of the smart screen 10.
  • the presentation form of the application title bar 201 may be text information "smart fitness", icons or other forms.
  • the search box 202 can be used to search for fitness courses matching the character according to the character input by the user.
  • the setting 203 may receive a user operation (for example, a touch operation), and in response to the detected user operation, the smart screen 10 may display a setting interface of smart fitness.
  • a user operation for example, a touch operation
  • the function bar 204 may include: a user center control 204A, a course recommendation control 204B, and multiple course classification controls.
  • the above-mentioned multiple course classification controls may include, but are not limited to: fat burning zone control 204C, shaping zone control 204D, and shaping zone control 204E. in
  • the user center control 204A can receive a user operation (such as a touch operation), and in response to the detected user operation, the smart screen 10 can display the interface content of the user's personal center in the display area 205.
  • a user operation such as a touch operation
  • the course recommendation control 204B can receive a user operation (such as a touch operation), and in response to the detected user operation, the smart screen 10 can display one or more recommended fitness courses in the display area 205 of the display screen 105.
  • the display area 205 displays the course covers of multiple recommended courses, as well as the course classification, duration, and name of each recommended course.
  • the controls in the above-mentioned multiple course classification controls can receive user operations (such as touch operations).
  • the smart screen 10 can display one or more corresponding course classification controls in the display area 205 of the display screen 105.
  • a course cover for a fitness course can be displayed.
  • the course cover or name of the aforementioned fitness course can receive the user's playback operation (such as touch operation).
  • the smart screen 10 can display the specific fitness course on the display screen. content.
  • the fitness app may be started in response to a user's touch operation on the icon of the fitness app, for example, single click, double tap, long press, and so on.
  • the display screen is equipped with a touch panel, which can be used to receive a user's touch operation.
  • the touch operation refers to the operation of the user's hand, elbow, stylus, etc., touching the display screen.
  • the user can open the fitness app interface 11 by pressing the button to turn on the first control mode; or, by detecting the voice input by the user, open the fitness app interface 11; or, by drawing a specific shape (such as Z-shape, rectangle, Circle, etc.) Open the interface 11 of the fitness app.
  • a specific shape such as Z-shape, rectangle, Circle, etc.
  • the user can also control the smart screen 10 to display the fitness app interface 11 through the remote control; the user can also control the smart screen 10 to display the fitness app interface 11 through specific gestures.
  • user operations are not specifically limited.
  • Fig. 1(e) only exemplarily shows the fitness app interface on the smart screen 10, and should not constitute a limitation to the embodiment of the present application.
  • Fitness courses usually include multiple actions, and there can be a preset rest time between two consecutive actions.
  • the fitness course can be recommended by the smart screen based on the user's historical fitness data, or can be selected by the user according to actual needs.
  • Fitness courses can be played locally or online. There is no specific limitation here.
  • the smart screen 10 can receive the user's playback operation. In response to detecting the above-mentioned playback operation, the smart screen 10 can display the specific content of the fitness course in the fitness course display area of the display screen, and at the same time display the specific content of the fitness course on the display screen.
  • the user’s fitness display area displays the user’s body posture in real time.
  • the smart screen 10 displays the user's fitness video in real time in the user fitness display area according to the video data collected by the camera.
  • the aforementioned camera is used as the image acquisition module 106 of the smart screen. It may be the front camera of the smart screen 10, and the aforementioned camera may also be an external camera of the smart screen 10, which is not specifically limited here.
  • an exercise adaptive synchronization method provided by the embodiment of the present application will be described by taking the fitness action of "straight back and back, and raise the left knee to the left side from the front of the eyes" as an example.
  • the user can click on the recommended course displayed in the display area 205, the smart screen 10 detects the above user operation, and in response to the above user operation, the smart screen 10 displays the training interface 12.
  • the training interface 12 includes a fitness course window 301 and a user fitness window 302. in:
  • the fitness course window 301 is used to display specific content of the fitness course.
  • the user fitness window 302 is used to display the user's fitness actions collected by the camera in real time.
  • the camera that plays fitness videos and smart screens on the display screen collects the user's movement posture in real time.
  • the trainer and the user's movements in the fitness video are in the initial state, and the upcoming UI is displayed on the initial UI interface.
  • the text description of the fitness action the right side shows the fitness exercise demonstrated by the coach, the left side shows the user’s current posture, the middle position of the display 105 shows the fitness exercise essentials of the text prompt of the fitness exercise, and then starts to play the fitness video on the display .
  • the smart screen 10 may display a user's fitness video in a full screen, and display a small window of fitness courses floating on the display screen.
  • the smart screen 10 displays the user fitness window 302 in the full screen of the training interface 12, and displays the fitness course window 301 floating in the lower left corner of the display screen. And the text prompt of the current fitness action is displayed on the training interface 12.
  • the smart screen 10 displays fitness courses on a full screen, and a small window that displays a user's fitness video is floating on the display screen.
  • the video interface when the video interface is displayed in a full screen, the video interface may occupy all the display area of the display screen.
  • the full-screen display of the video interface refers to that only the video interface is displayed on the display screen, and no other content is displayed.
  • the video interface can also only occupy part of the display area of the display screen.
  • the video interface is displayed in the middle part of the display screen, and it can also be viewed when the edge part of one or both sides is white or black.
  • the video interface is displayed in full screen on the screen.
  • the full-screen display of the video interface may mean that while the video interface is displayed on the display screen, system-level interface elements, such as status bar, floating shortcut menu, etc., can also be displayed.
  • system-level interface elements such as status bar, floating shortcut menu, etc.
  • the fitness course window 301 and the user fitness window 302 may also be displayed in other display modes, which are not specifically limited in the embodiment of the present application.
  • the smart screen 10 determines the key bone nodes involved in the fitness action demonstrated by the trainer in the fitness video and the key bones involved in the user’s current action posture collected by the smart screen’s camera Nodes, and based on the key bone nodes, determine whether the fitness actions of the user and the coach in the fitness video are synchronized. If they are not synchronized, the smart screen 10 controls and adjusts the playback speed of the fitness video.
  • the smart screen displays the coach’s action of “straight back and raise the left knee to the left” in real time on the display screen of the smart screen.
  • the coach’s gesture of “raising left knee to the left” is displayed on the screen at the current moment (the screen shows the 50th frame when the left knee is raised to the standard position), on the upper left of the screen
  • the corner also displays the text prompt of the fitness action "back straight, visually raise the left knee to the left side”.
  • the user compares the fitness action and text prompt demonstrated by the trainer on the display to perform fitness.
  • the lower left corner of the display shows that the user's action posture is "left knee raised to the left” in real time (the display shows the picture of frame 25 when the left knee is raised to half the distance from the standard position), which is obvious What’s more, when the user initially does the fitness action of "back straight, looking forward to the left knee and raising the left knee to the left", the user’s fitness action is not consistent with the fitness action demonstrated by the coach in the fitness video, that is, It is said that the user’s fitness speed is slower than the fitness speed demonstrated by the trainer in the fitness video.
  • text prompts can be provided on the display screen, such as the text prompt "Please note that the action does not match".
  • the playback speed of the fitness video is adjusted, that is, the playback speed of the fitness video is adjusted to 0.5 times speed and the text prompt "Currently at 0.5 times speed is displayed on the display screen" "Play”, so that when the user's next action is “raise the left knee to half the distance from the standard position", in the fitness video, "back straight, look forward to the left knee to the left side
  • the fitness action “High” plays the 25th frame to ensure that the playback speed of the fitness action demonstrated by the instructor in the fitness video is synchronized with the speed of the fitness action performed by the user.
  • the process of performing action adaptive synchronization through the present application is as follows:
  • Step S30 The power module supplies power to the smart screen.
  • the user operates the remote control to control the smart screen to turn on, and clicks on the fitness app on the interactive interface of the smart screen’s display screen to open the fitness video on the fitness app and play it, among which, play on the smart screen
  • the fitness video if the fitness video is pre-stored in the memory of the smart screen, the fitness video is directly extracted from the memory and played on the display screen. If the fitness video is not pre-stored in the memory, the fitness video is downloaded through the network and displayed Played on the display screen and buffered in the memory.
  • the fitness video contains multiple fitness exercises demonstrated by the fitness trainer, voice guidance, and text prompts.
  • the first fitness exercise is to straighten your back and look visually. Raise the left knee from the front to the left.
  • the second exercise is to bend the left side of the body and touch the elbow and knee.
  • the third exercise is to raise the leg (both the left leg and the right leg are completed once a raised leg is complete).
  • Step S31 The smart screen reads each fitness action in the fitness video in sequence according to the playback time, and performs video framing for each fitness action.
  • Video framing is a picture that divides each fitness action in the fitness video into one frame by one frame.
  • Each frame in the video is a still image, so that each fitness action is divided into multiple frames of image images, each frame of each continuous fitness action in the fitness video is a still image, for example Divide the first fitness movement into 50 frames from the back straight and the movement from the front to the left knee lifted to the left.
  • the second fitness movement is to bend the left side of the body with the elbow touching the left knee.
  • the action is divided into 25 frames
  • the third action is the action of raising the leg, divided into 50 frames.
  • Step S32 The smart screen recognizes the trajectory of each fitness action demonstrated by the coach of the fitness video, extracts the text description and voice description of each fitness action, and parses the keywords from it to determine the bones involved in each fitness action demonstrated by the coach Information about the node.
  • the analysis of the motion trajectory and keywords of fitness actions can be realized by machine learning, such as Long Short-Term Memory (LSTM), Support Vector Machine (SVM), and so on. Take, for example, that the first fitness action played in the fitness video is "back straight, look forward to the left knee to the left side" as an example. While the instructor demonstrates the fitness exercises, the instructor will broadcast the prompt voice of "back straight, look forward to the left knee to the left side” and display it in the form of text on the display.
  • LSTM Long Short-Term Memory
  • SVM Support Vector Machine
  • the smart screen recognizes fitness based on LSTM Exercise and extract keywords from the prompt voice and text: "lower back”, “knee”, “left side” and “eye front” to divide the body of the fitness exercise into head, neck, torso and left
  • the four parts of the leg, and the bone nodes involved in the above body parts are identified as the head center 1, the neck center 2, the torso center 15, the left hip joint point 9, the left knee joint point 10, and the left ankle joint point 11.
  • each fitness action can also be segmented.
  • the first fitness action played in the fitness video is "back straight, look forward to the left knee to the left side”
  • LSTM divides this fitness exercise into two segments, the first segment is “back straight, look forward”, and the second segment is "raise the left knee to the left”.
  • a fitness exercise is divided into two segments , Can better synchronize with the user's fitness speed.
  • Step S33 When the smart screen displays the fitness video, the user stands within the camera range of the camera facing the smart screen, and follows the fitness actions demonstrated by the instructor displayed on the display, text prompts, etc. to perform fitness actions. The user does this for the first time During a certain fitness action, the camera can collect the user's action posture within the camera range at a sampling frequency of 5 times per second and transmit it to the processor. Based on the collected action posture, the processor extracts the fitness action currently displayed on the display from the memory.
  • the first fitness action played in the fitness video is "back straight, the front of the eye is raised to the left knee to the left" as an example, the fitness action is 50 frames in total .
  • the bone nodes involved in this action are head center 1, neck center 2, torso center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11, as shown in Figure 3(b),
  • the displacement directions of the left knee joint point 10 and the left ankle joint point 11 are the positive direction of the Z axis and the positive direction of the Y axis.
  • the displacement distance of the left knee joint point 10 in the positive direction of the Z-axis from the initial position of this fitness exercise is 80cm
  • the displacement distance of the left knee joint point 10 in the positive direction of the Y-axis is 50cm
  • the left ankle joint point 11 from this From the initial position of the exercise the displacement distance to the positive direction of the Z-axis is 60m
  • the displacement distance of the left ankle joint point 11 to the positive direction of the Y-axis is 40cm
  • the displacement of the torso center 15 is zero
  • the displacement distance of the left knee joint point 10 is about 90.2cm
  • the displacement distance of the ankle joint point 11 is about 72.1cm.
  • the average displacement distance of the left knee joint point 10 and the left ankle joint point 11 of the fitness exercise "to the left knee raise to the left” is the displacement distance of the left knee joint point 10 and the displacement distance of the ankle joint point 11.
  • the average value is about 81.2cm
  • Step S34 The smart screen calculates the speed of the user during the fitness action based on the average moving distance and the number of frames of the fitness action.
  • the fitness action is a total of 50 frames, then the user completes the "back Straighten up, look forward to the left knee and lift up to the left side.”
  • This fitness action, the head center 1, the neck center 2, the left hip joint point 9, and the torso center 15 have zero displacement, and the left knee joint point 10 and the left ankle joint point 11 in the positive direction of the Z-axis and the Y-axis from the initial position of this exercise to the positive direction of the average displacement distance is 81.2cm, then the user is doing "back straight, looking forward to Raise your left knee to the left.
  • the fitness speed during this fitness exercise is
  • Step S35 The camera of the smart screen collects the user's action posture in real time at a sampling frequency of 5 times per second.
  • the real-time average movement distance of all the bone nodes involved in the fitness action is calculated, and the corresponding playback
  • the frame corresponding to the average moving distance achieves the purpose of controlling the playback speed of the fitness video.
  • the user is doing "back straight, looking forward to the left During the fitness exercise of raising the knee to the left, the displacement of the head center 1, the neck center 2, the left hip joint point 9, and the torso center 15 are zero, the left knee joint point 10 and the left ankle joint At point 11, the real-time average displacement distance in the positive direction of the Z-axis and the positive direction of the Y-axis from the initial position of this fitness exercise is 40cm.
  • the speed of the "high” fitness action is 0.62 frames/cm, then the fitness action of the fitness video is "back straight, look forward to the left knee to the left side” should be played to 0.62.
  • the user continues to perform the fitness exercise until the completion time (the real-time average displacement of the left knee joint point 10 and the left ankle joint point 11 in the positive direction of the Z-axis and the positive direction of the Y-axis is 81.2cm), the display is played on the smart screen "Straight back, look forward to the left knee lifted to the left side" this fitness action should play the 50th frame.
  • the user’s left knee joint point 10 and left ankle joint point 11 start from the initial position of this fitness exercise.
  • the real-time average displacement starting in the positive direction of the Z-axis and the positive direction of the Y-axis is 40cm.
  • the smart screen controls the action of "back straight, look forward to the left knee to the left side" in the fitness video. 25 frames (obviously, the time point corresponding to the target frame image (the value of the time corresponding to the target frame image) is less than the user's current fitness action (the time point corresponding to the first posture feature)) screen instead of the normal playback speed Play the 30th frame, that is, the smart screen controls "back straight, look forward to the left knee to the left side".
  • the playback speed of the fitness action is slower than “back straight, look forward to the left”
  • the normal playback speed (0.8 times speed) of the fitness exercise “knee raised to the left” is realized on the display screen of "back straight, look forward to the left knee and raise the left knee to the left”.
  • the playback speed of a fitness action matches the actual speed at which the user does “back straight and raises the left knee to the left side as seen from the front”.
  • the embodiment of the application discloses an adaptive synchronization method for actions.
  • the number of frames of each fitness action of the fitness video displayed on the display screen of the smart screen is relative to the movement distance of each bone node when the user completes each fitness action.
  • the movement distance that the user takes to complete each fitness action corresponds to the number of frames that match the movement distance, so that the playback speed of the fitness action demonstrated by the coach in the fitness video is synchronized with the speed at which the user performs the fitness action, ensuring that the user follows
  • the continuity and rhythm of the fitness movement performed by the fitness video improves the user's sense of fitness experience.
  • 4(a) to 4(c) are UI interface diagrams of another action adaptive synchronization method shown in an embodiment of the present application.
  • the fitness video is played on the display screen and the user’s action posture is collected in real time.
  • both the coach and the user’s actions in the fitness video In the initial state, the text description of the upcoming fitness action is displayed on the initial UI interface, the right side displays the fitness action demonstrated by the instructor, the lower left corner displays the user's current posture, and the upper left corner displays the text prompts of the fitness action essentials. Then start playing fitness videos.
  • the smart screen determines the bone nodes involved in the fitness action demonstrated by the trainer in the fitness video and the bone nodes involved in the user's current posture. The smart screen determines whether the fitness action played by the fitness video matches the fitness action performed by the user. If it matches, it is normal Play the fitness video on the display. If it does not match, the smart screen adjusts the playback status of the fitness video on the display.
  • the real-time display shows that the coach says “the left side of the body bends and the elbow touches the knee" in real time.
  • Knee touch” action posture the current moment the display shows the coach’s action posture of "the left side of the body is bent and the elbow touches the knee" (the screen shows the 25th frame of the elbow and knee touch)
  • the screen shows the 25th frame of the elbow and knee touch
  • there is also a text prompt of the fitness action "Bend the left side of the body and touch the elbow and knee". The user compares the fitness action demonstrated by the trainer and the text prompt to perform fitness and collects the user's real-time action posture.
  • the user’s action posture is displayed in real time as the third fitness action "leg raise", it is determined that the user has completed the second fitness action at this time, and the text prompt "Please pay attention to the action” is displayed on the display screen. Does not match" to prompt the user.
  • the processor controls the fitness video to skip the second fitness action directly and displays the text prompt "The previous action has been skipped for you" on the display screen. , Go to the third fitness action “leg raise” currently in progress by the user.
  • the right side of the display shows the exercise demonstrated by the trainer, and the upper left of the display
  • the corner displays the text prompt of raising the leg
  • the lower left corner of the display shows the user’s real-time gesture of raising the leg at this time. This ensures that the fitness action of the fitness video currently displayed on the display is consistent with the fitness action currently performed by the user. Synchronization.
  • Fig. 5 is a schematic flowchart of another method for adaptive synchronization of actions shown in an embodiment of the application. As shown in Fig. 5, in one embodiment, the process of performing interactive fitness through the application is as follows:
  • Step S50 The user clicks on the fitness APP on the interactive interface of the display screen of the smart screen, and selects a fitness plan or a fitness course in the fitness APP (specifically, the fitness plan may include one or more fitness courses, which is not limited in this application ), among which, if the fitness course is pre-stored on the smart screen, the fitness video is directly extracted and played on the display.
  • the smart screen can also obtain the fitness course through the network and play it and cache it in the memory.
  • the fitness course includes a fitness coach Demonstration of multiple fitness actions, voice guidance and text prompts and other information.
  • the first fitness action is to straighten the back and look forward to the left knee to the left side
  • the second fitness action In order to bend the left side of the body and touch the elbows and knees, the third action is to raise the leg (both the left leg and the right leg complete one leg raise is a complete leg raise), etc.
  • the way of playing fitness videos can also be other ways (for example, the user sends voice commands to the smart screen (such as playing a video) through voice interaction, for example, if the user says fitness, the smart screen automatically opens the fitness app).
  • the application embodiment is not limited to the method of playing the fitness video when the user clicks on the fitness video.
  • Step S51 The smart screen reads each fitness action in the fitness video in sequence according to the playback time.
  • Each continuous fitness action in the fitness video can be composed of multiple still picture frames.
  • the first fitness action is a backrest Straightly and visually look forward to raising the left knee to the left side, it is divided into 50 frames.
  • the second exercise is the left side of the body and the touch of the elbow and the left knee is divided into 25 frames, and the third movement is the raised leg. Divided into 50 frames.
  • Step S52 The smart screen recognizes the trajectory of each fitness action demonstrated by the coach of the fitness video, extracts the text description and voice description of each fitness action, and parses keywords from it to determine the bone node information involved in each fitness action (Number or name).
  • the analysis of the motion trajectory and keywords of fitness actions can be realized by machine learning, such as Long Short-Term Memory (LSTM), Support Vector Machine (SVM), and so on.
  • LSTM Long Short-Term Memory
  • SVM Support Vector Machine
  • the coach demonstrates the exercise, the coach will broadcast the voice of "back straight” Straight, look straight ahead to the left knee raised to the left” prompt voice and display it in text form on the display.
  • the smart screen recognizes fitness actions based on LSTM and extracts the keywords “lower back”, “knee”, and “left”.
  • the body is divided into four parts: head, neck, torso and left leg, and the bone nodes involved in the above body parts are identified as head center 1, neck Section center 2, trunk center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11.
  • Step S53 When the display screen of the smart screen plays fitness videos, the user stands within the camera range of the camera facing the smart screen, and follows the fitness actions demonstrated by the coach displayed on the display screen, text prompts, etc., to perform fitness actions, and the user does something During a fitness action, the camera can collect the user's action posture within the camera range at a sampling frequency of 5 times per second and transmit it to the processor. Based on the collected action posture, the processor extracts the fitness action currently being played on the display screen from the memory.
  • LSTM machine learning
  • Step S54 The smart screen captures in real time the motion trajectory and motion posture of the bone node corresponding to the fitness action of the fitness video played on the current display screen, and the motion trajectory and motion trajectory of the bone node involved in the current fitness action collected by the user through the camera. For the action posture, the smart screen judges whether the fitness action played by the fitness video matches the fitness action performed by the user, if it matches, it goes to S55, if it does not match, it goes to S56.
  • the fitness action played by the fitness video and the fitness performed by the user can be judged by the bone node number or name of the coach involved in the fitness action currently played on the display screen and the user's bone node name or number involved in the fitness action currently performed by the user.
  • action posture the first fitness action of the fitness video displayed on the display screen is waist back support Straightly and visually raise the left knee to the left side
  • the second exercise is to bend the left side of the body and touch the elbow and knee.
  • the camera of the smart screen collects that the user is performing the second exercise "Left side of the body” Bend and touch your elbows and knees" and transmit to the processor.
  • the processor learns through the LSTM that the user’s current second fitness action "the left side of the body is bent and the elbows and knees touch" the bone nodes involved are the head center 1, the neck center 2, the torso center 15, and the left hip joint. Point 9, left knee joint point 10, left elbow joint point 5, left wrist joint point 7, and left ankle joint point 11.
  • the smart screen analyzes the user's posture and motion trajectory collected by the camera, that is, the user's posture is left flexion, When the elbow and knee touch, the movement trajectory is: the body changes from positive to left flexion, the elbow and knee are close, that is, the head center 1, the neck center 2 and the trunk center 15 are tilted to the left, and the left knee joint point 10 is lifted up.
  • the smart screen determines that the user has completed the first fitness action; the current fitness action on the display screen extracted from the memory by the smart screen is " Raise the left knee to the left", the smart screen analyzes the exercise trajectory of the fitness exercise demonstrated by the coach currently displayed on the display, that is, the coach’s posture is raising the left knee, and the trajectory is: the left knee moves from the initial position to the The left side is raised, that is, the left knee joint point 10 and the left ankle joint point 11 are raised from bottom to top. In this way, the smart screen judges that the current screen is playing the first fitness action of the fitness video. At this time, the smart screen It is determined that the fitness action currently performed by the user does not match the fitness action currently displayed on the display screen.
  • the smart screen adjusts the playback status of the fitness video on the display, as follows: According to the time sequence, if the user has completed the fitness action of the fitness video currently being played on the display (the frame image of the fitness action of the fitness video currently being played) The time point (the time of the fitness action of the currently played fitness video) does not exceed the time point of the target frame image (the time of the fitness action of the target frame image), where the time point of the frame image of the fitness action of the currently played fitness video and The time relationship between the time points of the target frame image is: the time of the frame image of the fitness action of the currently played fitness video is earlier than the time of the target frame image).
  • the smart screen controls the fitness video at high speed (for example, 4 times speed is the target speed) to play the fitness action currently played on the display screen or directly skip the fitness action currently played on the display screen (the fitness action currently played is the frame image corresponding to the first posture feature) ) Play the next fitness action (target frame image) that the user is doing.
  • high speed for example, 4 times speed is the target speed
  • the fitness action currently played is the frame image corresponding to the first posture feature
  • the smart screen judges that the user has not completed the fitness action based on the user's action posture and motion trajectory collected in real time by the camera, and the smart screen pauses playing the fitness video and displays it on the smart screen
  • the screen displays the text prompt of the current fitness action being performed by the user until the camera collects in real time that the user has completed the fitness action that has been broadcasted and the user’s current fitness action matches the action posture corresponding to the current pause screen.
  • the video playback is resumed at the moment of pause, or the fitness video is played back to the screen corresponding to the user's current posture to perform the fitness action again.
  • the first fitness action of the fitness video displayed on the display screen is to straighten the back and raise the left knee to the left side
  • the second The fitness action is bending the left side of the body and touching the elbow and knee.
  • the camera of the smart screen collects that the user is performing the second fitness action "bending the left side of the body and touching the elbow and knee", and transmits it to the processor.
  • the processor learns through LSTM that the bone nodes involved in the second fitness action currently performed by the user are head center 1, neck center 2, torso center 15, left hip joint point 9, left knee joint point 10, and left elbow joint.
  • Point 5, left wrist joint point 7, left ankle joint point 11, the smart screen analyzes the user's posture and motion trajectory collected by the camera, that is, the user posture is the left side of the body, the elbow and the knee touch, and the motion trajectory is: It is becoming left flexion, the elbow is close to the knee, that is, the head center 1, the neck center 2 and the torso center 15 are tilted to the left, the left knee joint point 10 is lifted up, the left elbow joint point 5 and the left wrist joint point 7 Approach the left knee joint point 10, so the smart screen determines that the user has completed the first fitness action; the current fitness action being played on the display screen extracted from the memory by the smart screen is "raise the left knee to the left", the smart screen Analyze the trajectory of the fitness exercise demonstrated by the coach currently displayed on the display, that is, the coach’
  • the camera of the smart screen will collect the user's current fitness actions in real time, and the smart screen can play fitness videos at 4 times the speed until the fitness action played on the display matches the user's current fitness action, then the normal speed will be restored Play fitness videos.
  • An action adaptive synchronization method disclosed in the embodiments of the present application recognizes in real time the action posture and movement track of the coach of the fitness video played on the display screen, and recognizes the action posture and movement of the fitness action performed by the user collected by the camera of the smart screen Trajectory, when the two do not match, adjust the playback status of the fitness video on the display screen so that the fitness action of the fitness video currently displayed on the display screen is synchronized with the fitness action currently performed by the user, ensuring the continuity of the user during fitness And fluency.
  • 6(a) to 6(c) are UI interface diagrams of another method for adaptive synchronization of actions shown in an embodiment of the present application.
  • the fitness video is played on the display screen and the user's action posture is collected in real time.
  • the coach and the user's actions in the fitness video are both In the initial state, the text description of the upcoming fitness action is displayed on the initial UI interface, the right side displays the fitness action demonstrated by the instructor, the lower left corner displays the user's current posture, and the upper left corner displays the text prompts of the fitness action essentials. Then the smart screen control starts to play fitness videos.
  • the smart screen judges whether the fitness action performed by the user is standard. If it is not standard, the smart screen uses the fitness action as a non-standard fitness action, and calculates the fitness speed of the user performing the non-standard fitness action. The smart screen plays the fitness video at the fitness speed The standard fitness action demonstrated by the coach corresponding to the non-standard fitness action (wrong fitness action) is to correct the wrong fitness action performed by the user.
  • the coach’s motion posture of “left knee lifted to the left” is displayed on the screen (the display shows The 50th frame when the left knee is raised to the standard position), the text prompt of the fitness action is also displayed in the upper left corner of the display screen: “Straight back, look forward to raise the left knee to the left side”,
  • the user compares the fitness actions and text prompts demonstrated by the coach on the display to perform fitness, collects the user's real-time action posture and displays the user’s action posture in real time in the lower left corner of the display as "right knee lifted to the right”, which is obvious What’s more, when the user is doing the fitness exercise of "back straight, looking forward to the left knee to the left side", the fitness exercise demonstrated by the instructor is "back straight, looking forward to the left knee "Left side elevation” does not match, indicating that the user's fitness exercise is wrong at this time, and the text prompt "Please note that the exercise does not match” is displayed on the display screen.
  • the standard fitness action "Left Knee Raise to the Left” and the user's wrong fitness action “Right Knee Raise to the Right” demonstrated by the coach are simultaneously played on the display screen.
  • the video of the user's wrong fitness action can be displayed on the right side of the display screen, and the standard fitness action demonstrated by the coach can be displayed in the lower left corner of the display screen.
  • the text prompt of the standard fitness exercise demonstrated by the coach is displayed in the upper left corner, and the standard fitness video demonstrated by the coach is compared and explained, and the text prompt "Wrong action occurred, please watch your action replay” on the display screen. To remind the user, correct the user's wrong fitness action.
  • FIG. 7 is a schematic flowchart of another method for adaptive synchronization of actions shown in an embodiment of the application. As shown in FIG. 7, in an embodiment, the process of performing interactive fitness through the application is as follows:
  • Step S70 The power module supplies power to the smart screen.
  • the user operates the remote control to control the smart screen to turn on, and clicks on the fitness app on the interactive interface of the smart screen’s display screen to open the fitness video on the fitness app and play it, among which, play on the smart screen
  • the fitness video if the fitness video is pre-stored in the memory of the smart screen, the fitness video is directly extracted from the memory and played on the display screen. If the fitness video is not pre-stored in the memory, the fitness video is downloaded through the network and displayed Played on the display screen and buffered in the memory.
  • the fitness video contains multiple fitness exercises demonstrated by the fitness trainer, voice guidance, and text prompts.
  • the first fitness exercise is to straighten your back and look visually. Raise the left knee from the front to the left.
  • the second exercise is to bend the left side of the body and touch the elbow and knee.
  • the third exercise is to raise the leg (both the left leg and the right leg are completed once a raised leg is complete).
  • Step S71 The processor of the smart screen reads each fitness action in the fitness video in sequence according to the playback time.
  • Each continuous fitness action in the fitness video can be composed of multiple still picture frames.
  • the first fitness action is The back is straight, and the left knee is raised from the front to the left.
  • the second exercise is divided into 50 frames.
  • the second exercise is the left side of the body and the touch of the elbow and the left knee is divided into 25 frames.
  • the third movement is The high leg is divided into 50 frames.
  • Step S72 The smart screen recognizes the trajectory of each fitness action demonstrated by the coach of the fitness video, extracts the text description and voice description of each fitness action, and parses the keywords from it to determine what each fitness action in the fitness video involves The information (number or name) of the bone node.
  • the analysis of the motion trajectory and keywords of fitness actions can be realized by machine learning, such as Long Short-Term Memory (LSTM), Support Vector Machine (SVM), and so on. Take the first exercise played in the fitness video as "back straight, look forward to the left knee and raise the left knee to the left side” as an example. While the coach demonstrates the exercise, the coach will broadcast the voice of "back straight” Straight, look straight ahead to the left knee raised to the left” prompt voice and display it in text form on the display.
  • LSTM Long Short-Term Memory
  • SVM Support Vector Machine
  • the smart screen recognizes fitness actions based on LSTM and extracts the keywords “lower back”, “knee”, and “left”.
  • the body is divided into four parts: head, neck, torso and left leg, and the bone nodes involved in the above body parts are identified as head center 1, neck Section center 2, trunk center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11.
  • Step S73 When the display screen of the smart screen plays fitness videos, the user stands within the camera range of the camera facing the smart screen, and follows the fitness actions demonstrated by the coach displayed on the display screen, text prompts, etc., to perform fitness actions corresponding to the fitness actions, and the user does it for the first time
  • the camera can collect the user's action posture within the camera range at a sampling frequency of 5 times per second and transmit it to the processor. Based on the collected action posture, the processor extracts the fitness action currently displayed on the display from the memory.
  • the displacement direction of node 11 is the positive direction of the Z axis and the positive direction of the Y axis. Assume that the displacement distance of the left knee joint point 10 in the positive direction of the Z axis is 80cm, and the displacement distance of the left knee joint point 10 in the positive direction of the Y axis.
  • the displacement distance of the left ankle joint point 11 in the positive direction of the Z-axis is 60m
  • the displacement distance of the left ankle joint point 11 in the positive direction of the Y-axis is 40cm
  • the center of the head 1, the center of the neck 2, and the left hip joint Point 9 the displacement of the torso center 15 is zero
  • the displacement distance of the left knee joint point 10 is about 90.2cm
  • the displacement distance of the ankle joint point 11 is about 72.1cm.
  • the average displacement distance of the left knee joint point 10 and the left ankle joint point 11 of the fitness action "from the front to the left knee raise to the left” is the displacement distance of the left knee joint point 10 and the displacement of the ankle joint point 11.
  • the average value of the distance is about 81.2 cm.
  • the user After the user completes the first fitness exercise, he immediately performs the second fitness exercise with the left side of the body bend and the elbow touches the left knee until the user performs the entire fitness exercise indicated by the fitness video.
  • Step S74 The camera transmits the information of the user's fitness actions collected in real time to the processor and memory of the smart screen.
  • the memory stores the video of each fitness action performed by the user in the order of time recording, and the processor real-time Calculate the speed of each fitness action performed by the user each time and store the speed of each fitness action calculated in real time in the memory.
  • Step S75 The smart screen extracts from the memory the standard fitness actions demonstrated by the coach corresponding to each fitness action performed by the user, recognizes and matches to determine whether the fitness action performed by the user is standard, and executes it when the fitness action performed by the user is not standard
  • Step S751 stores the fitness action as an error action in the memory.
  • step S752 is executed to define the fitness action as a standard action, and the standard action is optionally stored in the memory.
  • the fitness action is a total of 50 frames, then the user completes the "back Straighten up, look forward to the left knee and lift up to the left side.”
  • This fitness action the head center 1, the neck center 2, the left hip joint point 9, and the torso center 15 have zero displacement, and the left knee joint point 10 and the left ankle joint point 11 have an average displacement distance of 81.2cm in the positive direction of the Z axis and the positive direction of the Y axis.
  • the speed during a fitness exercise is The smart screen stores the fitness action speed 0.62 frames/cm in the memory.
  • the camera collects the user's action posture at this time (the right knee is raised on the right side) and transmits it to the processor.
  • the processor recognizes the action posture based on the LSTM network
  • the user’s right knee joint point 13 and right ankle joint point 14 in the LSTM network are used by the processor to identify the fitness action of "back straight, look forward to the left knee to the left side” in the fitness video.
  • the coach’s bone nodes are left knee joint point 10 and left ankle joint point 11.
  • the smart screen will identify the user’s key bone nodes, right knee joint point 13 and right ankle joint point 14 and the coach’s key bone node left Knee joint point 10 and left ankle joint point 11 are compared and matched with the number or name of the bone node.
  • the number of the bone node of the user who is compared on the smart screen is not consistent with the number of the bone node of the coach in the fitness video, then it is determined
  • the user’s fitness action of "straight back and look forward to the left knee to the left side” is a wrong action.
  • the erroneous exercise action of "raise the left side” is stored in the memory. It is worth noting that the calculation method of the speed at which the user performs the fitness action is the same as the above-mentioned embodiment, and the details are not repeated here in the embodiment of the present application.
  • Step S76 After the user performs all the fitness actions indicated in the complete fitness video, the smart screen calculates the average speed of each fitness action, and still uses the fitness action as "back straight, look forward to the left knee to the left As an example, the user needs to do 3 times in the whole fitness video with "back straight, look forward to the left knee and raise the left knee to the left".
  • the smart screen extracts the user from the memory for the first time to do Straight, look straight ahead to the left knee and raise the left side to the left side of the fitness movement, the speed is The smart screen extracts from the memory the speed of the second time the user performs the fitness exercise of "back straight, looking forward to the left knee to the left side", the speed is 0.66 frames/cm, and the smart screen from the memory In extracting the user’s third fitness action of "back straight, looking forward to the left knee lifted to the left", the speed is 0.64 frames/cm, then the user does "back straight , The average speed of the fitness exercise "from the front to the left knee lifted to the left side” is 0.64 frames/cm.
  • Step S77 After the fitness video on the display screen of the smart screen is completed, the camera on the smart screen stores the recorded user's fitness video in the memory, and the smart screen extracts the non-standard fitness actions that the user has performed wrongly from the memory and the user performs the exercises.
  • the average speed of non-standard fitness actions the smart screen will display the non-standard fitness actions and the standard fitness actions of the coaches corresponding to the non-standard fitness actions on the same screen.
  • the standard fitness action demonstrated by the coach is played at the average speed of the non-standard fitness action performed by the user.
  • the fitness action of "back straight, look forward to the left knee to the left side” is a non-standard fitness action, and the average speed of this fitness action is 0.64 frames /cm
  • the smart screen controls the user’s non-standard action videos of "back straight, eyes forward to the left knee raised to the left” stored in the memory and "back straight, eyes straight” in the fitness video.
  • the standard action videos from the front to the left knee raised to the left are all played at a speed of 0.64 frames/cm.
  • voice explanations and voice prompts are provided to the user to correct the wrong fitness action of the user.
  • the smart screen stores the video of the wrong fitness action performed by the user in the memory. After the entire fitness video on the display screen is played, it extracts the wrong exercise by the user from the memory. The fitness video is compared and explained with the standard fitness video demonstrated by the instructor to correct the user's wrong fitness action, which is beneficial to the user's health and further enhances the user's experience.
  • FIG. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the application.
  • the controller hub 804 communicates with the processor 801 via a multi-drop bus such as a front side bus (FSB), a point-to-point interface such as a fast path interconnect (QPI), or similar connection.
  • the processor 801 executes instructions that control general types of data processing operations.
  • the controller hub 804 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown in the figure) and an input/output hub (IOH) (which may be on a separate chip) (Not shown in the figure), where the GMCH includes a memory and a graphics controller and is coupled with the IOH.
  • GMCH graphics memory controller hub
  • IOH input/output hub
  • the electronic device 800 may also include a coprocessor 806 and a memory 802 coupled to the controller hub 804.
  • a coprocessor 806 and a memory 802 coupled to the controller hub 804.
  • one or both of the memory 802 and the GMCH may be integrated in the processor 801 (as described in this application), and the memory 802 and the coprocessor 806 are directly coupled to the processor 801 and the controller hub 804, and control
  • the device hub 804 and the IOH are in a single chip.
  • the memory 802 may be, for example, dynamic random access memory (DRAM), phase change memory (PCM), or a combination of the two.
  • the memory 802 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the computer-readable storage medium stores instructions, specifically, temporary and permanent copies of the instructions.
  • the coprocessor 806 is a dedicated processor, such as, for example, a high-throughput MIC processor, a network or communication processor, a compression engine, a graphics processor, a GPGPU, or an embedded processor, or the like.
  • a dedicated processor such as, for example, a high-throughput MIC processor, a network or communication processor, a compression engine, a graphics processor, a GPGPU, or an embedded processor, or the like.
  • the optional nature of the coprocessor 806 is shown in dashed lines in FIG. 8.
  • the electronic device 800 may further include a network interface (NIC) 803.
  • the network interface 803 may include a transceiver, which is used to provide a radio interface for the device 800 to communicate with any other suitable devices (such as a front-end module, an antenna, etc.).
  • the network interface 803 may be integrated with other components of the electronic device 800.
  • the network interface 803 can realize the function of the communication unit in the above-mentioned embodiment.
  • the electronic device 800 may further include an input/output (I/O) device 805.
  • the input/output (I/O) device 805 may include: a user interface, which is designed to enable users to interact with the electronic device 800; the design of the peripheral component interface enables the peripheral components to also interact with the electronic device 800; and/or the design of sensors To determine environmental conditions and/or location information related to the electronic device 800.
  • Figure 8 is only exemplary. That is, although FIG. 8 shows that the electronic device 800 includes multiple devices such as the processor 801, the controller hub 804, and the memory 802, in actual applications, the devices using the methods of the present application may only include the electronic device 800. Some of the devices, for example, may only include the processor 801 and the NIC 803. The properties of optional devices in Fig. 8 are shown by dashed lines.
  • the instructions stored in the computer-readable storage medium of the electronic device 800 may include: when executed by at least one unit in the processor, cause the device to implement such as embodiment 1, embodiment 2, and embodiment 3.
  • the mentioned actions are adaptive synchronization method instructions.
  • the computer is caused to execute the above-mentioned method for adaptive synchronization of actions as mentioned in Embodiment 1, Embodiment 2 and Embodiment 3.
  • FIG. 9 is a schematic structural diagram of an SOC disclosed in an embodiment of the present application, and shows a block diagram of an SoC (System on Chip) 1000 according to an embodiment of the present application.
  • SoC System on Chip
  • similar parts have the same reference numerals.
  • dashed box is an optional feature of the more advanced SoC.
  • the SoC can be used in an electronic device according to an embodiment of the present application, and corresponding functions can be implemented according to the instructions stored in the SoC.
  • the SoC 1000 includes: an interconnection unit 1002, which is coupled to a processor 1001; a system agent unit 1006; a bus controller unit 1005; an integrated memory controller unit 1003; a group or one or more coprocessors 1007, which may include integrated graphics logic, image processors, audio processors, and video processors; a static random access memory (SRAM) unit 1008; and a direct memory access (DMA) unit 1004.
  • the coprocessor 1007 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor, etc.
  • a static random access memory (SRAM) unit 1008 may include one or more computer-readable media for storing data and/or instructions.
  • the computer-readable storage medium may store instructions, specifically, temporary and permanent copies of the instructions.
  • the instructions stored in the computer-readable storage medium may include: when executed by at least one unit in the processor, the electronic device is implemented as in embodiment 1, embodiment 2, and The instructions of the action adaptive synchronization method mentioned in the third embodiment.
  • the instructions are executed on the computer, the computer is caused to execute the above-mentioned method for adaptive synchronization of actions as mentioned in Embodiment 1, Embodiment 2 and Embodiment 3.
  • the embodiment of the present application also discloses a computer-readable storage medium, and a processing program is stored on the computer-readable storage medium.
  • the method of adaptive synchronization for the movement is also disclosed.
  • the computer-readable storage medium may be a read-only memory, a random access memory, a hard disk, or an optical disk.

Abstract

The present application relates to the technical field of computer applications. Disclosed is a movement self-adaptive synchronization method. The number of frames of each workout movement of a workout video displayed via a display screen by an electronic device corresponds to the collected movement distance of each bone node when each workout movement is completed by a user; for the movement distance covered by the user when each workout movement is completed, a number of frames matching the movement distance is correspondingly played back, this allows the playback speed of a workout movement demonstrated by an instructor in the workout video to be synchronized with the speed at which the user makes the workout movement, thus ensuring the continuity and rhythm of the user making workout movements with the workout video, and enhancing workout experience for the user.

Description

一种动作自适应同步方法及电子设备Action adaptive synchronization method and electronic equipment
本申请要求于2020年06月01日提交中国专利局、申请号为202010484845.8、申请名称为“一种动作自适应同步方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 1, 2020, the application number is 202010484845.8, and the application name is "an action adaptive synchronization method and electronic equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及计算机应用技术领域,尤其涉及一种动作自适应同步方法及电子设备。This application relates to the field of computer application technology, and in particular to an action adaptive synchronization method and electronic equipment.
背景技术Background technique
随着当代社会人们生活压力的不断加大,健身休闲时间严重不足,为了缩减用户去健身房的移动时间,越来越多的用户选择室内健身。用户在室内健身时,常常会通过电子设备,如手机、电脑、智慧屏等上的健身软件提供的健身视频教程学习健身动作,但是现在的健身软件只能提供健身视频教程,健身视频教程中用户做同一健身动作的速度和教练做健身动作的速度很难匹配,导致健身视频教程中教练和用户的健身动作不同步的问题,破坏用户作健身训练的连续性和节奏性,造成用户的健身体验低。With the increasing pressure of people’s lives in contemporary society, there is a serious shortage of fitness and leisure time. In order to reduce the time for users to move to the gym, more and more users choose indoor fitness. When exercising indoors, users often learn fitness actions through fitness video tutorials provided by fitness software on electronic devices, such as mobile phones, computers, smart screens, etc. However, current fitness software can only provide fitness video tutorials. Users in fitness video tutorials It’s difficult to match the speed of the same fitness action with the speed of the coach’s fitness action. This leads to the problem that the coach and the user’s fitness actions in the fitness video tutorial are not synchronized, which destroys the continuity and rhythm of the user’s fitness training, resulting in the user’s fitness experience Low.
发明内容Summary of the invention
本发明的目的在于提供一种动作自适应同步方法,保证了健身视频教程中教练和用户的健身动作的同步性,提高了用户的健身体验感的问题。The purpose of the present invention is to provide an action adaptive synchronization method, which ensures the synchronization of the fitness actions of the coach and the user in the fitness video tutorial, and improves the user's sense of fitness experience.
第一方面,本发明实施例公开了一种动作自适应同步方法,应用于电子设备,动作自适应同步方法包括:电子设备播放健身视频。其中,健身视频包含健身教练的动作姿态、健身视频的指导语音以及文字信息等信息。In the first aspect, an embodiment of the present invention discloses an action adaptive synchronization method, which is applied to an electronic device, and the action adaptive synchronization method includes: the electronic device plays a fitness video. Among them, the fitness video contains information such as the action posture of the fitness coach, the guidance voice of the fitness video, and text information.
电子设备采集用户的动作姿态。电子设备的图像采集模块可以提供应用在电子设备上的用于采集电子设备前的用户的姿态、动作等图像信息,图像采集模块可以镶嵌于电子设备的外壳上,如镶嵌于电子设备的上边框中,也可以独立于电子设备设置,图像采集模块设置在电子设备的显示屏的上方。图像采集模块可以为摄像头(如红外摄像头)等。The electronic device collects the user's action posture. The image acquisition module of the electronic device can provide the image information used on the electronic device to collect the posture, movement and other image information of the user in front of the electronic device. The image acquisition module can be embedded in the housing of the electronic device, such as the upper frame of the electronic device. , It can also be set independently of the electronic device, and the image acquisition module is set above the display screen of the electronic device. The image acquisition module may be a camera (such as an infrared camera) and the like.
电子设备对健身视频中当前播放的健身动作和用户的动作姿态进行匹配。其中,电子设备确定健身视频中教练示范的健身动作所涉及的关键骨骼节点和智慧屏的摄像头采集的用户当前的动作姿态涉及的关键骨骼节点,并基于关键骨骼节点确定用户和健身视频中教练的健身动作是否同步。The electronic device matches the fitness action currently played in the fitness video with the user's action posture. Among them, the electronic device determines the key bone nodes involved in the fitness action demonstrated by the coach in the fitness video and the key bone nodes involved in the user's current action posture collected by the camera of the smart screen, and determines the user and the coach in the fitness video based on the key bone nodes. Whether the fitness actions are synchronized.
根据本申请中的第一方面中的实施例,健身视频中可以由至少一个健身教练示范标准健身动作。According to the embodiment in the first aspect of the present application, at least one fitness trainer may demonstrate standard fitness actions in the fitness video.
根据本申请中的第一方面中的实施例,在确定关键骨骼节点时,可以通过以下步骤实施:According to the embodiment in the first aspect of the present application, when determining the key bone node, the following steps can be implemented:
电子设备获取健身视频中至少一个健身教练的一个或多个骨骼节点;The electronic device obtains one or more bone nodes of at least one fitness coach in the fitness video;
电子设备获取用户的一个或多个骨骼节点;The electronic device obtains one or more bone nodes of the user;
电子设备从健身视频中至少一个健身教练的一个或多个骨骼节点和用户的一个或多个骨骼节点中确定关键骨骼节点。The electronic device determines key bone nodes from one or more bone nodes of at least one fitness coach and one or more bone nodes of the user in the fitness video.
根据本申请中的第一方面中的实施例,确定关键骨骼节点包括:According to the embodiment in the first aspect of the present application, determining the key bone node includes:
电子设备从用户和至少一个健身教练的骨骼节点中选择当前示范的健身动作的关键骨骼节点,其中,关键骨骼节点为当前健身动作涉及的骨骼节点。The electronic device selects the key bone node of the currently demonstrated fitness action from the bone nodes of the user and at least one fitness trainer, where the key bone node is the bone node involved in the current fitness action.
根据本申请中的第一方面中的实施例,电子设备对健身视频中当前播放的健身动作和用户的动作姿态进行匹配包括:According to the embodiment in the first aspect of the present application, the electronic device matching the fitness action currently played in the fitness video with the user's action posture includes:
电子设备基于LSTM对健身视频当前中至少一个健身教练当前示范的健身动作和用户的动作姿态进行关键骨骼节点提取,得到当前示范的健身动作的第三姿态特征和用户的第四姿态特征,基于关键骨骼节点将第三姿态特征和第四姿态特征进行匹配。其中,第三姿态特征和第四姿态特征是关键骨骼节点的动作姿态。Based on LSTM, the electronic device extracts the key bone nodes of the fitness action currently demonstrated by at least one fitness trainer in the current fitness video and the user's action posture to obtain the third posture feature of the currently demonstrated fitness action and the fourth posture feature of the user, based on the key The skeleton node matches the third posture feature with the fourth posture feature. Among them, the third posture feature and the fourth posture feature are the action postures of the key bone nodes.
根据本申请中的第一方面中的实施例,电子设备基于LSTM对健身视频当前中至少一个健身教练当前示范的健身动作和用户的动作姿态进行关键骨骼节点提取,得到当前示范的健身动作的第一姿态特征和用户的第二姿态特征,将第一姿态特征和第二姿态特征进行匹配。其中,第一姿态特征和第二姿态特征是关键骨骼节点的动作姿态。According to the embodiment in the first aspect of the present application, the electronic device extracts the key bone nodes of the fitness action currently demonstrated by at least one fitness trainer in the current fitness video and the user's action posture based on the LSTM to obtain the first fitness action currently demonstrated A posture feature and a second posture feature of the user are matched with the first posture feature and the second posture feature. Among them, the first posture feature and the second posture feature are the action postures of the key bone nodes.
根据本申请中的第一方面中的实施例,对健身视频进行视频分帧,得到健身视频的连续时刻的帧图像。其中,电子设备按照播放时间顺序依次读取健身视频中的各个健身动作,并对各个健身动作进行视频分帧,视频分帧是将健身视频中每个健身动作分为一帧一帧的画面,视频中的每一帧都是一副静止的画面,从而将每一个健身动作划分为多帧图像画面。According to the embodiment in the first aspect of the present application, video framing is performed on the fitness video to obtain frame images of consecutive moments of the fitness video. Among them, the electronic device sequentially reads each fitness action in the fitness video according to the playback time sequence, and performs video framing for each fitness action. Video framing is a picture that divides each fitness action in the fitness video into one frame by one frame. Each frame in the video is a still picture, so that each fitness action is divided into multiple frames of image pictures.
若健身动作与用户当前的动作姿态不匹配,则电子设备调整健身视频中健身动作的播放速度,以使健身动作与用户的动作姿态同步。If the fitness action does not match the user's current action posture, the electronic device adjusts the playback speed of the fitness action in the fitness video to synchronize the fitness action with the user's action posture.
根据本申请中的第一方面中的实施例,电子设备确定与用户的第二姿态特征对应的目标帧图像。基于第一姿态特征对应的帧图像与目标帧图像的时刻关系,调整健身视频的播放速度,以使与目标帧图像对应的健身动作与用户的动作姿态同步。According to the embodiment in the first aspect of the present application, the electronic device determines the target frame image corresponding to the second posture feature of the user. Based on the time relationship between the frame image corresponding to the first posture feature and the target frame image, the playback speed of the fitness video is adjusted to synchronize the fitness action corresponding to the target frame image with the user's action posture.
根据本申请中的第一方面中的实施例,确定与用户的第二姿态特征对应的目标帧图像包括:According to the embodiment in the first aspect of the present application, determining the target frame image corresponding to the second posture feature of the user includes:
电子设备基于与第二姿态特征对应的完整健身动作的总帧数和平均移动距离确定目标帧图像,其中,平均移动距离为第二姿态特征对应的关键骨骼节点从完整健身动作的初始位置至结束位置的平均移动距离。其中,电子设备基于平均移动距离和该健身动作的帧数,计算用户在做该健身动作时的速度。电子设备的摄像头实时采集用户的动作姿态,用户再重复做同一健身动作时,计算涉及到该健身动作的所有骨骼节点的实时平均移动距离,对应播放该平均移动距离对应的画面帧,达到控制播放健身视频的播放速度的目的。The electronic device determines the target frame image based on the total number of frames of the complete fitness action corresponding to the second posture feature and the average moving distance, where the average moving distance is the key bone node corresponding to the second posture feature from the initial position to the end of the complete fitness action The average moving distance of the location. Wherein, the electronic device calculates the speed of the user when doing the fitness action based on the average moving distance and the number of frames of the fitness action. The camera of the electronic device collects the user's action posture in real time. When the user repeats the same fitness action, it calculates the real-time average movement distance of all the bone nodes involved in the fitness action, and correspondingly plays the frame corresponding to the average movement distance to achieve control playback The purpose of fitness video playback speed.
根据本申请中的第一方面中的实施例,平均移动距离为第二姿态特征对应的关键骨骼节点在三维坐标系中由初始位置至结束位置在X轴、Y轴和Z轴三个方向发生的移动距离的平均值。According to the embodiment in the first aspect of the present application, the average moving distance is that the key bone node corresponding to the second posture feature occurs in the three directions of the X axis, the Y axis, and the Z axis from the initial position to the end position in the three-dimensional coordinate system. The average value of the moving distance.
本申请第一方面实施例公开的一种动作自适应同步方法,电子设备的通过显示屏显示的健身视频的每一个健身动作的帧数和采集的用户的完成每一个健身动作时各个骨骼节点的移动距离相对应,用户完成每一个健身动作所发生的移动距离对应播放与该移动距离相匹配的帧数,使得健身视频中教练示范的健身动作的播放速度与用户作健身动作的速度同步,保证了用户随健身视频进行健身动作的连续性和节奏性,提高了用户的健身体验感。The embodiment of the first aspect of the present application discloses a method for adaptive synchronization of actions. The number of frames of each fitness action of the fitness video displayed on the display screen of the electronic device and the number of frames of each skeletal node when the user completes each fitness action are collected. The movement distance corresponds to the movement distance that occurs when the user completes each fitness movement. The number of frames that matches the movement distance is played correspondingly, so that the playback speed of the fitness movement demonstrated by the trainer in the fitness video is synchronized with the speed of the fitness movement performed by the user, ensuring that This improves the continuity and rhythm of the user's fitness actions with the fitness video, and improves the user's sense of fitness experience.
根据本申请中的第一方面中的实施例,所述目标帧图像对应的时刻点超出所述第一姿态特征对应的帧图像的时刻点时,所述电子设备调整所述健身视频的播放速度为目标速度,其中,所述目标速度大于所述健身视频当前的播放速度。According to the embodiment in the first aspect of the present application, when the time point corresponding to the target frame image exceeds the time point of the frame image corresponding to the first posture feature, the electronic device adjusts the playback speed of the fitness video Is a target speed, where the target speed is greater than the current playback speed of the fitness video.
其中,该目标帧图像对应的时刻点指的是目标帧图像对应的时间的数值,用户当前的健身动作的时刻点指的是用户当前的健身动作的第一姿态特征对应的时刻点。用户当前的健身动作的时刻点和目标帧图像对应的时刻点之间时刻之间的关系称为时刻关系。The time point corresponding to the target frame image refers to the value of the time corresponding to the target frame image, and the time point of the user's current fitness action refers to the time point corresponding to the first posture feature of the user's current fitness action. The relationship between the time point of the user's current fitness action and the time point corresponding to the target frame image is called the time relationship.
根据本申请中的第一方面中的实施例,所述目标帧图像对应的时刻点大于所述第一姿态特征对应的帧图像的时刻点时,所述电子设备控制所述健身视频由当前播放的健身动作直接跳转到所述目标帧图像。当前播放的健身视频的健身动作的帧图像的时刻点和目标帧图像的时刻点之间的时刻关系为:当前播放的健身视频的健身动作的帧图像的时间早于目标帧图像的时间。According to the embodiment in the first aspect of the present application, when the time point corresponding to the target frame image is greater than the time point of the frame image corresponding to the first posture feature, the electronic device controls the fitness video to be played The fitness action jumps directly to the target frame image. The time relationship between the time point of the frame image of the fitness action of the currently played fitness video and the time point of the target frame image is: the time of the frame image of the fitness action of the currently played fitness video is earlier than the time of the target frame image.
根据本申请中的第一方面中的实施例,所述目标帧图像对应的时刻点小于所述第一姿态特征对应的帧图像的时刻点时,所述电子设备控制所述健身视频回放并由当前播放的健身动作直接跳转到所述目标帧图像。According to the embodiment in the first aspect of the present application, when the time point corresponding to the target frame image is less than the time point of the frame image corresponding to the first posture feature, the electronic device controls the fitness video playback and is controlled by The currently played fitness action jumps directly to the target frame image.
根据本申请中的第一方面中的实施例,所述健身动作与所述用户的动作姿态不同步时,所述电子设备进行语音提示和/或文字提示。其中,健身动作与所述用户的动作姿态不同步时,电子设备在显示屏上显示“动作不同步”等词或者通过喇叭提示“动作不同步”。According to the embodiment in the first aspect of the present application, when the fitness action is not synchronized with the user's action posture, the electronic device provides voice prompts and/or text prompts. Wherein, when the fitness action is not synchronized with the user's action posture, the electronic device displays words such as "action not synchronized" on the display screen or prompts "action not synchronized" through a speaker.
根据本申请中的第一方面中的实施例,所述电子设备在全屏展示所述健身视频。According to the embodiment in the first aspect of the present application, the electronic device displays the fitness video on a full screen.
根据本申请中的第一方面中的实施例,在本申请的一些实施例中,全屏显示视频界面时,该视频界面可以占用显示屏的全部显示区域。在一种可能的实施方式中,全屏显示视频界面是指,显示屏中仅显示视频界面,而不显示其他内容。在另一种可能的实施方式中,该视频界面还可以仅占用显示屏的部分显示区域,例如显示屏的中间部分显示视频界面,一侧或两侧边缘部分白屏或黑屏时,也可看作显示屏全屏显示该视频界面。According to the embodiments in the first aspect of the present application, in some embodiments of the present application, when the video interface is displayed in a full screen, the video interface may occupy all the display area of the display screen. In a possible implementation manner, the full-screen display of the video interface refers to that only the video interface is displayed on the display screen, and no other content is displayed. In another possible implementation manner, the video interface can also only occupy part of the display area of the display screen. For example, the video interface is displayed in the middle part of the display screen, and it can also be viewed when the edge part of one or both sides is white or black. The video interface is displayed on the full screen of the display screen.
根据本申请中的第一方面中的实施例,所述用户的动作姿态在所述电子设备的显示屏悬浮窗中展示。According to the embodiment in the first aspect of the present application, the user's action posture is displayed in the floating window of the display screen of the electronic device.
根据本申请中的第一方面中的实施例,电子设备在显示屏全屏显示用户实时健身的窗口,并在显示屏的左下角悬浮显示健身视频窗口。并且在显示屏上显示当前健身动作的文字提示。According to the embodiment in the first aspect of the present application, the electronic device displays the user's real-time fitness window on the full screen of the display screen, and displays the fitness video window floating in the lower left corner of the display screen. And the text prompt of the current fitness action is displayed on the display screen.
根据本申请中的第一方面中的实施例,所述电子设备将所述用户的动作姿态进行存储;所述电子设备基于与所述用户的动作姿态对应的标准健身动作确定与所述用户的动作姿态标准不匹配;According to the embodiment in the first aspect of the present application, the electronic device stores the user's action posture; the electronic device determines the user’s action posture based on the standard fitness action corresponding to the user’s action posture. The action posture standard does not match;
则标记所述用户的动作姿态非标准动作并重新播放健身视频中与所述非标准动作对应的标准健身动作;所述电子设备以用户进行与所述非标准动作对应的健身动作的健身速度重新播放健身视频中的标准健身动作,所述的标准健身动作与所述非标准动作对应的健身动作对应。Then mark the user’s non-standard action and replay the standard fitness action corresponding to the non-standard action in the fitness video; the electronic device replays the fitness speed at which the user performs the fitness action corresponding to the non-standard action The standard fitness action in the fitness video is played, and the standard fitness action corresponds to the fitness action corresponding to the non-standard action.
所述电子设备对所述非标准动作进行文字和/或语音讲解。The electronic device provides text and/or voice explanation of the non-standard action.
根据本申请中的第一方面中的实施例,电子设备基于摄像头实时采集的用户的动作姿态和动作轨迹判定用户还未完成该健身动作,则电子设备暂停播放该健身视频,并在电子设备的显示屏上显示当前用户正在进行的健身动作的文字提示,直至摄像头实时采集到用户完成已经播完的健身动作并且用户当前的健身动作和当前暂停画面对应的动作姿态相匹配时,取消暂停并从当前暂停时刻开始恢复视频播放,或者将健身视频回放至与用户当前的动作姿态相对应的画面再次同步进行健身动作。According to the embodiment in the first aspect of the present application, the electronic device determines that the user has not completed the fitness action based on the user's motion posture and motion trajectory collected in real time by the camera, the electronic device pauses playing the fitness video, and displays the fitness video on the electronic device. The display shows the text prompt of the current fitness action being performed by the user until the camera collects in real time that the user has completed the fitness action that has been broadcasted and the user’s current fitness action matches the action posture corresponding to the current pause screen. The video playback is resumed at the current pause time, or the fitness video is played back to the screen corresponding to the user's current action posture to synchronize the fitness action again.
根据本申请中的第一方面中的实施例,电子设备显示屏上播放健身视频和实时采集用户的动作姿态,电子设备判断用户做的健身动作是否标准,如果不标准,则电子设备将该健身动作作为非标准健身动作,并计算用户做非标准健身动作的健身速度,电子设备以该健身速度播放健身视频中与非标准健身动作对应的教练示范的标准的健身动作,以对用户做的非标准健身动作进行纠正。According to the embodiment in the first aspect of the present application, the electronic device plays fitness videos on the display screen and collects the user’s action posture in real time. The electronic device determines whether the user’s fitness action is standard. The movement is regarded as a non-standard fitness movement, and the fitness speed at which the user performs the non-standard fitness movement is calculated. The electronic device plays the standard fitness movement demonstrated by the instructor corresponding to the non-standard fitness movement in the fitness video at the fitness speed, so as to respond to the non-standard fitness movement performed by the user. Standard fitness exercises are corrected.
根据本申请中的第一方面中的实施例,在播放该非标准动作视频时,对用户进行语音讲解和语音提示以修正用户的错误的健身动作。According to the embodiment in the first aspect of the present application, when the non-standard action video is played, voice explanations and voice prompts are provided to the user to correct the wrong fitness action of the user.
显而易见的是,电子设备将用户做的非标准健身动作的视频存储,在显示屏上的整个健身视频播放完成后,播放用户做错的非标准健身视频,并与教练示范的标准的健身视频进行比对和讲解,纠正用户做错的健身动作,有利于用户的身体健康和进一步提升了用户的体验感。Obviously, the electronic device stores the video of the non-standard fitness actions performed by the user. After the entire fitness video on the display screen is played, it will play the non-standard fitness video that the user did wrong, and perform it with the standard fitness video demonstrated by the instructor. Comparing and explaining, correcting users' wrong fitness actions, is conducive to the user's physical health and further enhances the user's sense of experience.
第二方面,本申请实施例公开了一种电子设备,包括:In the second aspect, an embodiment of the present application discloses an electronic device, including:
存储器,所述存储器存储有同步指令;A memory, the memory stores synchronization instructions;
处理器,所述处理器执行所述同步指令时,实现如以上任意一种提到的动作自适应同步方法的步骤。The processor, when the processor executes the synchronization instruction, implements the steps of the action adaptive synchronization method mentioned in any one of the above.
第三方面,本申请实施例公开了一种动作自适应同步装置,所述动作自适应同步装置包括:In the third aspect, an embodiment of the present application discloses a motion adaptive synchronization device, the motion adaptive synchronization device includes:
播放模块,用于播放健身视频;Play module, used to play fitness videos;
采集模块,用于采集用户的动作姿态;The collection module is used to collect the user's action posture;
匹配模块,用于对所述健身视频中当前播放的健身动作和所述用户的动作姿态进行匹配。The matching module is used to match the fitness action currently played in the fitness video with the user's action posture.
调整模块,用于调整所述健身视频中所述健身动作的播放速度,以使所述健身动作与所述用户的动作姿态同步。The adjustment module is used to adjust the playing speed of the fitness action in the fitness video, so that the fitness action is synchronized with the user's posture.
本发明其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本发明说明书中的记载变的显而易见。Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects will become apparent from the description in the specification of the present invention.
附图说明Description of the drawings
图1(a)为本申请实施例示出的应用场景的智慧屏的结构示意图;Figure 1(a) is a schematic structural diagram of a smart screen in an application scenario shown in an embodiment of the application;
图1(b)为本申请实施例示出的智慧屏与图像采集模块的位置关系示意图;Figure 1(b) is a schematic diagram of the positional relationship between the smart screen and the image acquisition module shown in an embodiment of the application;
图1(c)为本申请实施例示出的动作自适应同步设备的使用状态的示意图;FIG. 1(c) is a schematic diagram of the use state of the action-adaptive synchronization device shown in an embodiment of this application;
图1(d)为本申请实施例示出的人体骨骼模型的示意图;Figure 1(d) is a schematic diagram of a human skeleton model shown in an embodiment of the application;
图1(e)为本申请实施例示出的智慧屏的UI界面示意图;Figure 1(e) is a schematic diagram of a UI interface of a smart screen shown in an embodiment of the application;
图1(f)为本申请实施例示出的用户点击健身APP后的健身页面示意图;Figure 1(f) is a schematic diagram of a fitness page after a user clicks on a fitness APP according to an embodiment of the application;
图2(a)至图2(d)为本申请实施例示出的一种动作自适应同步方法的UI界面图;2(a) to 2(d) are UI interface diagrams of an action adaptive synchronization method shown in an embodiment of this application;
图3(a)为本申请实施例示出的一种动作自适应同步方法的流程示意图;Figure 3(a) is a schematic flowchart of an action adaptive synchronization method shown in an embodiment of this application;
图3(b)为本申请实施例示出的一种动作自适应同步状态的示意图;FIG. 3(b) is a schematic diagram of an action adaptive synchronization state shown in an embodiment of this application;
图4(a)至图4(c)为本申请实施例示出的另一种动作自适应同步方法的UI界面图;4(a) to 4(c) are UI interface diagrams of another action adaptive synchronization method shown in an embodiment of this application;
图5为本申请实施例示出的另一种动作自适应同步方法的流程示意图;FIG. 5 is a schematic flowchart of another action adaptive synchronization method shown in an embodiment of this application;
图6(a)至图6(c)为本申请实施例示出的另一种动作自适应同步方法的UI界面图;6(a) to 6(c) are UI interface diagrams of another method for adaptive synchronization of actions shown in an embodiment of this application;
图7为本申请实施例示出的另一种动作自适应同步方法的流程示意图;FIG. 7 is a schematic flowchart of another action adaptive synchronization method shown in an embodiment of the application;
图8为本申请实施例示出的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device shown in an embodiment of the application;
图9为本申请实施例示出的SOC的结构示意图。FIG. 9 is a schematic structural diagram of an SOC shown in an embodiment of the application.
具体实施方式detailed description
以下由具体实施例说明本申请的实施方式,本领域技术人员可由本说明书所揭示的内容轻易地了解本申请的其他优点及功效。虽然本申请的描述将结合实施例一起介绍,但这并不代表此申请的特征仅限于该实施方式。恰恰相反,结合实施方式作申请介绍的目的是为了覆盖基于本申请的权利要求而有可能延伸出的其它选择或改造。为了提供对本申请的深度了解,以下描述中将包含许多具体的细节。本申请也可以不使用这些细节实施。此外,为了避免混乱或模糊本申请的重点,有些具体细节将 在描述中被省略。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The following specific examples illustrate the implementation of the present application, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Although the description of this application will be introduced in conjunction with the embodiments, this does not mean that the features of this application are limited to this embodiment. On the contrary, the purpose of introducing the application in combination with the embodiments is to cover other options or modifications that may be extended based on the claims of this application. In order to provide an in-depth understanding of this application, the following description will contain many specific details. This application can also be implemented without using these details. In addition, in order to avoid confusion or obscuring the focus of this application, some specific details will be omitted in the description. It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict.
可以理解,如本文所使用的,术语“模块”可以指代或者包括专用集成电路()、电子电路、执行一个或多个软件或固件程序的处理器(共享、专用、或群组)和/或存储器、组合逻辑电路、和/或提供所描述的功能的其他适当硬件组件,或者可以作为这些硬件组件的一部分。It can be understood that, as used herein, the term "module" can refer to or include an application specific integrated circuit (), an electronic circuit, a processor (shared, dedicated, or group) that executes one or more software or firmware programs, and/ Or memory, combinational logic circuits, and/or other suitable hardware components that provide the described functions, or may be part of these hardware components.
可以理解,在本申请各实施例中,处理器可以是微处理器、数字信号处理器、微控制器等,和/或其任何组合。根据另一个方面,所述处理器可以是单核处理器,多核处理器等,和/或其任何组合。It can be understood that, in the embodiments of the present application, the processor may be a microprocessor, a digital signal processor, a microcontroller, etc., and/or any combination thereof. According to another aspect, the processor may be a single-core processor, a multi-core processor, etc., and/or any combination thereof.
下面根据本申请的一些实施例,对提供健身视频教程的电子设备进行说明,电子设备包括但不限于手机、平板电脑、膝上型计算机、台式计算机、虚拟现实或者增强现实设备、智慧屏等电子设备,对于以上电子设备而言,为了实现本申请实施例所提供的技术方案,电子设备包括但不限于显示屏和图像采集设备,在电子设备上设置显示屏目的之一是为了显示健身视频,在电子设备上设置视频采集设备目的之一是为了采集电子设备的视频采集设备的采集范围内的用户的动作姿态,电子设备通过显示屏显示的健身视频的每一个健身动作的帧数和采集的用户的完成每一个健身动作时各个骨骼节点的移动距离,利用用户完成每一个健身动作所发生的移动距离和健身视频中该健身动作的总帧数控制健身视频的播放速度,使得健身视频中的健身动作的播放速度与用户作健身动作的速度同步。The following describes electronic devices that provide fitness video tutorials according to some embodiments of the present application. Electronic devices include, but are not limited to, mobile phones, tablets, laptop computers, desktop computers, virtual reality or augmented reality devices, smart screens and other electronic devices. For the above electronic devices, in order to implement the technical solutions provided in the embodiments of this application, the electronic devices include but are not limited to display screens and image acquisition devices. One of the purposes of setting the display screens on the electronic devices is to display fitness videos. One of the purposes of setting up a video capture device on an electronic device is to capture the user's movement posture within the collection range of the video capture device of the electronic device. The movement distance of each skeletal node when the user completes each fitness action, the movement distance that the user completes each fitness action and the total number of frames of the fitness action in the fitness video are used to control the playback speed of the fitness video, so that the fitness video The playback speed of the fitness action is synchronized with the speed at which the user performs the fitness action.
图1(a)为本申请实施例示出的应用场景的智慧屏的结构示意图,图1(b)为本申请实施例示出的智慧屏与图像采集模块的位置关系示意图,图1(c)为本申请实施例示出的动作自适应同步设备的使用状态的示意图,图1(d)为本申请实施例示出的人体骨骼模型的示意图,图1(e)为本申请实施例示出的智慧屏的UI界面示意图,图1(f)为本申请实施例示出的用户点击健身APP后的健身页面示意图。Figure 1(a) is a schematic structural diagram of a smart screen in an application scenario shown in an embodiment of this application, and Figure 1(b) is a schematic diagram of a positional relationship between a smart screen and an image acquisition module shown in an embodiment of this application, and Figure 1(c) is A schematic diagram of the use state of an action-adaptive synchronization device shown in an embodiment of this application. Figure 1(d) is a schematic diagram of a human skeleton model shown in an embodiment of this application. Figure 1(e) is a schematic diagram of a smart screen shown in an embodiment of this application Schematic diagram of the UI interface. Fig. 1(f) is a schematic diagram of the fitness page after the user clicks on the fitness APP according to an embodiment of the application.
在本申请的一些实施例中,以电子设备为智慧屏为例对本申请实施例所提供的动作自适应同步方法进行说明。如图1(a)所示的,智慧屏10包括:处理器101,电源模块102、存储器103、无线通信模块104、显示屏105、图像采集模块106等。In some embodiments of the present application, the electronic device is a smart screen as an example to describe the action adaptive synchronization method provided in the embodiments of the present application. As shown in FIG. 1(a), the smart screen 10 includes: a processor 101, a power module 102, a memory 103, a wireless communication module 104, a display screen 105, an image acquisition module 106, and so on.
在本申请的一些实施例中,可以理解的是,本申请实施例示意的图1(a)所示的结构并不构成对智慧屏10的具体限定。在本申请的另一些实施例中,智慧屏10可以包括比图1(a)示出的更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图1(a)所示的部件可以以硬件,软件或软件和硬件的组合。In some embodiments of the present application, it can be understood that the structure shown in FIG. 1(a) illustrated in the embodiments of the present application does not constitute a specific limitation on the smart screen 10. In other embodiments of the present application, the smart screen 10 may include more or fewer components than shown in FIG. 1(a), or combine certain components, or split certain components, or arrange different components. . The components shown in Figure 1(a) can be hardware, software, or a combination of software and hardware.
在本申请的一些实施例中,处理器101可以提供应用在智慧屏10上的包括一个或多个处理单元,例如,处理器101包括但不限于中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、数字信号处理器(Digital Signal Processing,DSP)、微处理器(Micro-programmed Control Unit,MCU)、人工智能(Artificial Intelligence,AI)处理器或可编程逻辑器件(Field Programmable Gate Array,FPGA)等的处理模块或处理电路。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器101中可以设置存储单元,用于存储指令和数据。在一些实施例中,处理器101中的存储单元为高速缓冲存储器,需要说明的是,处理器101也可以作为控制器。In some embodiments of the present application, the processor 101 may include one or more processing units for application on the smart screen 10. For example, the processor 101 includes, but is not limited to, a central processing unit (CPU), and image processing. Processor (Graphics Processing Unit, GPU), digital signal processor (Digital Signal Processing, DSP), microprocessor (Micro-programmed Control Unit, MCU), artificial intelligence (Artificial Intelligence, AI) processor or programmable logic device ( Field Programmable Gate Array, FPGA) and other processing modules or processing circuits. Among them, the different processing units may be independent devices or integrated in one or more processors. A storage unit may be provided in the processor 101 for storing instructions and data. In some embodiments, the storage unit in the processor 101 is a cache memory. It should be noted that the processor 101 may also serve as a controller.
在本申请的一些实施例中,电源模块102可以提供应用在智慧屏10上的包括电池、电池管理部件等。电源管理部件用于管理电源的充电和电源向其他模块的供电,电池可以采用锂电池、铅酸电池 等可充电式电池,电池的形状可以但不限于纽扣型、方型等。In some embodiments of the present application, the power module 102 may provide a battery, a battery management component, etc., which are applied to the smart screen 10. The power management component is used to manage the charging of the power supply and the power supply of the power supply to other modules. The battery can be a lithium battery, a lead-acid battery and other rechargeable batteries. The shape of the battery can be but not limited to button type, square type, etc.
在本申请的一些实施例中,存储器103可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性的计算机可读介质。在一些实施例中,存储器103包括但不限于闪存等任意合适的非易失性存储器和/或任意合适的非易失性存储设备,例如硬盘驱动器(hard disk drive,HDD),光盘(compact disc,CD)驱动器,数字通用光盘(digital versatile disc,DVD)驱动器中的至少一个,健身视频教程可以缓存至存储器103中,在用户确定播放健身视频教程时,可以从存储器103中直接提取健身视频教程并在显示屏105上播放,此外,存储器103中还可以预先存储有人体骨骼模型,人体骨骼模型的各个骨骼节点都进行了编号或者进行了名称定义,在处理器101可以直接从存储器103中提取人体骨骼模型进行应用。In some embodiments of the present application, the memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. In some embodiments, the memory 103 includes, but is not limited to, any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as a hard disk drive (HDD), and an optical disk (compact disc). , CD) drive, at least one of the digital versatile disc (digital versatile disc, DVD) drive, the fitness video tutorial can be cached in the memory 103, when the user determines to play the fitness video tutorial, the fitness video tutorial can be directly retrieved from the memory 103 And play on the display screen 105. In addition, the memory 103 can also pre-store a human skeleton model. Each bone node of the human skeleton model is numbered or defined with a name. The processor 101 can directly retrieve it from the memory 103 The human skeleton model is applied.
在本申请的一些实施例中,无线通信模块104可以提供应用在智慧屏10上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC)等无线通信的解决方案,智慧屏10可以通过无线通信技术与网络以及手机、遥控器等进行通信,在本申请的一些实施例中,无线通信模块104可以为蓝牙芯片,通信方式为蓝牙通信,为了降低蓝牙芯片对智慧屏10的功耗,蓝牙芯片可以选取低功耗蓝牙芯片,其型号可以选取为NRF52810-QFAA-R蓝牙5.0的低功耗蓝牙芯片。In some embodiments of the present application, the wireless communication module 104 may provide applications on the smart screen 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC) and other wireless communication solutions, smart screen 10 can Communicate with the network, mobile phones, remote controllers, etc. through wireless communication technology. In some embodiments of the present application, the wireless communication module 104 may be a Bluetooth chip, and the communication method is Bluetooth communication, in order to reduce the power consumption of the Bluetooth chip on the smart screen 10 , Bluetooth chip can be selected low-power Bluetooth chip, and its model can be selected as NRF52810-QFAA-R Bluetooth 5.0 low-power Bluetooth chip.
在本申请的一些实施例中,显示屏105可以提供应用在智慧屏10上的用于显示人机交互界面、图像、健身APP的交互界面、健身视频等。显示屏105包括但不限于显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantumdot lighte mitting diodes,QLED)等。In some embodiments of the present application, the display screen 105 may provide an application on the smart screen 10 for displaying human-computer interaction interfaces, images, fitness APP interaction interfaces, fitness videos, and the like. The display screen 105 includes but is not limited to a display panel. The display panel can use liquid crystal display (LCD), organic light-emitting diode (organic light-emitting diode, OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). Diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
在本申请的一些实施例中,图像采集模块106可以提供应用在智慧屏10上的用于采集智慧屏10前的用户的姿态、动作等图像信息,图像采集模块可以镶嵌于智慧屏10的外壳上,如镶嵌于智慧屏的上边框中,也可以独立于智慧屏10设置,如图1(b)所示,图像采集模块106设置在智慧屏10的显示屏的上方,图像采集模块106通过视频传输线连接智慧屏10。图像采集模块106可以为摄像头(如红外摄像头)等。In some embodiments of the present application, the image acquisition module 106 may provide the image information used on the smart screen 10 to collect the posture and actions of the user in front of the smart screen 10. The image acquisition module may be embedded in the shell of the smart screen 10. If it is embedded in the upper frame of the smart screen, it can also be set independently of the smart screen 10. As shown in FIG. 1(b), the image acquisition module 106 is arranged above the display screen of the smart screen 10. The video transmission line connects to the smart screen 10. The image acquisition module 106 may be a camera (such as an infrared camera) or the like.
在本申请的一些实施例中,图像采集模块106包括但不限于镜头部分、芯片组部分、PCB及元器件部分等。镜头部包括但不限于镜头,镜头由透镜(凸透镜、凹透镜)组成,从材质上分类可以分为塑胶透镜和玻璃透镜;按照颜色分类,镜头可分为彩色镜头、黑白镜头;按照功能分类,镜头可分为固定镜头、变焦镜头;按照大小分类,镜头可分为单板镜头、针孔镜头、CS镜头;按照红外分类,镜头可分为850nm镜头、940nm镜头、650nm镜头。芯片组部是摄像头的心脏部分,是将光信号转变为电信号的主要元器件,根据芯片组中感光芯片的特征,主要的芯片组分为CCD芯片和CMOS芯片。PCB及元器件部分是摄像头的重要组成部分,是所有器件的载体,其主要功能是提供各项零件的相互电气连接。In some embodiments of the present application, the image acquisition module 106 includes but is not limited to a lens part, a chipset part, a PCB and a component part, etc. The lens part includes but is not limited to the lens. The lens is composed of lenses (convex lens and concave lens), which can be classified into plastic lenses and glass lenses in terms of material; according to color classification, lenses can be divided into color lenses and black and white lenses; according to functional classification, lenses Can be divided into fixed lens, zoom lens; according to the size classification, the lens can be divided into single-plate lens, pinhole lens, CS lens; according to the infrared classification, the lens can be divided into 850nm lens, 940nm lens, 650nm lens. The chip set is the heart of the camera and is the main component that converts light signals into electrical signals. According to the characteristics of the photosensitive chip in the chipset, the main chip components are CCD chips and CMOS chips. The PCB and components are an important part of the camera and the carrier of all devices. Its main function is to provide electrical connections between various parts.
在本申请的一些实施例中,如图1(c)所示的,电源为智慧屏供电,智慧屏得电之后,用户操作智慧屏并通过本申请实施例示出的智慧屏播放的健身视频教程进行健身。In some embodiments of the present application, as shown in Figure 1(c), the power supply is for the smart screen. After the smart screen is powered on, the user operates the smart screen and uses the fitness video tutorial played by the smart screen shown in the embodiments of this application Get fit.
图像采集模块106设置于智慧屏10的显示屏105的上沿,图像采集模块106可以通过视频传输线连接智慧屏10,智慧屏10通过显示屏105播放并显示健身APP的健身视频。The image acquisition module 106 is arranged on the upper edge of the display 105 of the smart screen 10. The image acquisition module 106 can be connected to the smart screen 10 through a video transmission line, and the smart screen 10 plays and displays fitness videos of the fitness APP through the display 105.
其中,健身视频包含健身教练的动作姿态、健身视频的指导语音以及文字信息,其中,健身视频可以是预先存储于存储器103中,也可以是实时通过网络下载并播放,存储器103中还预先存储有人体骨骼模型,人体骨骼模型的各个骨骼节点都进行了编号或者进行名称定义。Among them, the fitness video includes the action posture of the fitness coach, the guidance voice of the fitness video, and text information. Among them, the fitness video can be pre-stored in the memory 103, or can be downloaded and played through the network in real time. The memory 103 also pre-stores The human skeleton model, each skeletal node of the human skeleton model is numbered or defined by name.
在本申请的一些实施例中,如图1(d)所示的,将人体的骨骼点设定为15个骨骼点,该15个骨骼点为头部中心1、颈部中心(例如脖子的脊柱中心)2、左肩关节点3、右肩关节点4、左手肘关节点5、右手肘关节点6、左手腕关节点7、右手腕关节点8、左髋关节点9、左膝盖关节点10、左脚踝关节点11、右髋关节点12、右膝盖关节点13、右脚踝关节点14以及躯干中心(例如躯干的脊柱中心)15,各个骨骼节点之间以骨骼点为基准可以将身体划分为五个身体部分即躯干、左臂、右臂、左腿及右腿,其中,躯干包括例如躯干的脊柱中心和躯干中心(例如躯干的脊柱中心)15,左臂包括左肩关节点3、左手肘关节点5和左手腕关节点7,右臂包括右肩关节点4、右手肘关节点6和右手腕关节点8,左腿包括左髋关节点9、左膝盖关节点10和左脚踝关节点11,右腿包括右髋关节点12、右膝盖关节点13和右脚踝关节点14。此外,需要说明的是,除了对骨骼节点进行编号进行区分外,也可以定义各个骨骼节点的名称进行区分,如头部、颈部、左肩、右肩、左手肘、右手肘、左手腕、右手腕、左髋、左膝盖、左脚踝、右髋、右膝盖、右脚踝以及躯干,本申请实施例对于骨骼节点的定义区分的方式并不作限定。在用户作健身动作时躯干、左臂、右臂、左腿及右腿相互协调配合完成一系列的健身动作。In some embodiments of the present application, as shown in Figure 1(d), the bone points of the human body are set to 15 bone points, and the 15 bone points are the center of the head and the center of the neck (for example, the center of the neck). Spine center) 2, left shoulder joint point 3, right shoulder joint point 4, left elbow joint point 5, right elbow joint point 6, left wrist joint point 7, right wrist joint point 8, left hip joint point 9, left knee joint point 10. The left ankle joint point 11, the right hip joint point 12, the right knee joint point 13, the right ankle joint point 14 and the torso center (such as the spine center of the torso) 15. Divided into five body parts, namely the torso, left arm, right arm, left leg and right leg, where the torso includes, for example, the spine center of the torso and the torso center (for example, the spine center of the torso) 15, and the left arm includes the left shoulder joint point 3, Left elbow joint point 5 and left wrist joint point 7, right arm includes right shoulder joint point 4, right elbow joint point 6 and right wrist joint point 8, left leg includes left hip joint point 9, left knee joint point 10 and left ankle At node 11, the right leg includes right hip joint point 12, right knee joint point 13 and right ankle joint point 14. In addition, it should be noted that in addition to numbering the bone nodes to distinguish, you can also define the name of each bone node to distinguish, such as head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right For the wrist, left hip, left knee, left ankle, right hip, right knee, right ankle, and torso, the embodiment of the present application does not limit the way in which the bone nodes are defined and distinguished. When the user performs fitness exercises, the torso, left arm, right arm, left leg, and right leg coordinate with each other to complete a series of fitness exercises.
在本申请的一些实施例中,人体骨骼模型的各个骨骼节点发生的位移距离和位移方向可以映射到三维坐标系的X轴正方向、X轴负方向、Y轴正方向、Y轴负方向、Z轴正方向、Z轴负方向,在各个骨骼节点发生位移时,通过三维坐标系进行计算。In some embodiments of the present application, the displacement distance and displacement direction of each skeletal node of the human skeleton model can be mapped to the positive direction of the X axis, the negative direction of the X axis, the positive direction of the Y axis, and the negative direction of the Y axis of the three-dimensional coordinate system. The positive direction of the Z axis and the negative direction of the Z axis are calculated through the three-dimensional coordinate system when each bone node is displaced.
在本申请的一些实施例中,显示屏105上显示的健身视频中教练所展示的健身动作和语音文字用于提示用户同步做健身动作,设置于智慧屏10的显示屏105上沿的图像采集模块106实时采集用户做健身动作的姿态信息并通过视频传输线或者无线通信方式传输至智慧屏10的处理器101,处理器101读取健身视频并对健身视频作分帧处理,将健身视频中涉及的所有的健身动作进行分段(如健身视频中的一健身动作为左腿由初始位置向左侧方抬高再将左腿由抬高的位置处还原至初始位置,可以将该健身动作分为两段,即左腿由初始位置向左侧方抬高为第一段,左腿由抬高的位置处再还原到初始位置为第二段),然后将每个健身动作的视频进行视频分帧处理,视频分帧处理是将健身视频中每个健身动作分为一帧一帧的画面,视频中的每一帧都是一副静止的画面,得到健身动作的连续时刻的帧图像。在进行视频分帧后统计每个健身动作分帧后的总的帧数(以左腿向左侧方抬高为例,其进行分帧处理后的总的帧数为40帧);智慧屏10将摄像头采集的用户初始时的健身动作的姿态信息,并统计用户初始作某一个健身动作(以左腿向左侧方抬高为例)时涉及的骨骼节点的编号或名称(左髋关节点9、左膝盖关节点10和左脚踝关节点11),在用户初始作左腿向左侧方抬高的健身动作时,所涉及的骨骼节点左髋关节点9、左膝盖关节点10和左脚踝关节点11从双脚站立时的原始位置到完左腿的左膝盖关节点抬高到最终位置所移动的距离分别为:左髋关节点移动距离、左膝盖关节点移动距离和左脚踝关节点移动距离。In some embodiments of the present application, the fitness actions and voice text displayed by the coach in the fitness video displayed on the display screen 105 are used to prompt the user to perform fitness actions simultaneously. The image collection on the upper edge of the display screen 105 of the smart screen 10 The module 106 collects the posture information of the user’s fitness actions in real time and transmits it to the processor 101 of the smart screen 10 through a video transmission line or wireless communication. The processor 101 reads the fitness video and performs frame processing on the fitness video, and the fitness video is involved All of the fitness actions are divided into segments (for example, a fitness action in the fitness video is to raise the left leg from the initial position to the left side, and then restore the left leg from the raised position to the initial position. This fitness action can be divided There are two segments, that is, the left leg is raised from the initial position to the left side as the first segment, and the left leg is restored from the raised position to the initial position as the second segment), and then the video of each exercise is video Framing processing, video framing processing is to divide each fitness action in the fitness video into a frame by frame. Each frame in the video is a still picture to obtain frame images of consecutive moments of the fitness action. After the video is divided into frames, count the total number of frames after each fitness action is divided into frames (take the left leg raised to the left as an example, the total number of frames after the divided frame processing is 40 frames); 10 Collect the posture information of the user’s initial fitness action collected by the camera, and count the number or name of the bone node (left hip joint) involved when the user initially performs a certain fitness action (take the left leg raised to the left as an example) Point 9, left knee joint point 10 and left ankle joint point 11), when the user initially performs a fitness exercise of raising his left leg to the left, the involved bone nodes are left hip joint point 9, left knee joint point 10 and The distance that the left ankle joint point 11 moves from the original position when the feet are standing to the left knee joint point of the left leg is raised to the final position are: the movement distance of the left hip joint point, the movement distance of the left knee joint point and the left ankle The distance the node moves.
智慧屏10计算用户作左腿向左侧方抬高这一健身动作的左髋关节点移动距离、左膝盖关节点移 动距离和左脚踝关节点移动距离三者的平均值得到完成左腿向左侧方抬高的健身动作的所涉及的关节点的平均移动距离,然后计算平均移动距离与左腿向左侧方抬高这一健身动作的总帧数的比值,得到完成左腿向左侧方抬高的健身动作所涉及的关节点移动单位距离对应左腿向左侧方抬高这一健身动作应该播放的帧数,当用户再次做左腿向左侧方抬高这一健身动作时,实时计算用户作做左腿向左侧方抬高的左髋关节点9、左膝盖关节点10和左脚踝关节点11实时移动的平均移动距离,控制健身视频播放左腿向左侧方抬高这一健身动作与实时移动的平均距离对应的帧数,达到用户作该健身动作与健身视频的同步性的目的。The smart screen 10 calculates the average of the movement distance of the left hip joint point, the movement distance of the left knee joint point and the movement distance of the left ankle joint point of the fitness action of the user's left leg to the left side to complete the left leg to the left. The average movement distance of the joint points involved in the side-lift fitness exercise, and then calculate the ratio of the average movement distance to the total number of frames of the fitness exercise of raising the left leg to the left, and get the left leg to the left. The movement unit distance of the joint points involved in the fitness exercise of the square raising corresponds to the number of frames that the fitness exercise of raising the left leg to the left side should be played. When the user performs the fitness exercise of raising the left leg to the left side again , Calculate the real-time average movement distance of the user’s left hip joint point 9, left knee joint point 10, and left ankle joint point 11 when the user’s left leg is raised to the left side, and control the fitness video to play the left leg to the left side. The number of frames corresponding to the average distance between this fitness action and the real-time movement can be increased to achieve the purpose of synchronization between the fitness action and the fitness video by the user.
实施例1Example 1
图1(e)示例性示出了智慧屏10上的用于展示智慧屏10安装的应用程序的示例性用户界面10。FIG. 1(e) exemplarily shows an exemplary user interface 10 on the smart screen 10 for displaying applications installed on the smart screen 10.
用户界面100可包括:状态栏101,应用程序图标102。其中:The user interface 100 may include: a status bar 101 and an application icon 102. in:
状态栏101可包括:无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符101C,电池状态指示符101D、时间指示符101E。The status bar 101 may include: one or more signal strength indicators 101C of wireless fidelity (Wi-Fi) signals, a battery status indicator 101D, and a time indicator 101E.
在一些实施例中,状态栏101还可以包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符、运营商名称(例如“中国移动”)。In some embodiments, the status bar 101 may also include: one or more signal strength indicators of a mobile communication signal (also called a cellular signal), and an operator name (for example, "China Mobile").
应用程序图标102可以为:健身的图标102A、图库的图标102B、音乐的图标102C、应用的图标102D、联系人的图标102E,邮箱的图标102F、云共享的图标102G、备忘录的图标102H、设置的图标102I、相机的图标102J。用户界面10还可包括页面指示符103。其他应用程序图标可分布在多个页面,页面指示符103可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。The application icon 102 can be: fitness icon 102A, gallery icon 102B, music icon 102C, application icon 102D, contact icon 102E, mailbox icon 102F, cloud sharing icon 102G, memo icon 102H, settings The icon 102I of the camera, the icon 102J of the camera. The user interface 10 may also include a page indicator 103. The icons of other applications may be distributed on multiple pages, and the page indicator 103 may be used to indicate the application in which page the user is currently browsing. The user can swipe the area of other application icons left and right to browse application icons in other pages.
在本申请的一些实施例中,用户界面100还可包括:导航栏104。In some embodiments of the present application, the user interface 100 may further include: a navigation bar 104.
导航栏104可包括:返回键104A、主屏幕键104B、多任务键104C等系统导航键。当检测到用户点击返回键104A时,智慧屏100可显示当前页面的上一个页面。当检测到用户点击主屏幕键104B时,智慧屏100可显示主界面。当检测到用户点击多任务键104C时,智慧屏100可显示用户最近打开的任务。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏104中的各导航键也可以实现为物理按键。The navigation bar 104 may include system navigation keys such as a return key 104A, a home screen key 104B, and a multi-task key 104C. When it is detected that the user clicks the return button 104A, the smart screen 100 can display the previous page of the current page. When it is detected that the user taps the home button 104B, the smart screen 100 can display the home interface. When it is detected that the user clicks on the multitasking button 104C, the smart screen 100 may display the task recently opened by the user. The naming of each navigation key can also be other, which is not limited in this application. Not limited to virtual keys, each navigation key in the navigation bar 104 can also be implemented as a physical key.
在一些实施例中,图1(e)示例性所示的用户界面100可以为主界面(Home screen)。In some embodiments, the user interface 100 exemplarily shown in FIG. 1(e) may be a home screen (Home screen).
在其他一些实施例中,智慧屏100还可以包括前置摄像头,前置摄像头还可称作副摄像头,主要位于智慧屏100屏幕的上方,前置摄像头作为本申请实施例中图1(a)中的图像采集模块106,其可以采集智慧屏10前的用户的姿态、动作等图像信息以及自拍等。In some other embodiments, the smart screen 100 may also include a front camera. The front camera may also be called a secondary camera, which is mainly located above the screen of the smart screen 100. The front camera is shown in Figure 1(a) in the embodiment of the present application. The image acquisition module 106 in, which can collect image information such as postures and actions of the user in front of the smart screen 10, as well as self-portraits.
在其他一些实施例中,智慧屏10还可以包括主屏幕键。该主屏幕键可以是实体按键,也可以是虚拟按键。该主屏幕键可用于接收用户的指令,将当前显示的UI返回到主界面,这样可以方便用户随时查看主屏幕。上述指令具体可以是用户单次按下主屏幕键的操作指令,也可以是用户在短时间内连续两次按下主屏幕键的操作指令,还可以是用户在预定时间内长按主屏幕键的操作指令。在本申请其他一些实施例中,主屏幕键还可以集成指纹识别器,以便用于在按下主屏幕键的时候,随之进行指纹采集和识别。In some other embodiments, the smart screen 10 may also include a home screen key. The main screen key can be a physical key or a virtual key. The home screen key can be used to receive instructions from the user and return the currently displayed UI to the home interface, so that it is convenient for the user to view the home screen at any time. The above instruction can be an operation instruction for the user to press the home screen key once, or an operation instruction for the user to press the home screen key twice in a short period of time, or the user to press and hold the home screen key for a predetermined period of time. Operation instructions. In some other embodiments of the present application, the home screen key can also be integrated with a fingerprint recognizer, so that when the home screen key is pressed, fingerprints are collected and recognized accordingly.
可以理解的是,图1(e)仅仅示例性示出了智慧屏10上的用户界面,不应构成对本申请实施例的限定。It can be understood that FIG. 1(e) only exemplarily shows the user interface on the smart screen 10, and should not constitute a limitation to the embodiment of the present application.
示例性的,如图1(f)所示,用户可点击用户界面100上的健身图标102A,智慧屏10检测到上述用户操作,响应于上述用户操作,智慧屏10显示健身app的界面11。Exemplarily, as shown in FIG. 1(f), the user can click on the fitness icon 102A on the user interface 100, the smart screen 10 detects the above-mentioned user operation, and in response to the above-mentioned user operation, the smart screen 10 displays the interface 11 of the fitness app.
用户界面11可包括:应用程序标题栏201,搜索框202,设置203,功能栏204,显示区205。其中:The user interface 11 may include: an application title bar 201, a search box 202, a setting 203, a function bar 204, and a display area 205. in:
应用程序标题栏201可用于指示当前页面用于展示智慧屏10的设置界面。应用程序标题栏201的表现形式可以为文本信息“智能健身”、图标或其他形式。The application title bar 201 can be used to indicate that the current page is used to display the setting interface of the smart screen 10. The presentation form of the application title bar 201 may be text information "smart fitness", icons or other forms.
搜索框202可用于根据用户输入的字符,搜索与该字符匹配的健身课程。The search box 202 can be used to search for fitness courses matching the character according to the character input by the user.
设置203可接收用户操作(例如触摸操作),响应于检测到的该用户操作,智慧屏10可以显示智能健身的设置界面。The setting 203 may receive a user operation (for example, a touch operation), and in response to the detected user operation, the smart screen 10 may display a setting interface of smart fitness.
功能栏204可包括:用户中心控件204A,课程推荐控件204B,多个课程分类控件。上述多个课程分类控件可包括但不限于:燃脂专区控件204C、塑形专区控件204D、塑形专区控件204E。其中The function bar 204 may include: a user center control 204A, a course recommendation control 204B, and multiple course classification controls. The above-mentioned multiple course classification controls may include, but are not limited to: fat burning zone control 204C, shaping zone control 204D, and shaping zone control 204E. in
用户中心控件204A可接收用户操作(例如触摸操作),响应于检测到的该用户操作,智慧屏10可以在显示区205显示用户个人中心的界面内容。The user center control 204A can receive a user operation (such as a touch operation), and in response to the detected user operation, the smart screen 10 can display the interface content of the user's personal center in the display area 205.
课程推荐控件204B可接收用户操作(例如触摸操作),响应于检测到的该用户操作,智慧屏10可以在显示屏105的显示区205显示一或多个推荐的健身课程。例如,如图1(e)所示,显示区205显示多个推荐的课程的课程封面,以及每个推荐课程的课程分类、时长、名称。The course recommendation control 204B can receive a user operation (such as a touch operation), and in response to the detected user operation, the smart screen 10 can display one or more recommended fitness courses in the display area 205 of the display screen 105. For example, as shown in FIG. 1(e), the display area 205 displays the course covers of multiple recommended courses, as well as the course classification, duration, and name of each recommended course.
上述多个课程分类控件中的控件可接收用户操作(例如触摸操作),响应于检测到的该用户操作,智慧屏10可以在显示屏105的显示区205显示该课程分类控件对应的一或多个健身课程的课程封面。The controls in the above-mentioned multiple course classification controls can receive user operations (such as touch operations). In response to the detected user operation, the smart screen 10 can display one or more corresponding course classification controls in the display area 205 of the display screen 105. A course cover for a fitness course.
在本申请的一些实施例中,上述健身课程的课程封面或名称可接收用户的播放操作(例如触摸操作),响应于检测到的上述播放操作,智慧屏10可以在显示屏显示健身课程的具体内容。In some embodiments of the present application, the course cover or name of the aforementioned fitness course can receive the user's playback operation (such as touch operation). In response to the aforementioned playback operation detected, the smart screen 10 can display the specific fitness course on the display screen. content.
健身app可以是响应于用户对该健身app的图标的触控操作启动的,例如,单击、双击、长按等。在本申请的一些实施例中,显示屏配置有触控面板,可用于接收用户的触控操作,该触控操作是指用户手部、手肘、触控笔等接触显示屏的操作。在具体实现中还可以有其他的方式打开健身app的界面11。此处不作限定。The fitness app may be started in response to a user's touch operation on the icon of the fitness app, for example, single click, double tap, long press, and so on. In some embodiments of the present application, the display screen is equipped with a touch panel, which can be used to receive a user's touch operation. The touch operation refers to the operation of the user's hand, elbow, stylus, etc., touching the display screen. In specific implementation, there may be other ways to open the interface 11 of the fitness app. There is no limitation here.
例如,用户可通过按压按键开启第一控制模式打开健身app的界面11;或者,通过检测用户输入的语音打开健身app的界面11;或者,通过指关节绘制的特定形状(如Z形、矩形、圆圈等)打开健身app的界面11。本申请实施例对此不作具体限定。For example, the user can open the fitness app interface 11 by pressing the button to turn on the first control mode; or, by detecting the voice input by the user, open the fitness app interface 11; or, by drawing a specific shape (such as Z-shape, rectangle, Circle, etc.) Open the interface 11 of the fitness app. The embodiment of the application does not specifically limit this.
此外,用户还可以通过遥控器控制智慧屏10显示健身app的界面11;用户还可以通过特定手势控制智慧屏10显示健身app的界面11。本申请实施例中对用户操作不做具体限定。In addition, the user can also control the smart screen 10 to display the fitness app interface 11 through the remote control; the user can also control the smart screen 10 to display the fitness app interface 11 through specific gestures. In the embodiments of the present application, user operations are not specifically limited.
可以理解的是,图1(e)仅仅示例性示出了智慧屏10上的健身app界面,不应构成对本申请实施例的限定。It is understandable that Fig. 1(e) only exemplarily shows the fitness app interface on the smart screen 10, and should not constitute a limitation to the embodiment of the present application.
健身课程通常包括多个动作,两个连续的动作间可以有预设的休息时间。健身课程可以是智慧屏根据用户历史健身数据推荐的,也可以是用户根据实际需求选择的。健身课程可以是本地播放,也可以是在线播放。此处均不作具体限定的。Fitness courses usually include multiple actions, and there can be a preset rest time between two consecutive actions. The fitness course can be recommended by the smart screen based on the user's historical fitness data, or can be selected by the user according to actual needs. Fitness courses can be played locally or online. There is no specific limitation here.
在本申请的一些实施例中,智慧屏10可接收用户的播放操作,响应于检测到上述播放操作,智慧屏10可以在显示屏的健身课程显示区显示健身课程的具体内容,同时在显示屏的用户健身显示区实时显示用户的身体姿态。In some embodiments of the present application, the smart screen 10 can receive the user's playback operation. In response to detecting the above-mentioned playback operation, the smart screen 10 can display the specific content of the fitness course in the fitness course display area of the display screen, and at the same time display the specific content of the fitness course on the display screen. The user’s fitness display area displays the user’s body posture in real time.
在本申请的一些实施例中,智慧屏10根据摄像头采集的视频数据,在上述用户健身显示区实时显示用户的健身视频。In some embodiments of the present application, the smart screen 10 displays the user's fitness video in real time in the user fitness display area according to the video data collected by the camera.
上述摄像头作为智慧屏的图像采集模块106。其可以为智慧屏10的前置摄像头,上述摄像头也可以为智慧屏10的外接摄像头,此处不做具体限定。The aforementioned camera is used as the image acquisition module 106 of the smart screen. It may be the front camera of the smart screen 10, and the aforementioned camera may also be an external camera of the smart screen 10, which is not specifically limited here.
下面以健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例对本申请实施例提供的一种动作自适应同步方法进行说明。In the following, an exercise adaptive synchronization method provided by the embodiment of the present application will be described by taking the fitness action of "straight back and back, and raise the left knee to the left side from the front of the eyes" as an example.
示例性的,如图2(a)所示,用户可点击显示区205中的显示的推荐课程,智慧屏10检测到上述用户操作,响应于上述用户操作,智慧屏10显示训练界面12。Exemplarily, as shown in FIG. 2(a), the user can click on the recommended course displayed in the display area 205, the smart screen 10 detects the above user operation, and in response to the above user operation, the smart screen 10 displays the training interface 12.
训练界面12包括健身课程窗口301,用户健身窗口302。其中:The training interface 12 includes a fitness course window 301 and a user fitness window 302. in:
健身课程窗口301用于显示健身课程的具体内容。The fitness course window 301 is used to display specific content of the fitness course.
用户健身窗口302用于显示摄像头实时采集的用户的健身动作。The user fitness window 302 is used to display the user's fitness actions collected by the camera in real time.
显示屏上播放健身视频和智慧屏的摄像头实时采集用户的动作姿态,在显示屏开始播放健身视频之前,健身视频中的教练和用户的动作都处于初始状态,在初始UI界面上展示即将开始的健身动作的文字说明,右侧展示教练示范的健身动作,左侧展示用户当前的动作姿态,显示屏105的中间位置展示健身动作的文字提示的健身动作要领,然后在显示屏上开始播放健身视频。The camera that plays fitness videos and smart screens on the display screen collects the user's movement posture in real time. Before the display screen starts to play the fitness video, the trainer and the user's movements in the fitness video are in the initial state, and the upcoming UI is displayed on the initial UI interface. The text description of the fitness action, the right side shows the fitness exercise demonstrated by the coach, the left side shows the user’s current posture, the middle position of the display 105 shows the fitness exercise essentials of the text prompt of the fitness exercise, and then starts to play the fitness video on the display .
在本申请的一些实施例中,智慧屏10可以全屏显示用户健身视频,并在显示屏上悬浮显示健身课程的小窗口。In some embodiments of the present application, the smart screen 10 may display a user's fitness video in a full screen, and display a small window of fitness courses floating on the display screen.
示例性的,如图2(b)所示,智慧屏10在训练界面12全屏显示用户健身窗口302,并在显示屏的左下角悬浮显示健身课程窗口301。并且在训练界面12上显示当前健身动作的文字提示。Exemplarily, as shown in FIG. 2(b), the smart screen 10 displays the user fitness window 302 in the full screen of the training interface 12, and displays the fitness course window 301 floating in the lower left corner of the display screen. And the text prompt of the current fitness action is displayed on the training interface 12.
在本申请的一些实施例中,智慧屏10全屏显示健身课程,并在显示屏上悬浮显示用户健身视频的小窗口。In some embodiments of the present application, the smart screen 10 displays fitness courses on a full screen, and a small window that displays a user's fitness video is floating on the display screen.
在本申请的一些实施例中,全屏显示视频界面时,该视频界面可以占用显示屏的全部显示区域。在一种可能的实施方式中,全屏显示视频界面是指,显示屏中仅显示视频界面,而不显示其他内容。在另一种可能的实施方式中,该视频界面还可以仅占用显示屏的部分显示区域,例如显示屏的中间部分显示视频界面,一侧或两侧边缘部分白屏或黑屏时,也可看作显示屏全屏显示该视频界面。In some embodiments of the present application, when the video interface is displayed in a full screen, the video interface may occupy all the display area of the display screen. In a possible implementation manner, the full-screen display of the video interface refers to that only the video interface is displayed on the display screen, and no other content is displayed. In another possible implementation manner, the video interface can also only occupy part of the display area of the display screen. For example, the video interface is displayed in the middle part of the display screen, and it can also be viewed when the edge part of one or both sides is white or black. The video interface is displayed in full screen on the screen.
在本申请的另一些实施例中,全屏显示视频界面可以指,显示屏中显示视频界面的同时,还可以显示系统级别的界面元素,例如状态栏、悬浮快捷菜单等。In other embodiments of the present application, the full-screen display of the video interface may mean that while the video interface is displayed on the display screen, system-level interface elements, such as status bar, floating shortcut menu, etc., can also be displayed.
除了图2(a)和图2(b)所示的窗口显示方式,健身课程窗口301和用户健身窗口302还可以通过其他显示方式进行显示,本申请实施例对此不作具体限定。In addition to the window display modes shown in FIGS. 2(a) and 2(b), the fitness course window 301 and the user fitness window 302 may also be displayed in other display modes, which are not specifically limited in the embodiment of the present application.
在用户进行如图2(a)所示的健身动作后,智慧屏10确定健身视频中教练示范的健身动作所涉及的关键骨骼节点和智慧屏的摄像头采集的用户当前的动作姿态涉及的关键骨骼节点,并基于关键骨骼节点确定用户和健身视频中教练的健身动作是否同步,如果不同步,则智慧屏10控制调整健身视频的播放速度。After the user performs the fitness action shown in Figure 2(a), the smart screen 10 determines the key bone nodes involved in the fitness action demonstrated by the trainer in the fitness video and the key bones involved in the user’s current action posture collected by the smart screen’s camera Nodes, and based on the key bone nodes, determine whether the fitness actions of the user and the coach in the fitness video are synchronized. If they are not synchronized, the smart screen 10 controls and adjusts the playback speed of the fitness video.
在本申请的一些实施例中,如图2(c)所示的,智慧屏的显示屏上实时显示教练以“腰背挺直、目视前方至左膝盖向左侧方抬高”的动作姿态,当前时刻显示屏上显示教练的“左膝盖向左侧方抬高”的动作姿态(显示屏上显示的是左膝盖抬高至标准位置的第50帧的画面),在显示屏的左上角还显示有该健身动作的文字提示“腰背挺直、目视前方至左膝盖向左侧方抬高”,用户对照显示屏上教练示 范的健身动作和文字提示,对应进行健身。In some embodiments of the present application, as shown in Figure 2(c), the smart screen displays the coach’s action of “straight back and raise the left knee to the left” in real time on the display screen of the smart screen. Posture, the coach’s gesture of "raising left knee to the left" is displayed on the screen at the current moment (the screen shows the 50th frame when the left knee is raised to the standard position), on the upper left of the screen The corner also displays the text prompt of the fitness action "back straight, visually raise the left knee to the left side". The user compares the fitness action and text prompt demonstrated by the trainer on the display to perform fitness.
显示屏的左下角实时显示用户的动作姿态为“左膝盖向左侧方抬高”(显示屏上显示的是左膝盖抬高至标准位置的一半距离位置处的第25帧的画面),显而易见的是,用户在初始做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时,用户的健身动作和健身视频中教练示范的健身动作并不一致,也就是说,用户的健身速度比健身视频中教练示范的健身速度慢,为了提示用户,可以在显示屏进行文字提示,如“请注意动作不匹配”的文字提示。The lower left corner of the display shows that the user's action posture is "left knee raised to the left" in real time (the display shows the picture of frame 25 when the left knee is raised to half the distance from the standard position), which is obvious What’s more, when the user initially does the fitness action of "back straight, looking forward to the left knee and raising the left knee to the left", the user’s fitness action is not consistent with the fitness action demonstrated by the coach in the fitness video, that is, It is said that the user’s fitness speed is slower than the fitness speed demonstrated by the trainer in the fitness video. In order to remind the user, text prompts can be provided on the display screen, such as the text prompt "Please note that the action does not match".
在本申请的一些实施例中,如图2(d)所示的,调整健身视频的播放速度,即将健身视频的播放速度调整为0.5倍速并在显示屏上显示文字提示“当前正以0.5倍速播放”,使得用户下次做该动作的动作姿态为“左膝盖抬高至标准位置的一半距离位置”时,健身视频中的“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作播放第25帧的画面,保证健身视频中教练示范的健身动作的播放速度与用户作健身动作的速度同步。In some embodiments of the present application, as shown in Figure 2(d), the playback speed of the fitness video is adjusted, that is, the playback speed of the fitness video is adjusted to 0.5 times speed and the text prompt "Currently at 0.5 times speed is displayed on the display screen" "Play", so that when the user's next action is "raise the left knee to half the distance from the standard position", in the fitness video, "back straight, look forward to the left knee to the left side The fitness action “High” plays the 25th frame to ensure that the playback speed of the fitness action demonstrated by the instructor in the fitness video is synchronized with the speed of the fitness action performed by the user.
如图3(a)所示的,根据本申请的一些实施例,通过本申请进行动作自适应同步的流程如下:As shown in Figure 3(a), according to some embodiments of the present application, the process of performing action adaptive synchronization through the present application is as follows:
步骤S30:电源模块为智慧屏供电,用户操作遥控器控制智慧屏开启,并在智慧屏的显示屏的交互界面上点击健身APP,打开健身APP上的健身视频并播放,其中,在智慧屏播放该健身视频时,若智慧屏的存储器中预先存储有该健身视频,则从存储器中直接提取该健身视频并在显示屏上播放,若存储器中未预先存储,则通过网络下载该健身视频并在显示屏上播放和在存储器中缓存,健身视频上包含健身教练示范的多个健身动作、语音指导以及文字提示等信息,如按照时间播放顺序,第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高,第二个健身动作为身体左侧屈且肘与膝盖触碰,第三个动作为高抬腿(左腿和右腿均完成一次高抬腿为完整的高抬腿动作)等,在教练示范健身动作时,会进行语音提示并在智慧屏的显示屏上显示该语音的文字。Step S30: The power module supplies power to the smart screen. The user operates the remote control to control the smart screen to turn on, and clicks on the fitness app on the interactive interface of the smart screen’s display screen to open the fitness video on the fitness app and play it, among which, play on the smart screen In the case of the fitness video, if the fitness video is pre-stored in the memory of the smart screen, the fitness video is directly extracted from the memory and played on the display screen. If the fitness video is not pre-stored in the memory, the fitness video is downloaded through the network and displayed Played on the display screen and buffered in the memory. The fitness video contains multiple fitness exercises demonstrated by the fitness trainer, voice guidance, and text prompts. For example, according to the time sequence, the first fitness exercise is to straighten your back and look visually. Raise the left knee from the front to the left. The second exercise is to bend the left side of the body and touch the elbow and knee. The third exercise is to raise the leg (both the left leg and the right leg are completed once a raised leg is complete When the trainer demonstrates fitness exercises, the trainer will give voice prompts and display the text of the voice on the display screen of the smart screen.
步骤S31:智慧屏按照播放时间顺序依次读取健身视频中的各个健身动作,并对各个健身动作进行视频分帧,视频分帧是将健身视频中每个健身动作分为一帧一帧的画面,视频中的每一帧都是一副静止的画面,从而将每一个健身动作划分为多帧图像画面,健身视频中每一个连续的健身动作的每一帧都是一副静止的图像,例如将第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高的动作分为50帧,将第二个健身动作为身体左侧屈且肘与左膝盖触碰的动作分为25帧,第三个动作为高抬腿的动作分为50帧。Step S31: The smart screen reads each fitness action in the fitness video in sequence according to the playback time, and performs video framing for each fitness action. Video framing is a picture that divides each fitness action in the fitness video into one frame by one frame. , Each frame in the video is a still image, so that each fitness action is divided into multiple frames of image images, each frame of each continuous fitness action in the fitness video is a still image, for example Divide the first fitness movement into 50 frames from the back straight and the movement from the front to the left knee lifted to the left. The second fitness movement is to bend the left side of the body with the elbow touching the left knee. The action is divided into 25 frames, and the third action is the action of raising the leg, divided into 50 frames.
步骤S32:智慧屏识别健身视频的教练示范的每一个健身动作的运动轨迹、提取每一个健身动作的文字说明、语音说明,并从中解析关键字,确定出教练示范的每一个健身动作涉及的骨骼节点的信息。其中,健身动作的运动轨迹以及关键字的解析可以通过机器学习实现,例如长短期记忆网络(Long Short-Term Memory,LSTM)、支持向量机(Support Vector Machine,SVM)等。以健身视频中播放的第一个健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例。在教练示范健身动作的同时,教练语音播出“腰背挺直、目视前方至左膝盖向左侧方抬高”的提示语音并以文字形式在显示屏上显示,智慧屏基于LSTM识别健身动作并从提示语音和文字中提取关键字“腰背”、“膝盖”、“左侧方”以及“目视前方”对该健身动作进行身体划分,划分为头部、颈部、躯干和左腿四个部分,并识别出以上身体部位涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10和左脚踝关节点11。此外,基于机器学习,也可以将每个健身动作进行分段,如健身视频中播放的第一个健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”,基于LSTM将该健身动作 分为两段,第一段为“腰背挺直、目视前方”,第二段为“左膝盖向左侧方抬高”,如此,将一个健身动作划分为两段,可以更好的与用户的健身速度进行同步。Step S32: The smart screen recognizes the trajectory of each fitness action demonstrated by the coach of the fitness video, extracts the text description and voice description of each fitness action, and parses the keywords from it to determine the bones involved in each fitness action demonstrated by the coach Information about the node. Among them, the analysis of the motion trajectory and keywords of fitness actions can be realized by machine learning, such as Long Short-Term Memory (LSTM), Support Vector Machine (SVM), and so on. Take, for example, that the first fitness action played in the fitness video is "back straight, look forward to the left knee to the left side" as an example. While the instructor demonstrates the fitness exercises, the instructor will broadcast the prompt voice of "back straight, look forward to the left knee to the left side" and display it in the form of text on the display. The smart screen recognizes fitness based on LSTM Exercise and extract keywords from the prompt voice and text: "lower back", "knee", "left side" and "eye front" to divide the body of the fitness exercise into head, neck, torso and left The four parts of the leg, and the bone nodes involved in the above body parts are identified as the head center 1, the neck center 2, the torso center 15, the left hip joint point 9, the left knee joint point 10, and the left ankle joint point 11. In addition, based on machine learning, each fitness action can also be segmented. For example, the first fitness action played in the fitness video is "back straight, look forward to the left knee to the left side", based on LSTM divides this fitness exercise into two segments, the first segment is "back straight, look forward", and the second segment is "raise the left knee to the left". In this way, a fitness exercise is divided into two segments , Can better synchronize with the user's fitness speed.
步骤S33:智慧屏的显示屏播放健身视频时,用户站立在面对智慧屏的摄像头的摄像范围内,跟着显示屏上显示的教练示范的健身动作、文字提示等对应做健身动作,用户初次做某一健身动作时,摄像头可以以5次/秒的采样频率采集摄像范围内的用户的动作姿态并传输到处理器,处理器基于采集到的动作姿态从存储器中提取显示屏当前播放的健身动作,并通过机器学习(如LSTM)识别与显示屏当前播放的健身动作所涉及的教练的骨骼节点相匹配的用户的骨骼节点,计算该健身动作所涉及的所有用户的骨骼节点从初始位置至结束位置的平均移动距离。Step S33: When the smart screen displays the fitness video, the user stands within the camera range of the camera facing the smart screen, and follows the fitness actions demonstrated by the instructor displayed on the display, text prompts, etc. to perform fitness actions. The user does this for the first time During a certain fitness action, the camera can collect the user's action posture within the camera range at a sampling frequency of 5 times per second and transmit it to the processor. Based on the collected action posture, the processor extracts the fitness action currently displayed on the display from the memory. , And use machine learning (such as LSTM) to identify the user’s bone nodes that match the coach’s bone nodes involved in the fitness action currently played on the display, and calculate the bone nodes of all users involved in the fitness action from the initial position to the end The average moving distance of the location.
在本申请的一些实施例中,以健身视频中播放的第一个健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,该健身动作总共为50帧,该动作涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10和左脚踝关节点11,如图3(b)所示的,在三维坐标系中,当用户初次进行左膝盖向左侧方抬高这一动作时,左膝盖关节点10和左脚踝关节点11发生的位移方向为Z轴正方向和Y轴正方向,假设左膝盖关节点10从本次健身动作的初始位置开始向Z轴正方向发生的位移距离为80cm,左膝盖关节点10向Y轴正方向发生的位移距离为50cm,左脚踝关节点11从本次健身动作的初始位置开始向Z轴正方向发生的位移距离为60m,左脚踝关节点11向Y轴正方向发生的位移距离为40cm,头部中心1、颈部中心2、左髋关节点9、躯干中心15发生的位移为零,左膝盖关节点10发生的位移距离约为90.2cm,脚踝关节点11发生的位移距离约为72.1cm,则用户完成“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的左膝盖关节点10和左脚踝关节点11发生的平均位移距离为左膝盖关节点10发生的位移距离和脚踝关节点11发生的位移距离的平均值,约为81.2cm。In some embodiments of the present application, the first fitness action played in the fitness video is "back straight, the front of the eye is raised to the left knee to the left" as an example, the fitness action is 50 frames in total , The bone nodes involved in this action are head center 1, neck center 2, torso center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11, as shown in Figure 3(b), In the three-dimensional coordinate system, when the user performs the movement of raising the left knee to the left for the first time, the displacement directions of the left knee joint point 10 and the left ankle joint point 11 are the positive direction of the Z axis and the positive direction of the Y axis. The displacement distance of the left knee joint point 10 in the positive direction of the Z-axis from the initial position of this fitness exercise is 80cm, the displacement distance of the left knee joint point 10 in the positive direction of the Y-axis is 50cm, and the left ankle joint point 11 from this From the initial position of the exercise, the displacement distance to the positive direction of the Z-axis is 60m, the displacement distance of the left ankle joint point 11 to the positive direction of the Y-axis is 40cm, the center of the head 1, the center of the neck 2, and the left hip joint point. 9. The displacement of the torso center 15 is zero, the displacement distance of the left knee joint point 10 is about 90.2cm, and the displacement distance of the ankle joint point 11 is about 72.1cm. The average displacement distance of the left knee joint point 10 and the left ankle joint point 11 of the fitness exercise "to the left knee raise to the left" is the displacement distance of the left knee joint point 10 and the displacement distance of the ankle joint point 11. The average value is about 81.2cm.
步骤S34:智慧屏基于平均移动距离和该健身动作的帧数,计算用户在做该健身动作时的速度。在本申请的一些实施例中,仍以健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,该健身动作总共为50帧,则用户完成“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作,头部中心1、颈部中心2、左髋关节点9、躯干中心15发生的位移为零,左膝盖关节点10和左脚踝关节点11在Z轴正方向和Y轴从本次健身动作的初始位置开始向正方向发生的平均位移距离为81.2cm,则用户在做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时的健身速度为
Figure PCTCN2021096640-appb-000001
Step S34: The smart screen calculates the speed of the user during the fitness action based on the average moving distance and the number of frames of the fitness action. In some embodiments of the present application, still taking the fitness action of "back straight, looking forward to the left knee to the left side" as an example, the fitness action is a total of 50 frames, then the user completes the "back Straighten up, look forward to the left knee and lift up to the left side." This fitness action, the head center 1, the neck center 2, the left hip joint point 9, and the torso center 15 have zero displacement, and the left knee joint point 10 and the left ankle joint point 11 in the positive direction of the Z-axis and the Y-axis from the initial position of this exercise to the positive direction of the average displacement distance is 81.2cm, then the user is doing "back straight, looking forward to Raise your left knee to the left. The fitness speed during this fitness exercise is
Figure PCTCN2021096640-appb-000001
步骤S35:智慧屏的摄像头以5次/秒的采样频率实时采集用户的动作姿态,用户再重复做同一健身动作时,计算涉及到该健身动作的所有骨骼节点的实时平均移动距离,对应播放该平均移动距离对应的画面帧,达到控制播放健身视频的播放速度的目的。在本申请的一些实施例中,仍以健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,用户在做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的过程中,头部中心1、颈部中心2、左髋关节点9、躯干中心15发生的位移为零,左膝盖关节点10和左脚踝关节点11从本次健身动作的初始位置开始在Z轴正方向和Y轴正方向发生的实时平均位移距离为40cm,用户初次做“腰背挺直、目视前方至左膝盖向左侧方抬高”健身动作的速度为0.62帧/cm,则此时按照时间播放顺序该健身视频的健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”应该播放至第0.62×40帧,约为第25帧,也就是说,用户的左膝盖关节点10和左脚踝关节点11在Z轴正方向和Y轴正方向发生的实时平均位移距离为40cm时,智慧屏的显示屏上播放的健身视频为“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作应该播放 第25帧。用户继续进行该健身动作至完成时刻(左膝盖关节点10和左脚踝关节点11在Z轴正方向和Y轴正方向发生的实时平均位移距离为81.2cm),智慧屏的显示屏上播放的“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作应该播放第50帧。Step S35: The camera of the smart screen collects the user's action posture in real time at a sampling frequency of 5 times per second. When the user repeats the same fitness action, the real-time average movement distance of all the bone nodes involved in the fitness action is calculated, and the corresponding playback The frame corresponding to the average moving distance achieves the purpose of controlling the playback speed of the fitness video. In some embodiments of the present application, still taking the fitness action of "back straight, looking forward to the left knee to the left side" as an example, the user is doing "back straight, looking forward to the left During the fitness exercise of raising the knee to the left, the displacement of the head center 1, the neck center 2, the left hip joint point 9, and the torso center 15 are zero, the left knee joint point 10 and the left ankle joint At point 11, the real-time average displacement distance in the positive direction of the Z-axis and the positive direction of the Y-axis from the initial position of this fitness exercise is 40cm. The speed of the "high" fitness action is 0.62 frames/cm, then the fitness action of the fitness video is "back straight, look forward to the left knee to the left side" should be played to 0.62. ×40 frames, about the 25th frame, that is, when the real-time average displacement of the user’s left knee joint point 10 and left ankle joint point 11 in the positive direction of the Z-axis and the positive direction of the Y-axis is 40cm, the smart screen’s The fitness video played on the screen is "back straight, look forward to the left knee to the left side" this fitness action should play the 25th frame. The user continues to perform the fitness exercise until the completion time (the real-time average displacement of the left knee joint point 10 and the left ankle joint point 11 in the positive direction of the Z-axis and the positive direction of the Y-axis is 81.2cm), the display is played on the smart screen "Straight back, look forward to the left knee lifted to the left side" this fitness action should play the 50th frame.
其中,用户的左膝盖关节点10和左脚踝关节点11在Z轴正方向和Y轴正方向发生的实时平均位移距离为40cm时,“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作在显示屏上播放的正常播放帧数为30帧(作为目标帧图像)。如此,针对用户作某一健身动作实际移动的距离,智慧屏对应控制“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的播放速度,使得健身视频中播放用户当前所做的健身动作的比较理想的帧数以与用户当前实际移动的距离相对应,如上描述的,在用户的左膝盖关节点10和左脚踝关节点11从本次健身动作的初始位置开始在Z轴正方向和Y轴正方向发生的实时平均位移距离为40cm,智慧屏控制健身视频中“腰背挺直、目视前方至左膝盖向左侧方抬高”这一动作播放第25帧(显而易见的是,该目标帧图像对应的时刻点(目标帧图像对应的时间的数值)小于用户当前的健身动作(第一姿态特征对应的时刻点))的画面而非以正常播放速度播放第30帧的画面,即智慧屏控制“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的播放速度慢于“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的正常播放速度(0.8倍速),如此,实现了显示屏上播放的“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的播放速度与用户做“腰背挺直、目视前方至左膝盖向左侧方抬高”的实际速度相匹配。Among them, when the user’s left knee joint point 10 and left ankle joint point 11 have a real-time average displacement distance of 40 cm in the positive direction of the Z-axis and the positive direction of the Y-axis, "the back is straight and the eyes are forward to the left knee to the left The normal number of frames played on the display screen of the fitness action "Fang Gao" is 30 frames (as the target frame image). In this way, the smart screen correspondingly controls the playback speed of the fitness action of "back straight, look forward to the left knee to the left side" according to the actual movement distance of a certain fitness action by the user, so that the fitness video will be played The ideal number of frames for the user’s current fitness exercise corresponds to the actual distance the user currently moves. As described above, the user’s left knee joint point 10 and left ankle joint point 11 start from the initial position of this fitness exercise. The real-time average displacement starting in the positive direction of the Z-axis and the positive direction of the Y-axis is 40cm. The smart screen controls the action of "back straight, look forward to the left knee to the left side" in the fitness video. 25 frames (obviously, the time point corresponding to the target frame image (the value of the time corresponding to the target frame image) is less than the user's current fitness action (the time point corresponding to the first posture feature)) screen instead of the normal playback speed Play the 30th frame, that is, the smart screen controls "back straight, look forward to the left knee to the left side". The playback speed of the fitness action is slower than "back straight, look forward to the left" The normal playback speed (0.8 times speed) of the fitness exercise "knee raised to the left" is realized on the display screen of "back straight, look forward to the left knee and raise the left knee to the left". The playback speed of a fitness action matches the actual speed at which the user does "back straight and raises the left knee to the left side as seen from the front".
本申请实施例公开的一种动作自适应同步方法,智慧屏的通过显示屏显示的健身视频的每一个健身动作的帧数和采集的用户的完成每一个健身动作时各个骨骼节点的移动距离相对应,用户完成每一个健身动作所发生的移动距离对应播放与该移动距离相匹配的帧数,使得健身视频中教练示范的健身动作的播放速度与用户作健身动作的速度同步,保证了用户随健身视频进行健身动作的连续性和节奏性,提高了用户的健身体验感。The embodiment of the application discloses an adaptive synchronization method for actions. The number of frames of each fitness action of the fitness video displayed on the display screen of the smart screen is relative to the movement distance of each bone node when the user completes each fitness action. Correspondingly, the movement distance that the user takes to complete each fitness action corresponds to the number of frames that match the movement distance, so that the playback speed of the fitness action demonstrated by the coach in the fitness video is synchronized with the speed at which the user performs the fitness action, ensuring that the user follows The continuity and rhythm of the fitness movement performed by the fitness video improves the user's sense of fitness experience.
实施例2Example 2
图4(a)至图4(c)是本申请实施例示出的另一种动作自适应同步方法的UI界面图,4(a) to 4(c) are UI interface diagrams of another action adaptive synchronization method shown in an embodiment of the present application.
在本申请的一些实施例中,如图4(a)所示的,显示屏上播放健身视频和实时采集用户的动作姿态,在开始播放健身视频之前,健身视频中的教练和用户的动作都处于初始状态,在初始UI界面上展示即将开始的健身动作的文字说明,右侧展示教练示范的健身动作,左下角展示用户当前的动作姿态,左上角展示健身动作的文字提示的健身动作要领,然后开始播放健身视频。In some embodiments of the present application, as shown in Figure 4(a), the fitness video is played on the display screen and the user’s action posture is collected in real time. Before the fitness video is played, both the coach and the user’s actions in the fitness video In the initial state, the text description of the upcoming fitness action is displayed on the initial UI interface, the right side displays the fitness action demonstrated by the instructor, the lower left corner displays the user's current posture, and the upper left corner displays the text prompts of the fitness action essentials. Then start playing fitness videos.
智慧屏确定健身视频中教练示范的健身动作所涉及的骨骼节点和用户当前的动作姿态涉及的骨骼节点,智慧屏判断健身视频播放的健身动作与用户做的健身动作是否匹配,如果匹配,则正常在显示屏上播放健身视频,如果不匹配,则智慧屏调整健身视频在显示屏上的播放状态。The smart screen determines the bone nodes involved in the fitness action demonstrated by the trainer in the fitness video and the bone nodes involved in the user's current posture. The smart screen determines whether the fitness action played by the fitness video matches the fitness action performed by the user. If it matches, it is normal Play the fitness video on the display. If it does not match, the smart screen adjusts the playback status of the fitness video on the display.
在本申请的一些实施例中,如图4(b)所示的,以“身体左侧屈且肘与膝盖触碰”为例,显示屏上实时显示教练以“身体左侧屈且肘与膝盖触碰”的动作姿态,当前时刻显示屏上显示教练的“身体左侧屈且肘与膝盖触碰”的动作姿态(显示屏上显示的是肘与膝盖触碰的第25帧的画面),在显示屏的左上角还显示有该健身动作的文字提示“身体左侧屈且肘与膝盖触碰”,用户对照教练示范的健身动作和文字提示,对应进行健身,采集用户实时的动作姿态并在显示屏的左下角实时显示用户的动作姿态为第三个健身动作“高抬腿”,判定用户此时已经完成了第二个健身动作,并在显示屏上显示文字提示“请注意动作不匹配”以提示用户。In some embodiments of the present application, as shown in Figure 4(b), taking "the left side of the body bends and the elbow touches the knee" as an example, the real-time display shows that the coach says "the left side of the body bends and the elbow touches the knee" in real time. Knee touch" action posture, the current moment the display shows the coach’s action posture of "the left side of the body is bent and the elbow touches the knee" (the screen shows the 25th frame of the elbow and knee touch) In the upper left corner of the display, there is also a text prompt of the fitness action "Bend the left side of the body and touch the elbow and knee". The user compares the fitness action demonstrated by the trainer and the text prompt to perform fitness and collects the user's real-time action posture. And in the lower left corner of the display screen, the user’s action posture is displayed in real time as the third fitness action "leg raise", it is determined that the user has completed the second fitness action at this time, and the text prompt "Please pay attention to the action" is displayed on the display screen. Does not match" to prompt the user.
在本申请的一些实施例中,如图4(c)所示的,处理器控制健身视频直接跳过第二个健身动作并在显示屏上显示文字提示“已为您跳过上一个动作”,转到用户当前正在进行的第三个健身动作“高抬腿”,此时,如图4(c)所示的,显示屏的右侧显示教练示范的高抬腿动作,显示屏的左上角显示高抬腿的文字提示,显示屏的左下角显示用户此时做高抬腿的实时的动作姿态,如此,保证了显示屏当前播放的健身视频的健身动作与用户当前进行的健身动作的同步性。In some embodiments of the present application, as shown in Figure 4(c), the processor controls the fitness video to skip the second fitness action directly and displays the text prompt "The previous action has been skipped for you" on the display screen. , Go to the third fitness action “leg raise” currently in progress by the user. At this time, as shown in Figure 4(c), the right side of the display shows the exercise demonstrated by the trainer, and the upper left of the display The corner displays the text prompt of raising the leg, and the lower left corner of the display shows the user’s real-time gesture of raising the leg at this time. This ensures that the fitness action of the fitness video currently displayed on the display is consistent with the fitness action currently performed by the user. Synchronization.
图5为本申请实施例示出的另一种动作自适应同步方法的流程示意图,如图5所示的,在一个实施例中,通过本申请进行交互式健身的流程如下:Fig. 5 is a schematic flowchart of another method for adaptive synchronization of actions shown in an embodiment of the application. As shown in Fig. 5, in one embodiment, the process of performing interactive fitness through the application is as follows:
步骤S50:用户在智慧屏的显示屏的交互界面上点击健身APP,选择健身APP中的健身计划或健身课程(具体的,健身计划可以包括一个或多个健身课程,本申请对此不做限定),其中,若智慧屏的预先存储有健身课程时,直接提取该健身视频并在显示屏上播放,智慧屏还可以通过网络获取健身课程并播放和在存储器中缓存,健身课程上包含健身教练示范的多个健身动作、语音指导以及文字提示等信息,如按照时间播放顺序,第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高,第二个健身动作为身体左侧屈且肘与膝盖触碰,第三个动作为高抬腿(左腿和右腿均完成一次高抬腿为完整的高抬腿动作)等,在教练示范健身动作时,会进行语音提示并在智慧屏的显示屏上显示该语音的文字。值得注意的是,健身视频的播放方式也可以为其他方式(如用户通过语音交互的方式向智慧屏发出语音指令(如播放视频),例如,用户说健身,智慧屏自动开启健身APP),本申请实施例并不局限于用户点击健身视频而播放健身视频这一种方式。Step S50: The user clicks on the fitness APP on the interactive interface of the display screen of the smart screen, and selects a fitness plan or a fitness course in the fitness APP (specifically, the fitness plan may include one or more fitness courses, which is not limited in this application ), among which, if the fitness course is pre-stored on the smart screen, the fitness video is directly extracted and played on the display. The smart screen can also obtain the fitness course through the network and play it and cache it in the memory. The fitness course includes a fitness coach Demonstration of multiple fitness actions, voice guidance and text prompts and other information. For example, according to the time sequence, the first fitness action is to straighten the back and look forward to the left knee to the left side, and the second fitness action In order to bend the left side of the body and touch the elbows and knees, the third action is to raise the leg (both the left leg and the right leg complete one leg raise is a complete leg raise), etc. When the coach demonstrates the fitness exercises, they will Give voice prompts and display the text of the voice on the display screen of the smart screen. It is worth noting that the way of playing fitness videos can also be other ways (for example, the user sends voice commands to the smart screen (such as playing a video) through voice interaction, for example, if the user says fitness, the smart screen automatically opens the fitness app). The application embodiment is not limited to the method of playing the fitness video when the user clicks on the fitness video.
步骤S51:智慧屏按照播放时间顺序依次读取健身视频中的各个健身动作,健身视频中每一个连续的健身动作可以由多个静止的画面帧构成,如将第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高分为50帧,将第二个健身动作为身体左侧屈且肘与左膝盖触碰分为25帧,第三个动作为高抬腿分为50帧。Step S51: The smart screen reads each fitness action in the fitness video in sequence according to the playback time. Each continuous fitness action in the fitness video can be composed of multiple still picture frames. For example, the first fitness action is a backrest Straightly and visually look forward to raising the left knee to the left side, it is divided into 50 frames. The second exercise is the left side of the body and the touch of the elbow and the left knee is divided into 25 frames, and the third movement is the raised leg. Divided into 50 frames.
步骤S52:智慧屏识别健身视频的教练示范的每一个健身动作的运动轨迹、提取每一个健身动作的文字说明、语音说明,并从中解析关键字,确定出每一个健身动作涉及的骨骼节点的信息(编号或名称)。其中,健身动作的运动轨迹以及关键字的解析可以通过机器学习实现,例如长短期记忆网络(Long Short-Term Memory,LSTM)、支持向量机(Support Vector Machine,SVM)等。以健身视频中播放的第一个健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,在教练示范健身动作的同时,教练语音播出“腰背挺直、目视前方至左膝盖向左侧方抬高”的提示语音并以文字形式在显示屏上显示,智慧屏基于LSTM识别健身动作并提取关键字“腰背”、“膝盖”、“左侧方”以及“目视前方”对该健身动作进行身体划分,划分为头部、颈部、躯干和左腿四个部分,并识别出以上身体部位涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10和左脚踝关节点11。Step S52: The smart screen recognizes the trajectory of each fitness action demonstrated by the coach of the fitness video, extracts the text description and voice description of each fitness action, and parses keywords from it to determine the bone node information involved in each fitness action (Number or name). Among them, the analysis of the motion trajectory and keywords of fitness actions can be realized by machine learning, such as Long Short-Term Memory (LSTM), Support Vector Machine (SVM), and so on. Take the first exercise played in the fitness video as "back straight, look forward to the left knee and raise the left knee to the left side" as an example. While the coach demonstrates the exercise, the coach will broadcast the voice of "back straight" Straight, look straight ahead to the left knee raised to the left” prompt voice and display it in text form on the display. The smart screen recognizes fitness actions based on LSTM and extracts the keywords “lower back”, “knee”, and “left”. The body is divided into four parts: head, neck, torso and left leg, and the bone nodes involved in the above body parts are identified as head center 1, neck Section center 2, trunk center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11.
步骤S53:智慧屏的显示屏播放健身视频时,用户站立在面对智慧屏的摄像头的摄像范围内,跟着显示屏上显示的教练示范的健身动作、文字提示等对应做健身动作,用户做某一健身动作时,摄像头可以以5次/秒的采样频率采集摄像范围内的用户的动作姿态并传输到处理器,处理器基于采集到的动作姿态从存储器中提取显示屏当前播放的健身动作,并通过机器学习(如LSTM)识别与显示屏当前播放的健身动作所涉及的教练的骨骼节点相对应的用户的骨骼节点,以健身动作“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,通过LSTM识别出用户的骨骼节点为头部中心1、颈部中心2、 躯干中心15、左髋关节点9、左膝盖关节点10和左脚踝关节点11。Step S53: When the display screen of the smart screen plays fitness videos, the user stands within the camera range of the camera facing the smart screen, and follows the fitness actions demonstrated by the coach displayed on the display screen, text prompts, etc., to perform fitness actions, and the user does something During a fitness action, the camera can collect the user's action posture within the camera range at a sampling frequency of 5 times per second and transmit it to the processor. Based on the collected action posture, the processor extracts the fitness action currently being played on the display screen from the memory. And through machine learning (such as LSTM) to identify the user's bone node corresponding to the coach's bone node involved in the fitness action currently displayed on the display screen, use the fitness action "back straight, look forward to the left knee to the left As an example, the user’s skeletal nodes identified by LSTM are head center 1, neck center 2, torso center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11.
步骤S54:智慧屏实时抓取与当前显示屏播放的健身视频的健身动作对应的骨骼节点的运动轨迹和动作姿态,和通过摄像头采集的用户当前做该健身动作所涉及的骨骼节点的运动轨迹和动作姿态,智慧屏判断健身视频播放的健身动作与用户做的健身动作是否匹配,如果匹配,则进入S55,若不匹配,进入S56。Step S54: The smart screen captures in real time the motion trajectory and motion posture of the bone node corresponding to the fitness action of the fitness video played on the current display screen, and the motion trajectory and motion trajectory of the bone node involved in the current fitness action collected by the user through the camera. For the action posture, the smart screen judges whether the fitness action played by the fitness video matches the fitness action performed by the user, if it matches, it goes to S55, if it does not match, it goes to S56.
其中,可以通过显示屏当前播放的健身动作所涉及的教练的骨骼节点编号或名称与用户当前做的健身动作所涉及的用户的骨骼节点名称或编号判断健身视频播放的健身动作与用户做的健身动作是否匹配(动作姿态),和运动轨迹判断健身视频播放的健身动作与用户做的健身动作是否匹配,例如按照时间播放顺序,显示屏上显示的健身视频的第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高,第二个健身动作为身体左侧屈且肘与膝盖触碰,智慧屏的摄像头采集到用户正在进行第二个健身动作“身体左侧屈且肘与膝盖触碰”,并传输至处理器。Among them, the fitness action played by the fitness video and the fitness performed by the user can be judged by the bone node number or name of the coach involved in the fitness action currently played on the display screen and the user's bone node name or number involved in the fitness action currently performed by the user. Whether the action matches (action posture), and the motion trajectory, determine whether the fitness action played by the fitness video matches the fitness action performed by the user. For example, according to the time sequence, the first fitness action of the fitness video displayed on the display screen is waist back support Straightly and visually raise the left knee to the left side, the second exercise is to bend the left side of the body and touch the elbow and knee. The camera of the smart screen collects that the user is performing the second exercise "Left side of the body" Bend and touch your elbows and knees" and transmit to the processor.
处理器通过LSTM学习该用户当前进行的第二个健身动作“身体左侧屈且肘与膝盖触碰”所涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10、左手肘关节点5、左手腕关节点7、左脚踝关节点11,智慧屏对摄像头采集的用户姿态和运动轨迹进行分析,即用户姿态为身体左侧屈、肘与膝盖触碰,运动轨迹为:身体由正变为左侧屈,肘与膝盖靠近,即头部中心1、颈部中心2和躯干中心15向左倾斜、左膝盖关节点10向上抬起、左手肘关节点5和左手腕关节点7向左膝盖关节点10靠近,如此,智慧屏判定用户完成了第一个健身动作;智慧屏从存储器中提取的显示屏当前播放的健身动作为“左膝盖向左侧方抬高”,智慧屏对显示屏当前播放的教练示范的健身动作的运动轨迹进行分析,即教练的动作姿态为左膝盖抬高,运动轨迹为:左膝盖由初始位置向左侧方抬高,即左膝盖关节点10和左脚踝关节点11由下往上抬起,如此,智慧屏判断当前显示屏播放的是健身视频的第一个健身动作,此时,智慧屏判定用户当前做的健身动作和当前显示屏播放的健身动作不匹配。The processor learns through the LSTM that the user’s current second fitness action "the left side of the body is bent and the elbows and knees touch" the bone nodes involved are the head center 1, the neck center 2, the torso center 15, and the left hip joint. Point 9, left knee joint point 10, left elbow joint point 5, left wrist joint point 7, and left ankle joint point 11. The smart screen analyzes the user's posture and motion trajectory collected by the camera, that is, the user's posture is left flexion, When the elbow and knee touch, the movement trajectory is: the body changes from positive to left flexion, the elbow and knee are close, that is, the head center 1, the neck center 2 and the trunk center 15 are tilted to the left, and the left knee joint point 10 is lifted up. , The left elbow joint point 5 and the left wrist joint point 7 are close to the left knee joint point 10. In this way, the smart screen determines that the user has completed the first fitness action; the current fitness action on the display screen extracted from the memory by the smart screen is " Raise the left knee to the left", the smart screen analyzes the exercise trajectory of the fitness exercise demonstrated by the coach currently displayed on the display, that is, the coach’s posture is raising the left knee, and the trajectory is: the left knee moves from the initial position to the The left side is raised, that is, the left knee joint point 10 and the left ankle joint point 11 are raised from bottom to top. In this way, the smart screen judges that the current screen is playing the first fitness action of the fitness video. At this time, the smart screen It is determined that the fitness action currently performed by the user does not match the fitness action currently displayed on the display screen.
S55:正常在显示屏上播放健身视频。S55: Play the fitness video on the screen normally.
S56:智慧屏调整健身视频在显示屏上的播放状态,具体如下:按照时间播放顺序,如果用户已经完成显示屏当前播放的健身视频的健身动作(当前播放的健身视频的健身动作的帧图像的时刻点(当前播放的健身视频的健身动作的时间)未超出目标帧图像的时刻点(目标帧图像的健身动作的时间),其中,当前播放的健身视频的健身动作的帧图像的时刻点和目标帧图像的时刻点之间的时刻关系为:当前播放的健身视频的健身动作的帧图像的时间早于目标帧图像的时间)。则智慧屏控制健身视频高倍速(如4倍速为目标速度)播放显示屏当前播放的健身动作或者直接跳过显示屏当前播放的健身动作(当前播放的健身动作为第一姿态特征对应的帧图像)播放用户正在进行的下一个健身动作(目标帧图像)。如果显示屏已经播放完成健身视频的健身动作,智慧屏基于摄像头实时采集的用户的动作姿态和动作轨迹判定用户还未完成该健身动作,则智慧屏暂停播放该健身视频,并在智慧屏的显示屏上显示当前用户正在进行的健身动作的文字提示,直至摄像头实时采集到用户完成已经播完的健身动作并且用户当前的健身动作和当前暂停画面对应的动作姿态相匹配时,取消暂停并从当前暂停时刻开始恢复视频播放,或者将健身视频回放至与用户当前的动作姿态相对应的画面再次同步进行健身动作。S56: The smart screen adjusts the playback status of the fitness video on the display, as follows: According to the time sequence, if the user has completed the fitness action of the fitness video currently being played on the display (the frame image of the fitness action of the fitness video currently being played) The time point (the time of the fitness action of the currently played fitness video) does not exceed the time point of the target frame image (the time of the fitness action of the target frame image), where the time point of the frame image of the fitness action of the currently played fitness video and The time relationship between the time points of the target frame image is: the time of the frame image of the fitness action of the currently played fitness video is earlier than the time of the target frame image). Then the smart screen controls the fitness video at high speed (for example, 4 times speed is the target speed) to play the fitness action currently played on the display screen or directly skip the fitness action currently played on the display screen (the fitness action currently played is the frame image corresponding to the first posture feature) ) Play the next fitness action (target frame image) that the user is doing. If the display screen has already played the fitness action of the completed fitness video, the smart screen judges that the user has not completed the fitness action based on the user's action posture and motion trajectory collected in real time by the camera, and the smart screen pauses playing the fitness video and displays it on the smart screen The screen displays the text prompt of the current fitness action being performed by the user until the camera collects in real time that the user has completed the fitness action that has been broadcasted and the user’s current fitness action matches the action posture corresponding to the current pause screen. The video playback is resumed at the moment of pause, or the fitness video is played back to the screen corresponding to the user's current posture to perform the fitness action again.
在本申请的一些实施例中,如按照时间播放顺序,显示屏上显示的健身视频的第一个健身动作为 腰背挺直、目视前方至左膝盖向左侧方抬高,第二个健身动作为身体左侧屈且肘与膝盖触碰,智慧屏的摄像头采集到用户正在进行第二个健身动作“身体左侧屈且肘与膝盖触碰”,并传输至处理器。In some embodiments of the present application, the first fitness action of the fitness video displayed on the display screen is to straighten the back and raise the left knee to the left side, and the second The fitness action is bending the left side of the body and touching the elbow and knee. The camera of the smart screen collects that the user is performing the second fitness action "bending the left side of the body and touching the elbow and knee", and transmits it to the processor.
处理器通过LSTM学习该用户当前进行的第二个健身动作所涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10、左手肘关节点5、左手腕关节点7、左脚踝关节点11,智慧屏对摄像头采集的用户姿态和运动轨迹进行分析,即用户姿态为身体左侧屈、肘与膝盖触碰,运动轨迹为:身体由正变为左侧屈,肘与膝盖靠近,即头部中心1、颈部中心2和躯干中心15向左倾斜、左膝盖关节点10向上抬起、左手肘关节点5和左手腕关节点7向左膝盖关节点10靠近,如此,智慧屏判定用户完成了第一个健身动作;智慧屏从存储器中提取的显示屏当前播放的健身动作为“左膝盖向左侧方抬高”,智慧屏对显示屏当前播放的教练示范的健身动作的运动轨迹进行分析,即教练的动作姿态为左膝盖抬高,运动轨迹为:左膝盖由初始位置向左侧方抬高,即左膝盖关节点10和左脚踝关节点11由下往上抬起,如此,智慧屏判断当前显示屏播放的是健身视频的第一个健身动作。此时,智慧屏的摄像头会实时采集用户当前进行的健身动作,智慧屏可以以4倍速的速度播放健身视频直至显示屏上播放的健身动作和用户当前进行的健身动作相匹配,则恢复正常速度播放健身视频。The processor learns through LSTM that the bone nodes involved in the second fitness action currently performed by the user are head center 1, neck center 2, torso center 15, left hip joint point 9, left knee joint point 10, and left elbow joint. Point 5, left wrist joint point 7, left ankle joint point 11, the smart screen analyzes the user's posture and motion trajectory collected by the camera, that is, the user posture is the left side of the body, the elbow and the knee touch, and the motion trajectory is: It is becoming left flexion, the elbow is close to the knee, that is, the head center 1, the neck center 2 and the torso center 15 are tilted to the left, the left knee joint point 10 is lifted up, the left elbow joint point 5 and the left wrist joint point 7 Approach the left knee joint point 10, so the smart screen determines that the user has completed the first fitness action; the current fitness action being played on the display screen extracted from the memory by the smart screen is "raise the left knee to the left", the smart screen Analyze the trajectory of the fitness exercise demonstrated by the coach currently displayed on the display, that is, the coach’s posture is to raise the left knee, and the trajectory is: the left knee is raised from the initial position to the left, that is, the left knee joint point 10 And the left ankle joint point 11 is lifted from bottom to top, so the smart screen judges that the current screen is playing the first fitness action of the fitness video. At this time, the camera of the smart screen will collect the user's current fitness actions in real time, and the smart screen can play fitness videos at 4 times the speed until the fitness action played on the display matches the user's current fitness action, then the normal speed will be restored Play fitness videos.
本申请实施例公开的一种动作自适应同步方法,实时识别显示屏中播放的健身视频的教练的动作姿态和运动轨迹,以及识别智慧屏的摄像头采集的用户做的健身动作的动作姿态和运动轨迹,在两者不匹配时,调整显示屏播放健身视频的播放状态从而使得显示屏当前播放的健身视频的健身动作与用户当前进行的健身动作的同步性,保证用户在进行健身时的连续性和流畅性。An action adaptive synchronization method disclosed in the embodiments of the present application recognizes in real time the action posture and movement track of the coach of the fitness video played on the display screen, and recognizes the action posture and movement of the fitness action performed by the user collected by the camera of the smart screen Trajectory, when the two do not match, adjust the playback status of the fitness video on the display screen so that the fitness action of the fitness video currently displayed on the display screen is synchronized with the fitness action currently performed by the user, ensuring the continuity of the user during fitness And fluency.
实施例3Example 3
图6(a)至图6(c)是本申请实施例示出的另一种动作自适应同步方法的UI界面图,6(a) to 6(c) are UI interface diagrams of another method for adaptive synchronization of actions shown in an embodiment of the present application.
在本申请的一些实施例中,如图6(a)所示的,显示屏上播放健身视频和实时采集用户的动作姿态,在开始播放健身视频之前,健身视频中的教练和用户的动作都处于初始状态,在初始UI界面上展示即将开始的健身动作的文字说明,右侧展示教练示范的健身动作,左下角展示用户当前的动作姿态,左上角展示健身动作的文字提示的健身动作要领,然后智慧屏控制开始播放健身视频。In some embodiments of the present application, as shown in FIG. 6(a), the fitness video is played on the display screen and the user's action posture is collected in real time. Before the fitness video is played, the coach and the user's actions in the fitness video are both In the initial state, the text description of the upcoming fitness action is displayed on the initial UI interface, the right side displays the fitness action demonstrated by the instructor, the lower left corner displays the user's current posture, and the upper left corner displays the text prompts of the fitness action essentials. Then the smart screen control starts to play fitness videos.
智慧屏判断用户做的健身动作是否标准,如果不标准,则智慧屏将该健身动作作为非标准健身动作,并计算用户做非标准健身动作的健身速度,智慧屏以该健身速度播放健身视频中与该非标准健身动作(错误的健身动作)对应的教练示范的标准的健身动作,以对用户做的错误的健身动作进行纠正。The smart screen judges whether the fitness action performed by the user is standard. If it is not standard, the smart screen uses the fitness action as a non-standard fitness action, and calculates the fitness speed of the user performing the non-standard fitness action. The smart screen plays the fitness video at the fitness speed The standard fitness action demonstrated by the coach corresponding to the non-standard fitness action (wrong fitness action) is to correct the wrong fitness action performed by the user.
在本申请的一些实施例中,如图6(b)所示的,以“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,显示屏上实时显示教练以“腰背挺直、目视前方至左膝盖向左侧方抬高”的动作姿态,当前时刻显示屏上显示教练的“左膝盖向左侧方抬高”的动作姿态(显示屏上显示的是左膝盖抬高至标准位置的第50帧的画面),在显示屏的左上角还显示有该健身动作的文字提示“腰背挺直、目视前方至左膝盖向左侧方抬高”,用户对照显示屏上教练示范的健身动作和文字提示,对应进行健身,采集用户实时的动作姿态并在显示屏的左下角实时显示用户的动作姿态为“右膝盖向右侧方抬高”,显而易见的是,用户在做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时,与教练示范的健身动作“腰背挺直、目视前方至左膝盖向左侧方抬高”并不匹配,说明此时用户进行的健身动作出现错误,并在显示屏上显示文字提示“请注意动作不匹配”。In some embodiments of the present application, as shown in Figure 6(b), taking "back straight, visually looking forward to the left knee raised to the left side" as an example, the real-time display on the display shows that the coach reads " Keep your back straight and look forward to the left knee lifted to the left. At the current moment, the coach’s motion posture of “left knee lifted to the left” is displayed on the screen (the display shows The 50th frame when the left knee is raised to the standard position), the text prompt of the fitness action is also displayed in the upper left corner of the display screen: "Straight back, look forward to raise the left knee to the left side", The user compares the fitness actions and text prompts demonstrated by the coach on the display to perform fitness, collects the user's real-time action posture and displays the user’s action posture in real time in the lower left corner of the display as "right knee lifted to the right", which is obvious What’s more, when the user is doing the fitness exercise of "back straight, looking forward to the left knee to the left side", the fitness exercise demonstrated by the instructor is "back straight, looking forward to the left knee "Left side elevation" does not match, indicating that the user's fitness exercise is wrong at this time, and the text prompt "Please note that the exercise does not match" is displayed on the display screen.
在整个健身视频播放完成后,显示屏上同步播放教练示范的标准的健身动作“左膝盖向左侧方抬 高”和用户做错的健身动作“右膝盖向右侧方抬高”。在本申请的一些实施例中,如图6(c)所示的,可以在显示屏的右侧显示用户做错的健身动作的视频,在显示屏的左下角显示教练示范的标准的健身动作,在左上角显示教练示范的标准的健身动作的文字提示,以与教练示范的标准的健身视频进行比对和讲解并在显示屏上显示文字提示“出现错误动作,请看您的动作回放”以提醒用户,纠正用户做错的健身动作。After the entire fitness video is played, the standard fitness action "Left Knee Raise to the Left" and the user's wrong fitness action "Right Knee Raise to the Right" demonstrated by the coach are simultaneously played on the display screen. In some embodiments of the present application, as shown in FIG. 6(c), the video of the user's wrong fitness action can be displayed on the right side of the display screen, and the standard fitness action demonstrated by the coach can be displayed in the lower left corner of the display screen. , The text prompt of the standard fitness exercise demonstrated by the coach is displayed in the upper left corner, and the standard fitness video demonstrated by the coach is compared and explained, and the text prompt "Wrong action occurred, please watch your action replay" on the display screen. To remind the user, correct the user's wrong fitness action.
图7为本申请实施例示出的另一种动作自适应同步方法的流程示意图,如图7所示的,在一个实施例中,通过本申请进行交互式健身的流程如下:FIG. 7 is a schematic flowchart of another method for adaptive synchronization of actions shown in an embodiment of the application. As shown in FIG. 7, in an embodiment, the process of performing interactive fitness through the application is as follows:
步骤S70:电源模块为智慧屏供电,用户操作遥控器控制智慧屏开启,并在智慧屏的显示屏的交互界面上点击健身APP,打开健身APP上的健身视频并播放,其中,在智慧屏播放该健身视频时,若智慧屏的存储器中预先存储有该健身视频,则从存储器中直接提取该健身视频并在显示屏上播放,若存储器中未预先存储,则通过网络下载该健身视频并在显示屏上播放和在存储器中缓存,健身视频上包含健身教练示范的多个健身动作、语音指导以及文字提示等信息,如按照时间播放顺序,第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高,第二个健身动作为身体左侧屈且肘与膝盖触碰,第三个动作为高抬腿(左腿和右腿均完成一次高抬腿为完整的高抬腿动作)等,在教练示范健身动作时,会进行语音提示并在智慧屏的显示屏上显示该语音的文字。Step S70: The power module supplies power to the smart screen. The user operates the remote control to control the smart screen to turn on, and clicks on the fitness app on the interactive interface of the smart screen’s display screen to open the fitness video on the fitness app and play it, among which, play on the smart screen In the case of the fitness video, if the fitness video is pre-stored in the memory of the smart screen, the fitness video is directly extracted from the memory and played on the display screen. If the fitness video is not pre-stored in the memory, the fitness video is downloaded through the network and displayed Played on the display screen and buffered in the memory. The fitness video contains multiple fitness exercises demonstrated by the fitness trainer, voice guidance, and text prompts. For example, according to the time sequence, the first fitness exercise is to straighten your back and look visually. Raise the left knee from the front to the left. The second exercise is to bend the left side of the body and touch the elbow and knee. The third exercise is to raise the leg (both the left leg and the right leg are completed once a raised leg is complete When the trainer demonstrates fitness exercises, the trainer will give voice prompts and display the text of the voice on the display screen of the smart screen.
步骤S71:智慧屏的处理器按照播放时间顺序依次读取健身视频中的各个健身动作,健身视频中每一个连续的健身动作可以由多个静止的画面帧构成,如将第一个健身动作为腰背挺直、目视前方至左膝盖向左侧方抬高分为50帧,将第二个健身动作为身体左侧屈且肘与左膝盖触碰分为25帧,第三个动作为高抬腿分为50帧。Step S71: The processor of the smart screen reads each fitness action in the fitness video in sequence according to the playback time. Each continuous fitness action in the fitness video can be composed of multiple still picture frames. For example, the first fitness action is The back is straight, and the left knee is raised from the front to the left. The second exercise is divided into 50 frames. The second exercise is the left side of the body and the touch of the elbow and the left knee is divided into 25 frames. The third movement is The high leg is divided into 50 frames.
步骤S72:智慧屏识别健身视频的教练示范的每一个健身动作的运动轨迹、提取每一个健身动作的文字说明、语音说明,并从中解析关键字,确定出健身视频中的每一个健身动作涉及的骨骼节点的信息(编号或名称)。其中,健身动作的运动轨迹以及关键字的解析可以通过机器学习实现,例如长短期记忆网络(Long Short-Term Memory,LSTM)、支持向量机(Support Vector Machine,SVM)等。以健身视频中播放的第一个健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,在教练示范健身动作的同时,教练语音播出“腰背挺直、目视前方至左膝盖向左侧方抬高”的提示语音并以文字形式在显示屏上显示,智慧屏基于LSTM识别健身动作并提取关键字“腰背”、“膝盖”、“左侧方”以及“目视前方”对该健身动作进行身体划分,划分为头部、颈部、躯干和左腿四个部分,并识别出以上身体部位涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10和左脚踝关节点11。Step S72: The smart screen recognizes the trajectory of each fitness action demonstrated by the coach of the fitness video, extracts the text description and voice description of each fitness action, and parses the keywords from it to determine what each fitness action in the fitness video involves The information (number or name) of the bone node. Among them, the analysis of the motion trajectory and keywords of fitness actions can be realized by machine learning, such as Long Short-Term Memory (LSTM), Support Vector Machine (SVM), and so on. Take the first exercise played in the fitness video as "back straight, look forward to the left knee and raise the left knee to the left side" as an example. While the coach demonstrates the exercise, the coach will broadcast the voice of "back straight" Straight, look straight ahead to the left knee raised to the left” prompt voice and display it in text form on the display. The smart screen recognizes fitness actions based on LSTM and extracts the keywords “lower back”, “knee”, and “left”. The body is divided into four parts: head, neck, torso and left leg, and the bone nodes involved in the above body parts are identified as head center 1, neck Section center 2, trunk center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11.
步骤S73:智慧屏的显示屏播放健身视频时,用户站立在面对智慧屏的摄像头的摄像范围内,跟着显示屏上显示的教练示范的健身动作、文字提示等对应做健身动作,用户初次做某一健身动作时,摄像头可以以5次/秒的采样频率采集摄像范围内的用户的动作姿态并传输到处理器,处理器基于采集到的动作姿态从存储器中提取显示屏当前播放的健身动作,并通过机器学习(如LSTM)识别与显示屏当前播放的健身动作所涉及的教练的骨骼节点相匹配的用户的骨骼节点,计算该健身动作所涉及的所有用户的骨骼节点从初始位置至结束位置的平均移动距离。以健身视频中播放的第一个健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,该健身动作总共为50帧,该动作涉及的骨骼节点为头部中心1、颈部中心2、躯干中心15、左髋关节点9、左膝盖关节点10和左脚踝关节点 11。Step S73: When the display screen of the smart screen plays fitness videos, the user stands within the camera range of the camera facing the smart screen, and follows the fitness actions demonstrated by the coach displayed on the display screen, text prompts, etc., to perform fitness actions corresponding to the fitness actions, and the user does it for the first time During a certain fitness action, the camera can collect the user's action posture within the camera range at a sampling frequency of 5 times per second and transmit it to the processor. Based on the collected action posture, the processor extracts the fitness action currently displayed on the display from the memory. , And use machine learning (such as LSTM) to identify the user’s bone nodes that match the coach’s bone nodes involved in the fitness action currently played on the display, and calculate the bone nodes of all users involved in the fitness action from the initial position to the end The average moving distance of the location. Take the first fitness action played in the fitness video as "back straight, look forward to the left knee and raise the left knee to the left" as an example. The fitness action is a total of 50 frames, and the bone node involved in this action is the head Head center 1, neck center 2, torso center 15, left hip joint point 9, left knee joint point 10, and left ankle joint point 11.
在本申请的一些实施例中,如图3(b)所示的,在三维坐标系中,当用户初次进行左膝盖向左侧方抬高这一动作时,左膝盖关节点10和左脚踝关节点11发生的位移方向为Z轴正方向和Y轴正方向,假设左膝盖关节点10向Z轴正方向发生的位移距离为80cm,左膝盖关节点10向Y轴正方向发生的位移距离为50cm,左脚踝关节点11向Z轴正方向发生的位移距离为60m,左脚踝关节点11向Y轴正方向发生的位移距离为40cm,头部中心1、颈部中心2、左髋关节点9、躯干中心15发生的位移为零,左膝盖关节点10发生的位移距离约为90.2cm,脚踝关节点11发生的位移距离约为72.1cm,则用户完成“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的左膝盖关节点10和左脚踝关节点11发生的平均位移距离为左膝盖关节点10发生的位移距离和脚踝关节点11发生的位移距离的平均值,约为81.2cm。In some embodiments of the present application, as shown in Figure 3(b), in the three-dimensional coordinate system, when the user performs the action of raising the left knee to the left for the first time, the left knee joint point 10 and the left ankle The displacement direction of node 11 is the positive direction of the Z axis and the positive direction of the Y axis. Assume that the displacement distance of the left knee joint point 10 in the positive direction of the Z axis is 80cm, and the displacement distance of the left knee joint point 10 in the positive direction of the Y axis. The displacement distance of the left ankle joint point 11 in the positive direction of the Z-axis is 60m, the displacement distance of the left ankle joint point 11 in the positive direction of the Y-axis is 40cm, the center of the head 1, the center of the neck 2, and the left hip joint Point 9, the displacement of the torso center 15 is zero, the displacement distance of the left knee joint point 10 is about 90.2cm, and the displacement distance of the ankle joint point 11 is about 72.1cm. The average displacement distance of the left knee joint point 10 and the left ankle joint point 11 of the fitness action "from the front to the left knee raise to the left" is the displacement distance of the left knee joint point 10 and the displacement of the ankle joint point 11. The average value of the distance is about 81.2 cm.
用户做完第一个健身动作之后,紧接着做第二个健身动作身体左侧屈且肘与左膝盖触碰,直至用户做完整个健身视频指示的健身动作。After the user completes the first fitness exercise, he immediately performs the second fitness exercise with the left side of the body bend and the elbow touches the left knee until the user performs the entire fitness exercise indicated by the fitness video.
步骤S74:摄像头将实时采集的用户的健身动作的动作姿态、动作轨迹等信息传输至智慧屏的处理器和存储器,存储器将用户做每一个健身动作的视频按照时间录制顺序进行存储,处理器实时计算用户每次做每一个健身动作的速度并将实时计算的每一个健身动作的速度也存储至存储器。Step S74: The camera transmits the information of the user's fitness actions collected in real time to the processor and memory of the smart screen. The memory stores the video of each fitness action performed by the user in the order of time recording, and the processor real-time Calculate the speed of each fitness action performed by the user each time and store the speed of each fitness action calculated in real time in the memory.
步骤S75:智慧屏从存储器中提取与用户做的每一个健身动作对应的教练示范的标准健身动作进行识别并匹配以判断用户做的健身动作是否标准,在用户做的健身动作不标准时,则执行步骤S751将该健身动作作为错误动作存储在存储器中,在用户做的健身动作标准时,则执行步骤S752将该健身动作定义为标准动作,该标准动作可选的存储在存储器中。Step S75: The smart screen extracts from the memory the standard fitness actions demonstrated by the coach corresponding to each fitness action performed by the user, recognizes and matches to determine whether the fitness action performed by the user is standard, and executes it when the fitness action performed by the user is not standard Step S751 stores the fitness action as an error action in the memory. When the fitness action performed by the user is standard, step S752 is executed to define the fitness action as a standard action, and the standard action is optionally stored in the memory.
在本申请的一些实施例中,仍以健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,该健身动作总共为50帧,则用户完成“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作,头部中心1、颈部中心2、左髋关节点9、躯干中心15发生的位移为零,左膝盖关节点10和左脚踝关节点11在Z轴正方向和Y轴正方向发生的平均位移距离为81.2cm,则用户在做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时的速度为
Figure PCTCN2021096640-appb-000002
智慧屏将该健身动作的速度0.62帧/cm存储至存储器,当用户开始做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时,用户的右膝盖向左侧方抬高或者右膝盖向右侧方抬高时,摄像头采集用户此时的动作姿态(右膝盖在右侧方抬高)并传输至处理器,处理器基于LSTM网络识别出该动作姿态中的用户的右膝盖关节点13和右脚踝关节点14,处理器基于LSTM网络识别出健身视频中“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作的教练的骨骼节点为左膝盖关节点10和左脚踝关节点11,该健身动作中智慧屏将识别出的用户的关键骨骼节点右膝盖关节点13和右脚踝关节点14与教练的关键骨骼节点左膝盖关节点10和左脚踝关节点11进行骨骼节点的编号或名称的对比匹配,此时,智慧屏进行对比的用户的骨骼节点的编号与健身视频中教练的骨骼节点的编号并不一致,则判定用户做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作为错误动作,并将摄像头录制的用户做的“腰背挺直、目视前方至左膝盖向左侧方抬高”这一错误的健身动作存储至存储器。值得注意的是,用户做健身动作的速度的计算方式与上述实施例相同,本申请实施例在此不再赘述。
In some embodiments of the present application, still taking the fitness action of "back straight, looking forward to the left knee to the left side" as an example, the fitness action is a total of 50 frames, then the user completes the "back Straighten up, look forward to the left knee and lift up to the left side." This fitness action, the head center 1, the neck center 2, the left hip joint point 9, and the torso center 15 have zero displacement, and the left knee joint point 10 and the left ankle joint point 11 have an average displacement distance of 81.2cm in the positive direction of the Z axis and the positive direction of the Y axis. The speed during a fitness exercise is
Figure PCTCN2021096640-appb-000002
The smart screen stores the fitness action speed 0.62 frames/cm in the memory. When the user starts the fitness action of "back straight, looking forward to the left knee to the left side", the user's right knee is facing When the left side is raised or the right knee is raised to the right side, the camera collects the user's action posture at this time (the right knee is raised on the right side) and transmits it to the processor. The processor recognizes the action posture based on the LSTM network The user’s right knee joint point 13 and right ankle joint point 14 in the LSTM network are used by the processor to identify the fitness action of "back straight, look forward to the left knee to the left side" in the fitness video. The coach’s bone nodes are left knee joint point 10 and left ankle joint point 11. In this fitness exercise, the smart screen will identify the user’s key bone nodes, right knee joint point 13 and right ankle joint point 14 and the coach’s key bone node left Knee joint point 10 and left ankle joint point 11 are compared and matched with the number or name of the bone node. At this time, the number of the bone node of the user who is compared on the smart screen is not consistent with the number of the bone node of the coach in the fitness video, then it is determined The user’s fitness action of "straight back and look forward to the left knee to the left side" is a wrong action. The erroneous exercise action of "raise the left side" is stored in the memory. It is worth noting that the calculation method of the speed at which the user performs the fitness action is the same as the above-mentioned embodiment, and the details are not repeated here in the embodiment of the present application.
步骤S76:用户在做完整个健身视频指示的所有的健身动作后,智慧屏计算每一个健身动作的平 均速度,仍以健身动作为“腰背挺直、目视前方至左膝盖向左侧方抬高”为例,“腰背挺直、目视前方至左膝盖向左侧方抬高”在整个健身视频中用户总共需要做3次,智慧屏从存储器中提取用户初次做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时的速度,其速度为
Figure PCTCN2021096640-appb-000003
Figure PCTCN2021096640-appb-000004
智慧屏从存储器中提取用户第二次做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时的速度,其速度为0.66帧/cm,智慧屏从存储器中提取用户第三次做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时的速度,其速度为0.64帧/cm,则用户做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时的平均速度为0.64帧/cm。
Step S76: After the user performs all the fitness actions indicated in the complete fitness video, the smart screen calculates the average speed of each fitness action, and still uses the fitness action as "back straight, look forward to the left knee to the left As an example, the user needs to do 3 times in the whole fitness video with "back straight, look forward to the left knee and raise the left knee to the left". The smart screen extracts the user from the memory for the first time to do Straight, look straight ahead to the left knee and raise the left side to the left side of the fitness movement, the speed is
Figure PCTCN2021096640-appb-000003
Figure PCTCN2021096640-appb-000004
The smart screen extracts from the memory the speed of the second time the user performs the fitness exercise of "back straight, looking forward to the left knee to the left side", the speed is 0.66 frames/cm, and the smart screen from the memory In extracting the user’s third fitness action of "back straight, looking forward to the left knee lifted to the left", the speed is 0.64 frames/cm, then the user does "back straight , The average speed of the fitness exercise "from the front to the left knee lifted to the left side" is 0.64 frames/cm.
步骤S77:在智慧屏的显示屏上的健身视频完成后,智慧屏上的摄像头将录制的用户的健身视频存储至存储器,智慧屏从存储器中提取用户做错的非标准健身动作和用户做该非标准健身动作的平均速度,智慧屏将非标准健身动作和非标准健身动作对应的教练师范的标准健身动作在显示屏上进行同屏播放,其中,在播放非标准健身动作对应的教练师范的标准健身动作时,以用户做的该非标准健身动作的平均速度播放教练示范的标准健身动作。以步骤S44中的为例,用户做“腰背挺直、目视前方至左膝盖向左侧方抬高”这一健身动作时为非标准健身动作,这一健身动作的平均速度为0.64帧/cm,则智慧屏控制存储器中存储的该用户的“腰背挺直、目视前方至左膝盖向左侧方抬高”的非标准动作视频和健身视频中的“腰背挺直、目视前方至左膝盖向左侧方抬高”的标准动作视频均以0.64帧/cm的速度播放。在播放该非标准动作视频时,对用户进行语音讲解和语音提示以修正用户的错误的健身动作。Step S77: After the fitness video on the display screen of the smart screen is completed, the camera on the smart screen stores the recorded user's fitness video in the memory, and the smart screen extracts the non-standard fitness actions that the user has performed wrongly from the memory and the user performs the exercises. The average speed of non-standard fitness actions, the smart screen will display the non-standard fitness actions and the standard fitness actions of the coaches corresponding to the non-standard fitness actions on the same screen. In the case of a standard fitness action, the standard fitness action demonstrated by the coach is played at the average speed of the non-standard fitness action performed by the user. Taking the step S44 as an example, the fitness action of "back straight, look forward to the left knee to the left side" is a non-standard fitness action, and the average speed of this fitness action is 0.64 frames /cm, the smart screen controls the user’s non-standard action videos of "back straight, eyes forward to the left knee raised to the left" stored in the memory and "back straight, eyes straight" in the fitness video. The standard action videos from the front to the left knee raised to the left are all played at a speed of 0.64 frames/cm. When the non-standard action video is played, voice explanations and voice prompts are provided to the user to correct the wrong fitness action of the user.
本申请实施例公开的一种动作自适应同步方法,智慧屏将用户做的错误的健身动作的视频存储至存储器,在显示屏上的整个健身视频播放完成后,从存储器中提取用户做错的健身视频,并与教练示范的标准的健身视频进行比对和讲解,纠正用户做错的健身动作,有利于用户的身体健康和进一步提升了用户的体验感。An adaptive synchronization method for actions disclosed in the embodiments of the present application. The smart screen stores the video of the wrong fitness action performed by the user in the memory. After the entire fitness video on the display screen is played, it extracts the wrong exercise by the user from the memory. The fitness video is compared and explained with the standard fitness video demonstrated by the instructor to correct the user's wrong fitness action, which is beneficial to the user's health and further enhances the user's experience.
在本申请一些实施例中,还提供了一种电子设备,下面结合图8对本申请实施例中的电子设备进行介绍。图8为本申请实施例公开的一种电子设备的结构示意图。In some embodiments of the present application, an electronic device is also provided. The electronic device in the embodiments of the present application will be described below with reference to FIG. 8. FIG. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the application.
对于至少一个实施例,控制器中枢804经由诸如前端总线(FSB)之类的多分支总线、诸如快速通道互连(QPI)之类的点对点接口、或者类似的连接与处理器801进行通信。处理器801执行控制一般类型的数据处理操作的指令。在一实施例中,控制器中枢804包括,但不局限于,图形存储器控制器中枢(GMCH)(图中未示出)和输入/输出中枢(IOH)(其可以在分开的芯片上)(图中未示出),其中GMCH包括存储器和图形控制器并与IOH耦合。For at least one embodiment, the controller hub 804 communicates with the processor 801 via a multi-drop bus such as a front side bus (FSB), a point-to-point interface such as a fast path interconnect (QPI), or similar connection. The processor 801 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 804 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown in the figure) and an input/output hub (IOH) (which may be on a separate chip) ( (Not shown in the figure), where the GMCH includes a memory and a graphics controller and is coupled with the IOH.
电子设备800还可包括耦合到控制器中枢804的协处理器806和存储器802。或者,存储器802和GMCH中的一个或两者可以被集成在处理器801内(如本申请中所描述的),存储器802和协处理器806直接耦合到处理器801以及控制器中枢804,控制器中枢804与IOH处于单个芯片中。The electronic device 800 may also include a coprocessor 806 and a memory 802 coupled to the controller hub 804. Alternatively, one or both of the memory 802 and the GMCH may be integrated in the processor 801 (as described in this application), and the memory 802 and the coprocessor 806 are directly coupled to the processor 801 and the controller hub 804, and control The device hub 804 and the IOH are in a single chip.
在一个实施例中,存储器802可以是例如动态随机存取存储器(DRAM)、相变存储器(PCM)或这两者的组合。存储器802中可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性计算机可读介质。计算机可读存储介质中存储有指令,具体而言,存储有该指令的暂时和永久副本。In one embodiment, the memory 802 may be, for example, dynamic random access memory (DRAM), phase change memory (PCM), or a combination of the two. The memory 802 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. The computer-readable storage medium stores instructions, specifically, temporary and permanent copies of the instructions.
在一个实施例中,协处理器806是专用处理器,诸如例如高吞吐量MIC处理器、网络或通信处理 器、压缩引擎、图形处理器、GPGPU、或嵌入式处理器等等。协处理器806的任选性质用虚线表示在图8中。In one embodiment, the coprocessor 806 is a dedicated processor, such as, for example, a high-throughput MIC processor, a network or communication processor, a compression engine, a graphics processor, a GPGPU, or an embedded processor, or the like. The optional nature of the coprocessor 806 is shown in dashed lines in FIG. 8.
在一个实施例中,电子设备800可以进一步包括网络接口(NIC)803。网络接口803可以包括收发器,用于为设备800提供无线电接口,进而与任何其他合适的设备(如前端模块,天线等)进行通信。在各种实施例中,网络接口803可以与电子设备800的其他组件集成。网络接口803可以实现上述实施例中的通信单元的功能。In one embodiment, the electronic device 800 may further include a network interface (NIC) 803. The network interface 803 may include a transceiver, which is used to provide a radio interface for the device 800 to communicate with any other suitable devices (such as a front-end module, an antenna, etc.). In various embodiments, the network interface 803 may be integrated with other components of the electronic device 800. The network interface 803 can realize the function of the communication unit in the above-mentioned embodiment.
在一个实施例中,如图8所示的,电子设备800可以进一步包括输入/输出(I/O)设备805。输入/输出(I/O)设备805可以包括:用户界面,该设计使得用户能够与电子设备800进行交互;外围组件接口的设计使得外围组件也能够与电子设备800交互;和/或传感器设计用于确定与电子设备800相关的环境条件和/或位置信息。In one embodiment, as shown in FIG. 8, the electronic device 800 may further include an input/output (I/O) device 805. The input/output (I/O) device 805 may include: a user interface, which is designed to enable users to interact with the electronic device 800; the design of the peripheral component interface enables the peripheral components to also interact with the electronic device 800; and/or the design of sensors To determine environmental conditions and/or location information related to the electronic device 800.
值得注意的是,图8仅是示例性的。即虽然图8中示出了电子设备800包括处理器801、控制器中枢804、存储器802等多个器件,但是,在实际的应用中,使用本申请各方法的设备,可以仅包括电子设备800各器件中的一部分器件,例如,可以仅包含处理器801和NIC803。图8中可选器件的性质用虚线示出。It is worth noting that Figure 8 is only exemplary. That is, although FIG. 8 shows that the electronic device 800 includes multiple devices such as the processor 801, the controller hub 804, and the memory 802, in actual applications, the devices using the methods of the present application may only include the electronic device 800. Some of the devices, for example, may only include the processor 801 and the NIC 803. The properties of optional devices in Fig. 8 are shown by dashed lines.
在本申请一些实施例中,该电子设备800的计算机可读存储介质中存储有指令可以包括:由处理器中的至少一个单元执行时导致设备实施如实施例1、实施例2和实施例3所提到的动作自适应同步方法的指令。当指令在计算机上运行时,使得计算机执行上述如实施例1、实施例2和实施例3所提到的动作自适应同步的方法。In some embodiments of the present application, the instructions stored in the computer-readable storage medium of the electronic device 800 may include: when executed by at least one unit in the processor, cause the device to implement such as embodiment 1, embodiment 2, and embodiment 3. The mentioned actions are adaptive synchronization method instructions. When the instructions are executed on the computer, the computer is caused to execute the above-mentioned method for adaptive synchronization of actions as mentioned in Embodiment 1, Embodiment 2 and Embodiment 3.
现在参考图9,图9为本申请实施例公开的一种SOC的结构示意图,所示为根据本申请的一实施例的SoC(System on Chip,片上系统)1000的框图。在图9中,相似的部件具有同样的附图标记。另外,虚线框是更先进的SoC的可选特征。该SoC可以被用于根据本申请的一实施例的电子设备,根据其内所存储的指令,可以实现相应的功能。Referring now to FIG. 9, FIG. 9 is a schematic structural diagram of an SOC disclosed in an embodiment of the present application, and shows a block diagram of an SoC (System on Chip) 1000 according to an embodiment of the present application. In Figure 9, similar parts have the same reference numerals. In addition, the dashed box is an optional feature of the more advanced SoC. The SoC can be used in an electronic device according to an embodiment of the present application, and corresponding functions can be implemented according to the instructions stored in the SoC.
在图9中,SoC 1000包括:互连单元1002,其被耦合至处理器1001;系统代理单元1006;总线控制器单元1005;集成存储器控制器单元1003;一组或一个或多个协处理器1007,其可包括集成图形逻辑、图像处理器、音频处理器和视频处理器;静态随机存取存储器(SRAM)单元1008;直接存储器存取(DMA)单元1004。在一个实施例中,协处理器1007包括专用处理器,诸如例如网络或通信处理器、压缩引擎、GPGPU、高吞吐量MIC处理器、或嵌入式处理器等等。In Figure 9, the SoC 1000 includes: an interconnection unit 1002, which is coupled to a processor 1001; a system agent unit 1006; a bus controller unit 1005; an integrated memory controller unit 1003; a group or one or more coprocessors 1007, which may include integrated graphics logic, image processors, audio processors, and video processors; a static random access memory (SRAM) unit 1008; and a direct memory access (DMA) unit 1004. In one embodiment, the coprocessor 1007 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high-throughput MIC processor, or an embedded processor, etc.
静态随机存取存储器(SRAM)单元1008中可以包括用于存储数据和/或指令的一个或多个计算机可读介质。计算机可读存储介质中可以存储有指令,具体而言,存储有该指令的暂时和永久副本。A static random access memory (SRAM) unit 1008 may include one or more computer-readable media for storing data and/or instructions. The computer-readable storage medium may store instructions, specifically, temporary and permanent copies of the instructions.
在SoC 1000被应用于根据本申请的电子设备上时,计算机可读存储介质中存储有指令可以包括:由处理器中的至少一个单元执行时导致电子设备实施如实施例1、实施例2和实施例3所提到的动作自适应同步方法的指令。当指令在计算机上运行时,使得计算机执行上述如实施例1、实施例2和实施例3所提到的动作自适应同步的方法。When the SoC 1000 is applied to the electronic device according to the present application, the instructions stored in the computer-readable storage medium may include: when executed by at least one unit in the processor, the electronic device is implemented as in embodiment 1, embodiment 2, and The instructions of the action adaptive synchronization method mentioned in the third embodiment. When the instructions are executed on the computer, the computer is caused to execute the above-mentioned method for adaptive synchronization of actions as mentioned in Embodiment 1, Embodiment 2 and Embodiment 3.
此外,本申请实施例还公开了一种计算机可读存储介质,计算机可读存储介质上存储有处理程序,处理程序被处理器执行时实现如实施例1、实施例2和实施例3所提到的动作自适应同步的方法。In addition, the embodiment of the present application also discloses a computer-readable storage medium, and a processing program is stored on the computer-readable storage medium. The method of adaptive synchronization for the movement.
计算机可读存储介质可以为只读存储器、随机存取存储器、硬盘或者光盘等。The computer-readable storage medium may be a read-only memory, a random access memory, a hard disk, or an optical disk.

Claims (15)

  1. 一种动作自适应同步方法,其特征在于,应用于电子设备,所述动作自适应同步方法包括:An action adaptive synchronization method, characterized in that it is applied to an electronic device, and the action adaptive synchronization method includes:
    所述电子设备播放健身视频;The electronic device plays fitness videos;
    所述电子设备采集用户的动作姿态;The electronic device collects the user's action posture;
    所述电子设备对所述健身视频中当前播放的健身动作和所述用户的动作姿态进行匹配;The electronic device matches the fitness action currently played in the fitness video with the action posture of the user;
    若所述健身动作与所述用户的动作姿态不匹配,则所述电子设备调整所述健身视频中所述健身动作的播放速度,以使所述健身动作与所述用户的动作姿态同步。If the fitness action does not match the user's action posture, the electronic device adjusts the playback speed of the fitness action in the fitness video to synchronize the fitness action with the user's action posture.
  2. 如权利要求1所述的动作自适应同步方法,其特征在于,所述电子设备对所述健身视频中当前播放的健身动作和所述用户的动作姿态进行匹配包括:The action adaptive synchronization method of claim 1, wherein the electronic device matching the fitness action currently played in the fitness video with the user's action posture comprises:
    所述电子设备获取所述健身视频中至少一个健身教练的一个或多个骨骼节点;Acquiring, by the electronic device, one or more bone nodes of at least one fitness coach in the fitness video;
    所述电子设备获取所述用户的一个或多个骨骼节点;Acquiring, by the electronic device, one or more skeletal nodes of the user;
    所述电子设备从所述健身视频中至少一个健身教练的一个或多个骨骼节点和所述用户的一个或多个骨骼节点中确定关键骨骼节点。The electronic device determines key bone nodes from one or more bone nodes of at least one fitness coach and one or more bone nodes of the user in the fitness video.
  3. 根据权利要求2所述的方法,其特征在于,所述确定关键骨骼节点包括:The method according to claim 2, wherein the determining the key bone node comprises:
    所述电子设备从所述用户和所述至少一个健身教练的骨骼节点中选择所述当前示范的健身动作的关键骨骼节点,其中,所述关键骨骼节点为当前播放的健身动作涉及的骨骼节点。The electronic device selects the key bone node of the currently demonstrated fitness action from the bone nodes of the user and the at least one fitness instructor, where the key bone node is the bone node involved in the currently played fitness action.
  4. 如权利要求3所述的动作自适应同步方法,其特征在于,所述电子设备对所述健身视频中当前播放的健身动作和所述用户的动作姿态进行匹配包括:The action adaptive synchronization method of claim 3, wherein the electronic device matching the fitness action currently played in the fitness video with the user's action posture comprises:
    所述电子设备基于LSTM对所述健身视频当前中至少一个健身教练当前示范的健身动作和所述用户的动作姿态进行关键骨骼节点提取,得到所述当前示范的健身动作的第三姿态特征和所述用户的第四姿态特征,基于所述关键骨骼节点将所述第三姿态特征和所述第四姿态特征进行匹配。Based on the LSTM, the electronic device extracts the key bone nodes of the fitness action currently demonstrated by at least one fitness trainer in the current fitness video and the action posture of the user to obtain the third posture feature and the posture feature of the currently demonstrated fitness action. For the fourth posture feature of the user, the third posture feature and the fourth posture feature are matched based on the key skeleton node.
  5. 如权利要求2所述的动作自适应同步方法,其特征在于,所述电子设备对所述健身视频中当前播放的健身动作和所述用户的动作姿态进行匹配包括:The action adaptive synchronization method of claim 2, wherein the electronic device matching the fitness action currently played in the fitness video with the user's action posture comprises:
    所述电子设备基于LSTM对所述健身视频当前中至少一个健身教练当前示范的健身动作和所述用户的动作姿态进行关键骨骼节点提取,得到所述当前示范的健身动作的第一姿态特征和所述用户的第二姿态特征,将所述第一姿态特征和所述第二姿态特征进行匹配。The electronic device extracts key bone nodes of the fitness action currently demonstrated by at least one fitness trainer in the current fitness video and the action posture of the user based on the LSTM to obtain the first posture feature and the posture feature of the currently demonstrated fitness action. The second posture feature of the user is matched, and the first posture feature and the second posture feature are matched.
  6. 如权利要求5所述的动作自适应同步方法,其特征在于,对所述健身视频进行视频分帧,得到所述健身视频的连续时刻的帧图像。The action adaptive synchronization method according to claim 5, wherein the fitness video is video-divided to obtain frame images of consecutive moments of the fitness video.
  7. 如权利要求6所述的动作自适应同步方法,其特征在于,所述电子设备确定与所述用户的第二姿态特征对应的目标帧图像;7. The action adaptive synchronization method of claim 6, wherein the electronic device determines a target frame image corresponding to the second posture feature of the user;
    基于所述第一姿态特征对应的帧图像与所述目标帧图像的时刻关系,调整所述健身视频的播放速度,以使与所述目标帧图像对应的健身动作与所述用户的动作姿态同步。Based on the time relationship between the frame image corresponding to the first posture feature and the target frame image, adjust the playback speed of the fitness video to synchronize the fitness action corresponding to the target frame image with the user's posture .
  8. 如权利要求7所述的动作自适应同步方法,其特征在于,所述确定与所述用户的第二姿态特征对应的目标帧图像包括:8. The action adaptive synchronization method of claim 7, wherein the determining the target frame image corresponding to the second posture feature of the user comprises:
    所述电子设备基于与所述第二姿态特征对应的完整健身动作的总帧数和平均移动距离确定所述目标帧图像,其中,所述平均移动距离为所述第二姿态特征对应的关键骨骼节点从所述完整健身动作的初始位置至结束位置的平均移动距离。The electronic device determines the target frame image based on the total number of frames of the complete fitness action corresponding to the second posture feature and the average moving distance, where the average moving distance is the key bone corresponding to the second posture feature The average moving distance of the node from the initial position to the end position of the complete fitness action.
  9. 如权利要求8所述的动作自适应同步方法,其特征在于,所述平均移动距离为所述第二姿态 特征对应的关键骨骼节点在三维坐标系中由所述初始位置至所述结束位置在X轴、Y轴和Z轴三个方向发生的移动距离的平均值。The action adaptive synchronization method according to claim 8, wherein the average moving distance is that the key bone node corresponding to the second posture feature is in the three-dimensional coordinate system from the initial position to the end position. The average value of the movement distances in the three directions of the X-axis, Y-axis and Z-axis.
  10. 如权利要求7所述的动作自适应同步方法,其特征在于,所述目标帧图像对应的时刻点大于所述第一姿态特征对应的帧图像的时刻点时,所述电子设备调整所述健身视频的播放速度为目标速度,其中,所述目标速度大于所述健身视频当前的播放速度。The action adaptive synchronization method of claim 7, wherein when the time point corresponding to the target frame image is greater than the time point of the frame image corresponding to the first posture feature, the electronic device adjusts the fitness The playback speed of the video is a target speed, where the target speed is greater than the current playback speed of the fitness video.
  11. 如权利要求7所述的动作自适应同步方法,其特征在于,所述目标帧图像对应的时刻点大于所述第一姿态特征对应的帧图像的时刻点时,所述电子设备控制所述健身视频由当前播放的健身动作直接跳转到所述目标帧图像。The action adaptive synchronization method of claim 7, wherein when the time point corresponding to the target frame image is greater than the time point of the frame image corresponding to the first posture feature, the electronic device controls the fitness The video jumps directly from the currently played fitness action to the target frame image.
  12. 如权利要求7所述的动作自适应同步方法,其特征在于,所述目标帧图像对应的时刻点小于所述第一姿态特征对应的帧图像的时刻点时,所述电子设备控制所述健身视频回放并由当前播放的健身动作直接跳转到所述目标帧图像。The action adaptive synchronization method according to claim 7, wherein when the time point corresponding to the target frame image is less than the time point of the frame image corresponding to the first posture feature, the electronic device controls the fitness The video is played back and jumps directly to the target frame image from the currently played fitness action.
  13. 如权利要求1-5任意一项所述的动作自适应同步方法,其特征在于,所述健身动作与所述用户的动作姿态不同步时,所述电子设备进行语音提示和/或文字提示。The action adaptive synchronization method according to any one of claims 1 to 5, wherein when the fitness action is not synchronized with the user's action posture, the electronic device provides voice prompts and/or text prompts.
  14. 如权利要求1所述的动作自适应同步方法,其特征在于,所述电子设备将所述用户的动作姿态进行存储;3. The action adaptive synchronization method of claim 1, wherein the electronic device stores the user's action posture;
    所述电子设备基于与所述用户的动作姿态对应的标准健身动作确定所述标准健身动作与所述用户的动作姿态标准不匹配;Determining, by the electronic device, that the standard fitness action does not match the user's action posture standard based on the standard fitness action corresponding to the user's action posture;
    则标记所述用户的动作姿态为非标准动作并重新播放健身视频中与所述非标准动作对应的标准健身动作;Marking the user's action posture as a non-standard action and replaying the standard fitness action corresponding to the non-standard action in the fitness video;
    所述电子设备以用户进行与所述非标准动作对应的健身速度重新播放健身视频中的标准健身动作,所述的标准健身动作与所述非标准动作对应的健身动作相对应;The electronic device replays the standard fitness action in the fitness video at the fitness speed corresponding to the non-standard action performed by the user, and the standard fitness action corresponds to the fitness action corresponding to the non-standard action;
    所述电子设备对所述非标准动作进行文字和/或语音讲解。The electronic device provides text and/or voice explanation of the non-standard action.
  15. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,所述存储器存储有同步指令;A memory, the memory stores synchronization instructions;
    处理器,所述处理器执行所述同步指令时,实现如权利要求1-14任意一项所述的动作自适应同步方法的步骤。A processor, which implements the steps of the action adaptive synchronization method according to any one of claims 1-14 when the processor executes the synchronization instruction.
PCT/CN2021/096640 2020-06-01 2021-05-28 Movement self-adaptive synchronization method and electronic device WO2021244411A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010484845.8 2020-06-01
CN202010484845.8A CN113761966A (en) 2020-06-01 2020-06-01 Motion adaptive synchronization method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021244411A1 true WO2021244411A1 (en) 2021-12-09

Family

ID=78782597

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096640 WO2021244411A1 (en) 2020-06-01 2021-05-28 Movement self-adaptive synchronization method and electronic device

Country Status (2)

Country Link
CN (1) CN113761966A (en)
WO (1) WO2021244411A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494534A (en) * 2022-01-25 2022-05-13 成都工业学院 Frame animation self-adaptive display method and system based on motion point capture analysis
CN114745576A (en) * 2022-03-25 2022-07-12 上海合志信息技术有限公司 Family fitness interaction method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117499748A (en) * 2023-11-02 2024-02-02 江苏濠汉信息技术有限公司 Classroom teaching interaction method and system based on edge calculation
CN117274319B (en) * 2023-11-20 2024-01-30 西安瑜乐文化科技股份有限公司 Big data-based body-building exercise live broadcast method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180176423A1 (en) * 2016-12-15 2018-06-21 Disney Enterprises, Inc. Apparatus, Systems and Methods For Nonlinear Synchronization Of Action Videos
US20180268865A1 (en) * 2017-03-20 2018-09-20 International Business Machines Corporation Auto-adjusting instructional video playback based on cognitive user activity detection analysis
US20180357472A1 (en) * 2017-06-07 2018-12-13 David Scott Dreessen Systems and methods for creating target motion, capturing motion, analyzing motion, and improving motion
CN110751050A (en) * 2019-09-20 2020-02-04 郑鸿 Motion teaching system based on AI visual perception technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180176423A1 (en) * 2016-12-15 2018-06-21 Disney Enterprises, Inc. Apparatus, Systems and Methods For Nonlinear Synchronization Of Action Videos
US20180268865A1 (en) * 2017-03-20 2018-09-20 International Business Machines Corporation Auto-adjusting instructional video playback based on cognitive user activity detection analysis
US20180357472A1 (en) * 2017-06-07 2018-12-13 David Scott Dreessen Systems and methods for creating target motion, capturing motion, analyzing motion, and improving motion
CN110751050A (en) * 2019-09-20 2020-02-04 郑鸿 Motion teaching system based on AI visual perception technology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494534A (en) * 2022-01-25 2022-05-13 成都工业学院 Frame animation self-adaptive display method and system based on motion point capture analysis
CN114494534B (en) * 2022-01-25 2022-09-27 成都工业学院 Frame animation self-adaptive display method and system based on motion point capture analysis
CN114745576A (en) * 2022-03-25 2022-07-12 上海合志信息技术有限公司 Family fitness interaction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113761966A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
WO2021244411A1 (en) Movement self-adaptive synchronization method and electronic device
WO2020177585A1 (en) Gesture processing method and device
CN111738220B (en) Three-dimensional human body posture estimation method, device, equipment and medium
US10551930B2 (en) System and method for executing a process using accelerometer signals
CN111651040B (en) Interaction method of electronic equipment for skin detection and electronic equipment
WO2020020063A1 (en) Object identification method and mobile terminal
CN109313812A (en) Sharing experience with context enhancing
CN109219955A (en) Video is pressed into
CN110457092A (en) Head portrait creates user interface
WO2021147434A1 (en) Artificial intelligence-based face recognition method and apparatus, device, and medium
CN106125921A (en) Gaze detection in 3D map environment
CN102915111A (en) Wrist gesture control system and method
CN111544852B (en) Method and related apparatus for correcting body-building posture
WO2021032092A1 (en) Display device
CN113365085B (en) Live video generation method and device
CN114466128A (en) Target user focus-following shooting method, electronic device and storage medium
WO2022161037A1 (en) User determination method, electronic device, and computer-readable storage medium
EP4216563A1 (en) Photographing method and electronic device
CN108881544A (en) A kind of method taken pictures and mobile terminal
CN113129411A (en) Bionic animation generation method and electronic equipment
CN111857910A (en) Information display method and device and electronic equipment
WO2021036954A1 (en) Intelligent speech playing method and device
CN109542552A (en) A kind of display control method and terminal device
CN109147746A (en) A kind of karaoke method and terminal
Chen et al. Lisee: A headphone that provides all-day assistance for blind and low-vision users to reach surrounding objects

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21817437

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21817437

Country of ref document: EP

Kind code of ref document: A1