3D Body Tracking: Put Body Tracker on specific Person

Hey guys,

i have a ML Module which detects if someone wears sth specific, detail is not important. If this happens, this guy gets a specific 3d asset on his body. The 3d asset is a child of the 3d Body Tracking module. The problem is, if two people are in the camera, then the second person can get the 3d object.

Is there a way to attach it only to the person, where the ML Module detects sth? My idea is: Get the coordinates of the body tracker and object, if it is in the near, than attach it. How can I access the coordinates of the bodytracker? If I can make it, how can I assign the 3d Object to it? (Change the index of the bodytracker, so it matches what i want etc.)

Thank you very much

Does your ML model give you a bounding box or something? That would be a good place to start. I think you are right about comparing the positions of the tracked bodies and the ML results.

If you can make a test case or even share the project, I can take a look sometime.