Items with no label
3335 Discussions

rs2::frame to png

JSmit77
Beginner
1,437 Views

Does anyone know of a really simple way to save an rs2::frame or rs2::video_frame object (librealsense2, c++) as a png? Currently we save them as raw files and use an external program like imageJ to do the raw to png conversion, but ideally we would like to be able to save these files as pngs directly.

0 Kudos
1 Reply
MartyG
Honored Contributor III
408 Views

The 'Save-To-Disk' sample program can save frames as PNG files.

https://github.com/IntelRealSense/librealsense/tree/master/examples/save-to-disk librealsense/examples/save-to-disk at master · IntelRealSense/librealsense · GitHub

0 Kudos
Reply