未提供项目说明
sida-cs228的Python项目详细描述
sida-cs228
安装
pip install sida-cs228
使用
移动手部数据使其标准化
^{pr2}$伸出一只手,或将其另存为文件
fromsida.cs228.showimportshow_handdata=...# shape (5,4,6,n)show_hand(data[:,:,:,0],view_point="front",scale="unit")# show the first handshow_hand(data[:,:,:,1],view_point="side",scale="fit",fname="hand1.png")# save the side view of the second hand to a png file
标准化步骤
参数data
的形状应该是:(5,4,6,n)
,其中n
可以是任何整数。在
形状的意义是:5
手指,4
骨头,6
坐标,n
手。在
do
函数的结果将满足以下条件:
(1) the base of index finger on the origin, (2) the tip of the metacarpal bone of the index finger will on the point (0,1,0), (3) the tip of the metacarpal bone of the baby finger will also on the x-y plane, (4) the tip of the metacarpal bone of the thumb will be on the +z side.
标准化后,前视图如下:
侧视图如下:
主要源代码在以下文件中:
https://github.com/liusida/sida-cs228/blob/master/sida/cs228/standardize.py
- 项目
标签: