Items with no label
3341 Discusiones

rs2::frame to png

JSmit77
Principiante
2.324 Vistas

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 Responder
MartyG
Colaborador Distinguido III
1.295 Vistas

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

Responder