Hi @Romil Game Dev Greetings! Welcome to Microsoft Q&A forum. Thank you for posting your question here.
I wanted to check if you have looked into this article Access data in body frame on Azure Kinect DK documentation. The documentation states you can get the SDK to track Multiple bodies in a single capture using the function k4abt_frame_get_num_bodies()
Please refer the below sample code that helps to achieve this
size_t num_bodies = k4abt_frame_get_num_bodies(body_frame);
for (size_t i = 0; i < num_bodies; i++)
{
k4abt_skeleton_t skeleton;
k4abt_frame_get_body_skeleton(body_frame, i, &skeleton);
uint32_t id = k4abt_frame_get_body_id(body_frame, i);
k4a_image_t body_index_map = k4abt_frame_get_body_index_map(body_frame);
// Do your work with the body index map
k4a_image_release(body_index_map);
k4a_capture_t input_capture = k4abt_frame_get_capture(body_frame);
// Do your work with the input capture
k4a_capture_release(input_capture);
}
Hope this helps. Please let us know if you face any issues testing the sample or do not see the results as expected.