CN113268141B - A motion capture method and device based on inertial sensors and fabric electronics - Google Patents
A motion capture method and device based on inertial sensors and fabric electronics Download PDFInfo
- Publication number
- CN113268141B CN113268141B CN202110535501.XA CN202110535501A CN113268141B CN 113268141 B CN113268141 B CN 113268141B CN 202110535501 A CN202110535501 A CN 202110535501A CN 113268141 B CN113268141 B CN 113268141B
- Authority
- CN
- China
- Prior art keywords
- human body
- posture
- inertial
- motion capture
- fabric
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000033001 locomotion Effects 0.000 title claims abstract description 120
- 239000004744 fabric Substances 0.000 title claims abstract description 82
- 238000000034 method Methods 0.000 title claims abstract description 61
- 210000003141 lower extremity Anatomy 0.000 claims abstract description 53
- 230000009471 action Effects 0.000 claims abstract description 25
- 230000000694 effects Effects 0.000 claims abstract description 23
- 210000002414 leg Anatomy 0.000 claims description 17
- 210000000629 knee joint Anatomy 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 13
- 210000000689 upper leg Anatomy 0.000 claims description 13
- 238000012937 correction Methods 0.000 claims description 11
- 238000005516 engineering process Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 8
- 239000004753 textile Substances 0.000 claims description 7
- 230000008901 benefit Effects 0.000 abstract description 9
- 210000003414 extremity Anatomy 0.000 abstract description 8
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 230000002441 reversible effect Effects 0.000 abstract description 3
- 238000003475 lamination Methods 0.000 abstract 1
- 210000000245 forearm Anatomy 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 7
- 244000309466 calf Species 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 210000001503 joint Anatomy 0.000 description 5
- 238000013507 mapping Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 210000002310 elbow joint Anatomy 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000005452 bending Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000009916 joint effect Effects 0.000 description 3
- 230000007774 longterm Effects 0.000 description 3
- 239000002184 metal Substances 0.000 description 3
- 229910052751 metal Inorganic materials 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 210000003127 knee Anatomy 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000005096 rolling process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 206010013883 Dwarfism Diseases 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000005672 electromagnetic field Effects 0.000 description 1
- 239000012776 electronic material Substances 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- -1 ferrous metals Chemical class 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 150000002739 metals Chemical class 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000002277 temperature effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/22—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring angles or tapers; for testing the alignment of axes
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Orthopedics, Nursing, And Contraception (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种基于惯性传感器和织物电子的动作捕获方法、装置、设备及可读存储介质。The present application relates to the field of computer technology, and in particular, to a motion capture method, device, device and readable storage medium based on inertial sensors and fabric electronics.
背景技术Background technique
动作捕获(motion capture)是指利用传感器测量、跟踪和记录人体各部分在三维空间的运动轨迹并以数字的形式表示和存储的一项技术。随着动作捕获技术发展,已应用到影视、虚拟现实、人机交互、游戏和医疗康复等多个领域。Motion capture refers to a technology that uses sensors to measure, track and record the movement trajectories of various parts of the human body in three-dimensional space and represent and store them in digital form. With the development of motion capture technology, it has been applied to many fields such as film and television, virtual reality, human-computer interaction, games and medical rehabilitation.
简单的动作捕获先驱一般认为是美籍动画师马克思费舍尔(Max Fleischer),1915年,在第一次世界大战期间,开发的一种名为转描(Rotoscoping)的技术,该技术将实际拍摄到的动作影像作为动画描绘底样,动画师以此为基础逐帧描绘出所需要的动作。1939年上映的《白雪公主和七个小矮人》是首次采用rotoscope技术的电影。发展到现在的人体动作捕获技术包括:(1)机械式捕获设备:机械式动捕系统包含多个刚性连杆和关节,通过装在关节中的角度传感器测量关节的角度可以计算出杆件末端点在空间中的位置和运动轨迹,该系统不受外界环境干扰、成本低且精度高,但是阻碍用户活动。(2)电磁式:电磁式动作捕获系统由发射源、接收器和数据处理单元构成。发射源能产生具有时间规律的电磁场,接收器设置在人体不同位置。优点是使用简单、鲁棒性和实时性高,但是受地板、墙壁和天花板中的黑色金属以及捕捉区域中的噪声源的影响,并且操作空间内的金属物体和杂散磁场都会降低性能。(3)声波式:原理是根据超声波的延迟以及相位偏差计算人体位置姿态,常用于短距离测量。该系统由发射器、接收器以及处理器三个部分组成。优点是成本低,但实时性低、精度差、易受接收器和发射器间障碍物影响,大噪声和多次反射也会干扰其性能,且在空气中的传播速度受空气压力、湿度和温度影响。(4)光学式作为目前被使用最广泛的一项动捕技术,同时也是技术最成熟、精度最高和价格昂贵的动捕系统。通过对特定光点的跟踪来捕捉运动轨迹。该系统优点是延迟低和精度高,但对场地光线有要求,并且标记可能由于阴影效应被隐藏。(5)惯性传感器式:惯性动作捕获系统是基于低成本MEMS传感器的动作捕获系统。根据加速度二重积分获得物体空间位置,所以有很强的自主性,不易受外界环境干扰,但是受时间的推移,惯性传感器会产生较大的累计漂移误差,而传统的辅助算法只能尽可能减小漂移误差。The pioneer of simple motion capture is generally considered to be the American animator Max Fleischer, who developed a technique called Rotoscoping in 1915 during the First World War, which The captured action images are used as the background for the animation, and the animator draws the required actions frame by frame based on this. Snow White and the Seven Dwarfs, released in 1939, was the first film to use rotoscope technology. The human motion capture technology developed so far includes: (1) Mechanical capture equipment: The mechanical motion capture system includes multiple rigid links and joints. The angle of the joint can be measured by the angle sensor installed in the joint to calculate the end of the rod. The position and motion trajectory of points in space, the system is not disturbed by the external environment, has low cost and high precision, but hinders user activities. (2) Electromagnetic: The electromagnetic motion capture system consists of a transmitter, a receiver and a data processing unit. The transmitter can generate a time-regular electromagnetic field, and the receivers are placed at different positions on the human body. The advantages are simplicity of use, robustness, and high real-time performance, but are affected by ferrous metals in floors, walls, and ceilings, and noise sources in the capture area, as well as metal objects and stray magnetic fields in the operating space. (3) Acoustic wave type: The principle is to calculate the position and attitude of the human body according to the delay and phase deviation of the ultrasonic wave, which is often used for short-distance measurement. The system consists of transmitter, receiver and processor. The advantages are low cost, but low real-time performance, poor accuracy, easy to be affected by obstacles between the receiver and transmitter, large noise and multiple reflections will also interfere with its performance, and the propagation speed in the air is affected by air pressure, humidity and temperature effect. (4) Optical type is currently the most widely used motion capture technology, and it is also the most mature, most accurate and expensive motion capture system. Motion traces are captured by tracking specific light spots. The advantages of this system are low latency and high precision, but it has requirements for field lighting and markers may be hidden due to shadow effects. (5) Inertial sensor type: The inertial motion capture system is a motion capture system based on low-cost MEMS sensors. The spatial position of the object is obtained according to the double integral of the acceleration, so it has strong autonomy and is not easily disturbed by the external environment. However, with the passage of time, the inertial sensor will generate a large cumulative drift error, and the traditional auxiliary algorithm can only try to do as much as possible. Reduce drift error.
一种现有动作捕获方案为基于光学的动作捕获系统。VR虚拟现实动作捕捉系统包括多个光学式动作捕捉相机,其用于根据标记点来捕捉身体各部分在三维方向上的位移。光学摄像机价格昂贵,由光学摄像头捕获动作,因无法实时确认后期的三维场景的效果以及其他后期分别合成的三维人物或道具等,所以需要在空白空间的动作捕捉室内进行表演,另外肢体对标记的遮挡,使相机不能准确捕捉到标记的位置。因此光学的动作捕获系统不适用于日常普遍使用。One existing motion capture solution is an optical-based motion capture system. The VR virtual reality motion capture system includes a plurality of optical motion capture cameras, which are used to capture the displacement of each part of the body in the three-dimensional direction according to the marker points. The optical camera is expensive, and the action is captured by the optical camera. Because the effect of the 3D scene in the later stage and other 3D characters or props synthesized in the later stage cannot be confirmed in real time, the performance needs to be performed in a motion capture room in a blank space. occlusion, so that the camera cannot accurately capture the location of the marker. Therefore, the optical motion capture system is not suitable for daily general use.
另一种现有动作捕获方案为基于惯性传感器的动作捕获系统。采用的数据传感器数量不低于31个,节点过多造成同时传输容易延迟,且各个传感器采用有线连接。首先惯性节点太多增加了穿戴的复杂性,且重量增加了用户的负担。其次,传感器坐标系到人体坐标系的精确转换要求传感器在运动中紧紧地固定在人体上,使用刚性节点佩戴在人体,这看起来是合理的,但是,人体非刚性部分会使传感器相对人体运动,为了减少传感器松动带来的坐标转换误差,使用绷带令传感器牢牢固定在人体各部分会对皮肤造成不适感,不适合对动作长时间捕获的要求。Another existing motion capture solution is an inertial sensor-based motion capture system. The number of data sensors used is not less than 31. Too many nodes cause simultaneous transmission to be easily delayed, and each sensor is connected by wire. First of all, too many inertial nodes increase the complexity of wearing, and the weight increases the burden on the user. Secondly, the accurate conversion of the sensor coordinate system to the human body coordinate system requires the sensor to be tightly fixed on the human body during motion, and the rigid node is used to wear it on the human body, which seems reasonable, but the non-rigid part of the human body will make the sensor relative to the human body. Movement, in order to reduce the coordinate conversion error caused by the loose sensor, the use of bandages to firmly fix the sensor to various parts of the human body will cause discomfort to the skin, which is not suitable for long-term capture of movements.
还有一种现有动作捕获方案为基于惯性传感器的实时动作捕获AR保龄球娱乐系统。仅仅在手上安装惯性传感器进行动作捕获,只考虑到捕获手部动作,然而没有考虑到脚部的实时移动,不能对人体全身动作进行捕获。惯性传感器受当地磁场和金属影响较大,且穿戴不舒适,所以不能满足对全身动作进行实时捕获的要求。Another existing motion capture solution is a real-time motion capture AR bowling entertainment system based on inertial sensors. Only the inertial sensor is installed on the hand for motion capture, which only considers the capture of hand motion, but does not consider the real-time movement of the foot, and cannot capture the motion of the whole body. Inertial sensors are greatly affected by local magnetic fields and metals, and are uncomfortable to wear, so they cannot meet the requirements of real-time capture of whole-body movements.
总之,当前的人体动作捕获方案存在以下几个缺点:实时性不高,价格昂贵,穿戴不舒适,精度低、对环境要求高。In a word, the current human motion capture scheme has the following shortcomings: low real-time performance, high price, uncomfortable wearing, low precision, and high environmental requirements.
发明内容SUMMARY OF THE INVENTION
本申请的目的是提供一种基于惯性传感器和织物电子的动作捕获方法、装置、设备及可读存储介质,用以解决当前的人体动作捕获方案实时性低,穿戴不舒适,精度低,成本高的问题。其具体方案如下:The purpose of this application is to provide a motion capture method, device, device and readable storage medium based on inertial sensors and fabric electronics, to solve the problem of low real-time performance, uncomfortable wearing, low precision and high cost of current human motion capture solutions The problem. Its specific plan is as follows:
第一方面,本申请提供了一种基于惯性传感器和织物电子的动作捕获方法,包括:In a first aspect, the present application provides a motion capture method based on inertial sensors and fabric electronics, including:
利用部署于第一人体部位的惯性传感器采集惯性数据,并利用部署于第二人体部位的织物电子采集活动角度数据;The inertial data is collected by using the inertial sensor deployed on the first body part, and the activity angle data is collected by using the fabric electronics deployed on the second body part;
将所述惯性数据和所述活动角度数据分别转换为四元数的形式,得到人体姿态,以描述所述第一人体部位相对于人体的旋转角度和所述第二人体部位相对于所述第一人体部位的旋转角度;The inertial data and the activity angle data are respectively converted into the form of quaternions to obtain the human body posture, so as to describe the rotation angle of the first human body part relative to the human body and the second human body part relative to the first human body part. The rotation angle of a body part;
根据当前脚位置和所述人体姿态,确定下肢姿态,其中所述下肢姿态包括质心位置;根据预设腿长和当前质心高度,确定当前步长;根据所述当前步长和所述质心位置,通过逆向运动学姿态拟合对所述下肢姿态进行修正;Determine the lower limb posture according to the current foot position and the human body posture, wherein the lower limb posture includes the position of the centroid; determine the current step length according to the preset leg length and the current centroid height; according to the current step length and the centroid position, Correcting the posture of the lower limb through inverse kinematics posture fitting;
根据所述人体姿态和修正后的下肢姿态,进行人体动作呈现。According to the human body posture and the corrected lower limb posture, the human body action presentation is performed.
优选的,所述惯性传感器部署于头部、腰部、大臂和大腿,所述织物电子部署于腿关节和肘关节。Preferably, the inertial sensors are deployed on the head, waist, upper arms and thighs, and the fabric is electronically deployed on the leg joints and the elbow joints.
优选的,在所述利用部署于第一人体部位的惯性传感器采集惯性数据,并利用部署于第二人体部位的织物电子采集活动角度数据之后,还包括:Preferably, after the inertial data is collected by the inertial sensor deployed on the first body part, and the activity angle data is collected electronically by using the fabric deployed on the second body part, the method further includes:
基于无线通信技术,获取所述惯性数据和所述活动角度数据。The inertial data and the movement angle data are acquired based on wireless communication technology.
优选的,在所述将所述惯性数据和所述活动角度数据分别转换为四元数的形式,得到人体姿态之后,还包括:Preferably, after converting the inertial data and the activity angle data into the form of quaternions to obtain the human body posture, the method further includes:
根据预先设置的各个人体部位之间的运动约束条件,对所述人体姿态进行修正。The posture of the human body is corrected according to preset motion constraints between various human body parts.
优选的,所述根据当前脚位置和所述人体姿态,确定下肢姿态,包括:Preferably, determining the lower limb posture according to the current foot position and the human body posture, including:
根据当前脚位置和所述人体姿态,确定当前膝关节位置;Determine the current knee joint position according to the current foot position and the human body posture;
根据所述当前膝关节位置和所述人体姿态,确定质心位置;According to the current knee joint position and the human body posture, determine the position of the center of mass;
根据所述质心位置和所述人体姿态,确定另一膝关节位置;determining the position of another knee joint according to the position of the centroid and the posture of the human body;
根据所述另一膝关节位置和所述人体姿态,确定另一脚位置;According to the position of the other knee joint and the posture of the human body, determine the position of the other foot;
将所述当前脚位置、所述当前膝关节位置、所述质心位置、所述另一膝关节位置和所述另一脚位置,作为下肢姿态。The current foot position, the current knee joint position, the mass center position, the other knee joint position, and the other foot position are used as the lower limb posture.
优选的,所述根据所述人体姿态和修正后的下肢姿态,进行人体动作呈现,包括:Preferably, performing human action presentation according to the human body posture and the corrected lower limb posture, including:
通过Unity 3D建立人物模型,将所述人体姿态和修正后的下肢姿态映射到人体模型,以呈现人体动作。A character model is established through Unity 3D, and the human body posture and the corrected lower limb posture are mapped to the human body model to present human movements.
第二方面,本申请提供了一种基于惯性传感器和织物电子的动作捕获装置,包括:In a second aspect, the present application provides a motion capture device based on inertial sensors and fabric electronics, comprising:
数据采集模块:用于利用部署于第一人体部位的惯性传感器采集惯性数据,并利用部署于第二人体部位的织物电子采集活动角度数据;Data acquisition module: used to collect inertial data using the inertial sensor deployed on the first human body part, and collect activity angle data using the fabric electronically deployed on the second human body part;
人体姿态确定模块:用于将所述惯性数据和所述活动角度数据分别转换为四元数的形式,得到人体姿态,以描述所述第一人体部位相对于人体的旋转角度和所述第二人体部位相对于所述第一人体部位的旋转角度;Human body posture determination module: used to convert the inertial data and the activity angle data into the form of quaternion respectively, to obtain the human body posture, to describe the rotation angle of the first human body part relative to the human body and the second the rotation angle of the human body part relative to the first human body part;
下肢姿态修正模块:用于根据当前脚位置和所述人体姿态,确定下肢姿态,其中所述下肢姿态包括质心位置;根据预设腿长和当前质心高度,确定当前步长;根据所述当前步长和所述质心位置,通过逆向运动学姿态拟合对所述下肢姿态进行修正;Lower limb posture correction module: used to determine the posture of the lower limbs according to the current foot position and the posture of the human body, wherein the posture of the lower limbs includes the position of the center of mass; determine the current step length according to the preset leg length and the current height of the center of mass; according to the current step The length and the position of the center of mass, and the posture of the lower limb is corrected by inverse kinematics posture fitting;
动作呈现模块:用于根据所述人体姿态和修正后的下肢姿态,进行人体动作呈现。Action presentation module: used for presenting human actions according to the human body posture and the corrected lower limb posture.
第三方面,本申请提供了一种基于惯性传感器和织物电子的动作捕获设备,包括:In a third aspect, the present application provides a motion capture device based on inertial sensors and fabric electronics, including:
存储器:用于存储计算机程序;Memory: used to store computer programs;
处理器:用于执行所述计算机程序,以实现如上所述的基于惯性传感器和织物电子的动作捕获方法。Processor: for executing the computer program to implement the motion capture method based on inertial sensors and fabric electronics as described above.
第四方面,本申请提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时用于实现如上所述的基于惯性传感器和织物电子的动作捕获方法。In a fourth aspect, the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, is used to implement the above-mentioned inertial sensor-based and textile electronics based Motion capture method.
本申请所提供的一种基于惯性传感器和织物电子的动作捕获方法,包括:利用部署于第一人体部位的惯性传感器采集惯性数据,并利用部署于第二人体部位的织物电子采集活动角度数据;将惯性数据和活动角度数据分别转换为四元数的形式,得到人体姿态,以描述第一人体部位相对于人体的旋转角度和第二人体部位相对于第一人体部位的旋转角度;根据当前脚位置和人体姿态,确定下肢姿态,其中下肢姿态包括质心位置;根据预设腿长和当前质心高度,确定当前步长;根据当前步长和质心位置,通过逆向运动学姿态拟合对下肢姿态进行修正;根据人体姿态和修正后的下肢姿态,进行人体动作呈现。A motion capture method based on inertial sensors and fabric electronics provided by the present application includes: collecting inertial data by using an inertial sensor deployed on a first human body part, and collecting activity angle data by using fabric electronics deployed on a second human body part; The inertial data and the activity angle data are respectively converted into the form of quaternions, and the human body posture is obtained to describe the rotation angle of the first human body part relative to the human body and the rotation angle of the second human body part relative to the first human body part; Position and body posture, determine the posture of the lower limbs, where the posture of the lower limbs includes the position of the centroid; determine the current step length according to the preset leg length and the current height of the centroid; according to the current step length and the position of the centroid, perform inverse kinematics posture fitting on the posture of the lower limbs. Correction: According to the posture of the human body and the posture of the lower limbs after correction, the human body action is presented.
可见,第一,该方法采用惯性传感器与织物电子相结合的方式进行数据采集,相较于全部采用惯性传感器的方式,该方法解决了惯性传感器并不能很好地贴合人体的问题,避免了不贴合带来的误差问题,提升了佩戴舒适度;第二,该方法根据身体运动特点,提出简化的4自由度肢体模型,利用四元数描述第一人体部位相对于人体的旋转角度或第二人体部位相对于第一人体部位的旋转角度,使织物电子折衷地替代部分惯性节点的使用,并融合惯性传感器捕获3维姿态的优势,对肢体空间姿态进行捕获;第三,考虑到惯性传感器具有惯性漂移的先天缺陷,该方法能够通过逆向运动学姿态拟合对下肢姿态进行修正,有效抑制惯性传感器漂移等原因造成的不正常扭曲动作的发生。It can be seen that, first, this method uses the combination of inertial sensors and fabric electronics to collect data. Compared with the method of using all inertial sensors, this method solves the problem that the inertial sensors cannot fit the human body well, and avoids the problem of The error problem caused by non-fitting improves the wearing comfort; secondly, this method proposes a simplified 4-DOF limb model according to the characteristics of body movement, and uses quaternions to describe the rotation angle of the first human body part relative to the human body or The rotation angle of the second body part relative to the first body part makes the fabric electronics compromise the use of some inertial nodes, and integrates the advantages of inertial sensors to capture the 3-dimensional posture to capture the limb space posture; third, considering the inertial The sensor has the inherent defect of inertial drift. This method can correct the posture of the lower limbs through inverse kinematics attitude fitting, and effectively suppress the occurrence of abnormal twisting movements caused by inertial sensor drift and other reasons.
此外,本申请还提供了一种基于惯性传感器和织物电子的动作捕获装置、设备及可读存储介质,其技术效果与上述方法的技术效果相对应,这里不再赘述。In addition, the present application also provides a motion capture device, device and readable storage medium based on inertial sensors and textile electronics, the technical effects of which correspond to those of the above method, and are not repeated here.
附图说明Description of drawings
为了更清楚的说明本申请实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application or the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only For some embodiments of the present application, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本申请所提供的基于惯性传感器和织物电子的动作捕获方法实施例一的流程图;1 is a flowchart of Embodiment 1 of the motion capture method based on inertial sensors and fabric electronics provided by the application;
图2为本申请所提供的基于惯性传感器和织物电子的动作捕获方法实施例二的动作捕获系统架构示意图;2 is a schematic diagram of the motion capture system architecture of Embodiment 2 of the motion capture method based on inertial sensors and fabric electronics provided by the application;
图3为本申请所提供的基于惯性传感器和织物电子的动作捕获方法实施例二的全身传感器穿戴示意图;3 is a schematic diagram of wearing a whole-body sensor according to Embodiment 2 of the motion capture method based on inertial sensors and fabric electronics provided by the application;
图4为本申请所提供的基于惯性传感器和织物电子的动作捕获方法实施例二的步长计算模型示意图;4 is a schematic diagram of a step size calculation model of Embodiment 2 of the motion capture method based on inertial sensors and fabric electronics provided by the application;
图5为本申请所提供的基于惯性传感器和织物电子的动作捕获方法实施例二的人体下肢刚体铰链模型示意图;5 is a schematic diagram of a rigid body hinge model of a lower limb of a human body according to Embodiment 2 of the motion capture method based on inertial sensors and fabric electronics provided by the application;
图6为本申请所提供的基于惯性传感器和织物电子的动作捕获方法实施例二的动作实时映射流程图;6 is a flow chart of real-time action mapping of Embodiment 2 of the motion capture method based on inertial sensors and fabric electronics provided by the application;
图7为本申请所提供的基于惯性传感器和织物电子的动作捕获装置实施例的功能框图。FIG. 7 is a functional block diagram of an embodiment of a motion capture device based on inertial sensors and fabric electronics provided by the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的核心是提供一种基于惯性传感器和织物电子的动作捕获方法、装置、设备及可读存储介质,采用惯性传感器与织物电子相结合的方式进行数据采集,避免了惯性传感器不贴合带来的误差,提升佩戴舒适度;根据身体运动特点提出简化后的4自由度肢体模型,融合惯性传感器捕获3维姿态的优势,对肢体空间姿态捕获;通过逆向运动学姿态拟合对下肢姿态进行修正,有效抑制不协调动作的产生。The core of the present application is to provide a motion capture method, device, device and readable storage medium based on inertial sensors and fabric electronics. The combination of inertial sensors and fabric electronics is used to collect data, so as to avoid the inertial sensors not fitting to the belt. to improve wearing comfort; according to the characteristics of body motion, a simplified 4-DOF limb model is proposed, and the advantages of 3-dimensional posture captured by inertial sensors are combined to capture the spatial posture of limbs; the posture of lower limbs is carried out by inverse kinematics posture fitting. Correction to effectively suppress the generation of uncoordinated movements.
下面对本申请提供的一种基于惯性传感器和织物电子的动作捕获方法实施例一进行介绍,参见图1,实施例一包括:The first embodiment of a motion capture method based on inertial sensors and fabric electronics provided by the present application will be introduced below. Referring to FIG. 1 , the first embodiment includes:
S101、利用部署于第一人体部位的惯性传感器采集惯性数据,并利用部署于第二人体部位的织物电子采集活动角度数据;S101. Collect inertial data by using an inertial sensor deployed on a first human body part, and collect activity angle data by using a fabric electronically deployed on a second human body part;
S102、将惯性数据和活动角度数据分别转换为四元数的形式,得到人体姿态,以描述第一人体部位相对于人体的旋转角度和第二人体部位相对于第一人体部位的旋转角度;S102, the inertial data and the active angle data are converted into the form of quaternion respectively, obtain the human body posture, to describe the rotation angle of the first human body part relative to the human body and the rotation angle of the second human body part relative to the first human body part;
S103、根据当前脚位置和人体姿态,确定下肢姿态,其中下肢姿态包括质心位置;根据预设腿长和当前质心高度,确定当前步长;根据当前步长和质心位置,通过逆向运动学姿态拟合对下肢姿态进行修正;S103. Determine the lower limb posture according to the current foot position and the human body posture, wherein the lower limb posture includes the position of the centroid; determine the current step length according to the preset leg length and the current centroid height; Correct the posture of the lower limbs together;
S104、根据人体姿态和修正后的下肢姿态,进行人体动作呈现。S104 , presenting human body movements according to the human body posture and the corrected lower limb posture.
本实施例同时采用惯性传感器与织物电子相结合进行数据采集。其中,织物电子就是以织物为基础开发出的电子器件,旨在将无处不在的电子和计算元素整合到织物中,除了具备普通纺织材料固有的风格和服用性能外,还能感知环境变化并能实时改变自身的一种或多种性能参数,做出与环境相适应的自我调整的一种新型材料。当前织物电子的发展将大大有利于可穿戴计算的发展,基于织物电子的柔性拉伸应变传感器是一种可以针对拉伸应变产生相应电容变化的传感器,通过关节拉伸产生的电阻变化与角度的映射关系,可以实时获取关节角的活动角度。In this embodiment, inertial sensors are combined with fabric electronics to collect data at the same time. Among them, fabric electronics is an electronic device developed based on fabrics, which aims to integrate ubiquitous electronic and computing elements into fabrics. In addition to the inherent style and wearability of ordinary textile materials, it can also sense environmental changes and A new type of material that can change one or more of its performance parameters in real time and make self-adjustments adapted to the environment. The current development of fabric electronics will greatly benefit the development of wearable computing. The flexible tensile strain sensor based on fabric electronics is a sensor that can generate corresponding capacitance changes for tensile strain. The mapping relationship can obtain the active angle of the joint angle in real time.
织物电子以非入侵的形式穿戴在人体上,能在人体特定的地方取代惯性节点,降低了用户的穿戴负担,这使长时间动作捕获成为可能,且降低了系统硬件成本。Fabric electronics are worn on the human body in a non-invasive form, and can replace inertial nodes in specific places on the human body, reducing the wearing burden of users, making long-term motion capture possible, and reducing system hardware costs.
根据运动学分析,手和腿都是7个自由度,其中大臂和大腿是三个自由度,小臂和小腿两个自由度,手部和脚部是两个自由度。比如,就人的手而言,大臂有偏航角、俯仰角和翻滚角3个维度的角度变化,小臂有俯仰角和翻滚角变化,手部有俯仰角和偏航角的变化。可以注意到,手部的翻滚和小臂的翻滚是紧密联系的,也就是同为一个自由度。因此,本申请不考虑手部,将整个手看作大臂3自由度、小臂1自由度,相应的,不考虑脚部,将整个腿视为大腿3自由度、小腿1自由度。总之,本申请将手和腿看作是4自由度的结构。According to the kinematics analysis, both the hand and the leg have 7 degrees of freedom, of which the upper arm and the thigh have three degrees of freedom, the forearm and the calf have two degrees of freedom, and the hand and foot have two degrees of freedom. For example, as far as the human hand is concerned, the big arm has 3-dimensional angle changes of yaw angle, pitch angle and roll angle, the forearm has the change of pitch angle and roll angle, and the hand has the change of pitch angle and yaw angle. It can be noticed that the rolling of the hand and the rolling of the forearm are closely related, that is, they are the same degree of freedom. Therefore, this application does not consider the hand, but regards the entire hand as the upper arm with 3 degrees of freedom and the forearm with 1 degree of freedom. In summary, this application treats the hand and leg as a 4-DOF structure.
基于如上所述的织物电子的特点以及运动学分析结果,本实施例将织物电子部署在肘关节和腿关节处,用于采集小臂相对于大臂的活动角度或小腿相对于大腿的活动角度。相应的,本实施例将惯性传感器部署在大臂和大腿处,为了采集人体全身姿态,还可以将部分传感器部署在腰部、头部等位置。Based on the above-mentioned characteristics of the fabric electronics and kinematic analysis results, the fabric electronics are deployed at the elbow joint and the leg joint in this embodiment to collect the movement angle of the forearm relative to the upper arm or the movement angle of the lower leg relative to the thigh . Correspondingly, in this embodiment, inertial sensors are deployed at the upper arms and thighs. In order to collect the posture of the whole body of the human body, some sensors may also be deployed at positions such as the waist and the head.
综上,上述第一人体部位可以为大臂、大腿、腰、头等部位,而上述第二人体部位可以为肘关节和腿关节。To sum up, the above-mentioned first human body parts may be parts such as the upper arm, thigh, waist, and head, and the above-mentioned second human body parts may be elbow joints and leg joints.
在利用惯性传感器采集惯性数据,并利用织物电子采集活动角度数据之后,将惯性数据和活动角度数据传输到进行数据分析的一端。为了避免复杂的布线,可以采用无线通信的方式进行数据传输。After the inertial data is collected by the inertial sensor and the movement angle data is collected by the fabric electronics, the inertial data and the movement angle data are transmitted to the end for data analysis. In order to avoid complicated wiring, wireless communication can be used for data transmission.
之后,将惯性数据和活动角度数据分别转换为四元数的形式,转换得到的数据称为人体姿态。具体的,将通过惯性传感器获得的3维角度数据转换为四元数的形式,使大臂或大腿相对于身体旋转,将织物电子获得的关节活动角度数据转换成四元数的形式(其余两个角度设为定值),使小臂相对于大臂转动,小腿相对于大腿转动。此外,在头部和腰部设置惯性传感器时,将惯性传感器获得的头部和腰部的3维角度同样转换成四元数,使头部和腰部相对身体旋转。After that, the inertial data and the activity angle data are respectively converted into the form of quaternion, and the converted data is called the human body pose. Specifically, convert the 3-dimensional angle data obtained by the inertial sensor into the form of quaternion, make the arm or thigh rotate relative to the body, and convert the joint activity angle data obtained by the fabric electronically into the form of quaternion (the remaining two The angle is set as a fixed value), so that the forearm rotates relative to the upper arm, and the calf rotates relative to the thigh. In addition, when the inertial sensors are installed on the head and waist, the three-dimensional angles of the head and waist obtained by the inertial sensors are also converted into quaternions, so that the head and waist are rotated relative to the body.
为了防止出现脚到地下或还没落地的情况,需要对下肢姿态进行修正。具体的,根据历史移动步长即可得知当前脚位置,根据当前脚位置和前述人体姿态(下肢活动角度)即可通过逐步计算得到整个下肢姿态,其中下肢姿态包括但不限于质心位置。在移动过程中,质心高度和腿长为已知量,根据二者即可计算得到步长。在修正过程中,根据当前步长和质心位置,通过逆向运动学姿态拟合对下肢姿态进行修正,即可避免脚到地下或还没落地的情况。In order to prevent the feet from falling to the ground or not landing, it is necessary to correct the posture of the lower limbs. Specifically, the current foot position can be known according to the historical movement step length, and the entire lower limb posture can be obtained by step-by-step calculation according to the current foot position and the aforementioned human body posture (lower limb movement angle), wherein the lower limb posture includes but is not limited to the position of the center of mass. In the process of moving, the height of the center of mass and the length of the leg are known quantities, and the step length can be calculated according to the two. In the correction process, according to the current step length and the position of the center of mass, the posture of the lower limbs is corrected by inverse kinematics posture fitting, so as to avoid the situation that the foot has fallen to the ground or has not yet landed.
修正之后,即可根据人体姿态和修正后的下肢姿态,进行人体动作呈现,这里不对动作呈现方式做详细介绍。After the correction, the human action presentation can be performed according to the human body posture and the corrected lower limb posture, and the detailed introduction of the action presentation method is not given here.
本实施例所提供一种基于惯性传感器和织物电子的动作捕获方法,采用惯性传感器与织物电子相结合的方式进行数据采集,解决了惯性传感器并不能很好地贴合人体的问题,避免了不贴合带来的误差问题,提升了佩戴舒适度;而且,该方法根据身体运动特点,提出简化的4自由度肢体模型,利用四元数描述第一人体部位相对于人体的旋转角度或第二人体部位相对于第一人体部位的旋转角度,使织物电子折衷地替代部分惯性节点的使用,并融合惯性传感器捕获3维姿态的优势,对肢体空间姿态进行捕获;最后,该方法能够通过逆向运动学姿态拟合对下肢姿态进行修正,有效抑制惯性传感器漂移等原因造成的不正常扭曲动作的发生。This embodiment provides a motion capture method based on inertial sensors and fabric electronics, which uses the combination of inertial sensors and fabric electronics to collect data, which solves the problem that inertial sensors cannot fit the human body well, and avoids unnecessary The error problem caused by fitting improves wearing comfort; moreover, this method proposes a simplified 4-DOF limb model according to the characteristics of body movement, and uses quaternions to describe the rotation angle of the first human body part relative to the human body or the second one. The rotation angle of the human body part relative to the first human body part makes the fabric electronics compromise the use of some inertial nodes, and integrates the advantages of inertial sensors to capture 3-dimensional poses to capture the spatial pose of the limbs; finally, the method can reverse the motion through the The lower limb posture is corrected by learning posture fitting, and the occurrence of abnormal twisting movements caused by inertial sensor drift and other reasons is effectively suppressed.
下面开始详细介绍本申请提供的一种基于惯性传感器和织物电子的动作捕获方法实施例二。The second embodiment of a motion capture method based on inertial sensors and fabric electronics provided by the present application will be described in detail below.
参见图2,实施例二中,动作捕获系统整体结构包括:数据采集模块、无线通信模块、人体姿态确定模块、下肢姿态修正模块和动作呈现模块。下面分别对各个模型进行展开介绍。Referring to FIG. 2 , in the second embodiment, the overall structure of the motion capture system includes: a data acquisition module, a wireless communication module, a human body posture determination module, a lower limb posture correction module, and an action presentation module. Each model is introduced separately below.
(1)数据采集模块(1) Data acquisition module
数据采集模块采用的惯性传感器(mpu9250),其包含有3轴加速度计、3轴陀螺仪和3轴磁力计。加速度计和陀螺仪能分别测量3轴加速度和方向,磁力计可以测量物体在世界坐标系下的航向角。数据通过主控芯片stm32lo71解算成四元数形式的姿态数据。The inertial sensor (mpu9250) used in the data acquisition module includes a 3-axis accelerometer, a 3-axis gyroscope and a 3-axis magnetometer. The accelerometer and gyroscope can measure 3-axis acceleration and direction respectively, and the magnetometer can measure the heading angle of the object in the world coordinate system. The data is calculated into the attitude data in the form of quaternion through the main control chip stm32lo71.
织物电子是具有织物的柔性和舒适性的电子材料,一种弹性可拉伸应变传感器,解决人体非刚性身体部位在活动时惯性传感器并不能很好地贴合人体的问题,避免惯性传感器的这种不贴合造成传感器坐标系转换到人体坐标系的误差,所以对于非刚性的身体部位是特别有用的,这种具有纺织品性能的织物测量关节角技术,减少了惯性节点的使用。Fabric electronics is an electronic material with the flexibility and comfort of fabrics, an elastic and stretchable strain sensor, which solves the problem that the inertial sensor does not fit the human body well when the non-rigid body parts of the human body are active, and avoids this problem of the inertial sensor. This kind of non-fit causes the error in the conversion of the sensor coordinate system to the human coordinate system, so it is especially useful for non-rigid body parts. This textile-based fabric measurement joint angle technology reduces the use of inertial nodes.
具体的,通过采集肘关节和膝关节弯曲使传感器拉伸产生的电阻变化,电阻值和角度值有一个映射关系。织物电子传感器具体可以集成在护肘和护膝上的,从而获取关节活动的角度,用来捕捉小臂和小腿的位置。Specifically, by collecting the resistance changes caused by the bending of the elbow joint and the knee joint to make the sensor stretch, there is a mapping relationship between the resistance value and the angle value. Fabric electronic sensors can be integrated on elbow and knee pads to obtain the angle of joint movement and capture the position of the forearm and calf.
如图3所示,惯性传感器部署在头部、腰部、大腿和大臂,织物电子部署在小臂和小腿。As shown in Figure 3, inertial sensors are deployed on the head, waist, thigh, and upper arm, and fabric electronics are deployed on the forearm and calf.
(2)无线通信模块(2) Wireless communication module
无线通信模块是动作捕获系统的数据通信模块。该模块是一个低功耗、实时性高的无线数据传输模块,负责将下位机采集到的各节点惯性数据以及织物电子的数字信号传递给上位机。The wireless communication module is the data communication module of the motion capture system. This module is a wireless data transmission module with low power consumption and high real-time performance, which is responsible for transmitting the inertial data of each node collected by the lower computer and the digital signals of textile electronics to the upper computer.
(3)人体姿态确定模块(3) Human body posture determination module
对于具有3自由度的身体部位(头、腰、大臂和大腿),使用惯性节点捕获其空间位置,对于具有1自由度的身体部位(膝关节和肘关节),使用织物电子传感器测量关节活动角度,从而获得小臂相对于大臂的活动角度或小腿相对于大腿的活动角度。For body parts with 3 degrees of freedom (head, waist, upper arm, and thigh), use inertial nodes to capture their spatial positions, and for body parts with 1 degree of freedom (knee and elbow), measure joint activity using fabric electronic sensors The angle of movement of the forearm relative to the upper arm or the movement angle of the calf relative to the thigh is obtained.
工作时,将通过惯性传感器获得的3维角度转换为四元数的形式,使大臂或大腿相对于身体旋转,将织物电子获得的关节活动角度转换成四元数的形式(其余两个角度设为定值),使小臂相对于大臂转动,小腿相对于大腿转动。头部和腰部的节点的3维角度同样转换成四元数,使头部和腰部相对身体旋转。When working, convert the 3-dimensional angle obtained by the inertial sensor into the form of quaternion, make the arm or thigh rotate relative to the body, and convert the joint activity angle obtained by the fabric electronically into the form of quaternion (the remaining two angles) Set to a fixed value), so that the forearm rotates relative to the big arm, and the calf rotates relative to the thigh. The 3D angles of the nodes of the head and waist are also converted into quaternions, which rotate the head and waist relative to the body.
为了减小惯性传感器在运动中的漂移,需要进行全身运动学模型约束。具体的,根据生物运动学模型,假设人体全身由关节连接的身体节段组成,认为手臂或腿都是3自由度加1自由度的结构,通过对人体模型提出约束条件(如肘关节只能在0-150范围内弯曲,不能超过也不能反向弯曲),对相邻节段运动参数进行融合估计,具体约束条件如表1所示。In order to reduce the drift of inertial sensors in motion, whole-body kinematic model constraints are required. Specifically, according to the biological kinematics model, it is assumed that the whole body of the human body is composed of body segments connected by joints, and the arms or legs are considered to be structures with 3 degrees of freedom plus 1 degree of freedom. Bending in the range of 0-150, can not exceed or reverse bending), the motion parameters of adjacent segments are fused and estimated, and the specific constraints are shown in Table 1.
表1Table 1
(4)下肢姿态修正模块(4) Lower limb posture correction module
本实施例使用腰部行人航迹推算(PDR)算法计算步长,即人跨步时,重心下移,通过对垂直方向的加速度二重积分获得重心下移高度h。如图4所示,根据勾股定理,步长计算公式如下: This embodiment uses the waist pedestrian dead reckoning (PDR) algorithm to calculate the step length, that is, when a person steps, the center of gravity moves downward, and the height h of the downward movement of the center of gravity is obtained by double integral of the acceleration in the vertical direction. As shown in Figure 4, according to the Pythagorean theorem, the step size calculation formula is as follows:
通过关节角判断支撑腿,如图5所示,运动过程中通过支撑脚推算该脚膝关节位置,继而推算出质心位置,推算另一只腿的膝关节位置,最终推算出另一只脚的运动过程中的位置。在运动的脚触地时,根据前面计算的步长和质心位置使用逆向运动学姿态拟合,防止脚到地下或还没落地的情况。Judging the supporting leg by the joint angle, as shown in Figure 5, the knee joint position of the foot is calculated through the supporting foot during the exercise, and then the position of the center of mass is calculated, the knee joint position of the other leg is calculated, and finally the position of the other foot is calculated. position during exercise. When the moving foot touches the ground, the inverse kinematics pose fitting is used according to the previously calculated step size and centroid position to prevent the foot from falling to the ground or not yet landing.
(5)动作呈现模块(5) Action presentation module
动作呈现模块是由Unity 3D开发的3D场景界面,通过Unity 3D建立人物模型,可以将接收到的数据处理后映射到人物模型上,实时呈现人体全身动作。The action presentation module is a 3D scene interface developed by Unity 3D. By establishing a character model through Unity 3D, the received data can be processed and mapped to the character model, and the whole body movements of the human body can be presented in real time.
如图6所示,实际应用中,动作实时映射流程具体如下:持续监听串口信息,判断串口中断是否触发,如果触发,则接收惯性传感器和织物电子采集的数据,之后按照前述流程对数据进行处理,最终将处理后的数据映射到3D模型,以实现动作映射。As shown in Figure 6, in the actual application, the real-time mapping process of actions is as follows: continuously monitor the serial port information, determine whether the serial port interrupt is triggered, if it is triggered, receive the data collected by the inertial sensor and the fabric electronics, and then process the data according to the aforementioned process. , and finally map the processed data to a 3D model for action mapping.
可见,本实施例提供的一种基于惯性传感器和织物电子的动作捕获方法,至少具备以下优点:It can be seen that a motion capture method based on inertial sensors and fabric electronics provided in this embodiment has at least the following advantages:
第一,相对于光学捕捉系统,惯性传感器价格相对低廉,且不受环境影响,有很强的自主性,但是由于惯性传感器的天生缺陷(惯性漂移),长时间的使用结果会与真实值有很大误差,而且传统的刚性硬件节点并不能很好的适应人体的非刚性部位,不仅影响精度,而且影响长时间穿戴的舒适性。本实施例采用的织物电子具有织物的特征,能够适应非刚性部位,不会对人体造成不适感,还能对关键部位起保护作用,此外功耗低的特点使其能够长时间使用,大大增强了可穿戴性。First, compared with optical capture systems, inertial sensors are relatively inexpensive, and are not affected by the environment, and have strong autonomy. However, due to the inherent defects of inertial sensors (inertial drift), the results of long-term use will be different from the real values. There is a large error, and the traditional rigid hardware nodes cannot well adapt to the non-rigid parts of the human body, which not only affects the accuracy, but also affects the comfort of wearing for a long time. The fabric electronics used in this embodiment has the characteristics of fabric, can adapt to non-rigid parts, will not cause discomfort to the human body, and can also protect key parts. In addition, the low power consumption enables it to be used for a long time, greatly enhancing the wearability.
第二,相对于一般的惯性动作捕获系统,本实施例通过低功耗无线通信进行数据传输,避免了复杂布线的缺陷。Second, compared with a general inertial motion capture system, this embodiment performs data transmission through low-power wireless communication, avoiding the defect of complex wiring.
第三,根据身体运动特点,提出的4自由度运动结构模型,能使柔性织物电子折衷地替代部分惯性节点的使用,融合惯性传感器捕获3维姿态的优势,对肢体空间姿态捕获。Thirdly, according to the characteristics of body motion, the proposed 4-DOF motion structure model can electronically replace the use of some inertial nodes in flexible fabrics.
第四,传统的动作捕获技术没有对人的身体各关节运动特点分析约束,本实施例提出关节约束,能有效抑制不协调动作的产生,抑制惯性传感器漂移造成的不正常扭曲动作的发生。Fourth, the traditional motion capture technology does not analyze and constrain the motion characteristics of each joint of the human body. This embodiment proposes joint constraints, which can effectively suppress the generation of uncoordinated movements and the occurrence of abnormal twisting movements caused by inertial sensor drift.
下面对本申请实施例提供的基于惯性传感器和织物电子的动作捕获装置进行介绍,下文描述的基于惯性传感器和织物电子的动作捕获装置与上文描述的基于惯性传感器和织物电子的动作捕获方法可相互对应参照。The motion capture device based on inertial sensors and fabric electronics provided by the embodiments of the present application will be introduced below. The motion capture device based on inertial sensors and fabric electronics described below and the motion capture method based on inertial sensors and fabric electronics described above can interact with each other. corresponding reference.
如图7所示,本实施例的基于惯性传感器和织物电子的动作捕获装置,包括:As shown in FIG. 7 , the motion capture device based on inertial sensors and fabric electronics of this embodiment includes:
数据采集模块701:用于利用部署于第一人体部位的惯性传感器采集惯性数据,并利用部署于第二人体部位的织物电子采集活动角度数据;Data acquisition module 701: used to collect inertial data using the inertial sensor deployed on the first body part, and collect activity angle data using the fabric electronically deployed on the second body part;
人体姿态确定模块702:用于将所述惯性数据和所述活动角度数据分别转换为四元数的形式,得到人体姿态,以描述所述第一人体部位相对于人体的旋转角度和所述第二人体部位相对于所述第一人体部位的旋转角度;Human body posture determination module 702: used to convert the inertial data and the activity angle data into the form of quaternions respectively to obtain a human body posture, so as to describe the rotation angle of the first human body part relative to the human body and the first human body part. The rotation angle of the two body parts relative to the first body part;
下肢姿态修正模块703:用于根据当前脚位置和所述人体姿态,确定下肢姿态,其中所述下肢姿态包括质心位置;根据预设腿长和当前质心高度,确定当前步长;根据所述当前步长和所述质心位置,通过逆向运动学姿态拟合对所述下肢姿态进行修正;Lower limb posture correction module 703: for determining the lower limb posture according to the current foot position and the human body posture, wherein the lower limb posture includes the position of the centroid; according to the preset leg length and the current centroid height, determine the current step length; according to the current Step length and the position of the centroid, correct the posture of the lower limb through inverse kinematics posture fitting;
动作呈现模块704:用于根据所述人体姿态和修正后的下肢姿态,进行人体动作呈现。Action presentation module 704: used for presenting human actions according to the human body posture and the corrected lower limb posture.
本实施例的基于惯性传感器和织物电子的动作捕获装置用于实现前述的基于惯性传感器和织物电子的动作捕获方法,因此该装置中的具体实施方式可见前文中的基于惯性传感器和织物电子的动作捕获方法的实施例部分,例如,数据采集模块701、人体姿态确定模块702、下肢姿态修正模块703、动作呈现模块704,分别用于实现上述基于惯性传感器和织物电子的动作捕获方法中步骤S101,S102,S103,S104。所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再展开介绍。The motion capture device based on inertial sensors and fabric electronics in this embodiment is used to implement the aforementioned motion capture method based on inertial sensors and fabric electronics. Therefore, the specific implementation of the device can be seen in the aforementioned actions based on inertial sensors and fabric electronics. The embodiment part of the capture method, for example, the
另外,由于本实施例的基于惯性传感器和织物电子的动作捕获装置用于实现前述的基于惯性传感器和织物电子的动作捕获方法,因此其作用与上述方法的作用相对应,这里不再赘述。In addition, since the motion capture device based on inertial sensors and fabric electronics in this embodiment is used to implement the aforementioned motion capture method based on inertial sensors and fabric electronics, its function corresponds to that of the above method, and will not be repeated here.
此外,本申请还提供了一种基于惯性传感器和织物电子的动作捕获设备,包括:In addition, the present application also provides a motion capture device based on inertial sensors and fabric electronics, including:
存储器:用于存储计算机程序;Memory: used to store computer programs;
处理器:用于执行所述计算机程序,以实现如上文所述的基于惯性传感器和织物电子的动作捕获方法。Processor: for executing the computer program to implement the motion capture method based on inertial sensors and fabric electronics as described above.
最后,本申请提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时用于实现如上文所述的基于惯性传感器和织物电子的动作捕获方法。Finally, the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, is used to implement the actions based on inertial sensors and textile electronics as described above capture method.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
以上对本申请所提供的方案进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The solutions provided by this application have been introduced in detail above, and specific examples are used to illustrate the principles and implementations of this application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of this application; , for those of ordinary skill in the art, according to the idea of the application, there will be changes in the specific embodiments and application scope. To sum up, the content of this specification should not be construed as a limitation to the application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110535501.XA CN113268141B (en) | 2021-05-17 | 2021-05-17 | A motion capture method and device based on inertial sensors and fabric electronics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110535501.XA CN113268141B (en) | 2021-05-17 | 2021-05-17 | A motion capture method and device based on inertial sensors and fabric electronics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113268141A CN113268141A (en) | 2021-08-17 |
CN113268141B true CN113268141B (en) | 2022-09-13 |
Family
ID=77231238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110535501.XA Active CN113268141B (en) | 2021-05-17 | 2021-05-17 | A motion capture method and device based on inertial sensors and fabric electronics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113268141B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20240125635A (en) * | 2021-12-17 | 2024-08-19 | 리프랙트 테크놀로지스 피티이 엘티디 | Tracking system for body movement simulation |
CN115844381A (en) * | 2022-12-05 | 2023-03-28 | 立讯精密科技(南京)有限公司 | Human body action recognition method and device, electronic equipment and storage medium |
CN115881315B (en) * | 2022-12-22 | 2023-09-08 | 北京壹永科技有限公司 | Interactive medical visualization system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324288A (en) * | 2013-06-21 | 2013-09-25 | 武汉纺织大学 | System and method for human body movement identification of combined sensor |
CN104887237A (en) * | 2015-04-14 | 2015-09-09 | 南昌大学 | A Pedestrian Navigation Method Based on Human Movement Pattern Monitoring |
CN105997097A (en) * | 2016-06-22 | 2016-10-12 | 武汉纺织大学 | Reproduction system and reproduction method for human lower limb movement posture |
CN106889991A (en) * | 2017-03-17 | 2017-06-27 | 浙江大学 | A kind of flexible fabric sensor and its method for measuring human body knee joint motion |
CN107898466A (en) * | 2017-10-17 | 2018-04-13 | 深圳大学 | A kind of limb motion based on inertial sensor catches system and method |
WO2018140429A1 (en) * | 2017-01-24 | 2018-08-02 | Blacktop Labs, Llc | Method, system, and device for analyzing ankle joint kinematics |
CN110418626A (en) * | 2016-10-17 | 2019-11-05 | 拉科鲁尼亚大学 | Assisted walking system |
CN111318009A (en) * | 2020-01-19 | 2020-06-23 | 张衡 | Somatosensory health entertainment system based on wearable inertial sensing and working method thereof |
CN212679569U (en) * | 2020-04-26 | 2021-03-12 | 南方科技大学 | Hip and knee double joint walking exoskeleton |
-
2021
- 2021-05-17 CN CN202110535501.XA patent/CN113268141B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324288A (en) * | 2013-06-21 | 2013-09-25 | 武汉纺织大学 | System and method for human body movement identification of combined sensor |
CN104887237A (en) * | 2015-04-14 | 2015-09-09 | 南昌大学 | A Pedestrian Navigation Method Based on Human Movement Pattern Monitoring |
CN105997097A (en) * | 2016-06-22 | 2016-10-12 | 武汉纺织大学 | Reproduction system and reproduction method for human lower limb movement posture |
CN110418626A (en) * | 2016-10-17 | 2019-11-05 | 拉科鲁尼亚大学 | Assisted walking system |
WO2018140429A1 (en) * | 2017-01-24 | 2018-08-02 | Blacktop Labs, Llc | Method, system, and device for analyzing ankle joint kinematics |
CN106889991A (en) * | 2017-03-17 | 2017-06-27 | 浙江大学 | A kind of flexible fabric sensor and its method for measuring human body knee joint motion |
CN107898466A (en) * | 2017-10-17 | 2018-04-13 | 深圳大学 | A kind of limb motion based on inertial sensor catches system and method |
CN111318009A (en) * | 2020-01-19 | 2020-06-23 | 张衡 | Somatosensory health entertainment system based on wearable inertial sensing and working method thereof |
CN212679569U (en) * | 2020-04-26 | 2021-03-12 | 南方科技大学 | Hip and knee double joint walking exoskeleton |
Also Published As
Publication number | Publication date |
---|---|
CN113268141A (en) | 2021-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113268141B (en) | A motion capture method and device based on inertial sensors and fabric electronics | |
CN110327048B (en) | Human upper limb posture reconstruction system based on wearable inertial sensor | |
CN108939512B (en) | A Swimming Attitude Measurement Method Based on Wearable Sensors | |
CN102323854B (en) | Human motion capture device | |
KR101483713B1 (en) | Apparatus and Method for capturing a motion of human | |
WO2018196227A1 (en) | Evaluation method, device, and system for human motor capacity | |
Roetenberg et al. | Xsens MVN: Full 6DOF human motion tracking using miniature inertial sensors | |
CN101579238B (en) | Human motion capture three dimensional playback system and method thereof | |
US8165844B2 (en) | Motion tracking system | |
CN107898466A (en) | A kind of limb motion based on inertial sensor catches system and method | |
CN107833271A (en) | A kind of bone reorientation method and device based on Kinect | |
CN104461013A (en) | Human body movement reconstruction and analysis system and method based on inertial sensing units | |
CN109284006B (en) | Human motion capturing device and method | |
CN110609621B (en) | Gesture calibration method and human motion capture system based on microsensor | |
CN111895997A (en) | A human motion acquisition method based on inertial sensor without standard posture correction | |
Tao et al. | Human modeling and real-time motion reconstruction for micro-sensor motion capture | |
CN114756130A (en) | A virtual-real interactive system for hands | |
CN114271812A (en) | Three-dimensional gait analysis system and method based on inertial sensor | |
CN109297507B (en) | Human body limb movement capturing method free of alignment action based on inertial sensor | |
Xiang et al. | Comparing real-time human motion capture system using inertial sensors with microsoft kinect | |
Zhang et al. | Ubiquitous human body motion capture using micro-sensors | |
CN109003300A (en) | A kind of virtual reality system based on mass center of human body displacement computational algorithm | |
JP6205387B2 (en) | Method and apparatus for acquiring position information of virtual marker, and operation measurement method | |
CN116021514A (en) | Remote operation control method and device for robot, robot and electronic equipment | |
CN114748306A (en) | Exoskeleton equipment wearing error correction method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |