CN108596941B - Prediction method and system of target body motion trajectory based on depth image - Google Patents

Prediction method and system of target body motion trajectory based on depth image Download PDF

Info

Publication number
CN108596941B
CN108596941B CN201810196470.8A CN201810196470A CN108596941B CN 108596941 B CN108596941 B CN 108596941B CN 201810196470 A CN201810196470 A CN 201810196470A CN 108596941 B CN108596941 B CN 108596941B
Authority
CN
China
Prior art keywords
motion
target body
track
trajectory
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810196470.8A
Other languages
Chinese (zh)
Other versions
CN108596941A (en
Inventor
陈通瀚
乔红
杨策
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Automation of Chinese Academy of Science
Original Assignee
Institute of Automation of Chinese Academy of Science
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Automation of Chinese Academy of Science filed Critical Institute of Automation of Chinese Academy of Science
Priority to CN201810196470.8A priority Critical patent/CN108596941B/en
Publication of CN108596941A publication Critical patent/CN108596941A/en
Application granted granted Critical
Publication of CN108596941B publication Critical patent/CN108596941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及图像处理技术领域,具体提供了一种基于深度图像的目标体运动轨迹预测方法及系统,旨在解决如何便捷地获取具有较高精度的目标体轨迹的技术问题。为此目的,本发明中的目标体运动轨迹预测方法,能够基于目标体深度图像中目标体轨迹点,分段预测多条运动轨迹,进而可以根据目标体轨迹点与运动轨迹的空间距离,选取准确率较高的运动轨迹,以能够根据这些运动轨迹得到最佳的目标运动轨迹。同时,本发明中的目标体运动轨迹预测系统能够执行并实现上述方法。

Figure 201810196470

The invention relates to the technical field of image processing, and specifically provides a method and system for predicting the motion trajectory of a target body based on a depth image, aiming at solving the technical problem of how to conveniently obtain a target body trajectory with high precision. For this purpose, the method for predicting the motion trajectory of the target body in the present invention can predict a plurality of motion trajectories in segments based on the target body trajectory points in the depth image of the target body, and then according to the spatial distance between the target body trajectory points and the motion trajectory, select Motion trajectories with high accuracy, so that the best target motion trajectories can be obtained according to these motion trajectories. Meanwhile, the target body motion trajectory prediction system in the present invention can execute and realize the above method.

Figure 201810196470

Description

基于深度图像的目标体运动轨迹预测方法及系统Prediction method and system of target body motion trajectory based on depth image

技术领域technical field

本发明涉及图像处理技术领域,具体涉及一种基于深度图像的目标体运动轨迹预测方法及系统。The invention relates to the technical field of image processing, in particular to a method and system for predicting the motion trajectory of a target body based on a depth image.

背景技术Background technique

羽毛球机器人是一种基于计算机和视觉跟踪等技术的智能控制系统,其能够模拟人类进行羽毛球运动。其中,羽毛球轨迹预测是影响羽毛球机器人动作准确性的重要因素。当前,可以采用羽毛球物理模型或基于神经网络的计算模型,预测羽毛球轨迹。其中,采用羽毛球物理模型预测羽毛球轨迹,操作简单、易于实现,但是预测精度较低。采用基于神经网络的计算模型预测羽毛球轨迹,虽然具有较高的预测精度,但是需要数量级较大的训练样本才能得到精度较高的预测轨迹。Badminton robot is an intelligent control system based on technologies such as computer and visual tracking, which can simulate human badminton. Among them, badminton trajectory prediction is an important factor affecting the accuracy of badminton robot movements. Currently, badminton trajectories can be predicted using a badminton physical model or a neural network-based computational model. Among them, using the badminton physical model to predict the trajectory of the badminton is simple and easy to implement, but the prediction accuracy is low. Using a neural network-based computational model to predict the trajectory of badminton has high prediction accuracy, but requires orders of magnitude larger training samples to obtain a predicted trajectory with high accuracy.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术中的上述问题,即为了解决如何便捷地获取具有较高精度的目标体轨迹的技术问题。为此目的,本发明提供了一种基于深度图像的目标体运动轨迹预测方法及系统。In order to solve the above-mentioned problem in the prior art, that is, to solve the technical problem of how to conveniently obtain a target body trajectory with high precision. For this purpose, the present invention provides a method and system for predicting the motion trajectory of a target body based on a depth image.

在第一方面,本发明中基于深度图像的目标体运动轨迹预测方法,包括:In a first aspect, the method for predicting the motion trajectory of a target body based on a depth image in the present invention includes:

根据预先获取的目标体深度图像,获取多个连续的目标体轨迹点;According to the pre-acquired depth image of the target body, obtain a plurality of continuous target body trajectory points;

基于预设的轨迹预测方法,并根据第1~3个连续的所述目标体轨迹点,得到第一运动轨迹;Based on a preset trajectory prediction method, and according to the 1st to 3rd consecutive trajectory points of the target body, a first motion trajectory is obtained;

基于所述预设的轨迹预测方法,并根据第2~4个连续的所述目标体轨迹点,得到第二运动轨迹;Based on the preset trajectory prediction method, and according to the 2nd to 4th consecutive trajectory points of the target body, a second motion trajectory is obtained;

基于所述预设的轨迹预测方法,并根据第3~5个连续的所述目标体轨迹点,得到第三运动轨迹;Based on the preset trajectory prediction method, and according to the 3rd to 5th consecutive trajectory points of the target body, a third motion trajectory is obtained;

对所述第一运动轨迹、第二运动轨迹和第三运动轨迹进行修正,得到目标体运动轨迹。The first motion trajectory, the second motion trajectory and the third motion trajectory are corrected to obtain the target body motion trajectory.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

所述预设的轨迹预测方法具体包括:The preset trajectory prediction method specifically includes:

获取三个连续的目标体轨迹点的空间位置,并根据所获取的空间位置,计算目标体的初始运动速度和初始运动方向;Obtain the spatial positions of three consecutive target body trajectory points, and calculate the initial movement speed and initial movement direction of the target body according to the obtained spatial positions;

将三个连续的目标体轨迹点中的第二个目标体轨迹点作为初始位置点;根据所述初始位置点、初始运动速度和初始运动方向,并按照下式所示的方法,计算当前运动轨迹中的目标体轨迹点:The second target body trajectory point in the three continuous target body trajectory points is used as the initial position point; according to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in the following formula, calculate the current movement Target body trajectory points in the trajectory:

Figure BDA0001593261530000021
Figure BDA0001593261530000021

其中,(xi,yi,yi)为所述当前运动轨迹中第i个目标体轨迹点的空间位置坐标;(v0x,v0y,v0z)为所述初始位置点的空间位置坐标;所述vi为目标体在所述第i个目标体轨迹点的运动速度;所述αi为目标体在所述第i个目标体轨迹点的运动方向;所述ts为利用摄像装置获取目标体深度图像的采样间隔。Wherein, (x i , y i , y i ) are the spatial position coordinates of the i-th target body trajectory point in the current motion trajectory; (v 0x , v 0y , v 0z ) are the spatial position of the initial position point Coordinates; Described v i is the movement speed of the target body at the i-th target body track point; Described α i is the movement direction of the target body at the i -th target body track point; The sampling interval at which the camera device acquires the depth image of the target body.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

所述目标体在第i个目标体轨迹点的运动速度vi和运动方向αi如下式所示:The movement speed v i and movement direction α i of the target body at the i-th target body trajectory point are as follows:

Figure BDA0001593261530000031
Figure BDA0001593261530000031

其中,所述vi-1为目标体在第i-1个目标体轨迹点的运动速度;所述αi-1为目标体在第i-1个目标体轨迹点的运动方向;所述k为空气阻力系数;所述g为重力加速度。Wherein, the v i-1 is the movement speed of the target body at the i-1th target body trajectory point; the α i-1 is the movement direction of the target body at the i-1th target body trajectory point; the k is the coefficient of air resistance; the g is the acceleration of gravity.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

“对所述第一运动轨迹、第二运动轨迹和第三运动轨迹进行修正,得到目标体运动轨迹”的步骤具体包括:The step of "correcting the first motion trajectory, the second motion trajectory and the third motion trajectory to obtain the target body motion trajectory" specifically includes:

在所述第四个运动轨迹点和所述第五个运动轨迹点均未偏离所述第一运动轨迹,并且所述第五个运动轨迹点未偏离所述第二运动轨迹的情况下,按照下式所示的方法获取目标体运动轨迹TmIn the case that neither the fourth motion trajectory point nor the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point does not deviate from the second motion trajectory, according to The method shown in the following formula obtains the target body motion trajectory T m :

Figure BDA0001593261530000032
Figure BDA0001593261530000032

在所述第四个运动轨迹点或所述第五个运动轨迹点偏离所述第一运动轨迹,并且所述第五个运动轨迹点未偏离所述第二运动轨迹的情况下,按照下式所示的方法获取目标体运动轨迹TmWhen the fourth motion trajectory point or the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point does not deviate from the second motion trajectory, the following formula The shown method obtains the target body motion trajectory T m :

Figure BDA0001593261530000033
Figure BDA0001593261530000033

在所述第四个运动轨迹点或所述第五个运动轨迹点偏离所述第一运动轨迹,并且所述第五个运动轨迹点偏离所述第二运动轨迹的情况下,所述目标体运动轨迹Tm=T3When the fourth motion trajectory point or the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point deviates from the second motion trajectory, the target body motion trajectory T m =T 3 ;

其中,所述T1、T2和T3分别为第一运动轨迹、第二运动轨迹和第三运动轨迹。Wherein, the T 1 , T 2 and T 3 are the first motion trajectory, the second motion trajectory and the third motion trajectory, respectively.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

“对所述第一运动轨迹、第二运动轨迹和第三运动轨迹进行修正,得到目标体运动轨迹”的步骤之前包括:The step of "correcting the first motion trajectory, the second motion trajectory and the third motion trajectory to obtain the target body motion trajectory" includes:

计算所述第四个运动轨迹点与所述第一运动轨迹的空间距离Wn+1_1,计算所述第五个运动轨迹点分别与所述第一运动轨迹和第二运动轨迹的空间距离Wn+2_1和Wn+2_2Calculate the spatial distance W n+1_1 between the fourth motion trajectory point and the first motion trajectory, and calculate the spatial distance W between the fifth motion trajectory point and the first motion trajectory and the second motion trajectory, respectively n+2_1 and W n+2_2 ;

根据所述空间距离Wn+1_1和预设阈值e,判断所述第四个运动轨迹点是否偏离所述第一运动轨迹:若Wn+1_1>e,则所述第四个运动轨迹点偏离所述第一运动轨迹;According to the spatial distance W n+1_1 and the preset threshold e, it is determined whether the fourth motion trajectory point deviates from the first motion trajectory: if W n+1_1 >e, the fourth motion trajectory point Deviating from the first motion trajectory;

根据所述空间距离Wn+2_1和所述预设阈值e,判断所述第五个运动轨迹点是否偏离所述第一运动轨迹:若Wn+2_1>e,则所述第五个运动轨迹点偏离所述第一运动轨迹;According to the spatial distance W n+2_1 and the preset threshold e, determine whether the fifth motion trajectory point deviates from the first motion trajectory: if W n+2_1 >e, the fifth motion trajectory The trajectory point deviates from the first motion trajectory;

根据所述空间距离Wn+2_2和所述预设阈值e,判断所述第五个运动轨迹点是否偏离所述第二运动轨迹:若Wn+2_2>e,则所述第五个运动轨迹点偏离所述第二运动轨迹。According to the spatial distance W n+2_2 and the preset threshold e, determine whether the fifth motion trajectory point deviates from the second motion trajectory: if W n+2_2 >e, the fifth motion trajectory The trajectory point deviates from the second motion trajectory.

在第二方面,本发明中基于深度图像的目标体运动轨迹预测系统,包括:In the second aspect, the target body motion trajectory prediction system based on the depth image in the present invention includes:

目标体轨迹点获取模块,配置为根据预先获取的目标体深度图像,获取多个连续的目标体轨迹点;The target body trajectory point acquisition module is configured to obtain a plurality of continuous target body trajectory points according to the pre-acquired target body depth image;

第一运动轨迹获取模块,配置为基于预设的轨迹预测方法,并根据第1~3个所述目标体轨迹点,得到第一运动轨迹;a first motion trajectory acquisition module, configured to obtain a first motion trajectory based on a preset trajectory prediction method and according to the first to third target body trajectory points;

第二运动轨迹获取模块,配置为基于所述预设的轨迹预测方法,并根据第2~4个连续的所述目标体轨迹点,得到第二运动轨迹;The second motion trajectory acquisition module is configured to obtain a second motion trajectory based on the preset trajectory prediction method and according to the second to fourth consecutive trajectory points of the target body;

第三运动轨迹获取模块,配置为基于所述预设的轨迹预测方法,并根据第3~5个连续的所述目标体轨迹点,得到第三运动轨迹;a third motion trajectory acquisition module, configured to obtain a third motion trajectory based on the preset trajectory prediction method and according to the 3rd to 5th consecutive trajectory points of the target body;

目标体运动轨迹获取模块,配置为对所述第一运动轨迹获取模块所获取的第一运动轨迹、所述第二运动轨迹获取模块所获取的第二运动轨迹和所述第三运动轨迹获取模块所获取的第三运动轨迹进行修正,得到目标体运动轨迹。A target body motion trajectory acquisition module, configured to acquire the first motion trajectory acquired by the first motion trajectory acquisition module, the second motion trajectory acquired by the second motion trajectory acquisition module, and the third motion trajectory acquisition module The acquired third motion trajectory is corrected to obtain the target body motion trajectory.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

所述系统还包括轨迹预测模块,其配置为执行如下操作,以使所述系统能够获取所述第一运动轨迹、第二运动轨迹和第三运动轨迹:The system also includes a trajectory prediction module configured to perform the following operations to enable the system to obtain the first motion trajectory, the second motion trajectory, and the third motion trajectory:

获取三个连续的目标体轨迹点的空间位置,并根据所获取的空间位置,计算目标体的初始运动速度和初始运动方向;Obtain the spatial positions of three consecutive target body trajectory points, and calculate the initial movement speed and initial movement direction of the target body according to the obtained spatial positions;

将三个连续的目标体轨迹点中的第二个目标体轨迹点作为初始位置点;根据所述初始位置点、初始运动速度和初始运动方向,并按照下式所示的方法,计算当前运动轨迹中的目标体轨迹点:The second target body trajectory point in the three continuous target body trajectory points is used as the initial position point; according to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in the following formula, calculate the current movement Target body trajectory points in the trajectory:

Figure BDA0001593261530000051
Figure BDA0001593261530000051

其中,(xi,yi,yi)为所述当前运动轨迹中第i个目标体轨迹点的空间位置坐标;(v0x,v0y,v0z)为所述初始位置点的空间位置坐标;所述vi为目标体在所述第i个目标体轨迹点的运动速度;所述αi为目标体在所述第i个目标体轨迹点的运动方向;所述ts为利用摄像系统获取目标体深度图像的采样间隔。Wherein, (x i , y i , y i ) are the spatial position coordinates of the i-th target body trajectory point in the current motion trajectory; (v 0x , v 0y , v 0z ) are the spatial position of the initial position point Coordinates; Described v i is the movement speed of the target body at the i-th target body track point; Described α i is the movement direction of the target body at the i -th target body track point; The sampling interval at which the camera system obtains the depth image of the target body.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

所述轨迹预测模块包括目标体运动速度/方向计算单元,其配置为执行如下操作:The trajectory prediction module includes a target body motion speed/direction calculation unit, which is configured to perform the following operations:

按照下式所示的方法计算目标体在第i个目标体轨迹点的运动速度vi和运动方向αiCalculate the movement speed v i and movement direction α i of the target body at the i-th target body trajectory point according to the method shown in the following formula:

Figure BDA0001593261530000052
Figure BDA0001593261530000052

其中,所述vi-1为目标体在第i-1个目标体轨迹点的运动速度;所述αi-1为目标体在第i-1个目标体轨迹点的运动方向;所述k为空气阻力系数;所述g为重力加速度。Wherein, the v i-1 is the movement speed of the target body at the i-1th target body trajectory point; the α i-1 is the movement direction of the target body at the i-1th target body trajectory point; the k is the coefficient of air resistance; the g is the acceleration of gravity.

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

所述目标体运动轨迹获取模块包括第一轨迹修正单元、第二轨迹修正单元和第三轨迹修正单元;The target body motion trajectory acquisition module includes a first trajectory correction unit, a second trajectory correction unit and a third trajectory correction unit;

所述第一轨迹修正单元,配置为在所述第四个运动轨迹点和所述第五个运动轨迹点均未偏离所述第一运动轨迹,并且所述第五个运动轨迹点未偏离所述第二运动轨迹的情况下,按照下式所示的方法获取目标体运动轨迹TmThe first trajectory correction unit is configured so that neither the fourth movement trajectory point nor the fifth movement trajectory point deviates from the first movement trajectory, and the fifth movement trajectory point does not deviate from all the points. In the case of the second motion trajectory described above, obtain the target body motion trajectory T m according to the method shown in the following formula:

Figure BDA0001593261530000061
Figure BDA0001593261530000061

其中,所述T1、T2和T3分别为第一运动轨迹、第二运动轨迹和第三运动轨迹;Wherein, the T 1 , T 2 and T 3 are respectively the first motion track, the second motion track and the third motion track;

所述第二轨迹修正单元,配置为在所述第四个运动轨迹点或所述第五个运动轨迹点偏离所述第一运动轨迹,并且所述第五个运动轨迹点未偏离所述第二运动轨迹的情况下,按照下式所示的方法获取目标体运动轨迹TmThe second trajectory correction unit is configured to deviate from the first motion trajectory at the fourth motion trajectory point or the fifth motion trajectory point, and the fifth motion trajectory point does not deviate from the first motion trajectory point. In the case of two motion trajectories, obtain the target body motion trajectory T m according to the method shown in the following formula:

Figure BDA0001593261530000062
Figure BDA0001593261530000062

所述第三轨迹修正单元,配置为在所述第四个运动轨迹点或所述第五个运动轨迹点偏离所述第一运动轨迹,并且所述第五个运动轨迹点偏离所述第二运动轨迹的情况下,所述目标体运动轨迹Tm=T3The third trajectory correction unit is configured to deviate from the first motion trajectory at the fourth motion trajectory point or the fifth motion trajectory point, and the fifth motion trajectory point deviates from the second motion trajectory point In the case of a motion trajectory, the target body motion trajectory T m =T 3 .

进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:

所述目标体运动轨迹获取模块还包括目标体偏差计算单元、第一目标体偏离判断单元、第二目标体偏离判断单元和第三目标体偏离判断单元;The target body movement trajectory acquisition module further includes a target body deviation calculation unit, a first target body deviation judgment unit, a second target body deviation judgment unit, and a third target body deviation judgment unit;

所述目标体偏差计算单元,配置为计算所述第四个运动轨迹点与所述第一运动轨迹的空间距离Wn+1_1,计算所述第五个运动轨迹点分别与所述第一运动轨迹和第二运动轨迹的空间距离Wn+2_1和Wn+2_2The target body deviation calculation unit is configured to calculate the spatial distance W n+1_1 between the fourth motion trajectory point and the first motion trajectory, and calculate the fifth motion trajectory point and the first motion trajectory respectively. the spatial distances W n+2_1 and W n+2_2 of the trajectory and the second motion trajectory;

所述第一目标体偏离判断单元,配置为根据所述空间距离Wn+1_1和预设阈值e,判断所述第四个运动轨迹点是否偏离所述第一运动轨迹:若Wn+1_1>e,则所述第四个运动轨迹点偏离所述第一运动轨迹;The first target body deviation judgment unit is configured to judge whether the fourth motion trajectory point deviates from the first motion trajectory according to the spatial distance W n+1_1 and a preset threshold e: if W n+1_1 >e, the fourth motion trajectory point deviates from the first motion trajectory;

所述第二目标体偏离判断单元,配置为根据所述空间距离Wn+2_1和所述预设阈值e,判断所述第五个运动轨迹点是否偏离所述第一运动轨迹:若Wn+2_1>e,则所述第五个运动轨迹点偏离所述第一运动轨迹;The second target body deviation judgment unit is configured to judge whether the fifth motion trajectory point deviates from the first motion trajectory according to the spatial distance W n+2_1 and the preset threshold e: if W n +2_1 >e, then the fifth motion trajectory point deviates from the first motion trajectory;

所述第三目标体偏离判断单元,配置为根据所述空间距离Wn+2_2和所述预设阈值e,判断所述第五个运动轨迹点是否偏离所述第二运动轨迹:若Wn+2_2>e,则所述第五个运动轨迹点偏离所述第二运动轨迹。The third target body deviation judgment unit is configured to judge whether the fifth motion trajectory point deviates from the second motion trajectory according to the spatial distance W n+2_2 and the preset threshold e: if W n +2_2 >e, the fifth motion trajectory point deviates from the second motion trajectory.

与最接近的现有技术相比,上述技术方案至少具有如下有益效果:Compared with the closest prior art, the above technical solution at least has the following beneficial effects:

1、本发明中的基于深度图像的目标体运动轨迹预测方法,能够基于目标体深度图像中目标体轨迹点,分段预测多条运动轨迹,进而可以根据目标体轨迹点与运动轨迹的空间距离,选取准确率较高的运动轨迹,以能够根据这些运动轨迹得到最佳的目标运动轨迹。1. The method for predicting the motion trajectory of a target body based on a depth image in the present invention can predict a plurality of motion trajectories in segments based on the target body trajectory points in the depth image of the target body, and then can be based on the spatial distance between the target body trajectory points and the motion trajectory. , and select motion trajectories with higher accuracy, so that the best target motion trajectories can be obtained according to these motion trajectories.

2、本发明中的基于深度图像的目标体运动轨迹预测方法,根据摄像装置精度设定空间距离的阈值,从而能够准确判断当前轨迹中的轨迹点是否偏离上一个轨迹。2. In the method for predicting the motion trajectory of a target body based on a depth image in the present invention, the threshold value of the spatial distance is set according to the accuracy of the camera device, so that it can accurately judge whether the trajectory point in the current trajectory deviates from the previous trajectory.

3、本发明中的基于深度图像的目标体运动轨迹预测方法,采用三个连续的目标体轨迹点预测一段运动轨迹,并根据三段连续的运动轨迹,能够得到最佳的目标体运动轨迹和目标体落地点。3. The method for predicting the motion trajectory of the target body based on the depth image in the present invention adopts three consecutive target body trajectory points to predict a motion trajectory, and according to the three continuous motion trajectories, the optimal target body motion trajectory and The target body's landing location.

附图说明Description of drawings

图1是本发明实施例中一种基于深度图像的目标体运动轨迹预测方法的主要步骤示意图;1 is a schematic diagram of the main steps of a method for predicting the motion trajectory of a target body based on a depth image in an embodiment of the present invention;

图2是本发明实施例中另一种基于深度图像的目标体运动轨迹预测系统的主要步骤示意图;2 is a schematic diagram of the main steps of another depth image-based target body motion trajectory prediction system in an embodiment of the present invention;

图3是本发明实施例中一种基于深度图像的目标体运动轨迹预测系统的主要结构示意图。3 is a schematic diagram of the main structure of a system for predicting the motion trajectory of a target body based on a depth image according to an embodiment of the present invention.

具体实施方式Detailed ways

下面参照附图来描述本发明的优选实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principle of the present invention, and are not intended to limit the protection scope of the present invention.

参阅附图1,图1示例性示出了本实施例中一种基于深度图像的目标体运动轨迹预测方法的主要步骤。如图1所示,本实施例中可以按照如下步骤预测目标体的运动轨迹:Referring to FIG. 1 , FIG. 1 exemplarily shows the main steps of a method for predicting a motion trajectory of a target body based on a depth image in this embodiment. As shown in Figure 1, in this embodiment, the motion trajectory of the target body can be predicted according to the following steps:

步骤S101:根据预先获取的目标体深度图像,获取多个连续的目标体轨迹点。具体地,本实施例中可以采用摄像装置,如深度摄像机,获取目标体移动过程中的深度图像,并且可以采用常规的深度图像处理方法获取目标体轨迹点。例如,本实施例中可以采用Kinect for Windows v2.0 SDK所公开的Depth Basics-D2D程序,获取目标体轨迹点。Step S101: Acquire a plurality of continuous target body track points according to the pre-acquired depth image of the target body. Specifically, in this embodiment, a camera device, such as a depth camera, may be used to acquire a depth image during the movement of the target body, and a conventional depth image processing method may be used to obtain the target body track point. For example, in this embodiment, the Depth Basics-D2D program disclosed by the Kinect for Windows v2.0 SDK may be used to acquire the target body trajectory points.

步骤S102:基于预设的轨迹预测方法,并根据第1~3个目标体轨迹点,得到第一运动轨迹。Step S102: Based on the preset trajectory prediction method, and according to the 1st to 3rd target body trajectory points, obtain a first motion trajectory.

具体地,本实施例中预设的轨迹预测方法包括如下步骤:Specifically, the preset trajectory prediction method in this embodiment includes the following steps:

首先,获取三个连续的目标体轨迹点的空间位置,并根据所获取的空间位置,计算目标体的初始运动速度和初始运动方向。First, the spatial positions of three consecutive target body track points are obtained, and according to the obtained spatial positions, the initial movement speed and initial movement direction of the target body are calculated.

其次,将三个连续的目标体轨迹点中的第二个目标体轨迹点作为初始位置点;根据初始位置点、初始运动速度和初始运动方向,并按照下式(1)所示的方法,计算当前运动轨迹中的目标体轨迹点:Secondly, the second target body trajectory point in the three continuous target body trajectory points is used as the initial position point; according to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in the following formula (1), Calculate the target body trajectory points in the current motion trajectory:

Figure BDA0001593261530000091
Figure BDA0001593261530000091

公式(1)中各参数含义为:The meaning of each parameter in formula (1) is:

(xi,yi,yi)为当前运动轨迹中第i个目标体轨迹点的空间位置坐标。(v0x,v0y,v0z)为初始位置点的空间位置坐标。vi为目标体在第i个目标体轨迹点的运动速度。αi为目标体在第i个目标体轨迹点的运动方向。ts为利用摄像装置获取目标体深度图像的采样间隔。(x i , y i , y i ) are the spatial position coordinates of the i-th target body track point in the current motion track. (v 0x , v 0y , v 0z ) are the spatial position coordinates of the initial position point. v i is the movement speed of the target body at the i-th target body trajectory point. α i is the moving direction of the target body at the i-th target body trajectory point. t s is the sampling interval at which the depth image of the target body is acquired by the camera device.

本实施例中目标体在第i个目标体轨迹点的运动速度vi和运动方向αi如下式(2)所示:In this embodiment, the movement speed v i and movement direction α i of the target body at the i-th target body trajectory point are shown in the following formula (2):

Figure BDA0001593261530000092
Figure BDA0001593261530000092

公式(2)中各参数含义为:The meaning of each parameter in formula (2) is:

vi-1为目标体在第i-1个目标体轨迹点的运动速度。αi-1为目标体在第i-1个目标体轨迹点的运动方向。k为空气阻力系数。g为重力加速度。v i-1 is the movement speed of the target body at the i-1th target body trajectory point. α i-1 is the movement direction of the target body at the i-1th target body trajectory point. k is the air resistance coefficient. g is the acceleration of gravity.

进一步地,基于上述预设的轨迹预测方法,图1所示目标体运动轨迹预测方法可以按照如下步骤获取第一运动轨迹:Further, based on the above-mentioned preset trajectory prediction method, the target body motion trajectory prediction method shown in FIG. 1 can obtain the first motion trajectory according to the following steps:

步骤S1021:获取第1~3个连续目标体轨迹点P1、P2和P3的空间位置,即

Figure BDA0001593261530000093
Figure BDA0001593261530000094
Step S1021: Obtain the spatial positions of the 1st to 3rd continuous target body trajectory points P 1 , P 2 and P 3 , that is,
Figure BDA0001593261530000093
and
Figure BDA0001593261530000094

步骤S1022:将目标体轨迹点P2作为初始位置点,并按照下式(3)和(4)可以计算得到目标体在第一运动轨迹中的初始运动速度(v0x,v0y,v0z)和初始运动方向α0Step S1022: The target body trajectory point P 2 is used as the initial position point, and the initial motion speed (v 0x , v 0y , v 0z of the target body in the first motion trajectory can be calculated according to the following formulas (3) and (4) ) and the initial motion direction α 0 :

Figure BDA0001593261530000101
Figure BDA0001593261530000101

Figure BDA0001593261530000102
Figure BDA0001593261530000102

步骤S1023:根据初始位置点、初始运动速度和初始运动方向,并按照公式(1)所示的方法,计算第一运动轨迹中其他目标体轨迹点,进而得到第一运动轨迹。Step S1023: According to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in formula (1), calculate other target body trajectory points in the first movement trajectory, and then obtain the first movement trajectory.

步骤S103:基于预设的轨迹预测方法,并根据第2~4个连续的目标体轨迹点,得到第二运动轨迹。本实施例中第二运动轨迹的获取方法与第一运动轨迹的获取方法相同,具体可以包括如下步骤:Step S103: Based on the preset trajectory prediction method, and according to the 2nd to 4th consecutive target body trajectory points, a second motion trajectory is obtained. The method for acquiring the second motion trajectory in this embodiment is the same as the method for acquiring the first motion trajectory, and may specifically include the following steps:

步骤S1031:获取第2~4个连续目标体轨迹点P2、P3和P4的空间位置,即

Figure BDA0001593261530000103
Figure BDA0001593261530000104
Step S1031: Obtain the spatial positions of the 2nd to 4th continuous target body trajectory points P2, P3 and P4, namely
Figure BDA0001593261530000103
and
Figure BDA0001593261530000104

步骤S1032:将目标体轨迹点P3作为初始位置点,并按照公式(3)和(4)所述的方法,计算得到目标体在第二运动轨迹中的初始运动速度(v0x,v0y,v0z)和初始运动方向α0Step S1032: take the target body trajectory point P 3 as the initial position point, and calculate the initial motion speed (v 0x , v 0y of the target body in the second motion trajectory according to the methods described in formulas (3) and (4) , v 0z ) and the initial motion direction α 0 .

步骤S1033:根据初始位置点、初始运动速度和初始运动方向,并按照公式(1)所示的方法,计算第二运动轨迹中其他目标体轨迹点,进而得到第二运动轨迹。Step S1033: According to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in formula (1), calculate other target body trajectory points in the second movement trajectory, and then obtain the second movement trajectory.

步骤S104:基于预设的轨迹预测方法,并根据第3~5个连续的目标体轨迹点,得到第三运动轨迹。Step S104: Based on the preset trajectory prediction method, and according to the 3rd to 5th consecutive target body trajectory points, a third motion trajectory is obtained.

步骤S1041:获取第3~5个连续目标体轨迹点P3、P4和P5空间位置,即

Figure BDA0001593261530000111
Figure BDA0001593261530000112
Step S1041: Obtain the 3rd to 5th continuous target body trajectory points P 3 , P 4 and P 5 spatial positions, namely
Figure BDA0001593261530000111
and
Figure BDA0001593261530000112

步骤S1032:将目标体轨迹点P4作为初始位置点,并按照公式(3)和(4)所述的方法,计算得到目标体在第三运动轨迹中的初始运动速度(v0x,v0y,v0z)和初始运动方向α0Step S1032: Taking the target body trajectory point P4 as the initial position point, and according to the methods described in formulas (3) and ( 4 ), calculate the initial movement speed (v 0x , v 0y of the target body in the third movement trajectory) , v 0z ) and the initial motion direction α 0 .

