forked from qiandaibao/signature
-
Notifications
You must be signed in to change notification settings - Fork 0
轨迹协议
花常立 edited this page Feb 26, 2015
·
1 revision
coord:x、y坐标
timestamp:时间戳
格式:{coord:[x,y,x1,y1,...],timestamp:[timestamp1,timestamp2,....]};
注:
1. x=-1,y=0表示一笔的终点,-1,-1表示整个签名轨迹的结束。
2. 一个坐标点(x,y)除了(-1,0), (-1, -1),对应一个timestamp;
例:
{coord:[341, 296, 355, 300, 363, 299, 365, 299, -1, 0,
649, 298, 640, 319, 639, 324, -1, 0,
898, 326, 919, 330, 948, 325, -1, 0, -1, -1],
timestamp:[1423046490,1423046490,1423046490,1423046490,
1423046490,1423046490,1423046490,
1423046490,1423046490,1423046490]};
3笔画,10个时间戳