Offline processing with Intel RS D455 on Windows
I'm working on a project using the Intel RealSense D455 camera on Windows, aiming to capture a video of a specific pose, save it for offline processing, implement MediaPipe for pose estimation, detect 3D coordinates of the body landmarks using rs2_deproject_pixel_to_point function and save the x, y, z coordinates in a csv file with time stamp.
I am using the same code I used for real time data and I replaced the real time part of my code with offline capturing and I am capturing both color and depth data. After that I have the 3D Coordinates calculation and mediapipe part as before.
Even though the same process is working for real time and I get the 3D coordinates perfectly, when it comes to offline processing the csv file is empty. Is this sort of offline processing even possible on windows? It would be great if someone could guide me on what to do get the offline processing working or, if my method is incorrect, then what the correct method is.
-
Hi Faiza Tafannum11 Usually when data is exported from the RealSense SDK to a csv file, it just contains camera metadata rather than the actual depth data. An example of this is the SDK's rs-save-to-disk C++ example program at the link below.
https://github.com/IntelRealSense/librealsense/tree/master/examples/save-to-disk
What may work better for you is to save the depth and color data into a bag file instead, though bags have a much larger file size than csv. A bag file is like a video recording of camera data. An SDK script can use a bag file as a data source and so access the stored data as though it were a live camera.
Please sign in to leave a comment.
Comments
1 comment