步骤S1033:根据初始位置点、初始运动速度和初始运动方向,并按照公式(1)所示的方法,计算第三运动轨迹中其他目标体轨迹点,进而得到第三运动轨迹。Step S1033: According to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in formula (1), calculate other target body trajectory points in the third movement trajectory, and then obtain the third movement trajectory.

步骤S105:对第一运动轨迹、第二运动轨迹和第三运动轨迹进行修正,得到目标体运动轨迹。具体地,本实施例中可以按照如下方法获取目标体运动轨迹:Step S105: Correct the first motion trajectory, the second motion trajectory and the third motion trajectory to obtain the target body motion trajectory. Specifically, in this embodiment, the motion trajectory of the target body can be obtained according to the following method:

步骤S1051:判断目标体轨迹点是否偏离运动轨迹:Step S1051: Determine whether the target body trajectory point deviates from the motion trajectory:

首先,计算第四个运动轨迹点与第一运动轨迹的空间距离Wn+1_1,计算第五个运动轨迹点分别与第一运动轨迹和第二运动轨迹的空间距离Wn+2_1和Wn+2_2First, calculate the spatial distance W n+1_1 between the fourth motion trajectory point and the first motion trajectory, and calculate the spatial distances W n+2_1 and W n between the fifth motion trajectory point and the first motion trajectory and the second motion trajectory, respectively +2_2 .

