Hi there,
I saw in the doc that it is possible to crop a ROI on the image and even apply a mask to do the body tracking.
But is it possible to also define a Depth ROI.
Like track body only that is within 3 meters or between 2 and 3 meters.
My case is that, for a game, there will have spectators behind the player. I would like to exclude them.
Hi @robotpapier
Welcome to the Stereolabs community.
You can set the max_range when you initialize the BodyTrackingParameters structure.
You can also set minimum and maximum depth range when you initialize the camera with InitParameters in open
Hi @Myzhar .
Thanks for your reply.
That’s perfect.
So the body tracking process takes as its source the filtered/masked image right?
I mean not tracking all bodies on the complete image then excluding those out of depth range?
Hi,
I am trying to put a filter on the detected bodies to only select the most centered and most close skeleton.
So I did a for loop in the getJsonSimple function,
this loop catch the index of the body that is the most centered(lowest abs(x)) and most close (lowest z) by comparing at each iteration.
So far everything seems fine.
The filter seems to work but sometimes , I guess when there is lots of people behind, the skeleton of inteest is jittering like it detects another skeleton which should not be there during 1 or 2 frame, causing a skeleton of interest not smooth.
Do you know how I can filter better? I don’t know what I am doing wrong.
Moreover, even though I restricted the depth of intereste to 2200mm, it sometimes detect over that distance.