feat: 添加PoseTransformHandler接口 提供结欢过滤方法的功能
添加直接返回和平均过滤两种过滤方法
This commit is contained in:
20
Assets/Utils/PoseTransformHandlers/NormalHandler.cs
Normal file
20
Assets/Utils/PoseTransformHandlers/NormalHandler.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Models;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Utils.PoseTransformHandlers
|
||||
{
|
||||
public class NormalHandler : IPoseTransformHandler
|
||||
{
|
||||
private Vector3 _result;
|
||||
|
||||
public void ReceivePoseLandmark(PoseLandmark landmark)
|
||||
{
|
||||
_result = new Vector3(landmark.X, landmark.Y, landmark.Z);
|
||||
}
|
||||
|
||||
public Vector3 GetResultPosition()
|
||||
{
|
||||
return _result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user