其次,根据空间距离Wn+1_1和预设阈值e,判断第四个运动轨迹点是否偏离第一运动轨迹;根据空间距离Wn+2_1和预设阈值e,判断第五个运动轨迹点是否偏离第一运动轨迹;根据空间距离Wn+2_2和预设阈值e,判断第五个运动轨迹点是否偏离第二运动轨迹。Secondly, according to the spatial distance W n+1_1 and the preset threshold e, it is judged whether the fourth motion trajectory point deviates from the first motion trajectory; according to the spatial distance W n+2_1 and the preset threshold e, it is judged whether the fifth motion trajectory point deviates from the first motion trajectory Deviating from the first motion trajectory; according to the spatial distance W n+2_2 and the preset threshold e, determine whether the fifth motion trajectory point deviates from the second motion trajectory.

若Wn+1_1>e,则第四个运动轨迹点偏离第一运动轨迹;If W n+1_1 > e, the fourth motion trajectory point deviates from the first motion trajectory;

若Wn+2_1>e,则第五个运动轨迹点偏离第一运动轨迹;If W n+2_1 > e, the fifth motion trajectory point deviates from the first motion trajectory;

若Wn+2_2>e,则第五个运动轨迹点偏离第二运动轨迹。If W n+2_2 >e, the fifth motion trajectory point deviates from the second motion trajectory.

