How to get Bodies from SVO file frame

I had Read the svo file and saving the each frame in a Mat object, Now I want to get bodies from that frames into sl.Bodies() object. Is there a way to do that?