Open foxtierney opened 1 year ago
After talking to a co-worker about this problem, it seems there might be a solution related to the rs2_deproject_pixel_to_point() function. "Documentation" page: https://dev.intelrealsense.com/docs/projection-in-intel-realsense-sdk-20 Function definition: https://github.com/IntelRealSense/librealsense/blob/5e73f7bb906a3cbec8ae43e888f182cc56c18692/include/librealsense2/rsutil.h#L46
When I have time in the coming month or two, I should be able to get this working. Otherwise, I hope someone else takes a stab at this!
In the main loop of
RealSense2OpenPose3D.cpp
, the lines......account for about 45-60ms of delay when using the
chrono
library to do some speed testing. This limits the framerate to 12fps to be extra safe. If OpenPose were to run faster than RS2OP3D, then there is the possibility of losing real-time-ness.I cannot see how to multi-thread this process to speed it up. Perhaps there is another way that these depth points in 3D space can be acquired instead of with this slow vector. Or maybe there are improvements that can be made to the SDK to reduce latency.
Any help on this would be appreciated.