步骤S1052:根据上述判断结果,获取目标体运动轨迹TmStep S1052: According to the above judgment result, obtain the motion trajectory T m of the target body:

1、在第四个运动轨迹点和第五个运动轨迹点均未偏离第一运动轨迹,并且第五个运动轨迹点未偏离第二运动轨迹的情况下,可以按照下式(5)所示的方法获取目标体运动轨迹Tm1. In the case that neither the fourth motion trajectory point nor the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point does not deviate from the second motion trajectory, it can be shown in the following formula (5). The method of obtaining the target body motion trajectory T m :

Figure BDA0001593261530000121
Figure BDA0001593261530000121

公式(5)中各参数含义为:T1、T2和T3分别为第一运动轨迹、第二运动轨迹和第三运动轨迹。The meaning of each parameter in formula (5) is: T 1 , T 2 and T 3 are the first motion track, the second motion track and the third motion track, respectively.

2、在第四个运动轨迹点或第五个运动轨迹点偏离第一运动轨迹,并且第五个运动轨迹点未偏离第二运动轨迹的情况下,按照下式(6)所示的方法获取目标体运动轨迹Tm2. When the fourth motion track point or the fifth motion track point deviates from the first motion track, and the fifth motion track point does not deviate from the second motion track, obtain it according to the method shown in the following formula (6). Target body motion trajectory T m :

