TUIO 2 / Handtracking

This is a note for Movid Handtracking/TUIO2, and PyMT TUIO2 integration

Reference: http://www.tuio.org/?tuio20

/tuio2/alv s_id0 ... s_idN
/tuio2/frm f_id time [app addr dim]
/tuio2/ptr s_id tu_id c_id x_pos y_pos width press [x_vel y_vel m_acc]
/tuio2/ala s_id0 … s_idN
/tuio2/lia s_id bool s_id0 l_id0 … s_idN l_idN

Example

Note:

  • id 42 is the hand
  • id 65-69 is finger
  • we don't make a difference between s_id, c_id for pointer
  • Ideally, t_id is :
    • 1-5 for left finger
    • 16 for right hand
    • 17 for left hand

A bundle:

/tuio2/frm 1 1280825521 "movid"
/tuio2/alv 42 65 66 67 68 69
/tuio2/ptr 65 1 65 638 687 1 1
/tuio2/ptr 66 2 66 698 767 1 1
/tuio2/ptr 67 3 67 664 810 1 1
/tuio2/ptr 68 4 68 664 690 1 1
/tuio2/ptr 69 5 69 632 733 1 1
/tuio2/ptr 42 16 42 600 600 1 1
/tuio2/ala 42 65 66 67 68 69
/tuio2/lia 42 false 65 66 67 68 69