Sync markerID
Synchronize TrackPoint.mMarkerID with TrackPerson.mMarkerID This should guarantee that one person has only one markerID, so that e.g. a height can be assigned to person connected by the id
Idea:
if new TrackPoint.mMarkerID found on head (!= -1):
if TrackPerson.mMarkerID == -1:
TrackPerson.mMarkerID = TrackPoint.mMarkerID // first time a marker is found
else
if TrackPerson.mMarkerID == TrackPoint.mMarkerID
// nothing to do, all is fine
else
// Print ERROR!!! Two id for one trajectory found
Please look also to merging trajectories and updated trackpoints
To do:
-
add synchronisation of TrackPerson MarkerID with TrackPoint Marker ID -
inititate TrackPerson Marker ID with -1 instead of 0 as 0 is a value of ArucoCodeMarkers -
intruduce markerID for TrackPersonReal (as Output accessess TrackPointReal) -
Change Output in txt file from using TrackPointReal to TrackPersonReal
Edited by d.kilic