Figure BDA0001593261530000122
Figure BDA0001593261530000122

3、在第四个运动轨迹点或第五个运动轨迹点偏离第一运动轨迹,并且第五个运动轨迹点偏离第二运动轨迹的情况下,目标体运动轨迹Tm=T33. When the fourth motion trajectory point or the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point deviates from the second motion trajectory, the target body motion trajectory T m =T 3 .

参阅附图2,图2示例性示出了本实施例中另一种基于深度图像的目标体运动轨迹预测方法的主要步骤。如图2所示,本实施例中可以按照如下步骤预测目标体的运动轨迹:Referring to FIG. 2 , FIG. 2 exemplarily shows the main steps of another method for predicting the motion trajectory of a target body based on a depth image in this embodiment. As shown in Figure 2, in this embodiment, the motion trajectory of the target body can be predicted according to the following steps:

步骤S201:获取目标体深度图像。Step S201: Acquire a depth image of the target body.

步骤S202:获取第1-3个连续的目标体轨迹点的空间位置。Step S202: Acquire the spatial positions of the 1st to 3rd consecutive target body trajectory points.

步骤S203:计算目标体在当前运动轨迹的初始运动速度和初始速度方向。具体地,本实施例中可以按照公式(3)和(4)所示的方法,计算得到目标体在当前运动轨迹中的初始运动速度(v0x,v0y,v0z)和初始运动方向α0Step S203: Calculate the initial movement speed and initial speed direction of the target body in the current movement track. Specifically, in this embodiment, the initial motion speed (v 0x , v 0y , v 0z ) and the initial motion direction α of the target body in the current motion trajectory can be calculated according to the methods shown in formulas (3) and (4). 0 .

步骤S204:根据初始位置点、初始运动速度和初始速度方向,计算当前运动轨迹中的其他目标体轨迹点。具体地,本实施例中可以按照公式(1)所示的方法,计算当前运动轨迹中的其他目标体轨迹点。Step S204: Calculate other target body track points in the current motion track according to the initial position point, the initial motion speed and the initial speed direction. Specifically, in this embodiment, other target body track points in the current motion track can be calculated according to the method shown in formula (1).

步骤S205:根据第1-3个连续的目标体轨迹点,及其对应的其他目标体轨迹点,形成第一运动轨迹。Step S205 : forming a first motion trajectory according to the 1st to 3rd consecutive target body trajectory points and their corresponding other target body trajectory points.

步骤S206:获取第4个目标体轨迹点的空间位置,并重复执行步骤S203-步骤S204,得到第二运动轨迹。Step S206: Acquire the spatial position of the fourth target body trajectory point, and repeat steps S203-S204 to obtain a second motion trajectory.

步骤S207:获取第5个目标体轨迹点的空间位置,并重复执行步骤S203-步骤S204,得到第三运动轨迹。Step S207: Obtain the spatial position of the fifth target body trajectory point, and repeat steps S203-S204 to obtain a third motion trajectory.

步骤S208:判断第4个目标体轨迹点或第5个目标体轨迹点是否偏离第一运动轨迹。具体地,若第4个目标体轨迹点或第5个目标体轨迹点偏离第一运动轨迹,则转至步骤S209。若第4个目标体轨迹点和第5个目标体轨迹点均未偏离第一运动轨迹,则转至步骤S213。Step S208: Determine whether the fourth target body trajectory point or the fifth target body trajectory point deviates from the first motion trajectory. Specifically, if the fourth target body trajectory point or the fifth target body trajectory point deviates from the first motion trajectory, go to step S209. If neither the fourth target body trajectory point nor the fifth target body trajectory point deviates from the first motion trajectory, go to step S213.

步骤S209:放弃第一运动轨迹。Step S209: Abandon the first motion track.

步骤S210:判断第5个目标体轨迹点是否偏离第二运动轨迹。具体地,若第5个目标体轨迹点未偏离第二运动轨迹,则转至步骤S211。若第5个目标体轨迹点偏离第二运动轨迹,则放弃第二运动轨迹,并转至步骤S212。Step S210: Determine whether the fifth target body trajectory point deviates from the second motion trajectory. Specifically, if the fifth target body trajectory point does not deviate from the second motion trajectory, go to step S211. If the fifth target body trajectory point deviates from the second motion trajectory, the second motion trajectory is abandoned, and the process goes to step S212.

步骤S211:根据第二和第三运动轨迹,得到目标体运动轨迹。具体地,本实施例中可以按照公式(6)所示的方法,获取目标体运动轨迹。Step S211: Obtain the target body motion trajectory according to the second and third motion trajectories. Specifically, in this embodiment, the movement trajectory of the target body can be obtained according to the method shown in formula (6).

步骤S212:根据第三运动轨迹,得到目标体运动轨迹。具体地,本实施例中目标体运动轨迹为第三运动轨迹。Step S212 : obtaining the movement trajectory of the target body according to the third movement trajectory. Specifically, in this embodiment, the movement trajectory of the target body is the third movement trajectory.

步骤S213:判断第5个目标体轨迹点是否偏离第二运动轨迹。具体地,若第5个目标体轨迹点偏离第二运动轨迹,则转至步骤S214。若第5个目标体轨迹点未偏离第二运动轨迹,则转至步骤S215。Step S213: Determine whether the fifth target body trajectory point deviates from the second motion trajectory. Specifically, if the fifth target body trajectory point deviates from the second motion trajectory, go to step S214. If the fifth target body trajectory point does not deviate from the second motion trajectory, go to step S215.

步骤S214:放弃第二运动轨迹。Step S214: Abandon the second motion trajectory.

步骤S215:根据第一、第二和第三运动轨迹,得到目标体运动轨迹。具体地,本实施例中可以按照公式(5)所示的方法,获取目标体运动轨迹。Step S215: Obtain the motion trajectory of the target body according to the first, second and third motion trajectories. Specifically, in this embodiment, the movement trajectory of the target body can be obtained according to the method shown in formula (5).

