TSPS TCP Messages

TSPS sends strings over TCP with a semicolon delimiter and a \ line ending. Each property follows this format:

  • simple value: name/value; (example: id)
  • object: name/prop>value:prop>value; (example: boundingrect)
  • array: name/prop1>value:prop2:value,prop1>value:prop2>value,...; (example:contours)

Example (lines are broken up for legibility, actual TCP messages are continuous):

TSPS/personEntered/;
id/0;
age/0;
centroid/x>0:y>0;
velocity/x>0:y>0;
depth/0;
boundingrect/x>0:y>0:width>0:height>0;
opticalflow/x>0:y>0;
haarrect/x>0:y>0:width>0:height>0;
highest/x>0:y>0;
contours/x>0:y>0,x>0:y>0;
\