CN115188063A - Running posture analysis method, device, treadmill and storage medium based on treadmill - Google Patents
Running posture analysis method, device, treadmill and storage medium based on treadmill Download PDFInfo
- Publication number
- CN115188063A CN115188063A CN202110369543.0A CN202110369543A CN115188063A CN 115188063 A CN115188063 A CN 115188063A CN 202110369543 A CN202110369543 A CN 202110369543A CN 115188063 A CN115188063 A CN 115188063A
- Authority
- CN
- China
- Prior art keywords
- foot
- running
- touchdown
- treadmill
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 76
- 238000000034 method Methods 0.000 claims abstract description 144
- 230000008569 process Effects 0.000 claims abstract description 137
- 238000013507 mapping Methods 0.000 claims abstract description 50
- 238000001514 detection method Methods 0.000 claims abstract description 39
- 238000004364 calculation method Methods 0.000 claims description 34
- 230000015654 memory Effects 0.000 claims description 20
- 210000002683 foot Anatomy 0.000 description 339
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 9
- 238000010606 normalization Methods 0.000 description 8
- 238000000605 extraction Methods 0.000 description 7
- 210000003423 ankle Anatomy 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 210000003371 toe Anatomy 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000001981 hip bone Anatomy 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010223 real-time analysis Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/103—Measuring devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
- A61B5/11—Measuring movement of the entire body or parts thereof, e.g. head or hand tremor or mobility of a limb
- A61B5/1116—Determining posture transitions
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B22/00—Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements
- A63B22/02—Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with movable endless bands, e.g. treadmills
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B24/00—Electric or electronic controls for exercising apparatus of preceding groups; Controlling or monitoring of exercises, sportive games, training or athletic performances
- A63B24/0003—Analysing the course of a movement or motion sequences during an exercise or trainings sequence, e.g. swing for golf or tennis
- A63B24/0006—Computerised comparison for qualitative assessment of motion sequences or the course of a movement
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Physical Education & Sports Medicine (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Dentistry (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Physics & Mathematics (AREA)
- Vascular Medicine (AREA)
- Cardiology (AREA)
- Pathology (AREA)
- Engineering & Computer Science (AREA)
- Physiology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及计算机视觉技术领域,尤其涉及基于跑步机的跑姿分析方法、装置、跑步机及存储介质。The embodiments of the present application relate to the technical field of computer vision, and in particular, to a treadmill-based running posture analysis method, device, treadmill, and storage medium.
背景技术Background technique
随着跑步运动越来越流行,跑步机已然成为越来越多人的便利选择。同时,跑步机所能提供的多元化功能也成为了人们选择跑步机产品的重要权衡点。目前,为了在跑步时给用户提供更丰富的功能体验,市面上有一些针对用户跑步姿态提供分析信息的智能穿戴运动设备,如智能跑鞋、跑步精灵等。用户在使用跑步机的同时,通过佩戴这些智能穿戴运动设备进行跑步运动,利用智能穿戴运动设备采集相关的传感数据,进而得到用户的跑步姿态分析信息。As running becomes more and more popular, treadmills have become a convenient choice for more and more people. At the same time, the diversified functions that treadmills can provide has also become an important trade-off point for people to choose treadmill products. At present, in order to provide users with a richer functional experience when running, there are some smart wearable sports devices on the market that provide analysis information for the user's running posture, such as smart running shoes and running wizards. While using the treadmill, the user performs running by wearing these smart wearable sports devices, and uses the smart wearable sports devices to collect relevant sensor data, thereby obtaining the user's running posture analysis information.
但是,佩戴智能穿戴运动设备势必会增加用户跑步运动过程中额外的负担,导致整个跑步运动过程多有不便,影响用户的跑步体验。However, wearing a smart wearable sports device will inevitably increase the extra burden on the user during the running exercise, resulting in inconvenience throughout the running exercise process and affecting the user's running experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供基于跑步机的跑姿分析方法、装置、跑步机及存储介质,能够在不增加用户负担的同时对用户跑步姿态进行实时检测分析,解决用户跑步过程中的跑步姿态检测分析问题。The embodiments of the present application provide a running posture analysis method, device, treadmill, and storage medium based on a treadmill, which can perform real-time detection and analysis of the user's running posture without increasing the burden on the user, and solve the problem of running posture detection and analysis during the user's running process. .
在第一方面,本申请实施例提供了一种基于跑步机的跑姿分析方法,包括:In a first aspect, an embodiment of the present application provides a treadmill-based running posture analysis method, including:
实时获取跑步视频,基于骨架关键点检测确定所述跑步视频中一定数量帧的视频图像的脚部关键点;Acquire the running video in real time, and determine the foot key points of the video images of a certain number of frames in the running video based on the skeleton key point detection;
确认所述脚部关键点在一定数量帧的所述视频图像中的像素坐标高度,根据所述像素坐标高度以及一定数量帧的所述视频图像对应的时间点,生成所述像素坐标高度与对应时间点之间的映射关系;Confirm the pixel coordinate height of the key point of the foot in the video image of a certain number of frames, and generate the pixel coordinate height and the corresponding time point according to the pixel coordinate height and the video image of a certain number of frames. The mapping relationship between time points;
基于所述映射关系计算对应的跑步姿态参数,并输出所述跑步姿态参数。The corresponding running posture parameters are calculated based on the mapping relationship, and the running posture parameters are output.
在第二方面,本申请实施例提供了一种基于跑步机的跑姿分析装置,包括:In a second aspect, an embodiment of the present application provides a treadmill-based running posture analysis device, including:
获取模块,用于实时获取跑步视频,基于骨架关键点检测确定所述跑步视频中一定数量帧的视频图像的脚部关键点;an acquisition module, configured to acquire the running video in real time, and determine the foot key points of the video images of a certain number of frames in the running video based on the skeleton key point detection;
生成模块,用于确认所述脚部关键点在一定数量帧的所述视频图像中的像素坐标高度,根据所述像素坐标高度以及一定数量帧的所述视频图像对应的时间点,生成所述像素坐标高度与对应时间点之间的映射关系;The generation module is used to confirm the pixel coordinate height of the key point of the foot in the video image of a certain number of frames, and generate the pixel coordinate height according to the pixel coordinate height and the time point corresponding to the video image of a certain number of frames. The mapping relationship between the pixel coordinate height and the corresponding time point;
输出模块,用于基于所述映射关系计算对应的跑步姿态参数,并输出所述跑步姿态参数。An output module, configured to calculate the corresponding running posture parameters based on the mapping relationship, and output the running posture parameters.
在第三方面,本申请实施例提供了一种跑步机,包括:In a third aspect, an embodiment of the present application provides a treadmill, including:
存储器以及一个或多个处理器;memory and one or more processors;
所述存储器,用于存储一个或多个程序;the memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的基于跑步机的跑姿分析方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the treadmill-based running posture analysis method as described in the first aspect.
在第四方面,本申请实施例提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的基于跑步机的跑姿分析方法。In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, the computer-executable instructions, when executed by a computer processor, are used to execute the treadmill-based running according to the first aspect Attitude analysis method.
本申请实施例通过实时获取跑步视频,基于骨架关键点检测确定跑步视频中一定数量帧的视频图像的脚部关键点;确认脚部关键点在一定数量帧的视频图像中的像素坐标高度,根据像素坐标高度以及一定数量帧的视频图像对应的时间点,生成像素坐标高度与对应时间点之间的映射关系;基于映射关系计算对应的跑步姿态参数,并输出跑步姿态参数。采用上述技术手段,通过检测视频图像的脚步关键点,基于脚步关键点生成左右脚触地过程曲线,并根据左右脚触地过程曲线进行跑步姿态分析,可以实现基于跑步视频图像的跑步姿态分析,避免检测设备给用户带来额外的负担,优化用户的跑步运动体验。In the embodiment of the present application, the running video is acquired in real time, and the foot key points of the video image of a certain number of frames in the running video are determined based on the detection of skeleton key points; the pixel coordinate height of the foot key point in the video image of a certain number of frames is confirmed, according to The pixel coordinate height and the time point corresponding to a certain number of frames of video images are used to generate a mapping relationship between the pixel coordinate height and the corresponding time point; the corresponding running posture parameters are calculated based on the mapping relationship, and the running posture parameters are output. Using the above technical means, by detecting the key points of the footsteps in the video image, generating the curve of the left and right feet touching the ground based on the key points of the footsteps, and analyzing the running posture according to the curve of the left and right feet touching the ground, the running posture analysis based on the running video image can be realized. Avoid the extra burden of detection equipment on users, and optimize the user's running experience.
并且,本申请实施例通过确定左右脚触地过程的脚部关键点计算跑步姿态参数,可以确保骨架关键点的精准检测,避免脚部关键点受遮挡影响导致检测误差的情况,使跑步姿态参数的计算更加精确;通过从跑步视频中选取左右脚触地过程的脚部关键点进行跑步姿态参数计算,可以减少关键点的选取数量,进而减少跑步姿态参数的计算量,提升跑姿分析效率。另一方面,通过从跑步视频中选取左右脚触地过程的脚部关键点进行跑步姿态参数计算,还可以确保脚部关键点的快速提取,减少跑步视频录制延迟造成的误差影响,更进一步提升跑步姿态参数计算的精确度。In addition, the embodiment of the present application calculates the running posture parameters by determining the key points of the feet in the process of the left and right feet touching the ground, which can ensure the accurate detection of the key points of the skeleton, avoid the situation that the key points of the feet are affected by occlusion and cause detection errors, and make the running posture parameters. The calculation is more accurate; by selecting the key points of the left and right feet touching the ground from the running video to calculate the running posture parameters, the number of selected key points can be reduced, thereby reducing the calculation amount of running posture parameters and improving the efficiency of running posture analysis. On the other hand, by selecting the key points of the left and right feet touching the ground from the running video to calculate the running posture parameters, it can also ensure the rapid extraction of the key points of the foot, reduce the error effect caused by the running video recording delay, and further improve The accuracy of running posture parameter calculation.
此外,本申请实施例通过脚步关键点检测结合左右脚触地过程曲线进行跑步姿态分析,可以实现跑步姿态参数的精准计算,提供更精确的跑姿分析结果。In addition, in the embodiment of the present application, the running posture analysis is performed by combining the detection of the key points of the footsteps and the contacting process curves of the left and right feet, which can realize the accurate calculation of the running posture parameters and provide a more accurate running posture analysis result.
附图说明Description of drawings
图1是本申请实施例一提供的一种基于跑步机的跑姿分析方法的流程图;1 is a flowchart of a treadmill-based running posture analysis method provided in Embodiment 1 of the present application;
图2是本申请实施例一中的跑步视频拍摄示意图;Fig. 2 is the running video shooting schematic diagram in the first embodiment of the present application;
图3是本申请实施例一中的左脚触地过程曲线示意图;3 is a schematic diagram of a left foot contacting process curve diagram in Embodiment 1 of the present application;
图4是本申请实施例一中的右脚触地过程曲线示意图;4 is a schematic diagram of a process curve of the right foot touching the ground in Embodiment 1 of the present application;
图5是本申请实施例一中的跑步姿态参数计算流程图;Fig. 5 is the running posture parameter calculation flow chart in the first embodiment of the present application;
图6是本申请实施例一中的脚部关键点与摄像头水平距离示意图;6 is a schematic diagram of the horizontal distance between the key point of the foot and the camera in Embodiment 1 of the present application;
图7是本申请实施例二提供的一种基于跑步机的跑姿分析装置的结构示意图;7 is a schematic structural diagram of a treadmill-based running posture analysis device provided in Embodiment 2 of the present application;
图8是本申请实施例三提供的一种跑步机的结构示意图。FIG. 8 is a schematic structural diagram of a treadmill provided in Embodiment 3 of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图对本申请具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the objectives, technical solutions and advantages of the present application clearer, the specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all of the contents related to the present application. Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
本申请提供的基于跑步机的跑姿分析方法,旨在用户使用跑步机进行跑步运动时,通过摄像头拍摄用户的跑步视频,进而基于脚部关键点检测结合左右脚触地过程曲线进行跑姿分析,计算对应的跑步姿态参数,以此来避免检测设备给用户带来额外的负担,优化用户跑步运动体验的同时提供更精确的跑步姿态分析结果。而对于传统的跑步机,为了对用户进行跑姿分析,需要用户佩戴相应的智能穿戴运动设备进行跑步姿态参数的检测及分析。由于智能穿戴运动设备要进行跑步姿态参数检测,其势必需要集成大量的传感设备,使得智能穿戴运动设备过于繁重。用户佩戴这类智能穿戴运动设备进行跑步运动时,无疑会给跑步运动带来阻碍,增加用户跑步运动的负担,进而影响用户的跑步体验。基于此,提供本申请实施例的基于跑步机的跑姿分析方法,以解决基于跑步机的跑步姿态检测分析问题,并避免用户跑步过程中额外的负担。The treadmill-based running posture analysis method provided by the present application aims to capture the running video of the user through a camera when the user uses the treadmill to run, and then analyzes the running posture based on the detection of key points of the foot combined with the curve of the left and right feet touching the ground. , calculate the corresponding running posture parameters, so as to avoid the extra burden of the detection equipment on the user, optimize the user's running experience, and provide more accurate running posture analysis results. As for the traditional treadmill, in order to analyze the running posture of the user, the user needs to wear a corresponding intelligent wearable sports device to detect and analyze the running posture parameters. Since the smart wearable sports device needs to detect running posture parameters, it is bound to integrate a large number of sensing devices, which makes the smart wearable sports device too heavy. When a user wears such a smart wearable sports device for running, it will undoubtedly hinder the running, increase the burden of the user's running, and then affect the user's running experience. Based on this, a treadmill-based running posture analysis method according to an embodiment of the present application is provided to solve the problem of running posture detection and analysis based on a treadmill, and to avoid additional burdens of the user during running.
实施例一:Example 1:
图1给出了本申请实施例一提供的一种基于跑步机的跑姿分析方法的流程图,本实施例中提供的基于跑步机的跑姿分析方法可以由基于跑步机的跑姿分析设备执行,该基于跑步机的跑姿分析设备可以通过软件和/或硬件的方式实现,该基于跑步机的跑姿分析设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。一般而言,该基于跑步机的跑姿分析设备可以是跑步机等带有处理器的计算设备。FIG. 1 shows a flowchart of a treadmill-based running posture analysis method provided in Embodiment 1 of the present application. The treadmill-based running posture analysis method provided in this embodiment may be performed by a treadmill-based running posture analysis device. Execution, the treadmill-based running posture analysis device may be implemented by means of software and/or hardware, and the treadmill-based running posture analysis device may be composed of two or more physical entities, or may be constituted by one physical entity. Generally speaking, the running posture analysis device based on the treadmill may be a computing device with a processor such as a treadmill.
下述以跑步机为执行基于跑步机的跑姿分析方法的主体为例,进行描述。The following description takes the treadmill as the subject for executing the treadmill-based running posture analysis method as an example.
参照图1,该基于跑步机的跑姿分析方法具体包括:1 , the treadmill-based running posture analysis method specifically includes:
S110、实时获取跑步视频,基于骨架关键点检测确定所述跑步视频中一定数量帧的视频图像的脚部关键点。S110. Acquire the running video in real time, and determine the foot key points of the video images of a certain number of frames in the running video based on skeleton key point detection.
具体的,本申请实施例基于计算机视觉技术,通过采集用户跑步视频图像,基于各帧视频图像进行检测分析,进而得到对应用户的跑步姿态分析结果。其中,通过摄像头实时拍摄用户的跑步视频,跑步机通过获取当前设定时间段的跑步视频,进而基于跑步视频中的各帧视频图像进行骨架关键点检测,确定用户脚部关键点在各帧视频图像上的位置。可以理解的是,通过用户脚部关键点在各帧视频图像上的位置变化,即可确定用户跑步过程中,脚部从触地到腾空的跑步姿态变化,以此来实现本申请实施例基于跑步视频的跑步姿态分析。Specifically, the embodiment of the present application is based on computer vision technology, by collecting user running video images, and performing detection and analysis based on each frame of video images, thereby obtaining a running posture analysis result of the corresponding user. Among them, the running video of the user is captured in real time by the camera, and the treadmill obtains the running video of the current set time period, and then detects the key points of the skeleton based on each frame of video image in the running video, and determines that the key points of the user's feet are in each frame of the video. position on the image. It can be understood that the change of the position of the key points of the user's feet on each frame of video image can be used to determine the change of the running posture of the user's feet from touching the ground to the air during the running process. Running posture analysis of running videos.
示例性的,参照图2,提供本申请实施例的跑步视频拍摄示意图。如图2所示,摄像头11设置在跑步机上,以面向用户12正面的视角进行跑步视频的拍摄。当用户启动跑步机进行跑步运动时,摄像头同步进行用户跑步视频的拍摄。跑步机预先设置好跑步视频的提取周期,根据提取周期,每隔一个设定时间段(如10S)摄像头就上传一次对应时段的跑步视频,以用于当前时刻用户跑步姿态分析。Exemplarily, referring to FIG. 2 , a schematic diagram of shooting a running video according to an embodiment of the present application is provided. As shown in FIG. 2 , the
进一步的,摄像头在进行跑步视频拍摄时,一般只捕捉用户跑步时的下半身视频图像(即涵盖从髋骨、膝盖、脚踝、最后到脚尖的人体下半身视频图像),跑步机通过实施获取摄像头拍摄到的对应时段的跑步视频,基于这一跑步视频,调用底层骨架关键点提取算法,逐帧视频图像进行人体骨架关键点检测,从中确定脚部关键点。具体的,骨架关键点提取算法通过骨架关键点检测得到下半身关键点热力图,进一步解码关键点热力图,获得关键点像素坐标信息。Further, when the camera is shooting running videos, it generally only captures the video images of the lower body of the user during running (that is, the video images of the lower body from the hip bones, knees, ankles, and finally to the toes) of the human body. The running video of the corresponding period of time, based on this running video, call the underlying skeleton key point extraction algorithm to detect the human skeleton key points frame by frame video images, and determine the foot key points. Specifically, the skeleton key point extraction algorithm obtains the key point heat map of the lower body by detecting the skeleton key points, and further decodes the key point heat map to obtain the pixel coordinate information of the key points.
具体的,本申请实施例的关键点热力图解码方法采用波峰取点法,对每张关键点热力图,首先计算获取其高斯点的峰值,则该峰值所在的坐标,即为该热力图对应关键点在原图中的像素坐标。而对于热力图中存在多个高斯点峰值的情况,则首先遍历获得最大的峰值点,并保存与该最高峰值的高斯点存在交叠的第二高峰值的高斯点。进一步地,通过计算最高峰值的坐标与交叠峰值的坐标之间的距离,借助交叠峰值的坐标对最高峰值的坐标进行微调,以此获得最终的关键点坐标。需要说明的是,现有技术基于图像检测人体骨架关键点的技术手段有很多,本申请实施例对具体的检测算法不做固定限制,在此不多赘述。Specifically, the key point heat map decoding method of the embodiment of the present application adopts the wave peak point method. For each key point heat map, the peak value of its Gaussian point is first calculated and obtained, and the coordinates of the peak value are the corresponding heat map. The pixel coordinates of the key point in the original image. In the case where there are multiple Gaussian point peaks in the heat map, the largest peak point is obtained by traversal first, and the Gaussian point of the second highest peak that overlaps with the Gaussian point of the highest peak is saved. Further, by calculating the distance between the coordinates of the highest peak and the coordinates of the overlapping peaks, the coordinates of the highest peak are fine-tuned by the coordinates of the overlapping peaks, so as to obtain the final key point coordinates. It should be noted that there are many technical means for detecting key points of human skeleton based on images in the prior art, and the embodiments of the present application do not impose fixed restrictions on specific detection algorithms, which will not be repeated here.
更具体的,本申请实施例在基于骨架关键点检测确定所述跑步视频中一定数量帧的视频图像的脚部关键点时,基于骨架关键点检测从所述跑步视频中选取左脚和/或右脚触地过程对应的一定数量帧的所述视频图像,并从所述视频图像中确定脚部关键点的像素坐标。其中,触地过程即为用户脚部从刚刚开始触地到准备离地的过程。由于用户在跑道上进行跑步运动,则跑步视频图像上,用户脚部能够达到的最低点即为跑道的位置。基于此,通过视频图像检测,当确定视频图像上用户脚部的最低点的像素坐标高度等于跑道的像素坐标高度时,则认为当前用户脚部触地;当检测到用户脚部所有像素点的像素坐标高度均低于跑道的像素坐标高度时,则认为当前用户的脚部离地。基于上述检测原理,即可确定当前跑步视频中,用户脚部触地的各个时间段,进而从跑步视频中抽取各个时间段对应的一定数量帧的视频图像,进而对视频图像进行人体骨架关键点检测,并从检测到的关键点中选取脚部关键点的像素坐标进行跑步姿态参数的计算。More specifically, in this embodiment of the present application, when the foot key points of a certain number of frames of video images in the running video are determined based on the skeleton key point detection, the left foot and/or the left foot and/or the left foot are selected from the running video based on the skeleton key point detection. The video images of a certain number of frames corresponding to the process of the right foot touching the ground, and the pixel coordinates of the key points of the foot are determined from the video images. The touchdown process is the process from when the user's foot just starts touching the ground to preparing to leave the ground. Since the user is running on the track, on the running video image, the lowest point that the user's feet can reach is the position of the track. Based on this, through video image detection, when it is determined that the pixel coordinate height of the lowest point of the user's foot on the video image is equal to the pixel coordinate height of the runway, it is considered that the current user's foot touches the ground; When the pixel coordinate height is lower than the pixel coordinate height of the runway, it is considered that the current user's feet are off the ground. Based on the above detection principle, it is possible to determine each time period in which the user's foot touches the ground in the current running video, and then extract a certain number of frames of video images corresponding to each time period from the running video, and then perform human skeleton key points on the video image. Detect, and select the pixel coordinates of the key points of the foot from the detected key points to calculate the running posture parameters.
上述,通过确定左右脚触地过程的脚部关键点计算跑步姿态参数,可以确保骨架关键点的精准检测,避免脚部关键点受遮挡影响导致检测误差的情况,使跑步姿态参数的计算更加精确;通过从跑步视频中选取左右脚触地过程的脚部关键点进行跑步姿态参数计算,可以减少关键点的选取数量,进而减少跑步姿态参数的计算量,提升跑姿分析效率。另一方面,通过从跑步视频中选取左右脚触地过程的脚部关键点进行跑步姿态参数计算,还可以确保脚部关键点的快速提取,减少跑步视频录制延迟造成的误差影响,更进一步提升跑步姿态参数计算的精确度。In the above, the running posture parameters are calculated by determining the key points of the left and right feet touching the ground, which can ensure the accurate detection of the key points of the skeleton, avoid the detection error caused by the occlusion of the key points of the feet, and make the calculation of the running posture parameters more accurate. ; By selecting the key points of the left and right feet touching the ground from the running video to calculate the running posture parameters, the number of selected key points can be reduced, thereby reducing the calculation amount of running posture parameters and improving the efficiency of running posture analysis. On the other hand, by selecting the key points of the left and right feet touching the ground from the running video to calculate the running posture parameters, it can also ensure the rapid extraction of the key points of the foot, reduce the error effect caused by the running video recording delay, and further improve The accuracy of running posture parameter calculation.
需要说明的是,基于上述脚部关键点检测,可以确定各帧视频图像上对应脚部关键点的像素坐标,脚部关键点包括对应左右脚的两个或者两组脚部关键点。可以理解的是,每一帧视频图像均包含对应的时间点信息,则根据该像素坐标的坐标高度,可以确定用户脚部在对应时间点的高度位置。即各个像素坐标中的“y”值表示脚部关键点的像素坐标高度,像素坐标系中,对应纵轴的“y”值越大,则用户脚部关键点的位置越低,其越接近跑步机的跑道。It should be noted that, based on the detection of the above-mentioned foot key points, the pixel coordinates of the corresponding foot key points on each frame of video image can be determined, and the foot key points include two or two groups of foot key points corresponding to the left and right feet. It can be understood that each frame of video image includes corresponding time point information, and then according to the coordinate height of the pixel coordinates, the height position of the user's feet at the corresponding time point can be determined. That is, the "y" value in each pixel coordinate represents the pixel coordinate height of the key point of the foot. In the pixel coordinate system, the larger the "y" value corresponding to the vertical axis, the lower the position of the key point of the user's foot, and the closer it is Running track for treadmill.
S120、确认所述脚部关键点在一定数量帧的所述视频图像中的像素坐标高度,根据所述像素坐标高度以及一定数量帧的所述视频图像对应的时间点,生成所述像素坐标高度与对应时间点之间的映射关系。S120. Confirm the pixel coordinate height of the key point of the foot in the video image of a certain number of frames, and generate the pixel coordinate height according to the pixel coordinate height and the time point corresponding to the video image of a certain number of frames The mapping relationship with the corresponding time point.
在根据人体骨架关键点检测确定脚部关键点之后,本申请实施例根据脚部关键点在各帧视频图像的像素坐标,确定各个像素坐标的“y”值,即像素坐标高度。可以理解的是,像素坐标高度在各帧视频图像均有一个对应的时间点信息,则通过确定左右脚触地过程中,其脚部关键点在一定数量帧视频图像对应的时间点和像素坐标高度,即可生成相应的映射关系。After the key points of the foot are determined according to the detection of the key points of the human skeleton, the embodiment of the present application determines the "y" value of each pixel coordinate, that is, the height of the pixel coordinate, according to the pixel coordinates of the key point of the foot in each frame of video image. It can be understood that the pixel coordinate height has a corresponding time point information in each frame of video image, then by determining the time point and pixel coordinate corresponding to a certain number of frames of video images for the key points of the feet during the process of the left and right feet touching the ground. height, the corresponding mapping relationship can be generated.
具体的,由于本申请实施例选取左脚和/或右脚触地过程对应的视频图像,并从中确定脚部关键点。则对应的,本申请实施例在构建映射关系时,包括:Specifically, in this embodiment of the present application, the video images corresponding to the process of the left foot and/or the right foot touching the ground are selected, and the key points of the foot are determined therefrom. Correspondingly, when constructing a mapping relationship in this embodiment of the present application, the following steps are included:
对应左脚的所述脚部关键点的所述像素坐标高度,与所述视频图像对应的时间点生成第一映射关系;Corresponding to the height of the pixel coordinates of the key point of the foot of the left foot, a first mapping relationship is generated with the time point corresponding to the video image;
对应右脚的所述脚部关键点的所述像素坐标高度,与所述视频图像对应的时间点生成第二映射关系。A second mapping relationship is generated corresponding to the height of the pixel coordinates of the key point of the foot of the right foot and the time point corresponding to the video image.
通过分别对应左脚和右脚的触地过程构建相应的映射关系,可以分别确定左右脚触地过程中左脚脚部关键点和右脚脚部关键点的像素坐标高度与对应时间点的映射关系,以此可便于后续分别对应左右脚进行相关跑姿参数的计算。By constructing the corresponding mapping relationship corresponding to the touchdown process of the left foot and the right foot respectively, the mapping between the pixel coordinate height of the key point of the left foot and the key point of the right foot during the touchdown process of the left and right feet and the corresponding time point can be determined respectively. Therefore, it is convenient for the subsequent calculation of the relevant running posture parameters corresponding to the left and right feet respectively.
需要说明的是,本申请实施例的映射关系可以是信息序列、函数曲线等形式。本申请对该映射关系的具体形式不做固定限制,在此不多赘述。It should be noted that, the mapping relationship in this embodiment of the present application may be in the form of an information sequence, a function curve, or the like. The specific form of the mapping relationship is not fixedly limited in this application, and details are not described here.
进一步的,本申请实施例以函数曲线为例对该映射关系进行描述。由于该映射关系包括对应左脚关键点的第一映射关系和对应右脚关键点的第二映射关系,则在以函数曲线表示所述映射关系时,将该第一映射关系表示为左脚触地过程曲线,第二映射关系表示为右脚触地过程曲线。Further, the embodiment of the present application uses a function curve as an example to describe the mapping relationship. Since the mapping relationship includes a first mapping relationship corresponding to the left foot key point and a second mapping relationship corresponding to the right foot key point, when the mapping relationship is represented by a function curve, the first mapping relationship is represented as the left foot touch The ground process curve, and the second mapping relationship is expressed as the right foot touching the ground process curve.
可以理解的是,本申请实施例在构建左脚触地过程曲线和右脚触地过程曲线时,只选用左右脚触地过程中的对应脚部关键点像素坐标高度进行函数曲线的构建。其中,通过确定当前跑步视频中,用户脚部触地的各个时间段,进而在各个时间段对应的视频图像中确定脚部关键点的像素坐标高度及对应的时间点,以此即可进行左右脚触地过程曲线的构建。It can be understood that, when constructing the left foot contacting process curve and the right foot contacting process curve in this embodiment of the present application, only the pixel coordinate heights of the corresponding key points of the foot during the contacting process of the left and right feet are used to construct the function curve. Among them, by determining each time period in which the user's foot touches the ground in the current running video, and then determining the pixel coordinate height of the key point of the foot and the corresponding time point in the video image corresponding to each time period, the left and right The construction of the foot contact process curve.
在一个实施例中,左右脚的触地过程还可以通过设置于跑道上的传感设备配合检测到。其中,对应左右脚在跑道上设置压力传感设备,压力传感设备实时检测跑道上的压力信息。当压力传感设备检测到当前压力瞬时值大于初始值(即未承压状态的检测值)时,表明当前用户的脚部与跑道接触,当压力传感设备检测到当前压力瞬时值恢复为初始值时,则表明当前用户的脚部离开跑道。基于上述检测原理,即可确定用户左右脚触地(即接触跑道)的时间段。结合这一时间段和跑步视频,即可确定用户左右脚触地过程的视频图像。进而从这部分视频图像中确定脚部关键点的像素坐标高度,结合对应的时间点信息,即可进行左右脚触地过程曲线的构建。In one embodiment, the touchdown process of the left and right feet can also be detected through the cooperation of the sensing devices arranged on the track. Among them, a pressure sensing device is installed on the runway corresponding to the left and right feet, and the pressure sensing device detects the pressure information on the runway in real time. When the pressure sensing device detects that the instantaneous value of the current pressure is greater than the initial value (that is, the detection value in the unpressurized state), it indicates that the foot of the current user is in contact with the runway, and when the pressure sensing device detects that the instantaneous value of the current pressure returns to the initial value value, it indicates that the current user's feet leave the track. Based on the above detection principle, the time period during which the user's left and right feet touch the ground (ie, touch the runway) can be determined. Combining this time period with the running video, the video image of the process of the user's left and right feet touching the ground can be determined. Then, the pixel coordinate height of the key point of the foot is determined from this part of the video image, and combined with the corresponding time point information, the curve of the left and right feet touching the ground can be constructed.
进一步的,参照图3,以每帧图像左脚脚部关键点的像素坐标高度作为函数曲线上y轴的值,其对应的时间点作为函数曲线上x轴的值,以此即可得到如图3所示的左脚触地过程曲线。同样的,如图4所示,以每帧图像右脚脚部关键点的像素坐标高度作为函数曲线上y轴的值,其对应的时间点作为函数曲线上x轴的值,以此即可得到如图4所示的右脚触地过程曲线。可以理解的是,在像素坐标系中,y轴的值越大,表明当前脚部关键点越低,即越靠近跑道。根据跑步过程中,脚部从刚刚触地到准备离开跑道的整个触地过程,可以确定脚部刚刚触地时,其脚部关键点的位置应当在图像像素中的最低点(即y值最大),其像素坐标高度应当与左右脚触地过程曲线上的波峰对应。同样的,当脚部准备离开跑道时,其脚部关键点的位置应当在图像像素中的最高点(即y值最小),其像素坐标高度应当与左右脚触地过程曲线上的波谷对应。Further, with reference to Figure 3, the pixel coordinate height of the key point of the left foot of each frame of the image is used as the value of the y-axis on the function curve, and the corresponding time point is used as the value of the x-axis on the function curve, so that the following can be obtained. Figure 3 shows the curve of the left foot touching the ground. Similarly, as shown in Figure 4, the pixel coordinate height of the key point of the right foot of each frame of the image is taken as the value of the y-axis on the function curve, and the corresponding time point is taken as the value of the x-axis on the function curve, so that Obtain the curve of the right foot touching the ground as shown in Figure 4. It can be understood that in the pixel coordinate system, the larger the value of the y-axis, the lower the current key point of the foot, that is, the closer to the runway. According to the whole touchdown process of the foot from just touching the ground to preparing to leave the track during running, it can be determined that when the foot just touches the ground, the position of the key point of the foot should be at the lowest point in the image pixel (that is, the y value is the largest ), and its pixel coordinate height should correspond to the peaks on the curve of the left and right feet touching the ground. Similarly, when the foot is ready to leave the track, the position of the key point of the foot should be at the highest point in the image pixel (that is, the y value is the smallest), and its pixel coordinate height should correspond to the trough on the curve of the left and right feet touching the ground.
示例性的,在进行左右脚触地过程曲线构建时,通过确定提取左右脚触地过程中的脚部关键点坐标和对应的时间点,构建脚部关键点的像素坐标序列。其中,根据跑步视频时长,将对应时间长度的像素坐标序列按照左右脚进行划分,得到对应左右脚部关键点的像素坐标序列。进而从像素坐标序列中,记录每个时间点下的脚部关键点的像素坐标高度,作为函数曲线y轴的坐标值(y轴即图像像素坐标系的纵轴),以此即可得到对应左脚脚部关键点的左脚触地过程曲线和对应右脚脚部关键点的右脚触地过程曲线。Exemplarily, when constructing the curve of the left and right feet touching the ground, the pixel coordinate sequence of the key points of the foot is constructed by determining and extracting the coordinates of the key points of the foot during the grounding process of the left and right feet and the corresponding time point. Among them, according to the duration of the running video, the pixel coordinate sequence corresponding to the time length is divided according to the left and right feet, and the pixel coordinate sequence corresponding to the key points of the left and right feet is obtained. Then, from the pixel coordinate sequence, record the pixel coordinate height of the key point of the foot at each time point, as the coordinate value of the y-axis of the function curve (y-axis is the vertical axis of the image pixel coordinate system), so that the corresponding The left foot touchdown process curve of the left foot key point and the right foot touchdown process curve corresponding to the right foot key point.
在一个实施例中,跑步机在确认所述脚部关键点在各帧所述视频图像的像素坐标高度时,通过确定所述视频图像的一个所述脚部关键点,从所述脚部关键点的像素坐标中确定对应的像素坐标高度;或者,确定所述视频图像的多个所述脚部关键点,计算多个所述脚部关键点的像素坐标高度均值作为对应的像素坐标高度。可以理解的是,在检测确定用户的脚部关键点时,其脚部关键点的数量可以是一个(如脚踝),也可以是多个(如脚踝、脚背、脚尖等),根据实际的脚部关键点检测需求,若只检测一个脚部关键点,则直接根据检测到的脚部关键点的像素坐标确定像素坐标高度。若检测到多个脚部关键点,则根据各个脚部关键点的像素坐标高度值求取均值,以该均值作为构建左右脚触地过程曲线的像素坐标高度值。通过适应性确定像素坐标高度值构建左右脚触地过程曲线,可以使曲线记录的信息更加精准,使得后续得到的跑步姿态参数更加精准。In one embodiment, when confirming that the foot key point is at the pixel coordinate height of each frame of the video image, the treadmill determines one of the foot key points of the video image, from the foot key point The corresponding pixel coordinate height is determined from the pixel coordinates of the point; or, a plurality of the foot key points of the video image are determined, and the average pixel coordinate height of the plurality of the foot key points is calculated as the corresponding pixel coordinate height. It can be understood that, when detecting and determining the key points of the user's foot, the number of the key points of the user's foot may be one (such as ankle) or multiple (such as ankle, instep, toe, etc.), according to the actual foot. If only one foot key point is detected, the pixel coordinate height is directly determined according to the pixel coordinates of the detected foot key point. If multiple key points of the foot are detected, the average value is obtained according to the pixel coordinate height value of each key point of the foot, and the average value is used as the pixel coordinate height value for constructing the left and right foot touchdown process curve. By adaptively determining the height value of the pixel coordinates to construct the curve of the left and right feet touching the ground, the information recorded by the curve can be more accurate, and the subsequently obtained running posture parameters can be more accurate.
S130、基于所述映射关系计算对应的跑步姿态参数,并输出所述跑步姿态参数。S130. Calculate the corresponding running posture parameter based on the mapping relationship, and output the running posture parameter.
进一步的,基于上述映射关系,即可对应进行跑步参数的计算。该映射关系以左右脚触地过程曲线为例,基于左脚触地过程曲线和右脚触地过程曲线计算对应的跑步姿态参数,并输出所述跑步姿态参数。Further, based on the above mapping relationship, the running parameters can be calculated correspondingly. The mapping relationship takes the left and right foot contact process curves as an example, calculates the corresponding running posture parameters based on the left foot contact process curve and the right foot contact process curve, and outputs the running posture parameters.
具体的,基于上述步骤S120确定的左右脚触地过程曲线,本申请实施例利用该触地过程曲线进行跑步姿态参数的计算,并进一步将计算得到的跑步姿态参数输出显示在跑步机的显示屏幕上,以提供可视化的跑步姿态分析结果,进而优化用户的跑步运动体验。Specifically, based on the ground contact process curve of the left and right feet determined in the above step S120, the embodiment of the present application uses the ground contact process curve to calculate the running posture parameters, and further outputs and displays the calculated running posture parameters on the display screen of the treadmill to provide visual running posture analysis results, thereby optimizing the user's running experience.
具体的,参照图5,基于左脚触地过程曲线和右脚触地过程曲线计算对应的跑步姿态参数,并输出所述跑步姿态参数,包括:Specifically, referring to FIG. 5, the corresponding running posture parameters are calculated based on the left foot contact process curve and the right foot contact process curve, and output the running posture parameters, including:
S1301、确定所述左脚触地过程曲线和所述右脚触地过程曲线的波峰信息和波谷信息;S1301. Determine the peak information and the trough information of the left foot contacting process curve and the right foot contacting process curve;
S1302、基于所述波峰信息和所述波谷信息计算对应的跑步姿态参数并输出显示,所述跑步姿态参数包括左脚触地时间、右脚触地时间、触地平衡参数、腾空时间、触地腾空比和步幅参数。S1302. Calculate and output and display corresponding running posture parameters based on the wave crest information and the wave trough information, where the running posture parameters include left foot contact time, right foot contact time, ground contact balance parameters, air time, ground contact Airborne ratio and stride parameters.
基于该左右脚触地过程曲线,确定左脚触地过程曲线和右脚触地过程曲线的波峰信息和波谷信息。由于波峰信息标识了脚部刚刚接触跑道时,其脚部关键点的像素坐标高度,波谷信息标识了脚部准备离开跑道时,其脚部关键点的像素坐标高度。则根据这一曲线特性,可以确定每一段波峰到波谷的曲线即表示对应的脚部触地过程,依此可以计算得到用户的左脚触地时间、右脚触地时间。Based on the left and right foot touchdown process curves, the peak information and wave trough information of the left foot touchdown process curve and the right foot touchdown process curve are determined. Since the peak information identifies the pixel coordinate height of the key point of the foot when the foot just touches the runway, the trough information identifies the pixel coordinate height of the key point of the foot when the foot is about to leave the runway. According to the characteristics of this curve, it can be determined that each section of the curve from the peak to the trough represents the corresponding foot contact process, and the user's left foot contact time and right foot contact time can be calculated accordingly.
具体的,所述左脚触地时间计算公式为:Specifically, the calculation formula of the left foot contact time is:
其中,表示所述左脚触地过程曲线在第i次左脚触地过程中波谷所对应的时间点,表示所述左脚触地过程曲线在第i次左脚触地过程中波峰所对应的时间点,表示所述左脚触地过程曲线在第i次左脚触地过程的触地时长,表示所述左脚触地时间,nl为左脚触地次数;in, represents the time point corresponding to the trough of the left foot contacting process curve in the i-th left foot contacting process, represents the time point corresponding to the peak of the left foot contacting process curve in the i-th left foot contacting process, represents the touchdown duration of the left foot touchdown process curve in the i-th left foot touchdown process, represents the time of the left foot touching the ground, n l is the number of times the left foot touches the ground;
所述右脚触地时间计算公式为:The calculation formula of the right foot contact time is:
其中,表示所述右脚触地过程曲线在第i次右脚触地过程中波谷所对应的时间点,表示所述右脚触地过程曲线在第i次右脚触地过程中波峰所对应的时间点,表示所述右脚触地过程曲线在第i次右脚触地过程的触地时长,表示所述右脚触地时间,nr为右脚触地次数。in, represents the time point corresponding to the trough of the right foot contacting process curve in the i-th right foot contacting process, represents the time point corresponding to the peak of the right foot contacting process curve in the i-th right foot contacting process, represents the touchdown duration of the right foot touchdown process curve in the i-th right foot touchdown process, represents the time of the right foot touching the ground, and n r is the number of times the right foot touches the ground.
基于上述计算公式,针对单侧的脚部,由于在跑步过程中,刚刚触地时脚部关键点往往落在图像像素中的最低点(y值最大),随后脚刚刚准备离地时脚部关键点往往落在图像像素中的最高点(y值最小),即左右脚触地过程曲线中,每对波峰与波谷之间的时间差可认为是跑步过程中的触地时长。由此,通过左右脚触地过程曲线中每一组波峰到波谷的时间差确定每一次触地时长,进而根据触地次数求取均值,即可得到对应左右脚的左脚触地时间和右脚触地时间。Based on the above calculation formula, for the unilateral foot, during the running process, the key point of the foot often falls at the lowest point in the image pixel (the y value is the largest) when the foot just touches the ground, and then the foot is just ready to leave the ground. The key point often falls on the highest point in the image pixel (with the smallest y value), that is, in the curve of the left and right feet touching the ground, the time difference between each pair of wave peaks and wave troughs can be considered as the ground contact time during running. Therefore, the duration of each touchdown is determined by the time difference between each group of peaks and troughs in the touchdown process curve of the left and right feet, and then the average value is obtained according to the number of touchdowns, and the touchdown time of the left foot and the right foot corresponding to the left and right feet can be obtained. touchdown time.
进一步的,基于上述计算得到的左脚触地时间和右脚触地时间,本申请实实施例对应进行触地平衡参数的计算,所述触地平衡参数计算公式为:Further, based on the ground contact time of the left foot and the ground contact time of the right foot obtained by the above calculation, the embodiment of the present application corresponds to the calculation of the ground contact balance parameter, and the calculation formula of the ground contact balance parameter is:
其中,α表示所述触地平衡参数。where α represents the touchdown balance parameter.
触地平衡参数表示左右脚的触地时间比,基于上述触地平衡参数,可以确定左右脚触地时间的差距。可以理解的是,若触地平衡参数α的值越接近1,则表示左右脚触地时间相对平衡,反之,表明左右脚触地时间的差距较大。The ground contact balance parameter represents the ground contact time ratio of the left and right feet, and based on the above ground contact balance parameter, the difference between the left and right feet contact time can be determined. It can be understood that, if the value of the ground contact balance parameter α is closer to 1, it means that the left and right foot contact time is relatively balanced, otherwise, it means that the difference between the left and right foot contact time is large.
另一方面,基于上述左右脚的触地时间本申请实施例还进一步进行当前用户跑步运动过程中腾空时间的计算,所述腾空时间的计算公式为:On the other hand, based on the touchdown time of the above-mentioned left and right feet, the embodiment of the present application further performs the calculation of the air time during the current user's running exercise, and the calculation formula of the air time is as follows:
其中,N表示所述左脚触地过程曲线和所述右脚触地过程曲线对齐后的左右脚轮换次数,T表示所述跑步视频的总时长,ttot表示左右脚轮换的平均时间,tair表示所述腾空时间。Wherein, N represents the left and right foot rotation times after the left foot touchdown process curve and the right foot touchdown process curve are aligned, T represents the total duration of the running video, t tot represents the average time of left and right foot rotation, t air represents the air time.
具体的,腾空时间即表示用户在跑步过程中双脚离开地面的平均时间,基于上述左脚触地过程曲线和右脚触地过程曲线,首先根据时间点信息将曲线对齐,进而在左脚触地过程曲线和右脚触地过程曲线中,以曲线的一次波峰到波谷的过程作为一次触地过程。则在对齐左脚触地过程曲线和右脚触地过程曲线之后,以曲线中前一个波峰-波谷和后一个波峰-波谷之间的过程作为一次左右脚的轮换。以此来统计该跑步视频中左右脚轮换的次数。基于左右脚的轮换次数以及跑步视频的总时长,即可确定一次左右脚轮换的平均时间。进而将左右脚轮换的平均时间ttot与上述计算得到的左右脚触地时间之和作差,即可计算得到用户在跑步过程中双脚离开地面的平均时间tair。Specifically, the flight time refers to the average time that the user's feet leave the ground during running. Based on the above-mentioned left foot contacting process curve and right foot contacting process curve, the curves are first aligned according to the time point information, and then the left foot touches the ground. In the ground process curve and the right foot contact process curve, the process from a peak to a trough of the curve is used as a ground contact process. Then, after aligning the left foot contacting process curve and the right foot contacting process curve, the process between the previous peak-to-valley and the next peak-to-valley in the curve is used as a rotation of the left and right feet. Use this to count the number of left and right foot rotations in the running video. Based on the number of left and right foot rotations and the total duration of the running video, the average time for one left and right foot rotation can be determined. Then, the difference between the average time t tot of the left and right foot rotation and the sum of the left and right feet touching the ground obtained by the above calculation can be calculated, and the average time t air for the user's feet to leave the ground during the running process can be calculated.
进一步的,基于上述腾空时间和左右脚触地时间,本申请实施例对应计算用户跑步过程中的触地腾空比,所述触地腾空比的计算公式为:Further, based on the above-mentioned flight time and the contact time of the left and right feet, the embodiment of the present application correspondingly calculates the touch-to-air ratio during the running process of the user, and the calculation formula of the touch-to-air ratio is:
其中,β表示所述触地腾空比。where β represents the touchdown airborne ratio.
触地腾空比标识了用户左右脚触地时间和腾空时间的比值,可以理解的是,当触地腾空比达到触地腾空的标准值时,则表明当前用户跑步运动过程中触地时间和腾空时间的时间分配准确,符合正确跑步姿态的需求,反之,则表明当前跑步姿态有误,需要调整跑步运动过程中触地时间和腾空时间的时间分配。The touch-to-air ratio identifies the ratio of the user’s left and right feet touching the ground to the air-to-air time. It is understandable that when the touch-to-air ratio reaches the standard value of touch and air, it means that the current user’s touch-to-air time and air-to-air ratio are in the process of running. The time distribution of time is accurate and meets the needs of the correct running posture. On the contrary, it indicates that the current running posture is wrong, and it is necessary to adjust the time distribution of the touchdown time and the air time during the running movement.
此外,本申请实施例还基于上述左右脚触地过程曲线计算对应的步幅参数,所述步幅参数的计算公式为:In addition, the embodiment of the present application also calculates the corresponding stride parameter based on the above-mentioned left and right foot contacting process curve, and the calculation formula of the stride parameter is:
其中,h为摄像头与跑道垂直距离的归一化参数,cy为像素中心点的归一化参数,fy为相机焦距的归一化参数,ypeak-l为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次左脚触地对应波峰的所述像素坐标高度的归一化参数,zpeak-l为一次左脚触地对应波峰的脚部关键点与摄像头的水平距离,ytrough-r为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次右脚触地对应波谷的所述像素坐标高度的归一化参数,ztrough-r为一次右脚触地对应波谷的脚部关键点与摄像头的水平距离,ypeak-r为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次右脚触地对应波峰的所述像素坐标高度的归一化参数,zpeak-r为一次右脚触地对应波峰的脚部关键点与摄像头的水平距离,ytrough-l为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次左脚触地对应波谷的所述像素坐标高度的归一化参数,ztrough-l为一次左脚触地对应波谷的脚部关键点与摄像头的水平距离,zi trough-zi peak表示第i次左右脚同时触地时,右脚对应波谷的脚部关键点与左脚对应波峰的脚部关键点的水平距离,或者左脚对应波谷的脚部关键点与右脚对应波峰的脚部关键点的水平距离,N表示所述左脚触地过程曲线和所述右脚触地过程曲线对齐后的左右脚轮换次数,为所述步幅参数。Among them, h is the normalized parameter of the vertical distance between the camera and the runway, cy is the normalized parameter of the pixel center point, f y is the normalized parameter of the camera focal length, and y peak-l is the process of the left foot touching the ground After the curve and the right foot touchdown process curve are aligned, the normalization parameter of the pixel coordinate height of the corresponding wave crest for one left foot touchdown, z peak-l is the key point of the foot corresponding to the wave crest for one left foot touchdown and The horizontal distance of the camera, y trough-r is the normalization parameter of the height of the pixel coordinates corresponding to the wave valley after the left foot touchdown process curve and the right foot touchdown process curve are aligned, z trough-r is the horizontal distance between the key point of the foot corresponding to the trough of a right foot touchdown and the camera, and y peak-r is the alignment of the left foot touchdown process curve and the right foot touchdown process curve, a right foot touchdown process curve is aligned. The normalization parameter of the height of the pixel coordinates of the corresponding wave crest, z peak-r is the horizontal distance between the key point of the foot corresponding to the wave crest and the camera when a right foot touches the ground, y trough-l is the left foot touching the ground After the process curve is aligned with the process curve of the right foot touching the ground, the normalization parameter of the pixel coordinate height of a trough corresponding to a left foot touching the ground, z trough-l is the key point of the foot corresponding to a trough when a left foot touches the ground The horizontal distance from the camera, z i trough -zi peak represents the horizontal distance between the key point of the foot corresponding to the trough of the right foot and the key point of the foot corresponding to the peak of the left foot when the left and right feet touch the ground at the same time for the i -th time, or the left foot The horizontal distance between the key point of the foot corresponding to the trough and the key point of the foot corresponding to the crest of the right foot, N represents the number of left and right foot rotations after the left foot touchdown process curve and the right foot touchdown process curve are aligned, is the stride parameter.
可以理解的是,步幅参数即为当前用户跑步运动过程中的平均步幅。如图6所示,以o为摄像头位置,z为脚部关键点与摄像头的水平距离,h为摄像头与跑道的垂直距离,cy为像素中心点,fy为相机焦距,y为左脚触地或者右脚触地时,脚部关键点对应波峰或者波谷的像素坐标高度,则基于坐标系转换,可以得到几何关系公式:It can be understood that the stride parameter is the average stride in the current running process of the user. As shown in Figure 6, o is the camera position, z is the horizontal distance between the key point of the foot and the camera, h is the vertical distance between the camera and the runway, c y is the pixel center point, f y is the camera focal length, and y is the left foot When touching the ground or the right foot touches the ground, the key point of the foot corresponds to the pixel coordinate height of the peak or trough of the wave, then based on the coordinate system transformation, the geometric relationship formula can be obtained:
对应的,基于上述几何关系公式,即可求得脚部关键点与摄像头的水平距离。进而根据左脚触地或者右脚触地时,脚部关键点对应波峰或者波谷的像素坐标高度,即可求得右脚刚刚准备抬起同时左脚刚刚触地,或者左脚准备抬起同时右脚刚刚触地时脚部关键点与摄像头的水平距离,两者作差即为一次左右脚轮换的步幅。最终基于每一次左右脚轮换的步幅求取均值,即可得到上述步幅参数。Correspondingly, based on the above geometric relationship formula, the horizontal distance between the key point of the foot and the camera can be obtained. Then, according to the pixel coordinate height of the key point of the foot corresponding to the peak or trough when the left foot touches the ground or the right foot touches the ground, it can be obtained that the right foot is just about to be lifted and the left foot is just touched the ground, or the left foot is about to be lifted at the same time. The horizontal distance between the key point of the foot and the camera when the right foot just touches the ground, the difference between the two is the stride of a left and right foot rotation. Finally, the above stride parameter can be obtained by taking the average value based on the stride of each left and right caster rotation.
之后,基于上述计算得到的左脚触地时间、右脚触地时间、触地平衡参数、腾空时间、触地腾空比和步幅参数,将其输出至跑步机的显示屏上进行显示。此时用户基于上述显示的跑步姿态参数,即可直观地了解到自身的跑姿姿态,并在跑步姿态出现错误时及时调整跑姿,以实现更好的跑步体验。After that, based on the left foot contact time, right foot contact time, ground contact balance parameters, flight time, ground contact-to-air ratio and stride parameters calculated above, they are output to the display screen of the treadmill for display. At this time, the user can intuitively know his own running posture based on the running posture parameters displayed above, and adjust the running posture in time when the running posture is wrong, so as to achieve a better running experience.
上述,通过实时获取跑步视频,基于骨架关键点检测确定跑步视频中一定数量帧的视频图像的脚部关键点;确认脚部关键点在一定数量帧的视频图像中的像素坐标高度,根据像素坐标高度以及一定数量帧的视频图像对应的时间点,生成像素坐标高度与对应时间点之间的映射关系;基于映射关系计算对应的跑步姿态参数,并输出跑步姿态参数。采用上述技术手段,通过检测视频图像的脚步关键点,基于脚步关键点生成左右脚触地过程曲线,并根据左右脚触地过程曲线进行跑步姿态分析,可以实现基于跑步视频图像的跑步姿态分析,避免检测设备给用户带来额外的负担,优化用户的跑步运动体验。此外,本申请实施例通过脚步关键点检测结合左右脚触地过程曲线进行跑步姿态分析,可以实现跑步姿态参数的精准计算,提供更精确的跑姿分析结果。In the above, by acquiring the running video in real time, the key points of the feet of the video images of a certain number of frames in the running video are determined based on the detection of skeleton key points; The height and the time points corresponding to the video images of a certain number of frames are used to generate the mapping relationship between the pixel coordinate height and the corresponding time point; the corresponding running posture parameters are calculated based on the mapping relationship, and the running posture parameters are output. Using the above technical means, by detecting the key points of the footsteps in the video image, generating the curve of the left and right feet touching the ground based on the key points of the footsteps, and analyzing the running posture according to the curve of the left and right feet touching the ground, the running posture analysis based on the running video image can be realized. Avoid the extra burden of detection equipment on users, and optimize the user's running experience. In addition, in the embodiment of the present application, the running posture analysis is performed by combining the detection of the key points of the footsteps and the contacting process curves of the left and right feet, which can realize the accurate calculation of the running posture parameters and provide a more accurate running posture analysis result.
在上述实施例的基础上,本申请实施例在基于所述左脚触地过程曲线和所述右脚触地过程曲线计算对应的跑步姿态参数,并输出所述跑步姿态参数之后,还包括:On the basis of the above-mentioned embodiment, the embodiment of the present application further includes:
将所述触地平衡参数、所述触地腾空比和所述步幅参数比对相应的设定阈值,输出对应的跑姿对称性分析结果。The touchdown balance parameter, the touchdown-to-air ratio and the stride parameter are compared with corresponding set thresholds, and a corresponding running posture symmetry analysis result is output.
本申请实施例的跑步机预先设置了对应触地平衡参数、触地腾空比和步幅参数的阈值信息,输出对应的跑姿对称性分析结果,提示当前用户的跑姿对此性情况。可以理解的是,触地平衡参数越接近1,则表明左右脚的触地时间越接近,其跑姿对称性越好。同样的,当触地腾空比或者步幅参数满足相应的阈值时,则表明其跑步姿态越好,反之,当检测到上述触地平衡参数、触地腾空比或者步幅参数与相应的阈值信息相差较大时(达到设定的偏差值),表明用户当前以错误的跑步姿态进行跑步运动。此时为了引导用户进行健康的跑步运动,跑步机提示用户调整跑步姿态,以此来提供更好的跑步体验。The treadmill of the embodiment of the present application is preset with threshold information corresponding to the touchdown balance parameter, touchdown air ratio and stride parameter, and outputs the corresponding running posture symmetry analysis result to prompt the current user's running posture to correspond to this situation. It can be understood that the closer the touchdown balance parameter is to 1, the closer the touchdown time of the left and right feet, and the better the symmetry of the running posture. Similarly, when the touchdown-to-air ratio or stride parameter meets the corresponding threshold, it indicates that the running posture is better. On the contrary, when the above-mentioned touchdown balance parameter, touchdown-to-air ratio or stride parameter and the corresponding threshold information are detected When the difference is large (reaches the set deviation value), it indicates that the user is currently running with a wrong running posture. At this time, in order to guide the user to perform a healthy running exercise, the treadmill prompts the user to adjust the running posture, so as to provide a better running experience.
实施例二:Embodiment 2:
在上述实施例的基础上,图7为本申请实施例二提供的一种基于跑步机的跑姿分析装置的结构示意图。参考图7,本实施例提供的基于跑步机的跑姿分析装置具体包括:获取模块21,生成模块22和输出模块23。On the basis of the foregoing embodiment, FIG. 7 is a schematic structural diagram of a running posture analysis device based on a treadmill provided in Embodiment 2 of the present application. Referring to FIG. 7 , the apparatus for analyzing running posture based on a treadmill provided in this embodiment specifically includes: an
其中,获取模块21用于实时获取跑步视频,基于骨架关键点检测确定所述跑步视频中一定数量帧的视频图像的脚部关键点;Wherein, the
生成模块22用于确认所述脚部关键点在一定数量帧的所述视频图像中的像素坐标高度,根据所述像素坐标高度以及一定数量帧的所述视频图像对应的时间点,生成所述像素坐标高度与对应时间点之间的映射关系;The
输出模块23用于基于所述映射关系计算对应的跑步姿态参数,并输出所述跑步姿态参数。The
在上述实施例的基础上,所述生成模块22包括:On the basis of the above embodiment, the generating
确定单元,用于确定所述视频图像的一个所述脚部关键点,从所述脚部关键点的像素坐标中确定对应的像素坐标高度;或者,确定所述视频图像的多个所述脚部关键点,计算多个所述脚部关键点的像素坐标高度均值作为对应的像素坐标高度。a determining unit, configured to determine one key point of the foot of the video image, and determine the corresponding pixel coordinate height from the pixel coordinates of the key point of the foot; or, determine a plurality of the feet of the video image The key points of the foot are calculated, and the average value of the height of the pixel coordinates of the plurality of key points of the foot is calculated as the corresponding height of the pixel coordinates.
在上述实施例的基础上,所述获取模块21包括:On the basis of the above embodiment, the
基于骨架关键点检测从所述跑步视频中选取左脚和/或右脚触地过程对应的一定数量帧的所述视频图像,并从所述视频图像中确定脚部关键点的像素坐标。Based on skeleton key point detection, the video images of a certain number of frames corresponding to the process of the left foot and/or the right foot touching the ground are selected from the running video, and the pixel coordinates of the key points of the foot are determined from the video images.
在上述实施例的基础上,所述生成模块22包括:On the basis of the above embodiment, the generating
对应左脚的所述脚部关键点的所述像素坐标高度,与所述视频图像对应的时间点生成第一映射关系;Corresponding to the height of the pixel coordinates of the key point of the foot of the left foot, a first mapping relationship is generated with the time point corresponding to the video image;
对应右脚的所述脚部关键点的所述像素坐标高度,与所述视频图像对应的时间点生成第二映射关系。A second mapping relationship is generated corresponding to the height of the pixel coordinates of the key point of the foot of the right foot and the time point corresponding to the video image.
在上述实施例的基础上,所述第一映射关系表示为左脚触地过程曲线,所述第二映射关系表示为右脚触地过程曲线;On the basis of the above embodiment, the first mapping relationship is represented as a left foot contacting process curve, and the second mapping relationship is represented as a right foot contacting process curve;
对应的,所述输出模块23包括:Correspondingly, the
曲线生成单元,用于确定所述左脚触地过程曲线和所述右脚触地过程曲线的波峰信息和波谷信息;a curve generating unit, configured to determine peak information and trough information of the left foot contacting process curve and the right foot contacting process curve;
显示单元,用于基于所述波峰信息和所述波谷信息计算对应的跑步姿态参数并输出显示,所述跑步姿态参数包括左脚触地时间、右脚触地时间、触地平衡参数、腾空时间、触地腾空比和步幅参数。A display unit, configured to calculate and output and display corresponding running posture parameters based on the wave crest information and the wave trough information, where the running posture parameters include left foot contact time, right foot contact time, ground contact balance parameters, and air time , touchdown air ratio and stride parameters.
在上述实施例的基础上,所述左脚触地时间计算公式为:On the basis of the above embodiment, the calculation formula of the left foot contact time is:
其中,表示所述左脚触地过程曲线在第i次左脚触地过程中波谷所对应的时间点,表示所述左脚触地过程曲线在第i次左脚触地过程中波峰所对应的时间点,表示所述左脚触地过程曲线在第i次左脚触地过程的触地时长,表示所述左脚触地时间,nl为左脚触地次数;in, represents the time point corresponding to the trough of the left foot contacting process curve in the i-th left foot contacting process, represents the time point corresponding to the peak of the left foot contacting process curve in the i-th left foot contacting process, represents the touchdown duration of the left foot touchdown process curve in the i-th left foot touchdown process, represents the time of the left foot touching the ground, n l is the number of times the left foot touches the ground;
所述右脚触地时间计算公式为:The calculation formula of the right foot contact time is:
其中,表示所述右脚触地过程曲线在第i次右脚触地过程中波谷所对应的时间点,表示所述右脚触地过程曲线在第i次右脚触地过程中波峰所对应的时间点,表示所述右脚触地过程曲线在第i次右脚触地过程的触地时长,表示所述右脚触地时间,nr为右脚触地次数。in, represents the time point corresponding to the trough of the right foot contacting process curve in the i-th right foot contacting process, represents the time point corresponding to the peak of the right foot contacting process curve in the i-th right foot contacting process, represents the touchdown duration of the right foot touchdown process curve in the i-th right foot touchdown process, represents the time of the right foot touching the ground, and n r is the number of times the right foot touches the ground.
在上述实施例的基础上,所述触地平衡参数计算公式为:On the basis of the above embodiment, the calculation formula of the ground contact balance parameter is:
其中,α表示所述触地平衡参数。where α represents the touchdown balance parameter.
在上述实施例的基础上,所述腾空时间的计算公式为:On the basis of the above embodiment, the calculation formula of the flight time is:
其中,N表示所述左脚触地过程曲线和所述右脚触地过程曲线对齐后的左右脚轮换次数,T表示所述跑步视频的总时长,ttot表示左右脚轮换的平均时间,tair表示所述腾空时间。Wherein, N represents the left and right foot rotation times after the left foot touchdown process curve and the right foot touchdown process curve are aligned, T represents the total duration of the running video, t tot represents the average time of left and right foot rotation, t air represents the air time.
在上述实施例的基础上,所述触地腾空比的计算公式为:On the basis of the above embodiment, the calculation formula of the air-to-ground ratio is:
其中,β表示所述触地腾空比。where β represents the touchdown airborne ratio.
在上述实施例的基础上,所述步幅参数的计算公式为:On the basis of the above embodiment, the calculation formula of the stride parameter is:
其中,h为摄像头与跑道垂直距离的归一化参数,cy为像素中心点的归一化参数,fy为相机焦距的归一化参数,ypeak-l为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次左脚触地对应波峰的所述像素坐标高度的归一化参数,zpeak-l为一次左脚触地对应波峰的脚部关键点与摄像头的水平距离,ytrough-r为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次右脚触地对应波谷的所述像素坐标高度的归一化参数,ztrough-r为一次右脚触地对应波谷的脚部关键点与摄像头的水平距离,ypeak-r为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次右脚触地对应波峰的所述像素坐标高度的归一化参数,zpeak-r为一次右脚触地对应波峰的脚部关键点与摄像头的水平距离,ytrough-l为所述左脚触地过程曲线和所述右脚触地过程曲线对齐后,一次左脚触地对应波谷的所述像素坐标高度的归一化参数,ztrough-l为一次左脚触地对应波谷的脚部关键点与摄像头的水平距离,zi trough-zi peak表示第i次左右脚同时触地时,右脚对应波谷的脚部关键点与左脚对应波峰的脚部关键点的水平距离,或者左脚对应波谷的脚部关键点与右脚对应波峰的脚部关键点的水平距离,N表示所述左脚触地过程曲线和所述右脚触地过程曲线对齐后的左右脚轮换次数,为所述步幅参数。Among them, h is the normalized parameter of the vertical distance between the camera and the runway, cy is the normalized parameter of the pixel center point, f y is the normalized parameter of the camera focal length, and y peak-l is the process of the left foot touching the ground After the curve and the right foot touchdown process curve are aligned, the normalization parameter of the pixel coordinate height of the corresponding wave crest for one left foot touchdown, z peak-l is the key point of the foot corresponding to the wave crest for one left foot touchdown and The horizontal distance of the camera, y trough-r is the normalization parameter of the height of the pixel coordinates corresponding to the wave valley after the left foot touchdown process curve and the right foot touchdown process curve are aligned, z trough-r is the horizontal distance between the key point of the foot corresponding to the trough of a right foot touchdown and the camera, and y peak-r is the alignment of the left foot touchdown process curve and the right foot touchdown process curve, a right foot touchdown process curve is aligned. The normalization parameter of the height of the pixel coordinates of the corresponding wave crest, z peak-r is the horizontal distance between the key point of the foot corresponding to the wave crest and the camera when a right foot touches the ground, y trough-l is the left foot touching the ground After the process curve is aligned with the process curve of the right foot touching the ground, the normalization parameter of the pixel coordinate height of a trough corresponding to a left foot touching the ground, z trough-l is the key point of the foot corresponding to a trough when a left foot touches the ground The horizontal distance from the camera, z i trough -zi peak represents the horizontal distance between the key point of the foot corresponding to the trough of the right foot and the key point of the foot corresponding to the peak of the left foot when the left and right feet touch the ground at the same time for the i -th time, or the left foot The horizontal distance between the key point of the foot corresponding to the trough and the key point of the foot corresponding to the crest of the right foot, N represents the number of left and right foot rotations after the left foot touchdown process curve and the right foot touchdown process curve are aligned, is the stride parameter.
在上述实施例的基础上,基于跑步机的跑姿分析装置还包括:On the basis of the above-mentioned embodiment, the running posture analysis device based on the treadmill further includes:
分析模块,用于将所述触地平衡参数、所述触地腾空比和所述步幅参数比对相应的设定阈值,输出对应的跑姿对称性分析结果。An analysis module, configured to compare the touchdown balance parameter, the touchdown-to-air ratio and the stride parameter with a corresponding set threshold, and output a corresponding running posture symmetry analysis result.
上述,通过实时获取跑步视频,基于骨架关键点检测确定跑步视频中一定数量帧的视频图像的脚部关键点;确认脚部关键点在一定数量帧的视频图像中的像素坐标高度,根据像素坐标高度以及一定数量帧的视频图像对应的时间点,生成像素坐标高度与对应时间点之间的映射关系;基于映射关系计算对应的跑步姿态参数,并输出跑步姿态参数。采用上述技术手段,通过检测视频图像的脚步关键点,基于脚步关键点生成左右脚触地过程曲线,并根据左右脚触地过程曲线进行跑步姿态分析,可以实现基于跑步视频图像的跑步姿态分析,避免检测设备给用户带来额外的负担,优化用户的跑步运动体验。In the above, by acquiring the running video in real time, the key points of the feet of the video images of a certain number of frames in the running video are determined based on the detection of skeleton key points; The height and the time points corresponding to the video images of a certain number of frames are used to generate the mapping relationship between the pixel coordinate height and the corresponding time point; the corresponding running posture parameters are calculated based on the mapping relationship, and the running posture parameters are output. Using the above technical means, by detecting the key points of the footsteps in the video image, generating the curve of the left and right feet touching the ground based on the key points of the footsteps, and analyzing the running posture according to the curve of the left and right feet touching the ground, the running posture analysis based on the running video image can be realized. Avoid the extra burden of detection equipment on users, and optimize the user's running experience.
并且,本申请实施例通过确定左右脚触地时的脚部关键点计算跑步姿态参数,可以确保骨架关键点的精准检测,避免脚部关键点受遮挡影响导致检测误差的情况,使跑步姿态参数的计算更加精确;通过从跑步视频中选取左右脚触地时的脚部关键点进行跑步姿态参数计算,可以减少关键点的选取数量,进而减少跑步姿态参数的计算量,提升跑姿分析效率。另一方面,通过从跑步视频中选取左右脚触地时的脚部关键点进行跑步姿态参数计算,还可以确保脚部关键点的快速提取,减少跑步视频录制延迟造成的误差影响,更进一步提升跑步姿态参数计算的精确度。In addition, the embodiment of the present application calculates the running posture parameters by determining the key points of the feet when the left and right feet touch the ground, which can ensure the accurate detection of the key points of the skeleton, avoid the situation that the key points of the feet are affected by occlusion and cause detection errors, and make the running posture parameters. The calculation is more accurate; by selecting the key points of the feet when the left and right feet touch the ground from the running video to calculate the running posture parameters, the number of selected key points can be reduced, thereby reducing the calculation amount of running posture parameters and improving the efficiency of running posture analysis. On the other hand, by selecting the key points of the feet when the left and right feet touch the ground from the running video to calculate the running posture parameters, it can also ensure the rapid extraction of the key points of the feet, reduce the error effect caused by the running video recording delay, and further improve The accuracy of running posture parameter calculation.
此外,本申请实施例通过脚步关键点检测结合左右脚触地过程曲线进行跑步姿态分析,可以实现跑步姿态参数的精准计算,提供更精确的跑姿分析结果。In addition, in the embodiment of the present application, the running posture analysis is performed by combining the detection of the key points of the footsteps and the contacting process curves of the left and right feet, which can realize the accurate calculation of the running posture parameters and provide a more accurate running posture analysis result.
本申请实施例二提供的基于跑步机的跑姿分析装置可以用于执行上述实施例一提供的基于跑步机的跑姿分析方法,具备相应的功能和有益效果。The treadmill-based running posture analysis device provided in the second embodiment of the present application can be used to execute the treadmill-based running posture analysis method provided in the above-mentioned first embodiment, and has corresponding functions and beneficial effects.
实施例三:Embodiment three:
本申请实施例三提供了一种跑步机,参照图8,该跑步机包括:处理器31、存储器32、通信模块33、输入装置34及输出装置35。该跑步机中处理器31的数量可以是一个或者多个,该跑步机中的存储器32的数量可以是一个或者多个。该跑步机的处理器31、存储器32、通信模块33、输入装置34及输出装置35可以通过总线或者其他方式连接。The third embodiment of the present application provides a treadmill. Referring to FIG. 8 , the treadmill includes: a processor 31 , a memory 32 , a communication module 33 , an input device 34 and an output device 35 . The number of processors 31 in the treadmill may be one or more, and the number of memories 32 in the treadmill may be one or more. The processor 31 , the memory 32 , the communication module 33 , the input device 34 and the output device 35 of the treadmill can be connected through a bus or in other ways.
存储器32作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的基于跑步机的跑姿分析方法对应的程序指令/模块(例如,基于跑步机的跑姿分析装置中的获取模块,生成模块和输出模块)。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器32可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a computer-readable storage medium, the memory 32 can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the treadmill-based running posture analysis method described in any embodiment of the present application (for example, The acquisition module, the generation module and the output module in the treadmill-based running posture analysis device). The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the device, and the like. Additionally, memory 32 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, the remote memory being connectable to the device through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
通信模33块用于进行数据传输。The communication module 33 is used for data transmission.
处理器31通过运行存储在存储器中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的基于跑步机的跑姿分析方法。The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory, ie, implements the above-mentioned treadmill-based running posture analysis method.
输入装置34可用于接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。输出装置35可包括显示屏等显示设备。The input device 34 may be used to receive input numerical or character information and to generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.
上述提供的跑步机可用于执行上述实施例一提供的基于跑步机的跑姿分析方法,具备相应的功能和有益效果。The treadmill provided above can be used to execute the treadmill-based running posture analysis method provided in the first embodiment, and has corresponding functions and beneficial effects.
实施例四:Embodiment 4:
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种基于跑步机的跑姿分析方法,该基于跑步机的跑姿分析方法包括:实时获取跑步视频,基于骨架关键点检测确定所述跑步视频中一定数量帧的视频图像的脚部关键点;确认所述脚部关键点在一定数量帧的所述视频图像中的像素坐标高度,根据所述像素坐标高度以及一定数量帧的所述视频图像对应的时间点,生成所述像素坐标高度与对应时间点之间的映射关系;基于所述映射关系计算对应的跑步姿态参数,并输出所述跑步姿态参数。Embodiments of the present application further provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a treadmill-based running posture analysis method when executed by a computer processor. The posture analysis method includes: acquiring a running video in real time, and determining the key points of the feet of the video images of a certain number of frames in the running video based on the detection of skeleton key points; confirming that the key points of the feet are in the video images of the certain number of frames. The height of the pixel coordinates, according to the height of the pixel coordinates and the time points corresponding to the video images of a certain number of frames, generate the mapping relationship between the height of the pixel coordinates and the corresponding time points; calculate the corresponding running based on the mapping relationship attitude parameters, and output the running attitude parameters.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的基于跑步机的跑姿分析方法,还可以执行本申请任意实施例所提供的基于跑步机的跑姿分析方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the above-mentioned treadmill-based running posture analysis method, and the computer-executable instructions of the storage medium provided by any embodiment of the present application can also be executed. Related operations in the treadmill-based running posture analysis method.
上述实施例中提供的基于跑步机的跑姿分析装置、存储介质及跑步机可执行本申请任意实施例所提供的基于跑步机的跑姿分析方法,未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的基于跑步机的跑姿分析方法。The treadmill-based running posture analysis device, storage medium, and treadmill provided in the foregoing embodiments can execute the treadmill-based running posture analysis method provided by any embodiment of the present application, and the technical details not described in detail in the foregoing embodiments , please refer to the treadmill-based running posture analysis method provided in any embodiment of the present application.
上述仅为本申请的较佳实施例及所运用的技术原理。本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由权利要求的范围决定。The above are only the preferred embodiments of the present application and the applied technical principles. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110369543.0A CN115188063A (en) | 2021-04-06 | 2021-04-06 | Running posture analysis method, device, treadmill and storage medium based on treadmill |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110369543.0A CN115188063A (en) | 2021-04-06 | 2021-04-06 | Running posture analysis method, device, treadmill and storage medium based on treadmill |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115188063A true CN115188063A (en) | 2022-10-14 |
Family
ID=83511793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110369543.0A Pending CN115188063A (en) | 2021-04-06 | 2021-04-06 | Running posture analysis method, device, treadmill and storage medium based on treadmill |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115188063A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118865503A (en) * | 2024-09-20 | 2024-10-29 | 珠海市芯未科技有限公司 | Real-time feedback method and computer device for students' running posture based on motion recognition |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272926A (en) * | 1997-10-02 | 2000-11-08 | 个人电子设备有限公司 | Measuring foot contact time and foot loft time of person in locomotion |
CN103323209A (en) * | 2013-07-02 | 2013-09-25 | 清华大学 | Structural modal parameter identification system based on binocular stereo vision |
CN107174253A (en) * | 2017-05-23 | 2017-09-19 | 广东远峰电子科技股份有限公司 | A kind of determination methods, the device and system of lower extremity movement posture |
CN108452480A (en) * | 2018-04-11 | 2018-08-28 | 杭州启望科技有限公司 | The detection method and device of running posture on a kind of treadmill and treadmill |
CN109009142A (en) * | 2018-07-06 | 2018-12-18 | 歌尔科技有限公司 | Running posture determination method, system, intelligent wearable device and storage medium |
CN110315543A (en) * | 2019-07-29 | 2019-10-11 | 北京理工大学 | A kind of biped robot's gait generates and optimization method |
CN110639192A (en) * | 2019-08-20 | 2020-01-03 | 苏宁智能终端有限公司 | Step number calculation method and device for sports equipment and step number calculation method and device |
CN110738192A (en) * | 2019-10-29 | 2020-01-31 | 腾讯科技(深圳)有限公司 | Human motion function auxiliary evaluation method, device, equipment, system and medium |
CN111027417A (en) * | 2019-11-21 | 2020-04-17 | 复旦大学 | Gait recognition method and gait evaluation system based on human body key point detection algorithm |
CN111081346A (en) * | 2020-01-14 | 2020-04-28 | 深圳市圆周率智能信息科技有限公司 | Exercise efficiency analysis method and device, wearable device and computer-readable storage medium |
CN111437575A (en) * | 2019-01-16 | 2020-07-24 | 北京邦天信息技术有限公司 | Control method and device of intelligent treadmill |
CN111913490A (en) * | 2020-08-18 | 2020-11-10 | 山东大学 | Drop foot adjustment-based dynamic gait stability control method and system for quadruped robot |
US20200376341A1 (en) * | 2019-05-30 | 2020-12-03 | Wecatchup Inc. | Running Parameters Detection System for Treadmills and Detection Method Thereof |
CN112115827A (en) * | 2020-09-09 | 2020-12-22 | 中南大学 | Falling behavior identification method based on human body posture dynamic characteristics |
CN112169296A (en) * | 2019-07-05 | 2021-01-05 | 华为技术有限公司 | A motion data monitoring method and device |
-
2021
- 2021-04-06 CN CN202110369543.0A patent/CN115188063A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272926A (en) * | 1997-10-02 | 2000-11-08 | 个人电子设备有限公司 | Measuring foot contact time and foot loft time of person in locomotion |
CN103323209A (en) * | 2013-07-02 | 2013-09-25 | 清华大学 | Structural modal parameter identification system based on binocular stereo vision |
CN107174253A (en) * | 2017-05-23 | 2017-09-19 | 广东远峰电子科技股份有限公司 | A kind of determination methods, the device and system of lower extremity movement posture |
CN108452480A (en) * | 2018-04-11 | 2018-08-28 | 杭州启望科技有限公司 | The detection method and device of running posture on a kind of treadmill and treadmill |
CN109009142A (en) * | 2018-07-06 | 2018-12-18 | 歌尔科技有限公司 | Running posture determination method, system, intelligent wearable device and storage medium |
CN111437575A (en) * | 2019-01-16 | 2020-07-24 | 北京邦天信息技术有限公司 | Control method and device of intelligent treadmill |
US20200376341A1 (en) * | 2019-05-30 | 2020-12-03 | Wecatchup Inc. | Running Parameters Detection System for Treadmills and Detection Method Thereof |
CN112169296A (en) * | 2019-07-05 | 2021-01-05 | 华为技术有限公司 | A motion data monitoring method and device |
CN110315543A (en) * | 2019-07-29 | 2019-10-11 | 北京理工大学 | A kind of biped robot's gait generates and optimization method |
CN110639192A (en) * | 2019-08-20 | 2020-01-03 | 苏宁智能终端有限公司 | Step number calculation method and device for sports equipment and step number calculation method and device |
CN110738192A (en) * | 2019-10-29 | 2020-01-31 | 腾讯科技(深圳)有限公司 | Human motion function auxiliary evaluation method, device, equipment, system and medium |
CN111027417A (en) * | 2019-11-21 | 2020-04-17 | 复旦大学 | Gait recognition method and gait evaluation system based on human body key point detection algorithm |
CN111081346A (en) * | 2020-01-14 | 2020-04-28 | 深圳市圆周率智能信息科技有限公司 | Exercise efficiency analysis method and device, wearable device and computer-readable storage medium |
CN111913490A (en) * | 2020-08-18 | 2020-11-10 | 山东大学 | Drop foot adjustment-based dynamic gait stability control method and system for quadruped robot |
CN112115827A (en) * | 2020-09-09 | 2020-12-22 | 中南大学 | Falling behavior identification method based on human body posture dynamic characteristics |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118865503A (en) * | 2024-09-20 | 2024-10-29 | 珠海市芯未科技有限公司 | Real-time feedback method and computer device for students' running posture based on motion recognition |
CN118865503B (en) * | 2024-09-20 | 2024-12-06 | 珠海市芯未科技有限公司 | Student running gesture real-time feedback method based on action recognition and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11994377B2 (en) | Systems and methods of locating a control object appendage in three dimensional (3D) space | |
CN112464918B (en) | Body-building action correcting method and device, computer equipment and storage medium | |
WO2021129064A1 (en) | Posture acquisition method and device, and key point coordinate positioning model training method and device | |
US9317127B2 (en) | Method and apparatus for motion recognition | |
US20140307920A1 (en) | Systems and methods for tracking occluded objects in three-dimensional space | |
CN113033369B (en) | Motion capture method, motion capture device, electronic equipment and computer readable storage medium | |
US10991124B2 (en) | Determination apparatus and method for gaze angle | |
WO2021052208A1 (en) | Auxiliary photographing device for movement disorder disease analysis, control method and apparatus | |
TWI431538B (en) | Image based motion gesture recognition method and system thereof | |
CN108416276A (en) | The abnormal gait detection method of side gait video based on people | |
CN115105062B (en) | Hip and knee joint coordination evaluation method, device and system and storage medium | |
Jin | Player target tracking and detection in football game video using edge computing and deep learning | |
US20210059596A1 (en) | Cognitive function evaluation method, cognitive function evaluation device, and non-transitory computer-readable recording medium in which cognitive function evaluation program is recorded | |
CN109377518A (en) | Target tracking method, device, target tracking equipment and storage medium | |
CN117576734A (en) | Spine detection method, system, electronic equipment and medium | |
CN115188063A (en) | Running posture analysis method, device, treadmill and storage medium based on treadmill | |
CN116012415A (en) | Ping-pong ball rotation estimation method and rotation estimation system based on vision measurement | |
Ueng et al. | Vision based multi-user human computer interaction | |
CN118648892A (en) | Human body fall prediction method, device, electronic device and storage medium | |
CN115170603B (en) | Stride detection method and device based on treadmill, treadmill and storage medium | |
CN116978123A (en) | Motion emergency analysis method and device based on human body posture estimation | |
CN109377519A (en) | Target tracking method, device, target tracking equipment and storage medium | |
TW201510939A (en) | Dynamic image analyzing system and operating method thereof | |
US20250037297A1 (en) | Combining data channels to determine camera pose | |
CN112015283B (en) | Slipper mouse control method, slipper mouse and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20221014 |