上述实施例中虽然将各个步骤按照上述先后次序的方式进行了描述,但是本领域技术人员可以理解,为了实现本实施例的效果,不同的步骤之间不必按照这样的次序执行,其可以同时(并行)执行或以颠倒的次序执行,这些简单的变化都在本发明的保护范围之内。In the above-mentioned embodiment, although each step is described according to the above-mentioned order, those skilled in the art can understand that, in order to realize the effect of this embodiment, different steps need not be performed in this order, and it can be performed simultaneously ( parallel) or in reverse order, simple variations of these are within the scope of the present invention.

基于与方法实施例相同的技术构思,本发明实施例还提供一种基于深度图像的目标体运动轨迹预测系统。下面结合附图对该基于深度图像的目标体运动轨迹预测系统进行具体说明。Based on the same technical concept as the method embodiment, the embodiment of the present invention also provides a depth image-based target body motion trajectory prediction system. The system for predicting the motion trajectory of a target body based on a depth image will be described in detail below with reference to the accompanying drawings.

参阅附图2,图2示例性示出了本实施例中一种基于深度图像的目标体运动轨迹预测系统的主要结构。如图2所示,本实施例中基于深度图像的目标体运动轨迹预测系统可以包括目标体轨迹点获取模块11、第一运动轨迹获取模块12、第二运动轨迹获取模块13、第三运动轨迹获取模块14和目标体运动轨迹获取模块15。具体地,本实施例中目标体轨迹点获取模块11可以配置为根据预先获取的目标体深度图像,获取多个连续的目标体轨迹点。第一运动轨迹获取模块12可以配置为基于预设的轨迹预测方法,并根据第1~3个目标体轨迹点,得到第一运动轨迹。第二运动轨迹获取模块13可以配置为基于预设的轨迹预测方法,并根据第2~4个连续的目标体轨迹点,得到第二运动轨迹。第三运动轨迹获取模块14可以配置为基于预设的轨迹预测方法,并根据第3~5个连续的目标体轨迹点,得到第三运动轨迹。目标体运动轨迹获取模块15可以配置为对第一运动轨迹获取模块12所获取的第一运动轨迹、第二运动轨迹获取模块13所获取的第二运动轨迹和第三运动轨迹获取模块13所获取的第三运动轨迹进行修正,得到目标体运动轨迹。Referring to FIG. 2, FIG. 2 exemplarily shows the main structure of a system for predicting the motion trajectory of a target body based on a depth image in this embodiment. As shown in FIG. 2 , the target body motion trajectory prediction system based on the depth image in this embodiment may include a target body trajectory point acquisition module 11 , a first motion trajectory acquisition module 12 , a second motion trajectory acquisition module 13 , and a third motion trajectory The acquisition module 14 and the target body motion trajectory acquisition module 15 . Specifically, in this embodiment, the target body trajectory point acquiring module 11 may be configured to acquire a plurality of continuous target body trajectory points according to a pre-acquired target body depth image. The first motion trajectory obtaining module 12 may be configured to obtain the first motion trajectory based on the preset trajectory prediction method and according to the first to third target body trajectory points. The second motion trajectory obtaining module 13 may be configured to obtain the second motion trajectory based on the preset trajectory prediction method and according to the 2nd to 4th consecutive target body trajectory points. The third motion trajectory obtaining module 14 may be configured to obtain the third motion trajectory based on the preset trajectory prediction method and according to the 3rd to 5th consecutive target body trajectory points. The target body motion trajectory acquisition module 15 may be configured to obtain the first motion trajectory acquired by the first motion trajectory acquisition module 12 , the second motion trajectory acquired by the second motion trajectory acquisition module 13 , and the third motion trajectory acquisition module 13 . The third motion trajectory of the target body is corrected to obtain the target body motion trajectory.

进一步地,本实施例中图2所示目标体轨迹预测系统还可以包括轨迹预测模块,其配置为执行如下操作,以使该系统能够获取第一运动轨迹、第二运动轨迹和第三运动轨迹:Further, in the present embodiment, the target body trajectory prediction system shown in FIG. 2 may further include a trajectory prediction module, which is configured to perform the following operations, so that the system can obtain the first motion trajectory, the second motion trajectory and the third motion trajectory. :

首先,获取三个连续的目标体轨迹点的空间位置,并根据所获取的空间位置,计算目标体的初始运动速度和初始运动方向。First, the spatial positions of three consecutive target body track points are obtained, and according to the obtained spatial positions, the initial movement speed and initial movement direction of the target body are calculated.

其次,将三个连续的目标体轨迹点中的第二个目标体轨迹点作为初始位置点;根据初始位置点、初始运动速度和初始运动方向,并按照公式(1)所示的方法,计算当前运动轨迹中的目标体轨迹点。Secondly, the second target body trajectory point in the three continuous target body trajectory points is used as the initial position point; according to the initial position point, the initial movement speed and the initial movement direction, and according to the method shown in formula (1), calculate The target body track point in the current motion track.

进一步地,本实施例中轨迹预测模块可以包括目标体运动速度/方向计算单元,其配置为按照公式(2)所示的方法计算目标体在第i个目标体轨迹点的运动速度vi和运动方向αiFurther, in the present embodiment, the trajectory prediction module may include a target body motion speed/direction calculation unit, which is configured to calculate the motion speed v i and Movement direction α i .

进一步地,本实施例中目标体运动轨迹获取模块15可以包括第一轨迹修正单元、第二轨迹修正单元和第三轨迹修正单元。Further, in this embodiment, the target body motion trajectory acquisition module 15 may include a first trajectory correction unit, a second trajectory correction unit, and a third trajectory correction unit.

具体地,第一轨迹修正单元可以配置为在第四个运动轨迹点和第五个运动轨迹点未偏离第一运动轨迹,并且第五个运动轨迹点未偏离第二运动轨迹的情况下,按照公式(5)所示的方法获取目标体运动轨迹Tm。第二轨迹修正单元可以配置为在第四个运动轨迹点或第五个运动轨迹点偏离第一运动轨迹,并且第五个运动轨迹点未偏离第二运动轨迹的情况下,按照公式(6)所示的方法获取目标体运动轨迹Tm。第三轨迹修正单元可以配置为在第四个运动轨迹点或第五个运动轨迹点偏离第一运动轨迹,并且第五个运动轨迹点偏离第二运动轨迹的情况下,所述目标体运动轨迹Tm=T3Specifically, the first trajectory correction unit may be configured to, when the fourth motion trajectory point and the fifth motion trajectory point do not deviate from the first motion trajectory, and the fifth motion trajectory point does not deviate from the second motion trajectory, according to The method shown in formula (5) obtains the motion trajectory T m of the target body. The second trajectory correction unit may be configured to, when the fourth motion trajectory point or the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point does not deviate from the second motion trajectory, according to formula (6) The shown method obtains the target body motion trajectory T m . The third trajectory correction unit may be configured to, when the fourth motion trajectory point or the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point deviates from the second motion trajectory, the target body motion trajectory T m =T 3 .

进一步地,本实施例中目标体运动轨迹获取模块15还可以包括目标体偏差计算单元、第一目标体偏离判断单元、第二目标体偏离判断单元和第三目标体偏离判断单元。Further, in this embodiment, the target body motion trajectory acquisition module 15 may further include a target body deviation calculation unit, a first target body deviation judgment unit, a second target body deviation judgment unit, and a third target body deviation judgment unit.

具体地,目标体偏差计算单元可以配置为计算第四个运动轨迹点与第一运动轨迹的空间距离Wn+1_1,计算第五个运动轨迹点分别与第一运动轨迹和第二运动轨迹的空间距离Wn+2_1和Wn+2_2。第一目标体偏离判断单元可以配置为根据空间距离Wn+1_1和预设阈值e,判断第四个运动轨迹点是否偏离第一运动轨迹:若Wn+1_1>e,则第四个运动轨迹点偏离第一运动轨迹。第二目标体偏离判断单元可以配置为根据空间距离Wn+2_1和预设阈值e,判断第五个运动轨迹点是否偏离第一运动轨迹:若Wn+2_1>e,则第五个运动轨迹点偏离第一运动轨迹。第三目标体偏离判断单元可以配置为根据空间距离Wn+2_2和预设阈值e,判断第五个运动轨迹点是否偏离第二运动轨迹:若Wn+2_2>e,则第五个运动轨迹点偏离第二运动轨迹。Specifically, the target body deviation calculation unit may be configured to calculate the spatial distance W n+1_1 between the fourth motion trajectory point and the first motion trajectory, and calculate the difference between the fifth motion trajectory point and the first motion trajectory and the second motion trajectory, respectively. Spatial distances W n+2_1 and W n+2_2 . The first target body deviation judgment unit may be configured to judge whether the fourth motion trajectory point deviates from the first motion trajectory according to the spatial distance W n+1_1 and the preset threshold e: if W n+1_1 >e, the fourth motion trajectory point The trajectory point deviates from the first motion trajectory. The second target body deviation judgment unit may be configured to judge whether the fifth motion trajectory point deviates from the first motion trajectory according to the spatial distance W n+2_1 and the preset threshold e: if W n+2_1 >e, then the fifth motion trajectory point deviates from the first motion trajectory. The trajectory point deviates from the first motion trajectory. The third target body deviation judgment unit may be configured to judge whether the fifth motion trajectory point deviates from the second motion trajectory according to the spatial distance W n+2_2 and the preset threshold e: if W n+2_2 >e, then the fifth motion trajectory point deviates from the second motion trajectory. The trajectory point deviates from the second motion trajectory.

上述基于深度图像的目标体运动轨迹预测系统实施例可以用于执行上述基于深度图像的目标体运动轨迹预测方法实施例,其技术原理、所解决的技术问题及产生的技术效果相似,所属技术领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的基于深度图像的目标体运动轨迹预测系统的具体工作过程及有关说明,可以参考前述基于深度图像的目标体运动轨迹预测方法实施例中的对应过程,在此不再赘述。The above-mentioned embodiments of the system for predicting the motion trajectory of a target body based on a depth image can be used to execute the above-mentioned embodiments of the method for predicting the motion trajectory of a target body based on a depth image. Those skilled in The corresponding process in the embodiment is not repeated here.

本领域技术人员可以理解,上述基于深度图像的目标体运动轨迹预测系统还包括一些其他公知结构,例如处理器、存储器等,其中,存储器包括但不限于随机存储器、闪存、只读存储器、可编程只读存储器、易失性存储器、非易失性存储器、串行存储器、并行存储器或寄存器等,处理器包括但不限于CPLD/FPGA、DSP、ARM处理器、MIPS处理器等,为了不必要地模糊本公开的实施例,这些公知的结构未在图2中示出。Those skilled in the art can understand that the above-mentioned depth image-based target body motion trajectory prediction system also includes some other well-known structures, such as processors, memories, etc., wherein the memories include but are not limited to random access memory, flash memory, read-only memory, programmable Read-only memory, volatile memory, non-volatile memory, serial memory, parallel memory or registers, etc., processors including but not limited to CPLD/FPGA, DSP, ARM processors, MIPS processors, etc., in order to unnecessarily To obscure embodiments of the present disclosure, these well-known structures are not shown in FIG. 2 .

应该理解,图2中的各个模块的数量仅仅是示意性的。根据实际需要,各模块可以具有任意的数量。It should be understood that the number of the various modules in FIG. 2 is merely illustrative. Each module can have any number according to actual needs.

本领域技术人员可以理解,可以对实施例中的系统中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个系统中。可以把实施例中的模块或单元组合成一个模块或单元,以及此外可以把它们分成多个子模块或子单元。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the system in the embodiment can be adaptively changed and placed in one or more systems different from the embodiment. The modules or units in the embodiments may be combined into one module or unit, and further they may be divided into multiple sub-modules or sub-units. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包括”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在本发明的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, it will be understood by those skilled in the art that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the claims of this invention, any of the claimed embodiments may be used in any combination.

至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。So far, the technical solutions of the present invention have been described with reference to the preferred embodiments shown in the accompanying drawings, however, those skilled in the art can easily understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims (8)

1. A target body motion track prediction method based on a depth image is characterized by comprising the following steps:
acquiring a plurality of continuous target body track points according to a target body depth image acquired in advance;
based on a preset track prediction method, obtaining a first motion track according to 1 st to 3 rd continuous target body track points;
based on the preset track prediction method, obtaining a second motion track according to 2 nd to 4 th continuous target body track points;
based on the preset track prediction method, obtaining a third motion track according to 3 rd to 5 th continuous target body track points;
correcting the first motion track, the second motion track and the third motion track to obtain a motion track of a target body;
the preset trajectory prediction method specifically includes:
acquiring the spatial positions of three continuous target body track points, and calculating the initial movement speed and the initial movement direction of a target body according to the acquired spatial positions;
taking a second target body track point of the three continuous target body track points as an initial position point; calculating a target body track point in the current motion track according to the initial position point, the initial motion speed and the initial motion direction and according to a method shown in the following formula:
Figure FDA0002534729840000011
wherein (x)i,yi,yi) The spatial position coordinates of the ith target body track point in the current motion track are obtained; (v)0x,v0y,v0z) The space position coordinates of the initial position point are obtained; v isiThe motion speed of the object at the ith object track point is αiThe motion direction of the object body at the ith object body track point is taken as the motion direction of the object body; said t issThe sampling interval for acquiring the depth image of the target body by the camera device.
2. The depth image-based target motion trail prediction method according to claim 1, wherein the motion velocity v of the target at the ith target track pointiAnd direction of motion αiAs shown in the following formula:
Figure FDA0002534729840000021
wherein, v isi-1The motion speed of the object at the i-1 th object track point is shown as αi-1The motion direction of the object body at the ith-1 th object body track point is taken as the motion direction of the object body; k is an air resistance coefficient; the g is the acceleration of gravity.
3. The depth-image-based target body motion trajectory prediction method according to claim 1 or 2, wherein the step of modifying the first motion trajectory, the second motion trajectory, and the third motion trajectory to obtain the target body motion trajectory specifically includes:
under the condition that the fourth motion track point and the fifth motion track point do not deviate from the first motion track and the fifth motion track point does not deviate from the second motion track, the motion track T of the target body is obtained according to the method shown in the following formulam
Figure FDA0002534729840000022
Under the condition that the fourth motion track point or the fifth motion track point deviates from the first motion track and the fifth motion track point does not deviate from the second motion track, obtaining a target body motion track T according to a method shown in the following formulam
Figure FDA0002534729840000023
In the case where the fourth motion trajectory point or the fifth motion trajectory point deviates from the first motion trajectory, and the fifth motion trajectory point deviates from the second motion trajectory, the target body motion trajectory Tm=T3
Wherein, T is1、T2And T3Respectively a first motion trail, a second motion trail and a third motion trail.
4. The method for predicting the target body motion trail based on the depth image according to claim 3, wherein the step of modifying the first motion trail, the second motion trail and the third motion trail to obtain the target body motion trail comprises:
calculating the space distance W between the fourth motion track point and the first motion trackn+1_1Calculating the space distance W between the fifth motion track point and the first motion track and the space distance W between the fifth motion track point and the second motion trackn+2_1And Wn+2_2
According to the space distance Wn+1_1And a preset threshold value e, judging whether the fourth motion track point deviates from the first motion track: if Wn+1_1If the position is more than e, the fourth motion track point deviates from the first motion track;
according to the space distance Wn+2_1And the preset threshold value e is used for judging whether the fifth motion track point deviates from the first motion track: if Wn+2_1If the position is more than e, the fifth motion track point deviates from the first motion track;
according to the space distance Wn+2_2And the preset threshold value e is used for judging whether the fifth motion track point deviates from the second motion track: if Wn+2_2And if the second motion track point is larger than e, the fifth motion track point deviates from the second motion track.
5. A depth image-based target body motion trajectory prediction system, comprising:
the target body track point acquisition module is configured to acquire a plurality of continuous target body track points according to a pre-acquired target body depth image;
the first motion track acquisition module is configured to obtain a first motion track based on a preset track prediction method according to 1 st to 3 rd target body track points;
the second motion track acquisition module is configured to obtain a second motion track according to 2 nd to 4 th continuous target body track points based on the preset track prediction method;
the third motion track acquisition module is configured to obtain a third motion track according to 3 rd to 5 th continuous target body track points based on the preset track prediction method;
a target body movement track acquisition module configured to correct the first movement track acquired by the first movement track acquisition module, the second movement track acquired by the second movement track acquisition module, and the third movement track acquired by the third movement track acquisition module to obtain a target body movement track;
the system further includes a trajectory prediction module configured to perform operations to enable the system to acquire the first, second, and third motion trajectories:
acquiring the spatial positions of three continuous target body track points, and calculating the initial movement speed and the initial movement direction of a target body according to the acquired spatial positions;
taking a second target body track point of the three continuous target body track points as an initial position point; calculating a target body track point in the current motion track according to the initial position point, the initial motion speed and the initial motion direction and according to a method shown in the following formula:
Figure FDA0002534729840000041
wherein (x)i,yi,yi) The spatial position coordinates of the ith target body track point in the current motion track are obtained; (v)0x,v0y,v0z) The space position coordinates of the initial position point are obtained; v isiThe motion speed of the object at the ith object track point is αiThe motion direction of the object body at the ith object body track point is taken as the motion direction of the object body; said t issFor obtaining purpose by camera systemSampling interval of the object depth image.
6. The depth-image-based target body movement trajectory prediction system according to claim 5, wherein the trajectory prediction module includes a target body movement speed/direction calculation unit configured to perform operations of:
calculating the motion speed v of the target body at the ith target body track point according to the method shown in the following formulaiAnd direction of motion αi
Figure FDA0002534729840000051
Wherein, v isi-1The motion speed of the object at the i-1 th object track point is shown as αi-1The motion direction of the object body at the ith-1 th object body track point is taken as the motion direction of the object body; k is an air resistance coefficient; the g is the acceleration of gravity.
7. The depth-image-based target motion trajectory prediction system according to claim 5 or 6, wherein the target motion trajectory acquisition module includes a first trajectory correction unit, a second trajectory correction unit, and a third trajectory correction unit;
the first trajectory correction unit is configured to acquire the target body movement trajectory T according to a method shown in the following formula under the condition that the fourth movement trajectory point and the fifth movement trajectory point do not deviate from the first movement trajectory and the fifth movement trajectory point does not deviate from the second movement trajectorym
Figure FDA0002534729840000052
Wherein, T is1、T2And T3Respectively a first motion track, a second motion track and a third motion track;
the second track correction unit is configured to correct the fourth motion trackAnd under the condition that the point or the fifth motion track point deviates from the first motion track and the fifth motion track point does not deviate from the second motion track, acquiring a target body motion track T according to a method shown in the following formulam
Figure FDA0002534729840000053
The third trajectory correction unit is configured to correct the target body movement trajectory T when the fourth movement trajectory point or the fifth movement trajectory point deviates from the first movement trajectory and the fifth movement trajectory point deviates from the second movement trajectorym=T3
8. The depth-image-based target body movement track prediction system according to claim 7, wherein the target body movement track acquisition module further includes a target body deviation calculation unit, a first target body deviation determination unit, a second target body deviation determination unit, and a third target body deviation determination unit;
the target body deviation calculation unit is configured to calculate a spatial distance W between the fourth motion trajectory point and the first motion trajectoryn+1_1Calculating the space distance W between the fifth motion track point and the first motion track and the space distance W between the fifth motion track point and the second motion trackn+2_1And Wn+2_2
The first target body deviation determination unit is configured to determine the first target body deviation according to the spatial distance Wn+1_1And a preset threshold value e, judging whether the fourth motion track point deviates from the first motion track: if Wn+1_1If the position is more than e, the fourth motion track point deviates from the first motion track;
the second target body deviation determination unit is configured to determine the second target body deviation based on the spatial distance Wn+2_1And the preset threshold value e is used for judging whether the fifth motion track point deviates from the first motion track: if Wn+2_1If the position is more than e, the fifth motion track point deviates from the first motion track;
the third target body deviation determination unit is configured to determine the spatial distance Wn+2_2And the preset threshold value e is used for judging whether the fifth motion track point deviates from the second motion track: if Wn+2_2And if the second motion track point is larger than e, the fifth motion track point deviates from the second motion track.
CN201810196470.8A 2018-03-09 2018-03-09 Prediction method and system of target body motion trajectory based on depth image Active CN108596941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810196470.8A CN108596941B (en) 2018-03-09 2018-03-09 Prediction method and system of target body motion trajectory based on depth image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810196470.8A CN108596941B (en) 2018-03-09 2018-03-09 Prediction method and system of target body motion trajectory based on depth image

Publications (2)

Publication Number Publication Date
CN108596941A CN108596941A (en) 2018-09-28
CN108596941B true CN108596941B (en) 2020-10-02

Family

ID=63625957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810196470.8A Active CN108596941B (en) 2018-03-09 2018-03-09 Prediction method and system of target body motion trajectory based on depth image

Country Status (1)

Country Link
CN (1) CN108596941B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328086A (en) * 2020-11-14 2021-02-05 上海卓腾展览展示有限公司 Intelligent display method, system and device based on video identification and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012096907A1 (en) * 2011-01-10 2012-07-19 Hangzhou Conformal & Digital Technology Limited Corporation Mesh animation
CN102752855A (en) * 2012-08-01 2012-10-24 重庆大学 Indoor personnel positioning system and method based on path rule and prediction
CN106454722A (en) * 2016-09-09 2017-02-22 华南理工大学 Dynamic differential positioning method based on map matching for mobile communication terminals
CN107645701A (en) * 2017-09-12 2018-01-30 咪咕互动娱乐有限公司 A kind of method and device for generating movement locus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012096907A1 (en) * 2011-01-10 2012-07-19 Hangzhou Conformal & Digital Technology Limited Corporation Mesh animation
CN102752855A (en) * 2012-08-01 2012-10-24 重庆大学 Indoor personnel positioning system and method based on path rule and prediction
CN106454722A (en) * 2016-09-09 2017-02-22 华南理工大学 Dynamic differential positioning method based on map matching for mobile communication terminals
CN107645701A (en) * 2017-09-12 2018-01-30 咪咕互动娱乐有限公司 A kind of method and device for generating movement locus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Kinect-Based Badminton Movement Recognition and Analysis System;Ting, H. Y. 等;《International Journal of Computer Science in Sport》;20150731;第14卷(第2期);25-41 *
Re-Cinematography:Improving the Camera Dynamics of Casual Video;Michael L. Gleicher 等;《Proceeding MM "07 Proceedings of the 15th ACM international conference on Multimedia》;20070929;27-36 *
基于运动特征的视频检索;程照辉 等;《信号处理》;20110525;第27卷(第5期);765-770 *

Also Published As

Publication number Publication date
CN108596941A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2018028649A1 (en) Mobile device, positioning method therefor, and computer storage medium
CN105139420B (en) A kind of video target tracking method based on particle filter and perception Hash
CN106169188A (en) A kind of method for tracing object based on the search of Monte Carlo tree
CN102999664B (en) Method for identifying position of indoor pollution source
CN104869541A (en) Indoor positioning tracking method
CN106780484A (en) Robot interframe position and orientation estimation method based on convolutional neural networks Feature Descriptor
CN110632932A (en) Local Path Planning Algorithm Based on Membrane Computing and Particle Swarm Optimization
CN108759643A (en) A kind of locating magnetic objects method based on array of magnetic sensors coordinate system
CN107346538A (en) Method for tracing object and equipment
CN110376290B (en) Acoustic emission source positioning method based on multi-dimensional nuclear density estimation
CN107796387A (en) Localization method, positioner and electronic equipment
CN108596941B (en) Prediction method and system of target body motion trajectory based on depth image
JP2017177923A5 (en)
CN110688873A (en) Multi-target tracking method and face recognition method
CN109712188A (en) A kind of method for tracking target and device
Liu et al. Evasion of a team of dubins vehicles from a hidden pursuer
CN116026315A (en) A Multi-Sensor Fusion Based Ventilation Duct Scene Modeling and Robot Positioning Method
CN112307685B (en) Fluid motion boundary prediction method based on Gaussian mixture model in underwater acoustic sensor network
CN105446605B (en) Information processing method and electronic equipment
CN110411454A (en) An Improved Random Path Graph Method for Path Planning of Mobile Robots
KR101884446B1 (en) Speaker identification and speaker tracking method for Multilateral conference environment
CN110296705B (en) Visual SLAM loop detection method based on distance metric learning
CN105894014B (en) Abnormal behavior sequential detection method based on multi-factor inconsistency measurement
Mironov et al. Fast kNN-based prediction for the trajectory of a thrown body
CN106325278A (en) Robot positioning and navigating method based on ellipse identification

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